Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
35996d22 | 3 | # Generated by GNU Autoconf 2.59. |
ba4481b5 | 4 | # |
35996d22 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
ba4481b5 DL |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
503d2be0 AS |
11 | |
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
6bae0ccf DL |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
21 | fi | |
35996d22 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 23 | |
c0d27fcc | 24 | # Support unset when possible. |
35996d22 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
6bae0ccf DL |
31 | |
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
19650fd6 AS |
39 | for as_var in \ |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 43 | do |
35996d22 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c0d27fcc MR |
63 | |
64 | ||
503d2be0 | 65 | # Name of the executable. |
6bae0ccf | 66 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
6bae0ccf | 77 | |
c0d27fcc MR |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
88 | echo "#! /bin/sh" >conf$$.sh |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
92 | PATH_SEPARATOR=';' |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
19650fd6 | 96 | rm -f conf$$.sh |
c0d27fcc MR |
97 | fi |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
146 | CONFIG_SHELL=$as_dir/$as_base |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
503d2be0 AS |
193 | |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
6bae0ccf DL |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
35996d22 | 221 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
503d2be0 AS |
225 | as_executable_p="test -f" |
226 | ||
c0d27fcc | 227 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 232 | |
503d2be0 AS |
233 | |
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
6bae0ccf | 241 | $as_unset CDPATH |
c0d27fcc | 242 | |
503d2be0 AS |
243 | |
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
ba4481b5 | 254 | ac_default_prefix=/usr/local |
6bae0ccf | 255 | ac_config_libobj_dir=. |
503d2be0 AS |
256 | cross_compiling=no |
257 | subdirs= | |
c0d27fcc MR |
258 | MFLAGS= |
259 | MAKEFLAGS= | |
503d2be0 AS |
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
c0d27fcc MR |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
503d2be0 | 274 | ac_unique_file="src/lisp.h" |
6bae0ccf | 275 | ac_config_libobj_dir=src |
503d2be0 AS |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
304 | #else | |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
308 | #endif | |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
ba4481b5 | 312 | |
19650fd6 | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' |
6bae0ccf | 314 | ac_subst_files='' |
c0d27fcc | 315 | |
ba4481b5 | 316 | # Initialize some variables set by options. |
503d2be0 AS |
317 | ac_init_help= |
318 | ac_init_version=false | |
ba4481b5 DL |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
503d2be0 | 321 | cache_file=/dev/null |
ba4481b5 | 322 | exec_prefix=NONE |
ba4481b5 | 323 | no_create= |
ba4481b5 DL |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
ba4481b5 DL |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
503d2be0 AS |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ba4481b5 DL |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
ba4481b5 DL |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
ba4481b5 DL |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
503d2be0 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
503d2be0 | 368 | case $ac_option in |
ba4481b5 DL |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 373 | bindir=$ac_optarg ;; |
ba4481b5 DL |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 376 | ac_prev=build_alias ;; |
ba4481b5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 378 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
ba4481b5 DL |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
503d2be0 | 394 | datadir=$ac_optarg ;; |
ba4481b5 DL |
395 | |
396 | -disable-* | --disable-*) | |
503d2be0 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 398 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
404 | |
405 | -enable-* | --enable-*) | |
503d2be0 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 407 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
414 | *) ac_optarg=yes ;; |
415 | esac | |
503d2be0 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 425 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
503d2be0 AS |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
ba4481b5 DL |
437 | |
438 | -host | --host | --hos | --ho) | |
503d2be0 | 439 | ac_prev=host_alias ;; |
ba4481b5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 441 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 448 | includedir=$ac_optarg ;; |
ba4481b5 DL |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 453 | infodir=$ac_optarg ;; |
ba4481b5 DL |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 458 | libdir=$ac_optarg ;; |
ba4481b5 DL |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 465 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 474 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 479 | mandir=$ac_optarg ;; |
ba4481b5 DL |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 486 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 500 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 505 | prefix=$ac_optarg ;; |
ba4481b5 DL |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 512 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 519 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 536 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
503d2be0 | 546 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
503d2be0 | 557 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
503d2be0 | 562 | site=$ac_optarg ;; |
ba4481b5 DL |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 567 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 574 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 577 | ac_prev=target_alias ;; |
ba4481b5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 579 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
503d2be0 AS |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
ba4481b5 DL |
586 | |
587 | -with-* | --with-*) | |
503d2be0 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 589 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
ba4481b5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
596 | *) ac_optarg=yes ;; |
597 | esac | |
503d2be0 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
599 | |
600 | -without-* | --without-*) | |
503d2be0 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 602 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 618 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 625 | x_libraries=$ac_optarg ;; |
ba4481b5 | 626 | |
503d2be0 AS |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
630 | ;; |
631 | ||
503d2be0 AS |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
ba4481b5 | 642 | *) |
503d2be0 AS |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
503d2be0 AS |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
ba4481b5 | 657 | fi |
ba4481b5 | 658 | |
503d2be0 AS |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
c0d27fcc | 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
666 | { (exit 1); exit 1; }; };; |
667 | esac | |
668 | done | |
ba4481b5 | 669 | |
503d2be0 AS |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
35996d22 | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
ba4481b5 | 673 | do |
503d2be0 AS |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
c0d27fcc | 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 | 678 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
679 | esac |
680 | done | |
681 | ||
503d2be0 AS |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
c0d27fcc | 684 | # FIXME: To remove some day. |
503d2be0 AS |
685 | build=$build_alias |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
c0d27fcc | 689 | # FIXME: To remove some day. |
503d2be0 AS |
690 | if test "x$host_alias" != x; then |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
ba4481b5 | 699 | |
503d2be0 AS |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 702 | |
503d2be0 | 703 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 704 | |
c0d27fcc | 705 | |
ba4481b5 DL |
706 | # Find the source files, if location was not specified. |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
c0d27fcc MR |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
712 | X"$0" : 'X\(//\)[^/]' \| \ |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
716 | echo X"$0" | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
ba4481b5 DL |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
c0d27fcc | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
503d2be0 | 732 | { (exit 1); exit 1; }; } |
ba4481b5 | 733 | else |
c0d27fcc | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
503d2be0 | 735 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
736 | fi |
737 | fi | |
6bae0ccf DL |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
774 | ||
775 | # | |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 781 | cat <<_ACEOF |
503d2be0 AS |
782 | \`configure' configures this package to adapt to many kinds of systems. |
783 | ||
784 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
785 | ||
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
788 | ||
789 | Defaults for the options are specified in brackets. | |
790 | ||
791 | Configuration: | |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
c0d27fcc | 802 | _ACEOF |
503d2be0 | 803 | |
c0d27fcc | 804 | cat <<_ACEOF |
503d2be0 AS |
805 | Installation directories: |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
35996d22 | 807 | [$ac_default_prefix] |
503d2be0 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
35996d22 | 809 | [PREFIX] |
503d2be0 AS |
810 | |
811 | By default, \`make install' will install all the files in | |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
815 | ||
816 | For better control, use the options below. | |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
c0d27fcc | 831 | _ACEOF |
503d2be0 | 832 | |
c0d27fcc | 833 | cat <<\_ACEOF |
503d2be0 | 834 | |
ba5da88a PJ |
835 | Program names: |
836 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
837 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
839 | ||
503d2be0 AS |
840 | X features: |
841 | --x-includes=DIR X include files are in DIR | |
842 | --x-libraries=DIR X library files are in DIR | |
843 | ||
844 | System types: | |
845 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
846 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
847 | _ACEOF | |
503d2be0 AS |
848 | fi |
849 | ||
850 | if test -n "$ac_init_help"; then | |
851 | ||
c0d27fcc | 852 | cat <<\_ACEOF |
503d2be0 AS |
853 | |
854 | Optional Features: | |
855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
857 | --enable-carbon-app[=DIR] [DIR=/Application] |
858 | specify install directory for Emacs.app on Mac OS X | |
19650fd6 AS |
859 | --enable-maintainer-mode enable make rules and dependencies not useful |
860 | (and sometimes confusing) to the casual installer | |
503d2be0 AS |
861 | --disable-largefile omit support for large files |
862 | ||
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
866 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
867 | --without-pop don't support POP mail retrieval with movemail | |
868 | --with-kerberos support Kerberos-authenticated POP | |
869 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
870 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 871 | --without-sound don't compile with sound support |
488dd4c4 JD |
872 | --with-x-toolkit=KIT use an X toolkit |
873 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
874 | --with-xpm use -lXpm for displaying XPM images |
875 | --with-jpeg use -ljpeg for displaying JPEG images | |
876 | --with-tiff use -ltiff for displaying TIFF images | |
877 | --with-gif use -lungif for displaying GIF images | |
878 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
879 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
880 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 881 | --without-toolkit-scroll-bars |
cc227489 MB |
882 | don't use Motif or Xaw3d scroll bars |
883 | --without-xim don't use X11 XIM | |
e0f712ba | 884 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
885 | --with-x use the X Window System |
886 | ||
887 | Some influential environment variables: | |
888 | CC C compiler command | |
889 | CFLAGS C compiler flags | |
890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
891 | nonstandard directory <lib dir> | |
892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
893 | headers in a nonstandard directory <include dir> | |
894 | CPP C preprocessor | |
895 | ||
896 | Use these variables to override the choices made by `configure' or to help | |
897 | it to find libraries and programs with nonstandard names/locations. | |
898 | ||
c0d27fcc | 899 | _ACEOF |
503d2be0 AS |
900 | fi |
901 | ||
902 | if test "$ac_init_help" = "recursive"; then | |
903 | # If there are subdirs, report their specific --help. | |
904 | ac_popdir=`pwd` | |
c0d27fcc MR |
905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
906 | test -d $ac_dir || continue | |
907 | ac_builddir=. | |
908 | ||
909 | if test "$ac_dir" != .; then | |
910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
911 | # A "../" for each directory in $ac_dir_suffix. | |
912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
913 | else | |
914 | ac_dir_suffix= ac_top_builddir= | |
915 | fi | |
503d2be0 | 916 | |
c0d27fcc MR |
917 | case $srcdir in |
918 | .) # No --srcdir option. We are building in place. | |
919 | ac_srcdir=. | |
920 | if test -z "$ac_top_builddir"; then | |
921 | ac_top_srcdir=. | |
922 | else | |
923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
924 | fi ;; | |
925 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
926 | ac_srcdir=$srcdir$ac_dir_suffix; | |
927 | ac_top_srcdir=$srcdir ;; | |
928 | *) # Relative path. | |
929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
931 | esac | |
35996d22 AS |
932 | |
933 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
934 | # the directories may not exist. | |
935 | case `pwd` in | |
936 | .) ac_abs_builddir="$ac_dir";; | |
937 | *) | |
938 | case "$ac_dir" in | |
939 | .) ac_abs_builddir=`pwd`;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
946 | *) | |
947 | case ${ac_top_builddir}. in | |
948 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_srcdir=$ac_srcdir;; | |
955 | *) | |
956 | case $ac_srcdir in | |
957 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
960 | esac;; | |
961 | esac | |
962 | case $ac_abs_builddir in | |
963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
964 | *) | |
965 | case $ac_top_srcdir in | |
966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
969 | esac;; | |
970 | esac | |
c0d27fcc MR |
971 | |
972 | cd $ac_dir | |
503d2be0 | 973 | # Check for guested configure; otherwise get Cygnus style configure. |
c0d27fcc | 974 | if test -f $ac_srcdir/configure.gnu; then |
503d2be0 | 975 | echo |
c0d27fcc MR |
976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
977 | elif test -f $ac_srcdir/configure; then | |
503d2be0 | 978 | echo |
c0d27fcc MR |
979 | $SHELL $ac_srcdir/configure --help=recursive |
980 | elif test -f $ac_srcdir/configure.ac || | |
35996d22 | 981 | test -f $ac_srcdir/configure.in; then |
503d2be0 AS |
982 | echo |
983 | $ac_configure --help | |
984 | else | |
c0d27fcc | 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
503d2be0 | 986 | fi |
57669b57 | 987 | cd $ac_popdir |
503d2be0 AS |
988 | done |
989 | fi | |
990 | ||
991 | test -n "$ac_init_help" && exit 0 | |
992 | if $ac_init_version; then | |
c0d27fcc | 993 | cat <<\_ACEOF |
503d2be0 | 994 | |
35996d22 | 995 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
996 | This configure script is free software; the Free Software Foundation |
997 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 998 | _ACEOF |
503d2be0 AS |
999 | exit 0 |
1000 | fi | |
1001 | exec 5>config.log | |
c0d27fcc | 1002 | cat >&5 <<_ACEOF |
503d2be0 AS |
1003 | This file contains any messages produced by compilers while |
1004 | running configure, to aid debugging if configure makes a mistake. | |
1005 | ||
1006 | It was created by $as_me, which was | |
35996d22 | 1007 | generated by GNU Autoconf 2.59. Invocation command line was |
503d2be0 AS |
1008 | |
1009 | $ $0 $@ | |
1010 | ||
c0d27fcc | 1011 | _ACEOF |
503d2be0 AS |
1012 | { |
1013 | cat <<_ASUNAME | |
c0d27fcc MR |
1014 | ## --------- ## |
1015 | ## Platform. ## | |
1016 | ## --------- ## | |
503d2be0 AS |
1017 | |
1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1026 | ||
1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1034 | ||
925c2f3f | 1035 | _ASUNAME |
c0d27fcc MR |
1036 | |
1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1038 | for as_dir in $PATH | |
1039 | do | |
1040 | IFS=$as_save_IFS | |
1041 | test -z "$as_dir" && as_dir=. | |
1042 | echo "PATH: $as_dir" | |
1043 | done | |
1044 | ||
503d2be0 AS |
1045 | } >&5 |
1046 | ||
c0d27fcc MR |
1047 | cat >&5 <<_ACEOF |
1048 | ||
1049 | ||
1050 | ## ----------- ## | |
1051 | ## Core tests. ## | |
1052 | ## ----------- ## | |
1053 | ||
1054 | _ACEOF | |
503d2be0 | 1055 | |
503d2be0 AS |
1056 | |
1057 | # Keep a trace of the command line. | |
1058 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1059 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1060 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1061 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1062 | ac_configure_args= |
19650fd6 AS |
1063 | ac_configure_args0= |
1064 | ac_configure_args1= | |
503d2be0 | 1065 | ac_sep= |
19650fd6 AS |
1066 | ac_must_keep_next=false |
1067 | for ac_pass in 1 2 | |
503d2be0 | 1068 | do |
19650fd6 AS |
1069 | for ac_arg |
1070 | do | |
1071 | case $ac_arg in | |
1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1074 | | -silent | --silent | --silen | --sile | --sil) | |
1075 | continue ;; | |
1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1078 | esac | |
1079 | case $ac_pass in | |
1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1081 | 2) | |
1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1083 | if test $ac_must_keep_next = true; then | |
35996d22 | 1084 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1085 | else |
35996d22 AS |
1086 | case $ac_arg in |
1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1090 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1091 | case "$ac_configure_args0 " in | |
1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1093 | esac | |
1094 | ;; | |
1095 | -* ) ac_must_keep_next=true ;; | |
1096 | esac | |
19650fd6 AS |
1097 | fi |
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1099 | # Get rid of the leading space. | |
1100 | ac_sep=" " | |
1101 | ;; | |
1102 | esac | |
1103 | done | |
503d2be0 | 1104 | done |
19650fd6 AS |
1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1107 | |
1108 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1109 | # config.log. We remove comments because anyway the quotes in there | |
1110 | # would cause problems or look ugly. | |
c0d27fcc MR |
1111 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1112 | # such as our DU 5.0 friend, will then `close' the trap. | |
503d2be0 AS |
1113 | trap 'exit_status=$? |
1114 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1115 | { |
1116 | echo | |
6bae0ccf | 1117 | |
c0d27fcc MR |
1118 | cat <<\_ASBOX |
1119 | ## ---------------- ## | |
1120 | ## Cache variables. ## | |
1121 | ## ---------------- ## | |
1122 | _ASBOX | |
1123 | echo | |
1124 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
1125 | { |
1126 | (set) 2>&1 | | |
1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1128 | *ac_space=\ *) | |
1129 | sed -n \ | |
35996d22 AS |
1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
503d2be0 AS |
1132 | ;; |
1133 | *) | |
1134 | sed -n \ | |
35996d22 | 1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
1136 | ;; |
1137 | esac; | |
c0d27fcc MR |
1138 | } |
1139 | echo | |
6bae0ccf DL |
1140 | |
1141 | cat <<\_ASBOX | |
1142 | ## ----------------- ## | |
1143 | ## Output variables. ## | |
1144 | ## ----------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_vars | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | ||
1154 | if test -n "$ac_subst_files"; then | |
1155 | cat <<\_ASBOX | |
1156 | ## ------------- ## | |
1157 | ## Output files. ## | |
1158 | ## ------------- ## | |
1159 | _ASBOX | |
1160 | echo | |
1161 | for ac_var in $ac_subst_files | |
1162 | do | |
1163 | eval ac_val=$`echo $ac_var` | |
35996d22 | 1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
6bae0ccf DL |
1165 | done | sort |
1166 | echo | |
1167 | fi | |
1168 | ||
c0d27fcc MR |
1169 | if test -s confdefs.h; then |
1170 | cat <<\_ASBOX | |
1171 | ## ----------- ## | |
1172 | ## confdefs.h. ## | |
1173 | ## ----------- ## | |
1174 | _ASBOX | |
1175 | echo | |
6bae0ccf | 1176 | sed "/^$/d" confdefs.h | sort |
c0d27fcc MR |
1177 | echo |
1178 | fi | |
1179 | test "$ac_signal" != 0 && | |
1180 | echo "$as_me: caught signal $ac_signal" | |
1181 | echo "$as_me: exit $exit_status" | |
1182 | } >&5 | |
35996d22 | 1183 | rm -f core *.core && |
c0d27fcc | 1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
503d2be0 AS |
1185 | exit $exit_status |
1186 | ' 0 | |
1187 | for ac_signal in 1 2 13 15; do | |
1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1189 | done | |
1190 | ac_signal=0 | |
1191 | ||
1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1193 | rm -rf conftest* confdefs.h | |
1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1195 | echo >confdefs.h | |
ba4481b5 | 1196 | |
c0d27fcc MR |
1197 | # Predefined preprocessor variables. |
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
503d2be0 | 1224 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
1225 | # Prefer explicitly selected file to automatically selected ones. |
1226 | if test -z "$CONFIG_SITE"; then | |
1227 | if test "x$prefix" != xNONE; then | |
1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1229 | else | |
1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1231 | fi | |
1232 | fi | |
1233 | for ac_site_file in $CONFIG_SITE; do | |
1234 | if test -r "$ac_site_file"; then | |
c0d27fcc | 1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1236 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1237 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1238 | . "$ac_site_file" |
1239 | fi | |
1240 | done | |
1241 | ||
1242 | if test -r "$cache_file"; then | |
503d2be0 AS |
1243 | # Some versions of bash will fail to source /dev/null (special |
1244 | # files actually), so we avoid doing that. | |
1245 | if test -f "$cache_file"; then | |
c0d27fcc | 1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1247 | echo "$as_me: loading cache $cache_file" >&6;} |
1248 | case $cache_file in | |
1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1250 | *) . ./$cache_file;; | |
1251 | esac | |
1252 | fi | |
ba4481b5 | 1253 | else |
c0d27fcc | 1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1255 | echo "$as_me: creating cache $cache_file" >&6;} |
1256 | >$cache_file | |
1257 | fi | |
1258 | ||
1259 | # Check that the precious variables saved in the cache have kept the same | |
1260 | # value. | |
1261 | ac_cache_corrupted=false | |
1262 | for ac_var in `(set) 2>&1 | | |
35996d22 | 1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
503d2be0 AS |
1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1265 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1267 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1268 | case $ac_old_set,$ac_new_set in | |
1269 | set,) | |
c0d27fcc | 1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1272 | ac_cache_corrupted=: ;; | |
1273 | ,set) | |
c0d27fcc | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1276 | ac_cache_corrupted=: ;; | |
1277 | ,);; | |
1278 | *) | |
1279 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
35996d22 | 1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
35996d22 | 1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
35996d22 | 1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
35996d22 | 1286 | ac_cache_corrupted=: |
503d2be0 AS |
1287 | fi;; |
1288 | esac | |
c0d27fcc | 1289 | # Pass precious variables to config.status. |
503d2be0 AS |
1290 | if test "$ac_new_set" = set; then |
1291 | case $ac_new_val in | |
1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
c0d27fcc MR |
1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1294 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1295 | esac | |
1296 | case " $ac_configure_args " in | |
1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1299 | esac |
1300 | fi | |
1301 | done | |
1302 | if $ac_cache_corrupted; then | |
c0d27fcc | 1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1307 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1308 | fi |
1309 | ||
1310 | ac_ext=c | |
ba4481b5 | 1311 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1315 | ||
c0d27fcc MR |
1316 | |
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
ba4481b5 | 1332 | |
6bae0ccf DL |
1333 | |
1334 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
ba4481b5 | 1335 | |
c0d27fcc | 1336 | |
ba5da88a PJ |
1337 | test "$program_prefix" != NONE && |
1338 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1339 | # Use a double $ so make ignores it. | |
1340 | test "$program_suffix" != NONE && | |
1341 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1342 | # Double any \ or $. echo might interpret backslashes. | |
1343 | # By default was `s,x,x', remove it if useless. | |
1344 | cat <<\_ACEOF >conftest.sed | |
1345 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1346 | _ACEOF | |
1347 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1348 | rm conftest.sed | |
1349 | ||
c0d27fcc | 1350 | |
ba4481b5 DL |
1351 | lispdir='${datadir}/emacs/${version}/lisp' |
1352 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1353 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1354 | lisppath='${locallisppath}:${lispdir}' | |
1355 | etcdir='${datadir}/emacs/${version}/etc' | |
1356 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1357 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1358 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1359 | |
1360 | gameuser=games | |
1361 | ||
c0d27fcc | 1362 | |
ba4481b5 DL |
1363 | # Check whether --with-gcc or --without-gcc was given. |
1364 | if test "${with_gcc+set}" = set; then | |
1365 | withval="$with_gcc" | |
503d2be0 AS |
1366 | |
1367 | fi; | |
ba4481b5 DL |
1368 | |
1369 | # Check whether --with-pop or --without-pop was given. | |
1370 | if test "${with_pop+set}" = set; then | |
1371 | withval="$with_pop" | |
243cf185 | 1372 | if test "$withval" = yes; then |
c0d27fcc | 1373 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1374 | #define MAIL_USE_POP 1 |
c0d27fcc | 1375 | _ACEOF |
ba4481b5 | 1376 | |
243cf185 DL |
1377 | else : |
1378 | fi | |
3d9fec71 | 1379 | else |
c0d27fcc | 1380 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1381 | #define MAIL_USE_POP 1 |
c0d27fcc | 1382 | _ACEOF |
3d9fec71 | 1383 | |
503d2be0 | 1384 | fi; |
ba4481b5 | 1385 | |
c0d27fcc | 1386 | |
a21616bd KR |
1387 | # Check whether --with-kerberos or --without-kerberos was given. |
1388 | if test "${with_kerberos+set}" = set; then | |
1389 | withval="$with_kerberos" | |
c0d27fcc | 1390 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1391 | #define KERBEROS 1 |
c0d27fcc | 1392 | _ACEOF |
a21616bd | 1393 | |
503d2be0 | 1394 | fi; |
a21616bd | 1395 | |
c0d27fcc | 1396 | |
a21616bd KR |
1397 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1398 | if test "${with_kerberos5+set}" = set; then | |
1399 | withval="$with_kerberos5" | |
1400 | if test "${with_kerberos5+set}" = set; then | |
1401 | if test "${with_kerberos+set}" != set; then | |
1402 | with_kerberos=yes | |
c0d27fcc | 1403 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1404 | #define KERBEROS 1 |
c0d27fcc | 1405 | _ACEOF |
a21616bd KR |
1406 | |
1407 | fi | |
1408 | fi | |
b936fae4 | 1409 | |
c0d27fcc | 1410 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1411 | #define KERBEROS5 1 |
c0d27fcc | 1412 | _ACEOF |
a21616bd | 1413 | |
503d2be0 | 1414 | fi; |
a21616bd | 1415 | |
ba4481b5 DL |
1416 | # Check whether --with-hesiod or --without-hesiod was given. |
1417 | if test "${with_hesiod+set}" = set; then | |
1418 | withval="$with_hesiod" | |
b936fae4 | 1419 | |
c0d27fcc | 1420 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1421 | #define HESIOD 1 |
c0d27fcc | 1422 | _ACEOF |
ba4481b5 | 1423 | |
503d2be0 | 1424 | fi; |
ba4481b5 | 1425 | |
c0d27fcc | 1426 | |
2c9dccc9 PJ |
1427 | # Check whether --with-sound or --without-sound was given. |
1428 | if test "${with_sound+set}" = set; then | |
1429 | withval="$with_sound" | |
1430 | ||
1431 | fi; | |
1432 | ||
c0d27fcc | 1433 | |
ba4481b5 DL |
1434 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1435 | if test "${with_x_toolkit+set}" = set; then | |
1436 | withval="$with_x_toolkit" | |
1437 | case "${withval}" in | |
1438 | y | ye | yes ) val=athena ;; | |
1439 | n | no ) val=no ;; | |
1440 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1441 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1442 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1443 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1444 | * ) |
c0d27fcc | 1445 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1446 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1447 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1448 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1449 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1450 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1451 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1452 | ;; |
1453 | esac | |
1454 | with_x_toolkit=$val | |
1455 | ||
503d2be0 | 1456 | fi; |
ba4481b5 DL |
1457 | |
1458 | # Check whether --with-xpm or --without-xpm was given. | |
1459 | if test "${with_xpm+set}" = set; then | |
1460 | withval="$with_xpm" | |
503d2be0 AS |
1461 | |
1462 | fi; | |
ba4481b5 DL |
1463 | |
1464 | # Check whether --with-jpeg or --without-jpeg was given. | |
1465 | if test "${with_jpeg+set}" = set; then | |
1466 | withval="$with_jpeg" | |
503d2be0 AS |
1467 | |
1468 | fi; | |
ba4481b5 DL |
1469 | |
1470 | # Check whether --with-tiff or --without-tiff was given. | |
1471 | if test "${with_tiff+set}" = set; then | |
1472 | withval="$with_tiff" | |
503d2be0 AS |
1473 | |
1474 | fi; | |
ba4481b5 DL |
1475 | |
1476 | # Check whether --with-gif or --without-gif was given. | |
1477 | if test "${with_gif+set}" = set; then | |
1478 | withval="$with_gif" | |
503d2be0 AS |
1479 | |
1480 | fi; | |
ba4481b5 DL |
1481 | |
1482 | # Check whether --with-png or --without-png was given. | |
1483 | if test "${with_png+set}" = set; then | |
1484 | withval="$with_png" | |
503d2be0 AS |
1485 | |
1486 | fi; | |
ba4481b5 | 1487 | |
488dd4c4 JD |
1488 | # Check whether --with-gtk or --without-gtk was given. |
1489 | if test "${with_gtk+set}" = set; then | |
1490 | withval="$with_gtk" | |
1491 | ||
1492 | fi; | |
1493 | ||
1494 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. | |
1495 | if test "${with_pkg_config_prog+set}" = set; then | |
1496 | withval="$with_pkg_config_prog" | |
1497 | ||
1498 | fi; | |
1499 | ||
ba4481b5 DL |
1500 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
1501 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1502 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1503 | |
1504 | fi; | |
ba4481b5 | 1505 | |
1d36487c GM |
1506 | # Check whether --with-xim or --without-xim was given. |
1507 | if test "${with_xim+set}" = set; then | |
1508 | withval="$with_xim" | |
1d36487c | 1509 | |
503d2be0 | 1510 | fi; |
ba4481b5 | 1511 | |
e0f712ba AC |
1512 | # Check whether --with-carbon or --without-carbon was given. |
1513 | if test "${with_carbon+set}" = set; then | |
1514 | withval="$with_carbon" | |
1515 | ||
1516 | fi; | |
6a3a24fa JD |
1517 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1518 | if test "${enable_carbon_app+set}" = set; then | |
1519 | enableval="$enable_carbon_app" | |
1520 | carbon_appdir_x=${enableval} | |
1521 | fi; | |
e0f712ba | 1522 | |
19650fd6 AS |
1523 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1524 | if test "${enable_maintainer_mode+set}" = set; then | |
1525 | enableval="$enable_maintainer_mode" | |
1526 | USE_MAINTAINER_MODE=$enableval | |
1527 | else | |
1528 | USE_MAINTAINER_MODE=no | |
1529 | fi; | |
1530 | if test $USE_MAINTAINER_MODE = yes; then | |
1531 | MAINT= | |
1532 | else | |
1533 | MAINT=# | |
1534 | fi | |
1535 | ||
1536 | ||
ba4481b5 | 1537 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1538 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1539 | #### give you automounter prefixes, which can go away. We do all this |
1540 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1541 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1542 | unset CDPATH | |
ba4481b5 DL |
1543 | case "${srcdir}" in |
1544 | /* ) ;; | |
1545 | . ) | |
1546 | ## We may be able to use the $PWD environment variable to make this | |
1547 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1548 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1549 | ## but that tested only for a well-formed and valid PWD, | |
1550 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1551 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1552 | then |
1553 | srcdir="$PWD" | |
1554 | else | |
1555 | srcdir="`(cd ${srcdir}; pwd)`" | |
1556 | fi | |
1557 | ;; | |
1558 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1559 | esac | |
1560 | ||
1561 | #### Check if the source directory already has a configured system in it. | |
1562 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1563 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 1564 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1565 | as a build directory right now; it has been configured in its own |
1566 | right. To configure in another directory as well, you MUST | |
1567 | use GNU make. If you do not have GNU make, then you must | |
1568 | now do \`make distclean' in ${srcdir}, | |
1569 | and then run $0 again." >&5 | |
1570 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1571 | as a build directory right now; it has been configured in its own |
1572 | right. To configure in another directory as well, you MUST | |
1573 | use GNU make. If you do not have GNU make, then you must | |
1574 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1575 | and then run $0 again." >&2;} |
ba4481b5 DL |
1576 | fi |
1577 | ||
1578 | #### Given the configuration name, set machfile and opsysfile to the | |
1579 | #### names of the m/*.h and s/*.h files we should use. | |
1580 | ||
1581 | ### Canonicalize the configuration name. | |
1582 | ||
1583 | ac_aux_dir= | |
1584 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1585 | if test -f $ac_dir/install-sh; then | |
1586 | ac_aux_dir=$ac_dir | |
1587 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1588 | break | |
1589 | elif test -f $ac_dir/install.sh; then | |
1590 | ac_aux_dir=$ac_dir | |
1591 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1592 | break | |
503d2be0 AS |
1593 | elif test -f $ac_dir/shtool; then |
1594 | ac_aux_dir=$ac_dir | |
1595 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1596 | break | |
ba4481b5 DL |
1597 | fi |
1598 | done | |
1599 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1600 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1601 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1602 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1603 | fi |
503d2be0 AS |
1604 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1605 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1606 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1607 | |
1608 | # Make sure we can run config.sub. | |
503d2be0 | 1609 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1610 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1611 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
c0d27fcc | 1614 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1615 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1616 | if test "${ac_cv_build+set}" = set; then | |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1618 | else | |
1619 | ac_cv_build_alias=$build_alias | |
1620 | test -z "$ac_cv_build_alias" && | |
1621 | ac_cv_build_alias=`$ac_config_guess` | |
1622 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1623 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1624 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1625 | { (exit 1); exit 1; }; } | |
1626 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1627 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1628 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1629 | { (exit 1); exit 1; }; } |
1630 | ||
1631 | fi | |
c0d27fcc | 1632 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1633 | echo "${ECHO_T}$ac_cv_build" >&6 |
1634 | build=$ac_cv_build | |
1635 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1636 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1637 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1638 | ||
c0d27fcc MR |
1639 | |
1640 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1641 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1642 | if test "${ac_cv_host+set}" = set; then | |
1643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1644 | else | |
1645 | ac_cv_host_alias=$host_alias | |
1646 | test -z "$ac_cv_host_alias" && | |
1647 | ac_cv_host_alias=$ac_cv_build_alias | |
1648 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1649 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1650 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1651 | { (exit 1); exit 1; }; } | |
1652 | ||
1653 | fi | |
c0d27fcc | 1654 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1655 | echo "${ECHO_T}$ac_cv_host" >&6 |
1656 | host=$ac_cv_host | |
1657 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1658 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1659 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1660 | |
c0d27fcc | 1661 | |
ba4481b5 | 1662 | canonical=$host |
531a3336 | 1663 | configuration=${host_alias-$host} |
ba4481b5 | 1664 | |
c0d27fcc | 1665 | |
22044edf | 1666 | |
ba4481b5 DL |
1667 | ### If you add support for a new configuration, add code to this |
1668 | ### switch statement to recognize your configuration name and select | |
1669 | ### the appropriate operating system and machine description files. | |
1670 | ||
1671 | ### You would hope that you could choose an m/*.h file pretty much | |
1672 | ### based on the machine portion of the configuration name, and an s- | |
1673 | ### file based on the operating system portion. However, it turns out | |
1674 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1675 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1676 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1677 | ### machines. So we basically have to have a special case for each | |
1678 | ### configuration name. | |
1679 | ### | |
1680 | ### As far as handling version numbers on operating systems is | |
1681 | ### concerned, make sure things will fail in a fixable way. If | |
1682 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1683 | ### prepared to handle anything reasonably. If version numbers | |
1684 | ### matter, be sure /etc/MACHINES says something about it. | |
1685 | ### | |
1686 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1687 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1688 | ### confusion between `system' and `release' levels'." | |
1689 | ||
1690 | machine='' opsys='' unported=no | |
1691 | case "${canonical}" in | |
1692 | ||
1096bcc0 GM |
1693 | ## FreeBSD ports |
1694 | *-*-freebsd* ) | |
1695 | opsys=freebsd | |
1696 | case "${canonical}" in | |
1697 | alpha*-*-freebsd*) machine=alpha ;; | |
1698 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1699 | esac | |
1700 | ;; | |
1701 | ||
ba4481b5 DL |
1702 | ## NetBSD ports |
1703 | *-*-netbsd* ) | |
1704 | opsys=netbsd | |
dd038e26 | 1705 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
1706 | |
1707 | cat >>confdefs.h <<\_ACEOF | |
1708 | #define HAVE_CRTIN | |
dd038e26 AS |
1709 | _ACEOF |
1710 | ||
1711 | fi | |
1712 | ||
ba4481b5 DL |
1713 | case "${canonical}" in |
1714 | alpha*-*-netbsd*) machine=alpha ;; | |
1715 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1716 | m68k-*-netbsd*) | |
1717 | # This is somewhat bogus. | |
1718 | machine=hp9000s300 ;; | |
1719 | powerpc-apple-netbsd*) machine=macppc ;; | |
1720 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1721 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1722 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1723 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1724 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1725 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1726 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1727 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1728 | esac |
1729 | ;; | |
1730 | ||
1731 | ## OpenBSD ports | |
1732 | *-*-openbsd* ) | |
1733 | opsys=openbsd | |
1734 | case "${canonical}" in | |
1735 | alpha*-*-openbsd*) machine=alpha ;; | |
1736 | i386-*-openbsd*) machine=intel386 ;; | |
1737 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1738 | mipsel-*-openbsd*) machine=pmax ;; | |
1739 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1740 | sparc-*-openbsd*) machine=sparc ;; | |
1741 | vax-*-openbsd*) machine=vax ;; | |
1742 | esac | |
1743 | ;; | |
1744 | ||
1745 | ## Acorn RISCiX: | |
1746 | arm-acorn-riscix1.1* ) | |
1747 | machine=acorn opsys=riscix1-1 | |
1748 | ;; | |
1749 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1750 | ## This name is riscix12 instead of riscix1.2 | |
1751 | ## to avoid a file name conflict on MSDOS. | |
1752 | machine=acorn opsys=riscix12 | |
1753 | ;; | |
1754 | ||
1755 | ## BSDI ports | |
1756 | *-*-bsdi* ) | |
1757 | opsys=bsdi | |
1758 | case "${canonical}" in | |
1759 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1760 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1761 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1762 | esac |
1763 | case "${canonical}" in | |
1764 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1765 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1766 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1767 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1768 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1769 | esac |
1770 | ;; | |
1771 | ||
1772 | ## Alliant machines | |
1773 | ## Strictly speaking, we need the version of the alliant operating | |
1774 | ## system to choose the right machine file, but currently the | |
1775 | ## configuration name doesn't tell us enough to choose the right | |
1776 | ## one; we need to give alliants their own operating system name to | |
1777 | ## do this right. When someone cares, they can help us. | |
1778 | fx80-alliant-* ) | |
1779 | machine=alliant4 opsys=bsd4-2 | |
1780 | ;; | |
1781 | i860-alliant-* ) | |
1782 | machine=alliant-2800 opsys=bsd4-3 | |
1783 | ;; | |
1784 | ||
1785 | ## Alpha (DEC) machines. | |
1786 | alpha*-dec-osf* ) | |
1787 | machine=alpha opsys=osf1 | |
1788 | # This is needed to find X11R6.1 libraries for certain tests. | |
1789 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1790 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1791 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1792 | # due to non-traditional preprocessing with the current compiler | |
1793 | # defaults. OSF 4 can also have that compiler version, and there | |
1794 | # seems always to have been a usable /usr/bin/cpp. | |
1795 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1796 | case "${canonical}" in |
a55b799a | 1797 | alpha*-dec-osf[5-9]*) |
bb17930d | 1798 | opsys=osf5-0 ;; |
ca512671 | 1799 | esac |
ba4481b5 DL |
1800 | ;; |
1801 | ||
1802 | alpha*-*-linux-gnu* ) | |
1803 | machine=alpha opsys=gnu-linux | |
1804 | ;; | |
1805 | ||
c4bb2108 DL |
1806 | arm*-*-linux-gnu* ) |
1807 | machine=arm opsys=gnu-linux | |
1808 | ;; | |
1809 | ||
1810 | ppc-*-linux | \ | |
1811 | powerpc-*-linux* ) | |
3aeecf97 | 1812 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1813 | ;; |
1814 | ||
ba4481b5 DL |
1815 | ## Altos 3068 |
1816 | m68*-altos-sysv* ) | |
1817 | machine=altos opsys=usg5-2 | |
1818 | ;; | |
1819 | ||
1820 | ## Amdahl UTS | |
1821 | 580-amdahl-sysv* ) | |
1822 | machine=amdahl opsys=usg5-2-2 | |
1823 | ;; | |
1824 | ||
1825 | ## Apollo, Domain/OS | |
1826 | m68*-apollo-* ) | |
1827 | machine=apollo opsys=bsd4-3 | |
1828 | ;; | |
1829 | ||
1830 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1831 | we32k-att-sysv* ) | |
1832 | machine=att3b opsys=usg5-2-2 | |
1833 | ;; | |
1834 | ||
1835 | ## AT&T 3b1 - The Mighty Unix PC! | |
1836 | m68*-att-sysv* ) | |
1837 | machine=7300 opsys=usg5-2-2 | |
1838 | ;; | |
1839 | ||
1840 | ## Bull dpx20 | |
1841 | rs6000-bull-bosx* ) | |
1842 | machine=ibmrs6000 opsys=aix3-2 | |
1843 | ;; | |
1844 | ||
1845 | ## Bull dpx2 | |
1846 | m68*-bull-sysv3* ) | |
1847 | machine=dpx2 opsys=usg5-3 | |
1848 | ;; | |
1849 | ||
1850 | ## Bull sps7 | |
1851 | m68*-bull-sysv2* ) | |
1852 | machine=sps7 opsys=usg5-2 | |
1853 | ;; | |
1854 | ||
1855 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1856 | ||
1857 | ## Celerity | |
1858 | ## I don't know what configuration name to use for this; config.sub | |
1859 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1860 | ## in touch with us! | |
1861 | celerity-celerity-bsd* ) | |
1862 | machine=celerity opsys=bsd4-2 | |
1863 | ;; | |
1864 | ||
1865 | ## Clipper | |
1866 | ## What operating systems does this chip run that Emacs has been | |
1867 | ## tested on? | |
1868 | clipper-* ) | |
1869 | machine=clipper | |
1870 | ## We'll use the catch-all code at the bottom to guess the | |
1871 | ## operating system. | |
1872 | ;; | |
1873 | ||
df645f7c AS |
1874 | ## Compaq Nonstop |
1875 | mips-compaq-nonstopux* ) | |
1876 | machine=nonstopux opsys=nonstopux | |
1877 | ;; | |
1878 | ||
ba4481b5 DL |
1879 | ## Convex |
1880 | *-convex-bsd* | *-convex-convexos* ) | |
1881 | machine=convex opsys=bsd4-3 | |
1882 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1883 | NON_GNU_CPP="cc -E -P" | |
1884 | ;; | |
1885 | ||
1886 | ## Cubix QBx/386 | |
1887 | i[3456]86-cubix-sysv* ) | |
1888 | machine=intel386 opsys=usg5-3 | |
1889 | ;; | |
1890 | ||
1891 | ## Cydra 5 | |
1892 | cydra*-cydrome-sysv* ) | |
1893 | machine=cydra5 opsys=usg5-3 | |
1894 | ;; | |
1895 | ||
1896 | ## Data General AViiON Machines | |
1897 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1898 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1899 | ## R this shouldn't conflict with older versions of the OS (which I | |
1900 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1901 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1902 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1903 | machine=aviion opsys=dgux4 | |
1904 | ;; | |
1905 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1906 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1907 | ## to avoid a file name conflict on MSDOS. | |
1908 | machine=aviion opsys=dgux5-4-3 | |
1909 | ;; | |
1910 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1911 | machine=aviion opsys=dgux5-4r2 | |
1912 | ;; | |
1913 | m88k-dg-dgux* ) | |
1914 | machine=aviion opsys=dgux | |
1915 | ;; | |
1916 | ||
1917 | ## Data General AViiON Intel (x86) Machines | |
1918 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1919 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1920 | i[345]86-dg-dguxR4* ) | |
1921 | machine=aviion-intel opsys=dgux4 | |
1922 | ;; | |
1923 | ||
1924 | ## DECstations | |
1925 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1926 | machine=pmax opsys=bsd4-2 | |
1927 | ;; | |
1928 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1929 | machine=pmax opsys=bsd4-3 | |
1930 | ;; | |
1931 | mips-dec-ultrix* ) | |
1932 | machine=pmax opsys=ultrix4-3 | |
1933 | ;; | |
1934 | mips-dec-osf* ) | |
1935 | machine=pmax opsys=osf1 | |
1936 | ;; | |
1937 | mips-dec-mach_bsd4.3* ) | |
1938 | machine=pmax opsys=mach-bsd4-3 | |
1939 | ;; | |
1940 | ||
cd890796 JD |
1941 | ## Motorola Delta machines |
1942 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1943 | machine=delta opsys=usg5-3 | |
1944 | if test -z "`type gnucc | grep 'not found'`" | |
1945 | then | |
1946 | if test -s /etc/167config | |
1947 | then CC="gnucc -m68040" | |
1948 | else CC="gnucc -m68881" | |
1949 | fi | |
1950 | else | |
1951 | if test -z "`type gcc | grep 'not found'`" | |
1952 | then CC=gcc | |
1953 | else CC=cc | |
1954 | fi | |
1955 | fi | |
1956 | ;; | |
ba4481b5 DL |
1957 | m88k-motorola-sysv4* ) |
1958 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1959 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1960 | # I hope there are not other 4.0 versions for this machine | |
1961 | # which really need usg5-4 instead. | |
1962 | machine=delta88k opsys=usg5-4-2 | |
1963 | ;; | |
1964 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1965 | machine=delta88k opsys=usg5-3 | |
1966 | ;; | |
1967 | ||
1968 | ## Dual machines | |
1969 | m68*-dual-sysv* ) | |
1970 | machine=dual opsys=usg5-2 | |
1971 | ;; | |
1972 | m68*-dual-uniplus* ) | |
1973 | machine=dual opsys=unipl5-2 | |
1974 | ;; | |
1975 | ||
1976 | ## Elxsi 6400 | |
1977 | elxsi-elxsi-sysv* ) | |
1978 | machine=elxsi opsys=usg5-2 | |
1979 | ;; | |
1980 | ||
1981 | ## Encore machines | |
1982 | ns16k-encore-bsd* ) | |
1983 | machine=ns16000 opsys=umax | |
1984 | ;; | |
1985 | ||
65171e3a DL |
1986 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1987 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1988 | |
1989 | ## Gould Power Node and NP1 | |
1990 | pn-gould-bsd4.2* ) | |
1991 | machine=gould opsys=bsd4-2 | |
1992 | ;; | |
1993 | pn-gould-bsd4.3* ) | |
1994 | machine=gould opsys=bsd4-3 | |
1995 | ;; | |
1996 | np1-gould-bsd* ) | |
1997 | machine=gould-np1 opsys=bsd4-3 | |
1998 | ;; | |
1999 | ||
2000 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2001 | ## as far as Emacs is concerned). | |
2002 | m88k-harris-cxux* ) | |
2003 | # Build needs to be different on 7.0 and later releases | |
2004 | case "`uname -r`" in | |
2005 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2006 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2007 | esac | |
2008 | NON_GNU_CPP="/lib/cpp" | |
2009 | ;; | |
2010 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2011 | m68k-harris-cxux* ) | |
2012 | machine=nh3000 opsys=cxux | |
2013 | ;; | |
2014 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2015 | powerpc-harris-powerunix ) | |
2016 | machine=nh6000 opsys=powerunix | |
2017 | NON_GNU_CPP="cc -Xo -E -P" | |
2018 | ;; | |
2019 | ## SR2001/SR2201 running HI-UX/MPP | |
2020 | hppa1.1-hitachi-hiuxmpp* ) | |
2021 | machine=sr2k opsys=hiuxmpp | |
2022 | ;; | |
89a336fa GM |
2023 | hppa1.1-hitachi-hiuxwe2* ) |
2024 | machine=sr2k opsys=hiuxwe2 | |
2025 | ;; | |
ba4481b5 DL |
2026 | ## Honeywell XPS100 |
2027 | xps*-honeywell-sysv* ) | |
2028 | machine=xps100 opsys=usg5-2 | |
2029 | ;; | |
2030 | ||
2031 | ## HP 9000 series 200 or 300 | |
2032 | m68*-hp-bsd* ) | |
2033 | machine=hp9000s300 opsys=bsd4-3 | |
2034 | ;; | |
2035 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2036 | m68*-hp-hpux* ) | |
2037 | case "`uname -r`" in | |
2038 | ## Someone's system reports A.B8.05 for this. | |
2039 | ## I wonder what other possibilities there are. | |
2040 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2041 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2042 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2043 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2044 | *) machine=hp9000s300 opsys=hpux ;; | |
2045 | esac | |
2046 | ;; | |
2047 | ||
2048 | ## HP 9000 series 700 and 800, running HP/UX | |
2049 | hppa*-hp-hpux7* ) | |
2050 | machine=hp800 opsys=hpux | |
2051 | ;; | |
2052 | hppa*-hp-hpux8* ) | |
2053 | machine=hp800 opsys=hpux8 | |
2054 | ;; | |
2055 | hppa*-hp-hpux9shr* ) | |
2056 | machine=hp800 opsys=hpux9shr | |
2057 | ;; | |
2058 | hppa*-hp-hpux9* ) | |
2059 | machine=hp800 opsys=hpux9 | |
2060 | ;; | |
b0e44248 RB |
2061 | hppa*-hp-hpux10.2* ) |
2062 | machine=hp800 opsys=hpux10-20 | |
2063 | ;; | |
cc227489 | 2064 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2065 | machine=hp800 opsys=hpux10 |
2066 | ;; | |
cc227489 MB |
2067 | hppa*-hp-hpux1[1-9]* ) |
2068 | machine=hp800 opsys=hpux11 | |
2069 | ;; | |
ba4481b5 | 2070 | |
409d9577 GM |
2071 | hppa*-*-linux-gnu* ) |
2072 | machine=hp800 opsys=gnu-linux | |
2073 | ;; | |
2074 | ||
ba4481b5 DL |
2075 | ## HP 9000 series 700 and 800, running HP/UX |
2076 | hppa*-hp-hpux* ) | |
2077 | ## Cross-compilation? Nah! | |
2078 | case "`uname -r`" in | |
2079 | ## Someone's system reports A.B8.05 for this. | |
2080 | ## I wonder what other possibilities there are. | |
2081 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2082 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2083 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2084 | *) machine=hp800 opsys=hpux10 ;; | |
2085 | esac | |
2086 | ;; | |
2087 | hppa*-*-nextstep* ) | |
2088 | machine=hp800 opsys=nextstep | |
2089 | ;; | |
2090 | ||
2091 | ## Orion machines | |
2092 | orion-orion-bsd* ) | |
2093 | machine=orion opsys=bsd4-2 | |
2094 | ;; | |
2095 | clipper-orion-bsd* ) | |
2096 | machine=orion105 opsys=bsd4-2 | |
2097 | ;; | |
2098 | ||
2099 | ## IBM machines | |
2100 | i[3456]86-ibm-aix1.1* ) | |
2101 | machine=ibmps2-aix opsys=usg5-2-2 | |
2102 | ;; | |
2103 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2104 | machine=ibmps2-aix opsys=usg5-3 | |
2105 | ;; | |
2106 | i370-ibm-aix*) | |
2107 | machine=ibm370aix opsys=usg5-3 | |
2108 | ;; | |
55597d70 | 2109 | s390-*-linux-gnu* ) |
138f0859 GM |
2110 | machine=ibms390 opsys=gnu-linux |
2111 | ;; | |
ba4481b5 DL |
2112 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2113 | machine=ibmrs6000 opsys=aix3-1 | |
2114 | ;; | |
2115 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2116 | machine=ibmrs6000 opsys=aix3-2-5 | |
2117 | ;; | |
2118 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2119 | machine=ibmrs6000 opsys=aix4-1 | |
2120 | ;; | |
2121 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2122 | machine=ibmrs6000 opsys=aix4-2 | |
2123 | ;; | |
55597d70 | 2124 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2125 | machine=ibmrs6000 opsys=aix4-2 |
2126 | ;; | |
ba4481b5 DL |
2127 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2128 | machine=ibmrs6000 opsys=aix4 | |
2129 | ;; | |
2130 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2131 | machine=ibmrs6000 opsys=aix4-1 | |
2132 | ;; | |
2133 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2134 | machine=ibmrs6000 opsys=aix3-2 | |
2135 | ;; | |
2136 | romp-ibm-bsd4.3* ) | |
2137 | machine=ibmrt opsys=bsd4-3 | |
2138 | ;; | |
2139 | romp-ibm-bsd4.2* ) | |
2140 | machine=ibmrt opsys=bsd4-2 | |
2141 | ;; | |
2142 | romp-ibm-aos4.3* ) | |
2143 | machine=ibmrt opsys=bsd4-3 | |
2144 | ;; | |
2145 | romp-ibm-aos4.2* ) | |
2146 | machine=ibmrt opsys=bsd4-2 | |
2147 | ;; | |
2148 | romp-ibm-aos* ) | |
2149 | machine=ibmrt opsys=bsd4-3 | |
2150 | ;; | |
2151 | romp-ibm-bsd* ) | |
2152 | machine=ibmrt opsys=bsd4-3 | |
2153 | ;; | |
2154 | romp-ibm-aix* ) | |
2155 | machine=ibmrt-aix opsys=usg5-2-2 | |
2156 | ;; | |
2157 | ||
2158 | ## Integrated Solutions `Optimum V' | |
2159 | m68*-isi-bsd4.2* ) | |
2160 | machine=isi-ov opsys=bsd4-2 | |
2161 | ;; | |
2162 | m68*-isi-bsd4.3* ) | |
2163 | machine=isi-ov opsys=bsd4-3 | |
2164 | ;; | |
2165 | ||
2166 | ## Intel 386 machines where we do care about the manufacturer | |
2167 | i[3456]86-intsys-sysv* ) | |
2168 | machine=is386 opsys=usg5-2-2 | |
2169 | ;; | |
2170 | ||
2171 | ## Prime EXL | |
2172 | i[3456]86-prime-sysv* ) | |
2173 | machine=i386 opsys=usg5-3 | |
2174 | ;; | |
2175 | ||
2176 | ## Sequent Symmetry running Dynix | |
2177 | i[3456]86-sequent-bsd* ) | |
2178 | machine=symmetry opsys=bsd4-3 | |
2179 | ;; | |
2180 | ||
2181 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2182 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2183 | machine=sequent-ptx opsys=ptx4 | |
2184 | NON_GNU_CPP=/lib/cpp | |
2185 | ;; | |
2186 | ||
2187 | ## Sequent Symmetry running DYNIX/ptx | |
2188 | ## Use the old cpp rather than the newer ANSI one. | |
2189 | i[3456]86-sequent-ptx* ) | |
2190 | machine=sequent-ptx opsys=ptx | |
2191 | NON_GNU_CPP="/lib/cpp" | |
2192 | ;; | |
2193 | ||
2194 | ## ncr machine running svr4.3. | |
2195 | i[3456]86-ncr-sysv4.3 ) | |
2196 | machine=ncr386 opsys=usg5-4-3 | |
2197 | ;; | |
2198 | ||
2199 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2200 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2201 | i[3456]86-ncr-sysv* ) | |
2202 | machine=ncr386 opsys=usg5-4-2 | |
2203 | ;; | |
2204 | ||
2205 | ## Intel Paragon OSF/1 | |
2206 | i860-intel-osf1* ) | |
2207 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2208 | ;; | |
2209 | ||
2210 | ## Intel 860 | |
2211 | i860-*-sysv4* ) | |
2212 | machine=i860 opsys=usg5-4 | |
2213 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2214 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2215 | ;; | |
2216 | ||
c76e04a8 GM |
2217 | ## Macintosh PowerPC |
2218 | powerpc*-*-linux-gnu* ) | |
2219 | machine=macppc opsys=gnu-linux | |
2220 | ;; | |
2221 | ||
ba4481b5 DL |
2222 | ## Masscomp machines |
2223 | m68*-masscomp-rtu* ) | |
2224 | machine=masscomp opsys=rtu | |
2225 | ;; | |
2226 | ||
2227 | ## Megatest machines | |
2228 | m68*-megatest-bsd* ) | |
2229 | machine=mega68 opsys=bsd4-2 | |
2230 | ;; | |
2231 | ||
2232 | ## Workstations sold by MIPS | |
2233 | ## This is not necessarily all workstations using the MIPS processor - | |
2234 | ## Irises are produced by SGI, and DECstations by DEC. | |
2235 | ||
2236 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2237 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2238 | ## it gives for choosing between the alternatives seems to be "Use | |
2239 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2240 | ## the BSD world." I'll assume that these are instructions for | |
2241 | ## handling two odd situations, and that every other situation | |
2242 | ## should use mips.h and usg5-2-2, they being listed first. | |
2243 | mips-mips-usg* ) | |
2244 | machine=mips4 | |
2245 | ## Fall through to the general code at the bottom to decide on the OS. | |
2246 | ;; | |
2247 | mips-mips-riscos4* ) | |
2248 | machine=mips4 opsys=bsd4-3 | |
2249 | NON_GNU_CC="cc -systype bsd43" | |
2250 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2251 | ;; | |
2252 | mips-mips-riscos5* ) | |
2253 | machine=mips4 opsys=riscos5 | |
2254 | NON_GNU_CC="cc -systype bsd43" | |
2255 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2256 | ;; | |
2257 | mips-mips-bsd* ) | |
2258 | machine=mips opsys=bsd4-3 | |
2259 | ;; | |
2260 | mips-mips-* ) | |
2261 | machine=mips opsys=usg5-2-2 | |
2262 | ;; | |
2263 | ||
2264 | ## NeXT | |
2265 | m68*-next-* | m68k-*-nextstep* ) | |
2266 | machine=m68k opsys=nextstep | |
2267 | ;; | |
2268 | ||
2269 | ## The complete machine from National Semiconductor | |
2270 | ns32k-ns-genix* ) | |
2271 | machine=ns32000 opsys=usg5-2 | |
2272 | ;; | |
2273 | ||
2274 | ## NCR machines | |
2275 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2276 | machine=tower32 opsys=usg5-2-2 | |
2277 | ;; | |
2278 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2279 | machine=tower32v3 opsys=usg5-3 | |
2280 | ;; | |
2281 | ||
2282 | ## NEC EWS4800 | |
2283 | mips-nec-sysv4*) | |
2284 | machine=ews4800 opsys=ux4800 | |
2285 | ;; | |
2286 | ||
2287 | ## Nixdorf Targon 31 | |
2288 | m68*-nixdorf-sysv* ) | |
2289 | machine=targon31 opsys=usg5-2-2 | |
2290 | ;; | |
2291 | ||
2292 | ## Nu (TI or LMI) | |
2293 | m68*-nu-sysv* ) | |
2294 | machine=nu opsys=usg5-2 | |
2295 | ;; | |
2296 | ||
2297 | ## Plexus | |
2298 | m68*-plexus-sysv* ) | |
2299 | machine=plexus opsys=usg5-2 | |
2300 | ;; | |
2301 | ||
ba4481b5 DL |
2302 | ## Pyramid machines |
2303 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2304 | ## so I'm assuming it is its own architecture. | |
2305 | pyramid-pyramid-bsd* ) | |
2306 | machine=pyramid opsys=bsd4-2 | |
2307 | ;; | |
2308 | ||
2309 | ## Sequent Balance | |
2310 | ns32k-sequent-bsd4.2* ) | |
2311 | machine=sequent opsys=bsd4-2 | |
2312 | ;; | |
2313 | ns32k-sequent-bsd4.3* ) | |
2314 | machine=sequent opsys=bsd4-3 | |
2315 | ;; | |
2316 | ||
2317 | ## Siemens Nixdorf | |
2318 | mips-siemens-sysv* | mips-sni-sysv*) | |
2319 | machine=mips-siemens opsys=usg5-4 | |
2320 | NON_GNU_CC=/usr/ccs/bin/cc | |
2321 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2322 | ;; | |
2323 | ||
2324 | ## Silicon Graphics machines | |
2325 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2326 | m68*-sgi-iris3.5* ) | |
2327 | machine=irist opsys=iris3-5 | |
2328 | ;; | |
2329 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2330 | machine=irist opsys=iris3-6 | |
2331 | ;; | |
2332 | ## Iris 4D | |
2333 | mips-sgi-irix3* ) | |
2334 | machine=iris4d opsys=irix3-3 | |
2335 | ;; | |
2336 | mips-sgi-irix4* ) | |
2337 | machine=iris4d opsys=irix4-0 | |
2338 | ;; | |
2339 | mips-sgi-irix6.5 ) | |
2340 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2341 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2342 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2343 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2344 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2345 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2346 | ;; |
2347 | mips-sgi-irix6* ) | |
2348 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2349 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2350 | # but presumably it does no harm. |
2351 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2352 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2353 | NON_GCC_TEST_OPTIONS=-32 |
2354 | ;; | |
2355 | mips-sgi-irix5.[01]* ) | |
2356 | machine=iris4d opsys=irix5-0 | |
2357 | ;; | |
2358 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2359 | machine=iris4d opsys=irix5-2 | |
2360 | ;; | |
2361 | ||
2362 | ## SONY machines | |
2363 | m68*-sony-bsd4.2* ) | |
2364 | machine=news opsys=bsd4-2 | |
2365 | ;; | |
2366 | m68*-sony-bsd4.3* ) | |
2367 | machine=news opsys=bsd4-3 | |
2368 | ;; | |
2369 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2370 | machine=news opsys=bsd4-3 | |
2371 | ;; | |
2372 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2373 | machine=news-risc opsys=bsd4-3 | |
2374 | ;; | |
2375 | mips-sony-newsos6* ) | |
2376 | machine=news-r6 opsys=newsos6 | |
2377 | ;; | |
2378 | mips-sony-news* ) | |
2379 | machine=news-risc opsys=newsos5 | |
2380 | ;; | |
2381 | ||
2382 | ## Stride | |
2383 | m68*-stride-sysv* ) | |
2384 | machine=stride opsys=usg5-2 | |
2385 | ;; | |
2386 | ||
2387 | ## Suns | |
2388 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2389 | machine=sparc opsys=gnu-linux | |
2390 | ;; | |
2391 | ||
d054101f | 2392 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2393 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2394 | | rs6000-*-solaris2*) | |
2395 | case "${canonical}" in | |
2396 | m68*-sunos1* ) machine=sun1 ;; | |
2397 | m68*-sunos2* ) machine=sun2 ;; | |
2398 | m68* ) machine=sun3 ;; | |
2399 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2400 | i[3456]86-*-* ) machine=intel386 ;; | |
2401 | powerpcle* ) machine=powerpcle ;; | |
2402 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2403 | sparc* ) machine=sparc ;; | |
2404 | * ) unported=yes ;; | |
2405 | esac | |
2406 | case "${canonical}" in | |
2407 | ## The Sun386 didn't get past 4.0. | |
2408 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2409 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2410 | *-sunos4.1.[3-9]*noshare ) | |
2411 | ## This name is sunos413 instead of sunos4-1-3 | |
2412 | ## to avoid a file name conflict on MSDOS. | |
2413 | opsys=sunos413 | |
2414 | NON_GNU_CPP=/usr/lib/cpp | |
2415 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2416 | GCC_TEST_OPTIONS=-static | |
2417 | ;; | |
2418 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2419 | opsys=sunos4shr | |
2420 | NON_GNU_CPP=/usr/lib/cpp | |
2421 | ;; | |
2422 | *-sunos4* | *-sunos ) | |
2423 | opsys=sunos4-1 | |
2424 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2425 | GCC_TEST_OPTIONS=-static | |
2426 | ;; | |
2427 | *-sunos5.3* | *-solaris2.3* ) | |
2428 | opsys=sol2-3 | |
2429 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2430 | ;; | |
2431 | *-sunos5.4* | *-solaris2.4* ) | |
2432 | opsys=sol2-4 | |
2433 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2434 | RANLIB="ar -ts" | |
2435 | ;; | |
2436 | *-sunos5.5* | *-solaris2.5* ) | |
2437 | opsys=sol2-5 | |
2438 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2439 | RANLIB="ar -ts" | |
2440 | ;; | |
8e967cf7 MR |
2441 | *-sunos5.6* | *-solaris2.6* ) |
2442 | opsys=sol2-6 | |
2443 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2444 | RANLIB="ar -ts" | |
2445 | ;; | |
ba4481b5 | 2446 | *-sunos5* | *-solaris* ) |
9e71690e | 2447 | opsys=sol2-6 |
ba4481b5 DL |
2448 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2449 | ;; | |
2450 | * ) opsys=bsd4-2 ;; | |
2451 | esac | |
2452 | ## Watch out for a compiler that we know will not work. | |
2453 | case "${canonical}" in | |
2454 | *-solaris* | *-sunos5* ) | |
2455 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2456 | ## /usr/ucb/cc doesn't work; | |
2457 | ## we should find some other compiler that does work. | |
2458 | unset CC | |
2459 | fi | |
2460 | ;; | |
2461 | *) ;; | |
2462 | esac | |
2463 | ;; | |
2464 | sparc-*-nextstep* ) | |
2465 | machine=sparc opsys=nextstep | |
2466 | ;; | |
2467 | ||
2468 | ## Tadpole 68k | |
2469 | m68*-tadpole-sysv* ) | |
2470 | machine=tad68k opsys=usg5-3 | |
2471 | ;; | |
2472 | ||
2473 | ## Tahoe machines | |
2474 | tahoe-tahoe-bsd4.2* ) | |
2475 | machine=tahoe opsys=bsd4-2 | |
2476 | ;; | |
2477 | tahoe-tahoe-bsd4.3* ) | |
2478 | machine=tahoe opsys=bsd4-3 | |
2479 | ;; | |
2480 | ||
2481 | ## Tandem Integrity S2 | |
2482 | mips-tandem-sysv* ) | |
2483 | machine=tandem-s2 opsys=usg5-3 | |
2484 | ;; | |
2485 | ||
2486 | ## Tektronix XD88 | |
2487 | m88k-tektronix-sysv3* ) | |
2488 | machine=tekxd88 opsys=usg5-3 | |
2489 | ;; | |
2490 | ||
2491 | ## Tektronix 16000 box (6130?) | |
2492 | ns16k-tektronix-bsd* ) | |
2493 | machine=ns16000 opsys=bsd4-2 | |
2494 | ;; | |
2495 | ## Tektronix 4300 | |
2496 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2497 | m68*-tektronix-bsd* ) | |
2498 | machine=tek4300 opsys=bsd4-3 | |
2499 | ;; | |
2500 | ||
2501 | ## Titan P2 or P3 | |
2502 | ## We seem to have lost the machine-description file titan.h! | |
2503 | titan-titan-sysv* ) | |
2504 | machine=titan opsys=usg5-3 | |
2505 | ;; | |
2506 | ||
2507 | ## Ustation E30 (SS5E) | |
2508 | m68*-unisys-uniplus* ) | |
2509 | machine=ustation opsystem=unipl5-2 | |
2510 | ;; | |
2511 | ||
2512 | ## Vaxen. | |
2513 | vax-dec-* ) | |
2514 | machine=vax | |
2515 | case "${canonical}" in | |
2516 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2517 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2518 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2519 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2520 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2521 | *-vms* ) opsys=vms ;; | |
2522 | * ) unported=yes | |
2523 | esac | |
2524 | ;; | |
2525 | ||
2526 | ## Whitechapel MG1 | |
2527 | ns16k-whitechapel-* ) | |
2528 | machine=mg1 | |
2529 | ## We don't know what sort of OS runs on these; we'll let the | |
2530 | ## operating system guessing code below try. | |
2531 | ;; | |
2532 | ||
2533 | ## Wicat | |
2534 | m68*-wicat-sysv* ) | |
2535 | machine=wicat opsys=usg5-2 | |
2536 | ;; | |
2537 | ||
f4988be7 GM |
2538 | ## IA-64 |
2539 | ia64*-*-linux* ) | |
2540 | machine=ia64 opsys=gnu-linux | |
2541 | ;; | |
2542 | ||
ba4481b5 DL |
2543 | ## Intel 386 machines where we don't care about the manufacturer |
2544 | i[3456]86-*-* ) | |
2545 | machine=intel386 | |
2546 | case "${canonical}" in | |
c60ee5e7 | 2547 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2548 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2549 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2550 | *-isc2.2* ) opsys=isc2-2 ;; | |
2551 | *-isc4.0* ) opsys=isc4-0 ;; | |
2552 | *-isc4.* ) opsys=isc4-1 | |
2553 | GCC_TEST_OPTIONS=-posix | |
2554 | NON_GCC_TEST_OPTIONS=-Xp | |
2555 | ;; | |
2556 | *-isc* ) opsys=isc3-0 ;; | |
2557 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2558 | *-esix* ) opsys=esix ;; | |
2559 | *-xenix* ) opsys=xenix ;; | |
2560 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2561 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2562 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2563 | NON_GNU_CPP=/lib/cpp |
2564 | # Prevent -belf from being passed to $CPP. | |
2565 | # /lib/cpp does not accept it. | |
2566 | OVERRIDE_CPPFLAGS=" " | |
2567 | ;; | |
2568 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
2569 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2570 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2571 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2572 | *-nextstep* ) opsys=nextstep ;; |
2573 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2574 | esac | |
2575 | ;; | |
2576 | ||
2577 | ## m68k Linux-based GNU system | |
2578 | m68k-*-linux-gnu* ) | |
2579 | machine=m68k opsys=gnu-linux | |
2580 | ;; | |
2581 | ||
2582 | ## Mips Linux-based GNU system | |
cd958eb3 | 2583 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2584 | machine=mips opsys=gnu-linux |
2585 | ;; | |
2586 | ||
2587 | ## UXP/DS | |
2588 | sparc-fujitsu-sysv4* ) | |
2589 | machine=sparc opsys=uxpds | |
2590 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2591 | RANLIB="ar -ts" | |
2592 | ;; | |
2593 | ||
2594 | ## UXP/V | |
2595 | f301-fujitsu-uxpv4.1) | |
2596 | machine=f301 opsys=uxpv | |
2597 | ;; | |
2598 | ||
e0f712ba AC |
2599 | ## Darwin / Mac OS X |
2600 | powerpc-apple-darwin* ) | |
2601 | machine=powermac opsys=darwin | |
2602 | # Define CPP as follows to make autoconf work correctly. | |
2a75d75d | 2603 | CPP="${CC-cc} -E -no-cpp-precomp" |
c14dc0ed AS |
2604 | # Use fink packages if available. |
2605 | if test -d /sw/include && test -d /sw/lib; then | |
2606 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2607 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2608 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2609 | fi | |
e0f712ba AC |
2610 | ;; |
2611 | ||
598a2813 AS |
2612 | ## AMD x86-64 Linux-based GNU system |
2613 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2614 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2615 | ;; |
2616 | ||
ba4481b5 DL |
2617 | * ) |
2618 | unported=yes | |
2619 | ;; | |
2620 | esac | |
2621 | ||
2622 | ### If the code above didn't choose an operating system, just choose | |
2623 | ### an operating system based on the configuration name. You really | |
2624 | ### only want to use this when you have no idea what the right | |
2625 | ### operating system is; if you know what operating systems a machine | |
2626 | ### runs, it's cleaner to make it explicit in the case statement | |
2627 | ### above. | |
2628 | if test x"${opsys}" = x; then | |
2629 | case "${canonical}" in | |
2630 | *-gnu* ) opsys=gnu ;; | |
2631 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2632 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2633 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2634 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2635 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2636 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2637 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2638 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2639 | *-sysv5uw* ) opsys=unixware ;; |
2640 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2641 | *-sysv4.1* | *-sysvr4.1* ) |
2642 | NON_GNU_CPP=/usr/lib/cpp | |
2643 | opsys=usg5-4 ;; | |
2644 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2645 | if [ x$NON_GNU_CPP = x ]; then | |
2646 | if [ -f /usr/ccs/lib/cpp ]; then | |
2647 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2648 | else | |
2649 | NON_GNU_CPP=/lib/cpp | |
2650 | fi | |
2651 | fi | |
2652 | opsys=usg5-4-2 ;; | |
2653 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2654 | * ) | |
2655 | unported=yes | |
2656 | ;; | |
2657 | esac | |
2658 | fi | |
2659 | ||
c0d27fcc | 2660 | |
22044edf | 2661 | |
ba4481b5 | 2662 | if test $unported = yes; then |
c0d27fcc | 2663 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2664 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2665 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2666 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2667 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2668 | fi |
2669 | ||
2670 | machfile="m/${machine}.h" | |
2671 | opsysfile="s/${opsys}.h" | |
2672 | ||
c0d27fcc | 2673 | |
ba4481b5 DL |
2674 | #### Choose a compiler. |
2675 | test -n "$CC" && cc_specified=yes | |
2676 | ||
2677 | # Save the value of CFLAGS that the user specified. | |
2678 | SPECIFIED_CFLAGS="$CFLAGS" | |
2679 | ||
2680 | case ${with_gcc} in | |
2681 | "yes" ) CC="gcc" GCC=yes ;; | |
2682 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2683 | * ) |
2684 | esac | |
2685 | ac_ext=c | |
2686 | ac_cpp='$CPP $CPPFLAGS' | |
2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2690 | if test -n "$ac_tool_prefix"; then | |
2691 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2692 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2695 | if test "${ac_cv_prog_CC+set}" = set; then | |
2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2697 | else |
2698 | if test -n "$CC"; then | |
2699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2700 | else | |
c0d27fcc MR |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2708 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
503d2be0 AS |
2713 | done |
2714 | ||
ba4481b5 DL |
2715 | fi |
2716 | fi | |
503d2be0 | 2717 | CC=$ac_cv_prog_CC |
ba4481b5 | 2718 | if test -n "$CC"; then |
c0d27fcc | 2719 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2720 | echo "${ECHO_T}$CC" >&6 |
2721 | else | |
c0d27fcc | 2722 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2723 | echo "${ECHO_T}no" >&6 |
2724 | fi | |
2725 | ||
2726 | fi | |
2727 | if test -z "$ac_cv_prog_CC"; then | |
2728 | ac_ct_CC=$CC | |
2729 | # Extract the first word of "gcc", so it can be a program name with args. | |
2730 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2733 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2735 | else | |
2736 | if test -n "$ac_ct_CC"; then | |
2737 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2738 | else | |
c0d27fcc MR |
2739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2740 | for as_dir in $PATH | |
2741 | do | |
2742 | IFS=$as_save_IFS | |
2743 | test -z "$as_dir" && as_dir=. | |
2744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2746 | ac_cv_prog_ac_ct_CC="gcc" | |
2747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2748 | break 2 | |
2749 | fi | |
2750 | done | |
503d2be0 AS |
2751 | done |
2752 | ||
2753 | fi | |
2754 | fi | |
2755 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2756 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2757 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2758 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2759 | else |
c0d27fcc | 2760 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2761 | echo "${ECHO_T}no" >&6 |
2762 | fi | |
2763 | ||
2764 | CC=$ac_ct_CC | |
2765 | else | |
2766 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2767 | fi |
2768 | ||
2769 | if test -z "$CC"; then | |
503d2be0 AS |
2770 | if test -n "$ac_tool_prefix"; then |
2771 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2772 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2775 | if test "${ac_cv_prog_CC+set}" = set; then | |
2776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2777 | else |
2778 | if test -n "$CC"; then | |
2779 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2780 | else | |
c0d27fcc MR |
2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2782 | for as_dir in $PATH | |
2783 | do | |
2784 | IFS=$as_save_IFS | |
2785 | test -z "$as_dir" && as_dir=. | |
2786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2788 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2790 | break 2 | |
2791 | fi | |
2792 | done | |
503d2be0 AS |
2793 | done |
2794 | ||
2795 | fi | |
2796 | fi | |
2797 | CC=$ac_cv_prog_CC | |
2798 | if test -n "$CC"; then | |
c0d27fcc | 2799 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2800 | echo "${ECHO_T}$CC" >&6 |
2801 | else | |
c0d27fcc | 2802 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2803 | echo "${ECHO_T}no" >&6 |
2804 | fi | |
2805 | ||
2806 | fi | |
2807 | if test -z "$ac_cv_prog_CC"; then | |
2808 | ac_ct_CC=$CC | |
2809 | # Extract the first word of "cc", so it can be a program name with args. | |
2810 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2813 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2815 | else | |
2816 | if test -n "$ac_ct_CC"; then | |
2817 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2818 | else | |
c0d27fcc MR |
2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2820 | for as_dir in $PATH | |
2821 | do | |
2822 | IFS=$as_save_IFS | |
2823 | test -z "$as_dir" && as_dir=. | |
2824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2826 | ac_cv_prog_ac_ct_CC="cc" | |
2827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2828 | break 2 | |
2829 | fi | |
2830 | done | |
503d2be0 AS |
2831 | done |
2832 | ||
2833 | fi | |
2834 | fi | |
2835 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2836 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2837 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2838 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2839 | else | |
c0d27fcc | 2840 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2841 | echo "${ECHO_T}no" >&6 |
2842 | fi | |
2843 | ||
2844 | CC=$ac_ct_CC | |
2845 | else | |
2846 | CC="$ac_cv_prog_CC" | |
2847 | fi | |
2848 | ||
2849 | fi | |
2850 | if test -z "$CC"; then | |
2851 | # Extract the first word of "cc", so it can be a program name with args. | |
2852 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2855 | if test "${ac_cv_prog_CC+set}" = set; then | |
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2857 | else | |
2858 | if test -n "$CC"; then | |
2859 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2860 | else | |
2861 | ac_prog_rejected=no | |
c0d27fcc MR |
2862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2863 | for as_dir in $PATH | |
2864 | do | |
2865 | IFS=$as_save_IFS | |
2866 | test -z "$as_dir" && as_dir=. | |
2867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2869 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2870 | ac_prog_rejected=yes | |
2871 | continue | |
2872 | fi | |
2873 | ac_cv_prog_CC="cc" | |
2874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2875 | break 2 | |
2876 | fi | |
2877 | done | |
503d2be0 AS |
2878 | done |
2879 | ||
ba4481b5 DL |
2880 | if test $ac_prog_rejected = yes; then |
2881 | # We found a bogon in the path, so make sure we never use it. | |
2882 | set dummy $ac_cv_prog_CC | |
2883 | shift | |
503d2be0 | 2884 | if test $# != 0; then |
ba4481b5 DL |
2885 | # We chose a different compiler from the bogus one. |
2886 | # However, it has the same basename, so the bogon will be chosen | |
2887 | # first if we set CC to just the basename; use the full file name. | |
2888 | shift | |
6bae0ccf | 2889 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2890 | fi |
2891 | fi | |
2892 | fi | |
2893 | fi | |
503d2be0 | 2894 | CC=$ac_cv_prog_CC |
ba4481b5 | 2895 | if test -n "$CC"; then |
c0d27fcc | 2896 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2897 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2898 | else |
c0d27fcc | 2899 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2900 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2901 | fi |
2902 | ||
503d2be0 AS |
2903 | fi |
2904 | if test -z "$CC"; then | |
2905 | if test -n "$ac_tool_prefix"; then | |
2906 | for ac_prog in cl | |
2907 | do | |
2908 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2909 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2912 | if test "${ac_cv_prog_CC+set}" = set; then | |
2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2914 | else |
2915 | if test -n "$CC"; then | |
2916 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2917 | else | |
c0d27fcc MR |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
2923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2925 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2927 | break 2 | |
2928 | fi | |
2929 | done | |
503d2be0 AS |
2930 | done |
2931 | ||
c4bb2108 DL |
2932 | fi |
2933 | fi | |
503d2be0 | 2934 | CC=$ac_cv_prog_CC |
c4bb2108 | 2935 | if test -n "$CC"; then |
c0d27fcc | 2936 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2937 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2938 | else |
c0d27fcc | 2939 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2940 | echo "${ECHO_T}no" >&6 |
2941 | fi | |
2942 | ||
2943 | test -n "$CC" && break | |
2944 | done | |
2945 | fi | |
2946 | if test -z "$CC"; then | |
2947 | ac_ct_CC=$CC | |
2948 | for ac_prog in cl | |
2949 | do | |
2950 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2951 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2954 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2956 | else | |
2957 | if test -n "$ac_ct_CC"; then | |
2958 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2959 | else | |
c0d27fcc MR |
2960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2961 | for as_dir in $PATH | |
2962 | do | |
2963 | IFS=$as_save_IFS | |
2964 | test -z "$as_dir" && as_dir=. | |
2965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2967 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2969 | break 2 | |
2970 | fi | |
2971 | done | |
503d2be0 AS |
2972 | done |
2973 | ||
c4bb2108 | 2974 | fi |
503d2be0 AS |
2975 | fi |
2976 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2977 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2978 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2979 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2980 | else | |
c0d27fcc | 2981 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2982 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2983 | fi |
2984 | ||
503d2be0 AS |
2985 | test -n "$ac_ct_CC" && break |
2986 | done | |
ba4481b5 | 2987 | |
503d2be0 AS |
2988 | CC=$ac_ct_CC |
2989 | fi | |
2990 | ||
2991 | fi | |
ba4481b5 | 2992 | |
c0d27fcc | 2993 | |
19650fd6 AS |
2994 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2995 | See \`config.log' for more details." >&5 | |
2996 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2997 | See \`config.log' for more details." >&2;} | |
503d2be0 | 2998 | { (exit 1); exit 1; }; } |
c4bb2108 | 2999 | |
503d2be0 | 3000 | # Provide some information about the compiler. |
c0d27fcc | 3001 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
3002 | "checking for C compiler version" >&5 |
3003 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 3004 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
3005 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3006 | ac_status=$? | |
c0d27fcc | 3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3008 | (exit $ac_status); } |
c0d27fcc | 3009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
3010 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3011 | ac_status=$? | |
c0d27fcc | 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3013 | (exit $ac_status); } |
c0d27fcc | 3014 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
3015 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3016 | ac_status=$? | |
c0d27fcc | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3018 | (exit $ac_status); } |
3019 | ||
3020 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3021 | /* confdefs.h. */ |
3022 | _ACEOF | |
3023 | cat confdefs.h >>conftest.$ac_ext | |
3024 | cat >>conftest.$ac_ext <<_ACEOF | |
3025 | /* end confdefs.h. */ | |
c4bb2108 | 3026 | |
503d2be0 AS |
3027 | int |
3028 | main () | |
3029 | { | |
3030 | ||
3031 | ; | |
3032 | return 0; | |
3033 | } | |
3034 | _ACEOF | |
3035 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3036 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3037 | # Try to create an executable without -o first, disregard a.out. |
3038 | # It will help us diagnose broken compilers, and finding out an intuition | |
3039 | # of exeext. | |
35996d22 AS |
3040 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3041 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
503d2be0 | 3042 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
c0d27fcc | 3043 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
3044 | (eval $ac_link_default) 2>&5 |
3045 | ac_status=$? | |
c0d27fcc | 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3047 | (exit $ac_status); }; then |
3048 | # Find the output, starting from the most likely. This scheme is | |
3049 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3050 | # resort. | |
c0d27fcc MR |
3051 | |
3052 | # Be careful to initialize this variable, since it used to be cached. | |
3053 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3054 | ac_cv_exeext= | |
19650fd6 AS |
3055 | # b.out is created by i960 compilers. |
3056 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3057 | do | |
6bae0ccf | 3058 | test -f "$ac_file" || continue |
503d2be0 | 3059 | case $ac_file in |
19650fd6 | 3060 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
35996d22 | 3061 | ;; |
19650fd6 | 3062 | conftest.$ac_ext ) |
35996d22 AS |
3063 | # This is the source file. |
3064 | ;; | |
19650fd6 | 3065 | [ab].out ) |
35996d22 AS |
3066 | # We found the default executable, but exeext='' is most |
3067 | # certainly right. | |
3068 | break;; | |
19650fd6 | 3069 | *.* ) |
35996d22 AS |
3070 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3071 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3072 | # but it would be cool to find out if it's true. Does anybody | |
3073 | # maintain Libtool? --akim. | |
3074 | export ac_cv_exeext | |
3075 | break;; | |
19650fd6 | 3076 | * ) |
35996d22 | 3077 | break;; |
503d2be0 AS |
3078 | esac |
3079 | done | |
3080 | else | |
3081 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3082 | sed 's/^/| /' conftest.$ac_ext >&5 |
3083 | ||
6bae0ccf | 3084 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3085 | See \`config.log' for more details." >&5 |
6bae0ccf | 3086 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3087 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3088 | { (exit 77); exit 77; }; } |
3089 | fi | |
3090 | ||
3091 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3092 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3093 | echo "${ECHO_T}$ac_file" >&6 |
3094 | ||
3095 | # Check the compiler produces executables we can run. If not, either | |
3096 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3097 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3098 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3099 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3100 | # If not cross compiling, check that we can run a simple program. | |
3101 | if test "$cross_compiling" != yes; then | |
3102 | if { ac_try='./$ac_file' | |
c0d27fcc | 3103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3104 | (eval $ac_try) 2>&5 |
3105 | ac_status=$? | |
c0d27fcc | 3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3107 | (exit $ac_status); }; }; then |
3108 | cross_compiling=no | |
ba4481b5 | 3109 | else |
503d2be0 AS |
3110 | if test "$cross_compiling" = maybe; then |
3111 | cross_compiling=yes | |
3112 | else | |
c0d27fcc | 3113 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3114 | If you meant to cross compile, use \`--host'. |
3115 | See \`config.log' for more details." >&5 | |
503d2be0 | 3116 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3117 | If you meant to cross compile, use \`--host'. |
3118 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3119 | { (exit 1); exit 1; }; } |
3120 | fi | |
ba4481b5 | 3121 | fi |
503d2be0 | 3122 | fi |
c0d27fcc | 3123 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3124 | echo "${ECHO_T}yes" >&6 |
3125 | ||
19650fd6 | 3126 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3127 | ac_clean_files=$ac_clean_files_save |
3128 | # Check the compiler produces executables we can run. If not, either | |
3129 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3130 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3131 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3132 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3133 | echo "${ECHO_T}$cross_compiling" >&6 |
3134 | ||
c0d27fcc MR |
3135 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3136 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3138 | (eval $ac_link) 2>&5 |
3139 | ac_status=$? | |
c0d27fcc | 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3141 | (exit $ac_status); }; then |
3142 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3143 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3144 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3145 | # `rm'. | |
6bae0ccf DL |
3146 | for ac_file in conftest.exe conftest conftest.*; do |
3147 | test -f "$ac_file" || continue | |
503d2be0 | 3148 | case $ac_file in |
6bae0ccf | 3149 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 | 3150 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
35996d22 AS |
3151 | export ac_cv_exeext |
3152 | break;; | |
503d2be0 AS |
3153 | * ) break;; |
3154 | esac | |
3155 | done | |
ba4481b5 | 3156 | else |
19650fd6 AS |
3157 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3158 | See \`config.log' for more details." >&5 | |
3159 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3160 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3161 | { (exit 1); exit 1; }; } |
ba4481b5 | 3162 | fi |
ba4481b5 | 3163 | |
503d2be0 | 3164 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3165 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3166 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3167 | |
503d2be0 AS |
3168 | rm -f conftest.$ac_ext |
3169 | EXEEXT=$ac_cv_exeext | |
3170 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3171 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3172 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3173 | if test "${ac_cv_objext+set}" = set; then |
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3175 | else |
503d2be0 | 3176 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3177 | /* confdefs.h. */ |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
3181 | /* end confdefs.h. */ | |
ba4481b5 | 3182 | |
503d2be0 AS |
3183 | int |
3184 | main () | |
3185 | { | |
ba4481b5 | 3186 | |
503d2be0 AS |
3187 | ; |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3193 | (eval $ac_compile) 2>&5 |
3194 | ac_status=$? | |
c0d27fcc | 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3196 | (exit $ac_status); }; then |
3197 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3198 | case $ac_file in | |
6bae0ccf | 3199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3200 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3201 | break;; | |
3202 | esac | |
3203 | done | |
c4bb2108 | 3204 | else |
503d2be0 | 3205 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3206 | sed 's/^/| /' conftest.$ac_ext >&5 |
3207 | ||
3208 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3209 | See \`config.log' for more details." >&5 | |
3210 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3211 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3212 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3213 | fi |
3214 | ||
503d2be0 AS |
3215 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3216 | fi | |
c0d27fcc | 3217 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3218 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3219 | OBJEXT=$ac_cv_objext | |
3220 | ac_objext=$OBJEXT | |
c0d27fcc | 3221 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3222 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3223 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3225 | else |
503d2be0 | 3226 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3227 | /* confdefs.h. */ |
3228 | _ACEOF | |
3229 | cat confdefs.h >>conftest.$ac_ext | |
3230 | cat >>conftest.$ac_ext <<_ACEOF | |
3231 | /* end confdefs.h. */ | |
503d2be0 AS |
3232 | |
3233 | int | |
3234 | main () | |
3235 | { | |
3236 | #ifndef __GNUC__ | |
3237 | choke me | |
3238 | #endif | |
3239 | ||
3240 | ; | |
3241 | return 0; | |
3242 | } | |
3243 | _ACEOF | |
3244 | rm -f conftest.$ac_objext | |
c0d27fcc | 3245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3246 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3247 | ac_status=$? |
35996d22 AS |
3248 | grep -v '^ *+' conftest.er1 >conftest.err |
3249 | rm -f conftest.er1 | |
3250 | cat conftest.err >&5 | |
c0d27fcc | 3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3252 | (exit $ac_status); } && |
35996d22 AS |
3253 | { ac_try='test -z "$ac_c_werror_flag" |
3254 | || test ! -s conftest.err' | |
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3256 | (eval $ac_try) 2>&5 | |
3257 | ac_status=$? | |
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3259 | (exit $ac_status); }; } && | |
3260 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3262 | (eval $ac_try) 2>&5 |
3263 | ac_status=$? | |
c0d27fcc | 3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3265 | (exit $ac_status); }; }; then |
3266 | ac_compiler_gnu=yes | |
3267 | else | |
3268 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3269 | sed 's/^/| /' conftest.$ac_ext >&5 |
3270 | ||
503d2be0 AS |
3271 | ac_compiler_gnu=no |
3272 | fi | |
35996d22 | 3273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3274 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3275 | ||
3276 | fi | |
c0d27fcc | 3277 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3278 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3279 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3280 | ac_test_CFLAGS=${CFLAGS+set} | |
3281 | ac_save_CFLAGS=$CFLAGS | |
3282 | CFLAGS="-g" | |
c0d27fcc | 3283 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3284 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3285 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3287 | else | |
3288 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3289 | /* confdefs.h. */ |
3290 | _ACEOF | |
3291 | cat confdefs.h >>conftest.$ac_ext | |
3292 | cat >>conftest.$ac_ext <<_ACEOF | |
3293 | /* end confdefs.h. */ | |
503d2be0 AS |
3294 | |
3295 | int | |
3296 | main () | |
3297 | { | |
3298 | ||
3299 | ; | |
3300 | return 0; | |
3301 | } | |
3302 | _ACEOF | |
3303 | rm -f conftest.$ac_objext | |
c0d27fcc | 3304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3305 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3306 | ac_status=$? |
35996d22 AS |
3307 | grep -v '^ *+' conftest.er1 >conftest.err |
3308 | rm -f conftest.er1 | |
3309 | cat conftest.err >&5 | |
c0d27fcc | 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3311 | (exit $ac_status); } && |
35996d22 AS |
3312 | { ac_try='test -z "$ac_c_werror_flag" |
3313 | || test ! -s conftest.err' | |
3314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3315 | (eval $ac_try) 2>&5 | |
3316 | ac_status=$? | |
3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3318 | (exit $ac_status); }; } && | |
3319 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3321 | (eval $ac_try) 2>&5 |
3322 | ac_status=$? | |
c0d27fcc | 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3324 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3325 | ac_cv_prog_cc_g=yes |
3326 | else | |
503d2be0 | 3327 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3328 | sed 's/^/| /' conftest.$ac_ext >&5 |
3329 | ||
503d2be0 | 3330 | ac_cv_prog_cc_g=no |
ba4481b5 | 3331 | fi |
35996d22 | 3332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3333 | fi |
c0d27fcc | 3334 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3335 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3336 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3337 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3338 | elif test $ac_cv_prog_cc_g = yes; then |
3339 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3340 | CFLAGS="-g -O2" |
3341 | else | |
c4bb2108 | 3342 | CFLAGS="-g" |
ba4481b5 | 3343 | fi |
22afa6e8 | 3344 | else |
c4bb2108 DL |
3345 | if test "$GCC" = yes; then |
3346 | CFLAGS="-O2" | |
3347 | else | |
3348 | CFLAGS= | |
3349 | fi | |
ba4481b5 | 3350 | fi |
6bae0ccf DL |
3351 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3352 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3353 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3355 | else | |
3356 | ac_cv_prog_cc_stdc=no | |
3357 | ac_save_CC=$CC | |
3358 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3359 | /* confdefs.h. */ |
3360 | _ACEOF | |
3361 | cat confdefs.h >>conftest.$ac_ext | |
3362 | cat >>conftest.$ac_ext <<_ACEOF | |
3363 | /* end confdefs.h. */ | |
6bae0ccf DL |
3364 | #include <stdarg.h> |
3365 | #include <stdio.h> | |
3366 | #include <sys/types.h> | |
3367 | #include <sys/stat.h> | |
3368 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3369 | struct buf { int x; }; | |
3370 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3371 | static char *e (p, i) | |
3372 | char **p; | |
3373 | int i; | |
3374 | { | |
3375 | return p[i]; | |
3376 | } | |
3377 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3378 | { | |
3379 | char *s; | |
3380 | va_list v; | |
3381 | va_start (v,p); | |
3382 | s = g (p, va_arg (v,int)); | |
3383 | va_end (v); | |
3384 | return s; | |
3385 | } | |
35996d22 AS |
3386 | |
3387 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3388 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3389 | These don't provoke an error unfortunately, instead are silently treated | |
3390 | as 'x'. The following induces an error, until -std1 is added to get | |
3391 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3392 | array size at least. It's necessary to write '\x00'==0 to get something | |
3393 | that's true only with -std1. */ | |
3394 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3395 | ||
6bae0ccf DL |
3396 | int test (int i, double x); |
3397 | struct s1 {int (*f) (int a);}; | |
3398 | struct s2 {int (*f) (double a);}; | |
3399 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3400 | int argc; | |
3401 | char **argv; | |
3402 | int | |
3403 | main () | |
3404 | { | |
3405 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
3410 | # Don't try gcc -ansi; that turns off useful extensions and | |
3411 | # breaks some systems' header files. | |
3412 | # AIX -qlanglvl=ansi | |
3413 | # Ultrix and OSF/1 -std1 | |
3414 | # HP-UX 10.20 and later -Ae | |
3415 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3416 | # SVR4 -Xc -D__EXTENSIONS__ | |
3417 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3418 | do | |
3419 | CC="$ac_save_CC $ac_arg" | |
3420 | rm -f conftest.$ac_objext | |
3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 3422 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 3423 | ac_status=$? |
35996d22 AS |
3424 | grep -v '^ *+' conftest.er1 >conftest.err |
3425 | rm -f conftest.er1 | |
3426 | cat conftest.err >&5 | |
6bae0ccf DL |
3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3428 | (exit $ac_status); } && | |
35996d22 AS |
3429 | { ac_try='test -z "$ac_c_werror_flag" |
3430 | || test ! -s conftest.err' | |
3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3432 | (eval $ac_try) 2>&5 | |
3433 | ac_status=$? | |
3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3435 | (exit $ac_status); }; } && | |
3436 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3438 | (eval $ac_try) 2>&5 | |
3439 | ac_status=$? | |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3441 | (exit $ac_status); }; }; then | |
3442 | ac_cv_prog_cc_stdc=$ac_arg | |
3443 | break | |
3444 | else | |
3445 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
3447 | ||
6bae0ccf | 3448 | fi |
35996d22 | 3449 | rm -f conftest.err conftest.$ac_objext |
6bae0ccf DL |
3450 | done |
3451 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3452 | CC=$ac_save_CC | |
3453 | ||
3454 | fi | |
3455 | ||
3456 | case "x$ac_cv_prog_cc_stdc" in | |
3457 | x|xno) | |
3458 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3459 | echo "${ECHO_T}none needed" >&6 ;; | |
3460 | *) | |
3461 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3462 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3463 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3464 | esac | |
3465 | ||
503d2be0 AS |
3466 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3467 | # in C++ we need to declare it. In case someone uses the same compiler | |
3468 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3469 | # the declaration of exit, since it's the most demanding environment. | |
3470 | cat >conftest.$ac_ext <<_ACEOF | |
3471 | #ifndef __cplusplus | |
3472 | choke me | |
3473 | #endif | |
3474 | _ACEOF | |
3475 | rm -f conftest.$ac_objext | |
c0d27fcc | 3476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3477 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3478 | ac_status=$? |
35996d22 AS |
3479 | grep -v '^ *+' conftest.er1 >conftest.err |
3480 | rm -f conftest.er1 | |
3481 | cat conftest.err >&5 | |
c0d27fcc | 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3483 | (exit $ac_status); } && |
35996d22 AS |
3484 | { ac_try='test -z "$ac_c_werror_flag" |
3485 | || test ! -s conftest.err' | |
3486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3487 | (eval $ac_try) 2>&5 | |
3488 | ac_status=$? | |
3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3490 | (exit $ac_status); }; } && | |
3491 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3493 | (eval $ac_try) 2>&5 |
3494 | ac_status=$? | |
c0d27fcc | 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3496 | (exit $ac_status); }; }; then |
3497 | for ac_declaration in \ | |
35996d22 | 3498 | '' \ |
503d2be0 AS |
3499 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3500 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3501 | 'extern "C" void exit (int) throw ();' \ | |
3502 | 'extern "C" void exit (int);' \ | |
cffcede7 | 3503 | 'void exit (int);' |
503d2be0 AS |
3504 | do |
3505 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3506 | /* confdefs.h. */ |
3507 | _ACEOF | |
3508 | cat confdefs.h >>conftest.$ac_ext | |
3509 | cat >>conftest.$ac_ext <<_ACEOF | |
3510 | /* end confdefs.h. */ | |
57669b57 | 3511 | $ac_declaration |
35996d22 | 3512 | #include <stdlib.h> |
503d2be0 AS |
3513 | int |
3514 | main () | |
3515 | { | |
3516 | exit (42); | |
3517 | ; | |
3518 | return 0; | |
3519 | } | |
3520 | _ACEOF | |
3521 | rm -f conftest.$ac_objext | |
c0d27fcc | 3522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3523 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3524 | ac_status=$? |
35996d22 AS |
3525 | grep -v '^ *+' conftest.er1 >conftest.err |
3526 | rm -f conftest.er1 | |
3527 | cat conftest.err >&5 | |
c0d27fcc | 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3529 | (exit $ac_status); } && |
35996d22 AS |
3530 | { ac_try='test -z "$ac_c_werror_flag" |
3531 | || test ! -s conftest.err' | |
3532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3533 | (eval $ac_try) 2>&5 | |
3534 | ac_status=$? | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); }; } && | |
3537 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3539 | (eval $ac_try) 2>&5 |
3540 | ac_status=$? | |
c0d27fcc | 3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3542 | (exit $ac_status); }; }; then |
3543 | : | |
3544 | else | |
3545 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
3547 | ||
503d2be0 AS |
3548 | continue |
3549 | fi | |
35996d22 | 3550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 3551 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3552 | /* confdefs.h. */ |
3553 | _ACEOF | |
3554 | cat confdefs.h >>conftest.$ac_ext | |
3555 | cat >>conftest.$ac_ext <<_ACEOF | |
3556 | /* end confdefs.h. */ | |
503d2be0 AS |
3557 | $ac_declaration |
3558 | int | |
3559 | main () | |
3560 | { | |
3561 | exit (42); | |
3562 | ; | |
3563 | return 0; | |
3564 | } | |
3565 | _ACEOF | |
3566 | rm -f conftest.$ac_objext | |
c0d27fcc | 3567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3568 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3569 | ac_status=$? |
35996d22 AS |
3570 | grep -v '^ *+' conftest.er1 >conftest.err |
3571 | rm -f conftest.er1 | |
3572 | cat conftest.err >&5 | |
c0d27fcc | 3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3574 | (exit $ac_status); } && |
35996d22 AS |
3575 | { ac_try='test -z "$ac_c_werror_flag" |
3576 | || test ! -s conftest.err' | |
3577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3578 | (eval $ac_try) 2>&5 | |
3579 | ac_status=$? | |
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3581 | (exit $ac_status); }; } && | |
3582 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3584 | (eval $ac_try) 2>&5 |
3585 | ac_status=$? | |
c0d27fcc | 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3587 | (exit $ac_status); }; }; then |
3588 | break | |
3589 | else | |
3590 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3591 | sed 's/^/| /' conftest.$ac_ext >&5 |
3592 | ||
503d2be0 | 3593 | fi |
35996d22 | 3594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3595 | done |
3596 | rm -f conftest* | |
3597 | if test -n "$ac_declaration"; then | |
3598 | echo '#ifdef __cplusplus' >>confdefs.h | |
3599 | echo $ac_declaration >>confdefs.h | |
3600 | echo '#endif' >>confdefs.h | |
3601 | fi | |
ba4481b5 | 3602 | |
503d2be0 AS |
3603 | else |
3604 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
3606 | ||
503d2be0 | 3607 | fi |
35996d22 | 3608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3609 | ac_ext=c |
3610 | ac_cpp='$CPP $CPPFLAGS' | |
3611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3614 | |
c0d27fcc | 3615 | |
ba4481b5 DL |
3616 | # On Suns, sometimes $CPP names a directory. |
3617 | if test -n "$CPP" && test -d "$CPP"; then | |
3618 | CPP= | |
3619 | fi | |
3620 | ||
3621 | #### Some systems specify a CPP to use unless we are using GCC. | |
3622 | #### Now that we know whether we are using GCC, we can decide whether | |
3623 | #### to use that one. | |
3624 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3625 | then | |
3626 | CPP="$NON_GNU_CPP" | |
3627 | fi | |
3628 | ||
3629 | #### Some systems specify a CC to use unless we are using GCC. | |
3630 | #### Now that we know whether we are using GCC, we can decide whether | |
3631 | #### to use that one. | |
3632 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3633 | test x$cc_specified != xyes | |
3634 | then | |
3635 | CC="$NON_GNU_CC" | |
3636 | fi | |
3637 | ||
3638 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3639 | then | |
3640 | CC="$CC $GCC_TEST_OPTIONS" | |
3641 | fi | |
3642 | ||
3643 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3644 | then | |
3645 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3646 | fi | |
3647 | ||
6a3a24fa | 3648 | #### Some other nice autoconf tests. |
ba4481b5 | 3649 | |
c0d27fcc | 3650 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3651 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3652 | LN_S=$as_ln_s | |
3653 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3654 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3655 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3656 | else |
c0d27fcc | 3657 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3658 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3659 | fi |
3660 | ||
503d2be0 AS |
3661 | ac_ext=c |
3662 | ac_cpp='$CPP $CPPFLAGS' | |
3663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3666 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3667 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3668 | # On Suns, sometimes $CPP names a directory. |
3669 | if test -n "$CPP" && test -d "$CPP"; then | |
3670 | CPP= | |
3671 | fi | |
3672 | if test -z "$CPP"; then | |
503d2be0 AS |
3673 | if test "${ac_cv_prog_CPP+set}" = set; then |
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3675 | else | |
3676 | # Double quotes because CPP needs to be expanded | |
3677 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3678 | do | |
3679 | ac_preproc_ok=false | |
3680 | for ac_c_preproc_warn_flag in '' yes | |
3681 | do | |
3682 | # Use a header file that comes with gcc, so configuring glibc | |
3683 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3684 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3685 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3686 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3687 | # not just through cpp. "Syntax error" is here to catch this case. |
3688 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3689 | /* confdefs.h. */ |
3690 | _ACEOF | |
3691 | cat confdefs.h >>conftest.$ac_ext | |
3692 | cat >>conftest.$ac_ext <<_ACEOF | |
3693 | /* end confdefs.h. */ | |
3694 | #ifdef __STDC__ | |
3695 | # include <limits.h> | |
3696 | #else | |
3697 | # include <assert.h> | |
3698 | #endif | |
35996d22 | 3699 | Syntax error |
503d2be0 | 3700 | _ACEOF |
c0d27fcc | 3701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3703 | ac_status=$? | |
6bae0ccf | 3704 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3705 | rm -f conftest.er1 |
3706 | cat conftest.err >&5 | |
c0d27fcc | 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3708 | (exit $ac_status); } >/dev/null; then |
3709 | if test -s conftest.err; then | |
3710 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3711 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3712 | else |
3713 | ac_cpp_err= | |
3714 | fi | |
3715 | else | |
3716 | ac_cpp_err=yes | |
3717 | fi | |
3718 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3719 | : |
3720 | else | |
503d2be0 | 3721 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3722 | sed 's/^/| /' conftest.$ac_ext >&5 |
3723 | ||
503d2be0 AS |
3724 | # Broken: fails on valid input. |
3725 | continue | |
3726 | fi | |
3727 | rm -f conftest.err conftest.$ac_ext | |
3728 | ||
3729 | # OK, works on sane cases. Now check whether non-existent headers | |
3730 | # can be detected and how. | |
3731 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3732 | /* confdefs.h. */ |
3733 | _ACEOF | |
3734 | cat confdefs.h >>conftest.$ac_ext | |
3735 | cat >>conftest.$ac_ext <<_ACEOF | |
3736 | /* end confdefs.h. */ | |
503d2be0 AS |
3737 | #include <ac_nonexistent.h> |
3738 | _ACEOF | |
c0d27fcc | 3739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3741 | ac_status=$? | |
6bae0ccf | 3742 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3743 | rm -f conftest.er1 |
3744 | cat conftest.err >&5 | |
c0d27fcc | 3745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3746 | (exit $ac_status); } >/dev/null; then |
3747 | if test -s conftest.err; then | |
3748 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3749 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3750 | else |
3751 | ac_cpp_err= | |
3752 | fi | |
3753 | else | |
3754 | ac_cpp_err=yes | |
3755 | fi | |
3756 | if test -z "$ac_cpp_err"; then | |
3757 | # Broken: success on invalid input. | |
3758 | continue | |
c4bb2108 | 3759 | else |
503d2be0 | 3760 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3761 | sed 's/^/| /' conftest.$ac_ext >&5 |
3762 | ||
503d2be0 AS |
3763 | # Passes both tests. |
3764 | ac_preproc_ok=: | |
3765 | break | |
3766 | fi | |
3767 | rm -f conftest.err conftest.$ac_ext | |
3768 | ||
3769 | done | |
3770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3771 | rm -f conftest.err conftest.$ac_ext | |
3772 | if $ac_preproc_ok; then | |
3773 | break | |
3774 | fi | |
3775 | ||
3776 | done | |
3777 | ac_cv_prog_CPP=$CPP | |
3778 | ||
3779 | fi | |
3780 | CPP=$ac_cv_prog_CPP | |
3781 | else | |
3782 | ac_cv_prog_CPP=$CPP | |
3783 | fi | |
c0d27fcc | 3784 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3785 | echo "${ECHO_T}$CPP" >&6 |
3786 | ac_preproc_ok=false | |
3787 | for ac_c_preproc_warn_flag in '' yes | |
3788 | do | |
3789 | # Use a header file that comes with gcc, so configuring glibc | |
3790 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3792 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3793 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3794 | # not just through cpp. "Syntax error" is here to catch this case. | |
3795 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3796 | /* confdefs.h. */ |
3797 | _ACEOF | |
3798 | cat confdefs.h >>conftest.$ac_ext | |
3799 | cat >>conftest.$ac_ext <<_ACEOF | |
3800 | /* end confdefs.h. */ | |
3801 | #ifdef __STDC__ | |
3802 | # include <limits.h> | |
3803 | #else | |
3804 | # include <assert.h> | |
3805 | #endif | |
35996d22 | 3806 | Syntax error |
503d2be0 | 3807 | _ACEOF |
c0d27fcc | 3808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3810 | ac_status=$? | |
6bae0ccf | 3811 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3812 | rm -f conftest.er1 |
3813 | cat conftest.err >&5 | |
c0d27fcc | 3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3815 | (exit $ac_status); } >/dev/null; then |
3816 | if test -s conftest.err; then | |
3817 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3819 | else |
3820 | ac_cpp_err= | |
3821 | fi | |
3822 | else | |
3823 | ac_cpp_err=yes | |
3824 | fi | |
3825 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3826 | : |
3827 | else | |
503d2be0 | 3828 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
3830 | ||
503d2be0 AS |
3831 | # Broken: fails on valid input. |
3832 | continue | |
3833 | fi | |
3834 | rm -f conftest.err conftest.$ac_ext | |
3835 | ||
3836 | # OK, works on sane cases. Now check whether non-existent headers | |
3837 | # can be detected and how. | |
3838 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3839 | /* confdefs.h. */ |
3840 | _ACEOF | |
3841 | cat confdefs.h >>conftest.$ac_ext | |
3842 | cat >>conftest.$ac_ext <<_ACEOF | |
3843 | /* end confdefs.h. */ | |
503d2be0 AS |
3844 | #include <ac_nonexistent.h> |
3845 | _ACEOF | |
c0d27fcc | 3846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3848 | ac_status=$? | |
6bae0ccf | 3849 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3850 | rm -f conftest.er1 |
3851 | cat conftest.err >&5 | |
c0d27fcc | 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3853 | (exit $ac_status); } >/dev/null; then |
3854 | if test -s conftest.err; then | |
3855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3857 | else |
3858 | ac_cpp_err= | |
3859 | fi | |
3860 | else | |
3861 | ac_cpp_err=yes | |
c4bb2108 | 3862 | fi |
503d2be0 AS |
3863 | if test -z "$ac_cpp_err"; then |
3864 | # Broken: success on invalid input. | |
3865 | continue | |
3866 | else | |
3867 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
3869 | ||
503d2be0 AS |
3870 | # Passes both tests. |
3871 | ac_preproc_ok=: | |
3872 | break | |
ba4481b5 | 3873 | fi |
503d2be0 AS |
3874 | rm -f conftest.err conftest.$ac_ext |
3875 | ||
3876 | done | |
3877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3878 | rm -f conftest.err conftest.$ac_ext | |
3879 | if $ac_preproc_ok; then | |
3880 | : | |
ba4481b5 | 3881 | else |
19650fd6 AS |
3882 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3883 | See \`config.log' for more details." >&5 | |
3884 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3885 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3886 | { (exit 1); exit 1; }; } |
ba4481b5 | 3887 | fi |
503d2be0 AS |
3888 | |
3889 | ac_ext=c | |
3890 | ac_cpp='$CPP $CPPFLAGS' | |
3891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3894 | |
3895 | # Find a good install program. We prefer a C program (faster), | |
3896 | # so one script is as good as another. But avoid the broken or | |
3897 | # incompatible versions: | |
3898 | # SysV /etc/install, /usr/sbin/install | |
3899 | # SunOS /usr/etc/install | |
3900 | # IRIX /sbin/install | |
3901 | # AIX /bin/install | |
503d2be0 | 3902 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3903 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3904 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3905 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
35996d22 | 3906 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 3907 | # ./install, which can be erroneously created by make from ./install.sh. |
c0d27fcc MR |
3908 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3909 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3910 | if test -z "$INSTALL"; then |
503d2be0 AS |
3911 | if test "${ac_cv_path_install+set}" = set; then |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3913 | else |
c0d27fcc MR |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3915 | for as_dir in $PATH | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | # Account for people who put trailing slashes in PATH elements. | |
3920 | case $as_dir/ in | |
3921 | ./ | .// | /cC/* | \ | |
3922 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
35996d22 | 3923 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
3924 | /usr/ucb/* ) ;; |
3925 | *) | |
3926 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3927 | # Don't use installbsd from OSF since it installs stuff as root | |
3928 | # by default. | |
3929 | for ac_prog in ginstall scoinst install; do | |
3930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35996d22 AS |
3931 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3932 | if test $ac_prog = install && | |
3933 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3934 | # AIX install. It has an incompatible calling convention. | |
3935 | : | |
3936 | elif test $ac_prog = install && | |
3937 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3938 | # program-specific install script used by HP pwplus--don't use. | |
3939 | : | |
3940 | else | |
3941 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3942 | break 3 | |
3943 | fi | |
3944 | fi | |
ba4481b5 | 3945 | done |
c0d27fcc MR |
3946 | done |
3947 | ;; | |
3948 | esac | |
3949 | done | |
3950 | ||
ba4481b5 DL |
3951 | |
3952 | fi | |
3953 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3954 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3955 | else |
3956 | # As a last resort, use the slow shell script. We don't cache a | |
3957 | # path for INSTALL within a source directory, because that will | |
3958 | # break other packages using the cache if that directory is | |
3959 | # removed, or if the path is relative. | |
503d2be0 | 3960 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3961 | fi |
3962 | fi | |
c0d27fcc | 3963 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3964 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3965 | |
3966 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3967 | # It thinks the first close brace ends the variable substitution. | |
3968 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3969 | ||
503d2be0 | 3970 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3971 | |
ba4481b5 DL |
3972 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3973 | ||
c0d27fcc MR |
3974 | if test "x$RANLIB" = x; then |
3975 | if test -n "$ac_tool_prefix"; then | |
3976 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3977 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3980 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3982 | else |
3983 | if test -n "$RANLIB"; then | |
3984 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3985 | else | |
c0d27fcc MR |
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3987 | for as_dir in $PATH | |
3988 | do | |
3989 | IFS=$as_save_IFS | |
3990 | test -z "$as_dir" && as_dir=. | |
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3993 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3995 | break 2 | |
3996 | fi | |
3997 | done | |
503d2be0 AS |
3998 | done |
3999 | ||
7397acc4 DL |
4000 | fi |
4001 | fi | |
503d2be0 | 4002 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 4003 | if test -n "$RANLIB"; then |
c0d27fcc | 4004 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
4005 | echo "${ECHO_T}$RANLIB" >&6 |
4006 | else | |
c0d27fcc | 4007 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4008 | echo "${ECHO_T}no" >&6 |
4009 | fi | |
4010 | ||
4011 | fi | |
4012 | if test -z "$ac_cv_prog_RANLIB"; then | |
4013 | ac_ct_RANLIB=$RANLIB | |
4014 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4015 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 4016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
4017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4018 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4020 | else | |
4021 | if test -n "$ac_ct_RANLIB"; then | |
4022 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4023 | else | |
c0d27fcc MR |
4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4025 | for as_dir in $PATH | |
4026 | do | |
4027 | IFS=$as_save_IFS | |
4028 | test -z "$as_dir" && as_dir=. | |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4031 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4033 | break 2 | |
4034 | fi | |
4035 | done | |
503d2be0 AS |
4036 | done |
4037 | ||
4038 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4039 | fi | |
4040 | fi | |
4041 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4042 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 4043 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
4044 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4045 | else | |
c0d27fcc | 4046 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4047 | echo "${ECHO_T}no" >&6 |
4048 | fi | |
4049 | ||
4050 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 4051 | else |
503d2be0 | 4052 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
4053 | fi |
4054 | ||
4055 | fi | |
9e71690e DK |
4056 | # Extract the first word of "install-info", so it can be a program name with args. |
4057 | set dummy install-info; ac_word=$2 | |
4058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4060 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | case $INSTALL_INFO in | |
4064 | [\\/]* | ?:[\\/]*) | |
4065 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4066 | ;; | |
4067 | *) | |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4069 | for as_dir in $PATH | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
4073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4075 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4077 | break 2 | |
4078 | fi | |
4079 | done | |
4080 | done | |
4081 | ||
4082 | ;; | |
4083 | esac | |
4084 | fi | |
4085 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4086 | ||
4087 | if test -n "$INSTALL_INFO"; then | |
4088 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4089 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4090 | else | |
4091 | echo "$as_me:$LINENO: result: no" >&5 | |
4092 | echo "${ECHO_T}no" >&6 | |
4093 | fi | |
4094 | ||
4095 | # Extract the first word of "install-info", so it can be a program name with args. | |
4096 | set dummy install-info; ac_word=$2 | |
4097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4099 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4101 | else | |
4102 | case $INSTALL_INFO in | |
4103 | [\\/]* | ?:[\\/]*) | |
4104 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4105 | ;; | |
4106 | *) | |
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4108 | for as_dir in /usr/sbin | |
4109 | do | |
4110 | IFS=$as_save_IFS | |
4111 | test -z "$as_dir" && as_dir=. | |
4112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4114 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4116 | break 2 | |
4117 | fi | |
4118 | done | |
4119 | done | |
4120 | ||
4121 | ;; | |
4122 | esac | |
4123 | fi | |
4124 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4125 | ||
4126 | if test -n "$INSTALL_INFO"; then | |
4127 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4128 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4129 | else | |
4130 | echo "$as_me:$LINENO: result: no" >&5 | |
4131 | echo "${ECHO_T}no" >&6 | |
4132 | fi | |
4133 | ||
4134 | # Extract the first word of "install-info", so it can be a program name with args. | |
4135 | set dummy install-info; ac_word=$2 | |
4136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4138 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4140 | else | |
4141 | case $INSTALL_INFO in | |
4142 | [\\/]* | ?:[\\/]*) | |
4143 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4144 | ;; | |
4145 | *) | |
4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4147 | for as_dir in /sbin | |
4148 | do | |
4149 | IFS=$as_save_IFS | |
4150 | test -z "$as_dir" && as_dir=. | |
4151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4153 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4155 | break 2 | |
4156 | fi | |
4157 | done | |
4158 | done | |
4159 | ||
4160 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4161 | ;; | |
4162 | esac | |
4163 | fi | |
4164 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4165 | ||
4166 | if test -n "$INSTALL_INFO"; then | |
4167 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4168 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4169 | else | |
4170 | echo "$as_me:$LINENO: result: no" >&5 | |
4171 | echo "${ECHO_T}no" >&6 | |
4172 | fi | |
4173 | ||
ba4481b5 | 4174 | |
c0d27fcc | 4175 | |
8e967cf7 MR |
4176 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4177 | then | |
4178 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4179 | fi | |
4180 | ||
4181 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4182 | then | |
4183 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4184 | fi | |
4185 | ||
c0d27fcc | 4186 | |
fe239f0f | 4187 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 4188 | if test "$GCC" = yes; then |
fe239f0f AS |
4189 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
4190 | else | |
4191 | LDFLAGS="$LDFLAGS -znocombreloc" | |
4192 | fi | |
4193 | ||
4194 | echo "$as_me:$LINENO: checking For -znocombreloc" >&5 | |
4195 | echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6 | |
4196 | ||
4197 | cat >conftest.$ac_ext <<_ACEOF | |
4198 | main(){return 0;} | |
4199 | _ACEOF | |
4200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4202 | (eval $ac_link) 2>conftest.er1 | |
4203 | ac_status=$? | |
4204 | grep -v '^ *+' conftest.er1 >conftest.err | |
4205 | rm -f conftest.er1 | |
4206 | cat conftest.err >&5 | |
4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4208 | (exit $ac_status); } && | |
4209 | { ac_try='test -z "$ac_c_werror_flag" | |
4210 | || test ! -s conftest.err' | |
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4212 | (eval $ac_try) 2>&5 | |
4213 | ac_status=$? | |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 | (exit $ac_status); }; } && | |
4216 | { ac_try='test -s conftest$ac_exeext' | |
4217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4218 | (eval $ac_try) 2>&5 | |
4219 | ac_status=$? | |
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4221 | (exit $ac_status); }; }; then | |
4222 | echo "$as_me:$LINENO: result: yes" >&5 | |
4223 | echo "${ECHO_T}yes" >&6 | |
4224 | else | |
4225 | echo "$as_me: failed program was:" >&5 | |
4226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4227 | ||
4228 | LDFLAGS=$late_LDFLAGS | |
4229 | echo "$as_me:$LINENO: result: no" >&5 | |
4230 | echo "${ECHO_T}no" >&6 | |
4231 | fi | |
4232 | rm -f conftest.err conftest.$ac_objext \ | |
4233 | conftest$ac_exeext conftest.$ac_ext | |
4234 | ||
c0d27fcc | 4235 | |
6bae0ccf DL |
4236 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4237 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4238 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4240 | else | |
4241 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4242 | then ac_cv_prog_egrep='grep -E' | |
4243 | else ac_cv_prog_egrep='egrep' | |
4244 | fi | |
4245 | fi | |
4246 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4247 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4248 | EGREP=$ac_cv_prog_egrep | |
4249 | ||
4250 | ||
c0d27fcc MR |
4251 | |
4252 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4253 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4254 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4255 | /* confdefs.h. */ |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
ba4481b5 DL |
4260 | #ifdef _AIX |
4261 | yes | |
4262 | #endif | |
4263 | ||
503d2be0 | 4264 | _ACEOF |
ba4481b5 | 4265 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4266 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4267 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4268 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4269 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4270 | #define _ALL_SOURCE 1 |
c0d27fcc | 4271 | _ACEOF |
ba4481b5 DL |
4272 | |
4273 | else | |
c0d27fcc | 4274 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4275 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4276 | fi |
4277 | rm -f conftest* | |
4278 | ||
c0d27fcc MR |
4279 | |
4280 | ||
3b33a005 DL |
4281 | #### Extract some information from the operating system and machine files. |
4282 | ||
c0d27fcc | 4283 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4284 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4285 | - whether the GNU malloc routines are usable..." >&5 |
4286 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4287 | - which libraries the lib-src programs will want, and |
503d2be0 | 4288 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4289 | |
4290 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4291 | ### and REAL_CFLAGS (which we use for real compilation). | |
4292 | ### The two are the same except on a few systems, where they are made | |
4293 | ### different to work around various lossages. For example, | |
4294 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4295 | ### as implying static linking. | |
4296 | ||
4297 | ### If the CFLAGS env var is specified, we use that value | |
4298 | ### instead of the default. | |
4299 | ||
4300 | ### It's not important that this name contain the PID; you can't run | |
4301 | ### two configures in the same directory and have anything work | |
4302 | ### anyway. | |
4303 | tempcname="conftest.c" | |
4304 | ||
4305 | echo ' | |
4306 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4307 | #include "'${srcdir}'/src/'${machfile}'" | |
4308 | #ifndef LIBS_MACHINE | |
4309 | #define LIBS_MACHINE | |
4310 | #endif | |
4311 | #ifndef LIBS_SYSTEM | |
4312 | #define LIBS_SYSTEM | |
4313 | #endif | |
4314 | #ifndef C_SWITCH_SYSTEM | |
4315 | #define C_SWITCH_SYSTEM | |
4316 | #endif | |
4317 | #ifndef C_SWITCH_MACHINE | |
4318 | #define C_SWITCH_MACHINE | |
4319 | #endif | |
4320 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4321 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4322 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4323 | ||
4324 | #ifndef LIB_X11_LIB | |
4325 | #define LIB_X11_LIB -lX11 | |
4326 | #endif | |
4327 | ||
4328 | #ifndef LIBX11_MACHINE | |
4329 | #define LIBX11_MACHINE | |
4330 | #endif | |
4331 | ||
4332 | #ifndef LIBX11_SYSTEM | |
4333 | #define LIBX11_SYSTEM | |
4334 | #endif | |
4335 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4336 | ||
4337 | #ifdef UNEXEC | |
4338 | configure___ unexec=UNEXEC | |
4339 | #else | |
4340 | configure___ unexec=unexec.o | |
4341 | #endif | |
4342 | ||
4343 | #ifdef SYSTEM_MALLOC | |
4344 | configure___ system_malloc=yes | |
4345 | #else | |
4346 | configure___ system_malloc=no | |
4347 | #endif | |
4348 | ||
ef9e4345 GM |
4349 | #ifdef USE_MMAP_FOR_BUFFERS |
4350 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4351 | #else |
ef9e4345 | 4352 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4353 | #endif |
4354 | ||
3b33a005 DL |
4355 | #ifndef C_DEBUG_SWITCH |
4356 | #define C_DEBUG_SWITCH -g | |
4357 | #endif | |
4358 | ||
4359 | #ifndef C_OPTIMIZE_SWITCH | |
4360 | #ifdef __GNUC__ | |
4361 | #define C_OPTIMIZE_SWITCH -O2 | |
4362 | #else | |
4363 | #define C_OPTIMIZE_SWITCH -O | |
4364 | #endif | |
4365 | #endif | |
4366 | ||
4367 | #ifndef LD_SWITCH_MACHINE | |
4368 | #define LD_SWITCH_MACHINE | |
4369 | #endif | |
4370 | ||
4371 | #ifndef LD_SWITCH_SYSTEM | |
4372 | #define LD_SWITCH_SYSTEM | |
4373 | #endif | |
4374 | ||
4375 | #ifndef LD_SWITCH_X_SITE_AUX | |
4376 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4377 | #endif |
3b33a005 DL |
4378 | |
4379 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4380 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4381 | ||
4382 | #ifdef THIS_IS_CONFIGURE | |
4383 | ||
4384 | /* Get the CFLAGS for tests in configure. */ | |
4385 | #ifdef __GNUC__ | |
4386 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4387 | #else | |
4388 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4389 | #endif | |
4390 | ||
4391 | #else /* not THIS_IS_CONFIGURE */ | |
4392 | ||
4393 | /* Get the CFLAGS for real compilation. */ | |
4394 | #ifdef __GNUC__ | |
4395 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4396 | #else | |
4397 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4398 | #endif | |
4399 | ||
4400 | #endif /* not THIS_IS_CONFIGURE */ | |
4401 | ' > ${tempcname} | |
4402 | ||
4403 | # The value of CPP is a quoted variable reference, so we need to do this | |
4404 | # to get its actual value... | |
4405 | CPP=`eval "echo $CPP"` | |
4406 | eval `${CPP} -Isrc ${tempcname} \ | |
4407 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4408 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4409 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4410 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4411 | else | |
4412 | REAL_CFLAGS="$CFLAGS" | |
4413 | fi | |
4414 | rm ${tempcname} | |
4415 | ||
4416 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4417 | ||
4418 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4419 | ||
4420 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4421 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4422 | else | |
4423 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4424 | fi | |
4425 | ||
6bae0ccf DL |
4426 | |
4427 | ||
22044edf DL |
4428 | |
4429 | cat >>confdefs.h <<\_ACEOF | |
4430 | #define _GNU_SOURCE 1 | |
4431 | _ACEOF | |
4432 | ||
4433 | ||
4434 | ||
503d2be0 | 4435 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4436 | if test "${enable_largefile+set}" = set; then |
4437 | enableval="$enable_largefile" | |
f4988be7 | 4438 | |
503d2be0 AS |
4439 | fi; |
4440 | if test "$enable_largefile" != no; then | |
f4988be7 | 4441 | |
c0d27fcc | 4442 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4443 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4444 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4446 | else |
f4988be7 | 4447 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4448 | if test "$GCC" != yes; then |
4449 | ac_save_CC=$CC | |
4450 | while :; do | |
4451 | # IRIX 6.2 and later do not support large files by default, | |
4452 | # so use the C compiler's -n32 option if that helps. | |
35996d22 | 4453 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4454 | /* confdefs.h. */ |
4455 | _ACEOF | |
4456 | cat confdefs.h >>conftest.$ac_ext | |
4457 | cat >>conftest.$ac_ext <<_ACEOF | |
4458 | /* end confdefs.h. */ | |
f4988be7 | 4459 | #include <sys/types.h> |
503d2be0 AS |
4460 | /* Check that off_t can represent 2**63 - 1 correctly. |
4461 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4462 | since some C++ compilers masquerading as C compilers | |
4463 | incorrectly reject 9223372036854775807. */ | |
4464 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4465 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4466 | && LARGE_OFF_T % 2147483647 == 1) | |
4467 | ? 1 : -1]; | |
4468 | int | |
4469 | main () | |
4470 | { | |
f4988be7 | 4471 | |
503d2be0 AS |
4472 | ; |
4473 | return 0; | |
4474 | } | |
4475 | _ACEOF | |
4476 | rm -f conftest.$ac_objext | |
c0d27fcc | 4477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4478 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4479 | ac_status=$? |
35996d22 AS |
4480 | grep -v '^ *+' conftest.er1 >conftest.err |
4481 | rm -f conftest.er1 | |
4482 | cat conftest.err >&5 | |
c0d27fcc | 4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4484 | (exit $ac_status); } && |
35996d22 AS |
4485 | { ac_try='test -z "$ac_c_werror_flag" |
4486 | || test ! -s conftest.err' | |
4487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4488 | (eval $ac_try) 2>&5 | |
4489 | ac_status=$? | |
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); }; } && | |
4492 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4494 | (eval $ac_try) 2>&5 |
4495 | ac_status=$? | |
c0d27fcc | 4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4497 | (exit $ac_status); }; }; then |
4498 | break | |
b192d653 | 4499 | else |
503d2be0 | 4500 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4501 | sed 's/^/| /' conftest.$ac_ext >&5 |
4502 | ||
503d2be0 | 4503 | fi |
35996d22 | 4504 | rm -f conftest.err conftest.$ac_objext |
503d2be0 AS |
4505 | CC="$CC -n32" |
4506 | rm -f conftest.$ac_objext | |
c0d27fcc | 4507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4508 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4509 | ac_status=$? |
35996d22 AS |
4510 | grep -v '^ *+' conftest.er1 >conftest.err |
4511 | rm -f conftest.er1 | |
4512 | cat conftest.err >&5 | |
c0d27fcc | 4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4514 | (exit $ac_status); } && |
35996d22 AS |
4515 | { ac_try='test -z "$ac_c_werror_flag" |
4516 | || test ! -s conftest.err' | |
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4518 | (eval $ac_try) 2>&5 | |
4519 | ac_status=$? | |
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4521 | (exit $ac_status); }; } && | |
4522 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4524 | (eval $ac_try) 2>&5 |
4525 | ac_status=$? | |
c0d27fcc | 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4527 | (exit $ac_status); }; }; then |
4528 | ac_cv_sys_largefile_CC=' -n32'; break | |
4529 | else | |
4530 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4531 | sed 's/^/| /' conftest.$ac_ext >&5 |
4532 | ||
503d2be0 | 4533 | fi |
35996d22 AS |
4534 | rm -f conftest.err conftest.$ac_objext |
4535 | break | |
503d2be0 AS |
4536 | done |
4537 | CC=$ac_save_CC | |
4538 | rm -f conftest.$ac_ext | |
4539 | fi | |
b192d653 | 4540 | fi |
c0d27fcc | 4541 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4542 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4543 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4544 | CC=$CC$ac_cv_sys_largefile_CC | |
4545 | fi | |
b192d653 | 4546 | |
c0d27fcc | 4547 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4548 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4549 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4551 | else |
503d2be0 | 4552 | while :; do |
f4988be7 | 4553 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4554 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4555 | /* confdefs.h. */ |
4556 | _ACEOF | |
4557 | cat confdefs.h >>conftest.$ac_ext | |
4558 | cat >>conftest.$ac_ext <<_ACEOF | |
4559 | /* end confdefs.h. */ | |
f4988be7 | 4560 | #include <sys/types.h> |
503d2be0 AS |
4561 | /* Check that off_t can represent 2**63 - 1 correctly. |
4562 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4563 | since some C++ compilers masquerading as C compilers | |
4564 | incorrectly reject 9223372036854775807. */ | |
4565 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4566 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4567 | && LARGE_OFF_T % 2147483647 == 1) | |
4568 | ? 1 : -1]; | |
4569 | int | |
4570 | main () | |
4571 | { | |
f4988be7 | 4572 | |
503d2be0 AS |
4573 | ; |
4574 | return 0; | |
4575 | } | |
4576 | _ACEOF | |
4577 | rm -f conftest.$ac_objext | |
c0d27fcc | 4578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4579 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4580 | ac_status=$? |
35996d22 AS |
4581 | grep -v '^ *+' conftest.er1 >conftest.err |
4582 | rm -f conftest.er1 | |
4583 | cat conftest.err >&5 | |
c0d27fcc | 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4585 | (exit $ac_status); } && |
35996d22 AS |
4586 | { ac_try='test -z "$ac_c_werror_flag" |
4587 | || test ! -s conftest.err' | |
4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4589 | (eval $ac_try) 2>&5 | |
4590 | ac_status=$? | |
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4592 | (exit $ac_status); }; } && | |
4593 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4595 | (eval $ac_try) 2>&5 |
4596 | ac_status=$? | |
c0d27fcc | 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4598 | (exit $ac_status); }; }; then |
4599 | break | |
f4988be7 | 4600 | else |
503d2be0 | 4601 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4602 | sed 's/^/| /' conftest.$ac_ext >&5 |
4603 | ||
503d2be0 | 4604 | fi |
35996d22 | 4605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4606 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4607 | /* confdefs.h. */ |
4608 | _ACEOF | |
4609 | cat confdefs.h >>conftest.$ac_ext | |
4610 | cat >>conftest.$ac_ext <<_ACEOF | |
4611 | /* end confdefs.h. */ | |
f4988be7 GM |
4612 | #define _FILE_OFFSET_BITS 64 |
4613 | #include <sys/types.h> | |
503d2be0 AS |
4614 | /* Check that off_t can represent 2**63 - 1 correctly. |
4615 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4616 | since some C++ compilers masquerading as C compilers | |
4617 | incorrectly reject 9223372036854775807. */ | |
4618 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4619 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4620 | && LARGE_OFF_T % 2147483647 == 1) | |
4621 | ? 1 : -1]; | |
4622 | int | |
4623 | main () | |
4624 | { | |
4625 | ||
4626 | ; | |
4627 | return 0; | |
4628 | } | |
4629 | _ACEOF | |
4630 | rm -f conftest.$ac_objext | |
c0d27fcc | 4631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4632 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4633 | ac_status=$? |
35996d22 AS |
4634 | grep -v '^ *+' conftest.er1 >conftest.err |
4635 | rm -f conftest.er1 | |
4636 | cat conftest.err >&5 | |
c0d27fcc | 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4638 | (exit $ac_status); } && |
35996d22 AS |
4639 | { ac_try='test -z "$ac_c_werror_flag" |
4640 | || test ! -s conftest.err' | |
4641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4642 | (eval $ac_try) 2>&5 | |
4643 | ac_status=$? | |
4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4645 | (exit $ac_status); }; } && | |
4646 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4648 | (eval $ac_try) 2>&5 |
4649 | ac_status=$? | |
c0d27fcc | 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4651 | (exit $ac_status); }; }; then |
4652 | ac_cv_sys_file_offset_bits=64; break | |
4653 | else | |
4654 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4655 | sed 's/^/| /' conftest.$ac_ext >&5 |
4656 | ||
503d2be0 | 4657 | fi |
35996d22 | 4658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4659 | break |
4660 | done | |
ba4481b5 | 4661 | fi |
c0d27fcc | 4662 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4663 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4664 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4665 | |
c0d27fcc | 4666 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4667 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4668 | _ACEOF |
f4988be7 | 4669 | |
503d2be0 AS |
4670 | fi |
4671 | rm -f conftest* | |
c0d27fcc | 4672 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4673 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4674 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4676 | else |
503d2be0 | 4677 | while :; do |
f4988be7 | 4678 | ac_cv_sys_large_files=no |
503d2be0 | 4679 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4680 | /* confdefs.h. */ |
4681 | _ACEOF | |
4682 | cat confdefs.h >>conftest.$ac_ext | |
4683 | cat >>conftest.$ac_ext <<_ACEOF | |
4684 | /* end confdefs.h. */ | |
503d2be0 AS |
4685 | #include <sys/types.h> |
4686 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4687 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4688 | since some C++ compilers masquerading as C compilers | |
4689 | incorrectly reject 9223372036854775807. */ | |
4690 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4691 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4692 | && LARGE_OFF_T % 2147483647 == 1) | |
4693 | ? 1 : -1]; | |
4694 | int | |
4695 | main () | |
4696 | { | |
ba4481b5 | 4697 | |
503d2be0 AS |
4698 | ; |
4699 | return 0; | |
4700 | } | |
4701 | _ACEOF | |
4702 | rm -f conftest.$ac_objext | |
c0d27fcc | 4703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4704 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4705 | ac_status=$? |
35996d22 AS |
4706 | grep -v '^ *+' conftest.er1 >conftest.err |
4707 | rm -f conftest.er1 | |
4708 | cat conftest.err >&5 | |
c0d27fcc | 4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4710 | (exit $ac_status); } && |
35996d22 AS |
4711 | { ac_try='test -z "$ac_c_werror_flag" |
4712 | || test ! -s conftest.err' | |
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4714 | (eval $ac_try) 2>&5 | |
4715 | ac_status=$? | |
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4717 | (exit $ac_status); }; } && | |
4718 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4720 | (eval $ac_try) 2>&5 |
4721 | ac_status=$? | |
c0d27fcc | 4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4723 | (exit $ac_status); }; }; then |
4724 | break | |
ba4481b5 | 4725 | else |
503d2be0 | 4726 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4727 | sed 's/^/| /' conftest.$ac_ext >&5 |
4728 | ||
503d2be0 | 4729 | fi |
35996d22 | 4730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4731 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4732 | /* confdefs.h. */ |
4733 | _ACEOF | |
4734 | cat confdefs.h >>conftest.$ac_ext | |
4735 | cat >>conftest.$ac_ext <<_ACEOF | |
4736 | /* end confdefs.h. */ | |
f4988be7 | 4737 | #define _LARGE_FILES 1 |
503d2be0 AS |
4738 | #include <sys/types.h> |
4739 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4740 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4741 | since some C++ compilers masquerading as C compilers | |
4742 | incorrectly reject 9223372036854775807. */ | |
4743 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4744 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4745 | && LARGE_OFF_T % 2147483647 == 1) | |
4746 | ? 1 : -1]; | |
4747 | int | |
4748 | main () | |
4749 | { | |
f4988be7 | 4750 | |
503d2be0 AS |
4751 | ; |
4752 | return 0; | |
4753 | } | |
4754 | _ACEOF | |
4755 | rm -f conftest.$ac_objext | |
c0d27fcc | 4756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4757 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4758 | ac_status=$? |
35996d22 AS |
4759 | grep -v '^ *+' conftest.er1 >conftest.err |
4760 | rm -f conftest.er1 | |
4761 | cat conftest.err >&5 | |
c0d27fcc | 4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4763 | (exit $ac_status); } && |
35996d22 AS |
4764 | { ac_try='test -z "$ac_c_werror_flag" |
4765 | || test ! -s conftest.err' | |
4766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4767 | (eval $ac_try) 2>&5 | |
4768 | ac_status=$? | |
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 | (exit $ac_status); }; } && | |
4771 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4773 | (eval $ac_try) 2>&5 |
4774 | ac_status=$? | |
c0d27fcc | 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4776 | (exit $ac_status); }; }; then |
4777 | ac_cv_sys_large_files=1; break | |
4778 | else | |
4779 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4780 | sed 's/^/| /' conftest.$ac_ext >&5 |
4781 | ||
503d2be0 | 4782 | fi |
35996d22 | 4783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4784 | break |
4785 | done | |
ba4481b5 | 4786 | fi |
c0d27fcc | 4787 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4788 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4789 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4790 | |
c0d27fcc | 4791 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4792 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4793 | _ACEOF |
ba4481b5 | 4794 | |
503d2be0 AS |
4795 | fi |
4796 | rm -f conftest* | |
4797 | fi | |
ba4481b5 | 4798 | |
c0d27fcc | 4799 | |
2c9dccc9 PJ |
4800 | if test "${with_sound}" != "no"; then |
4801 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4802 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4803 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4804 | if test "${ac_cv_header_stdc+set}" = set; then | |
4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4806 | else | |
4807 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4808 | /* confdefs.h. */ |
4809 | _ACEOF | |
4810 | cat confdefs.h >>conftest.$ac_ext | |
4811 | cat >>conftest.$ac_ext <<_ACEOF | |
4812 | /* end confdefs.h. */ | |
c0d27fcc MR |
4813 | #include <stdlib.h> |
4814 | #include <stdarg.h> | |
4815 | #include <string.h> | |
4816 | #include <float.h> | |
98418dba | 4817 | |
19650fd6 AS |
4818 | int |
4819 | main () | |
4820 | { | |
4821 | ||
4822 | ; | |
4823 | return 0; | |
4824 | } | |
c0d27fcc | 4825 | _ACEOF |
19650fd6 AS |
4826 | rm -f conftest.$ac_objext |
4827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4828 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 4829 | ac_status=$? |
35996d22 AS |
4830 | grep -v '^ *+' conftest.er1 >conftest.err |
4831 | rm -f conftest.er1 | |
4832 | cat conftest.err >&5 | |
cd958eb3 | 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 4834 | (exit $ac_status); } && |
35996d22 AS |
4835 | { ac_try='test -z "$ac_c_werror_flag" |
4836 | || test ! -s conftest.err' | |
4837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4838 | (eval $ac_try) 2>&5 | |
4839 | ac_status=$? | |
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4841 | (exit $ac_status); }; } && | |
4842 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
4843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4844 | (eval $ac_try) 2>&5 | |
4845 | ac_status=$? | |
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4847 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4848 | ac_cv_header_stdc=yes |
4849 | else | |
4850 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4851 | sed 's/^/| /' conftest.$ac_ext >&5 |
4852 | ||
4853 | ac_cv_header_stdc=no | |
c0d27fcc | 4854 | fi |
35996d22 | 4855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4856 | |
4857 | if test $ac_cv_header_stdc = yes; then | |
4858 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4859 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4860 | /* confdefs.h. */ |
4861 | _ACEOF | |
4862 | cat confdefs.h >>conftest.$ac_ext | |
4863 | cat >>conftest.$ac_ext <<_ACEOF | |
4864 | /* end confdefs.h. */ | |
c0d27fcc MR |
4865 | #include <string.h> |
4866 | ||
4867 | _ACEOF | |
4868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4869 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4870 | : |
4871 | else | |
4872 | ac_cv_header_stdc=no | |
4873 | fi | |
4874 | rm -f conftest* | |
4875 | ||
4876 | fi | |
4877 | ||
4878 | if test $ac_cv_header_stdc = yes; then | |
4879 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4880 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4881 | /* confdefs.h. */ |
4882 | _ACEOF | |
4883 | cat confdefs.h >>conftest.$ac_ext | |
4884 | cat >>conftest.$ac_ext <<_ACEOF | |
4885 | /* end confdefs.h. */ | |
c0d27fcc MR |
4886 | #include <stdlib.h> |
4887 | ||
4888 | _ACEOF | |
4889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4890 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4891 | : |
4892 | else | |
4893 | ac_cv_header_stdc=no | |
4894 | fi | |
4895 | rm -f conftest* | |
4896 | ||
4897 | fi | |
4898 | ||
4899 | if test $ac_cv_header_stdc = yes; then | |
4900 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4901 | if test "$cross_compiling" = yes; then | |
4902 | : | |
4903 | else | |
4904 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4905 | /* confdefs.h. */ |
4906 | _ACEOF | |
4907 | cat confdefs.h >>conftest.$ac_ext | |
4908 | cat >>conftest.$ac_ext <<_ACEOF | |
4909 | /* end confdefs.h. */ | |
c0d27fcc MR |
4910 | #include <ctype.h> |
4911 | #if ((' ' & 0x0FF) == 0x020) | |
4912 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4913 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4914 | #else | |
19650fd6 | 4915 | # define ISLOWER(c) \ |
35996d22 AS |
4916 | (('a' <= (c) && (c) <= 'i') \ |
4917 | || ('j' <= (c) && (c) <= 'r') \ | |
4918 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
4919 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4920 | #endif | |
4921 | ||
4922 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4923 | int | |
4924 | main () | |
4925 | { | |
4926 | int i; | |
4927 | for (i = 0; i < 256; i++) | |
4928 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 4929 | || toupper (i) != TOUPPER (i)) |
c0d27fcc MR |
4930 | exit(2); |
4931 | exit (0); | |
4932 | } | |
4933 | _ACEOF | |
4934 | rm -f conftest$ac_exeext | |
4935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4936 | (eval $ac_link) 2>&5 | |
4937 | ac_status=$? | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4941 | (eval $ac_try) 2>&5 | |
4942 | ac_status=$? | |
4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4944 | (exit $ac_status); }; }; then | |
4945 | : | |
4946 | else | |
4947 | echo "$as_me: program exited with status $ac_status" >&5 | |
4948 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4949 | sed 's/^/| /' conftest.$ac_ext >&5 |
4950 | ||
c0d27fcc MR |
4951 | ( exit $ac_status ) |
4952 | ac_cv_header_stdc=no | |
4953 | fi | |
35996d22 | 4954 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4955 | fi |
4956 | fi | |
4957 | fi | |
4958 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4959 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4960 | if test $ac_cv_header_stdc = yes; then | |
4961 | ||
4962 | cat >>confdefs.h <<\_ACEOF | |
4963 | #define STDC_HEADERS 1 | |
4964 | _ACEOF | |
4965 | ||
4966 | fi | |
4967 | ||
4968 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
35996d22 | 4979 | inttypes.h stdint.h unistd.h |
98418dba CW |
4980 | do |
4981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4986 | else |
925c2f3f | 4987 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4988 | /* confdefs.h. */ |
4989 | _ACEOF | |
4990 | cat confdefs.h >>conftest.$ac_ext | |
4991 | cat >>conftest.$ac_ext <<_ACEOF | |
4992 | /* end confdefs.h. */ | |
c0d27fcc MR |
4993 | $ac_includes_default |
4994 | ||
4995 | #include <$ac_header> | |
4996 | _ACEOF | |
4997 | rm -f conftest.$ac_objext | |
4998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4999 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5000 | ac_status=$? |
35996d22 AS |
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
5002 | rm -f conftest.er1 | |
5003 | cat conftest.err >&5 | |
c0d27fcc MR |
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5005 | (exit $ac_status); } && | |
35996d22 AS |
5006 | { ac_try='test -z "$ac_c_werror_flag" |
5007 | || test ! -s conftest.err' | |
5008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5009 | (eval $ac_try) 2>&5 | |
5010 | ac_status=$? | |
5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5012 | (exit $ac_status); }; } && | |
5013 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5015 | (eval $ac_try) 2>&5 | |
5016 | ac_status=$? | |
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5018 | (exit $ac_status); }; }; then | |
5019 | eval "$as_ac_Header=yes" | |
5020 | else | |
5021 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
5023 | ||
c0d27fcc MR |
5024 | eval "$as_ac_Header=no" |
5025 | fi | |
35996d22 | 5026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5027 | fi |
5028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5031 | cat >>confdefs.h <<_ACEOF | |
5032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5033 | _ACEOF | |
5034 | ||
5035 | fi | |
5036 | ||
5037 | done | |
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
5044 | do | |
5045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5051 | fi | |
5052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5054 | else | |
5055 | # Is the header compilable? | |
5056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5058 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5059 | /* confdefs.h. */ |
5060 | _ACEOF | |
5061 | cat confdefs.h >>conftest.$ac_ext | |
5062 | cat >>conftest.$ac_ext <<_ACEOF | |
5063 | /* end confdefs.h. */ | |
c0d27fcc | 5064 | $ac_includes_default |
98418dba | 5065 | #include <$ac_header> |
503d2be0 | 5066 | _ACEOF |
c0d27fcc MR |
5067 | rm -f conftest.$ac_objext |
5068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5069 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5070 | ac_status=$? |
35996d22 AS |
5071 | grep -v '^ *+' conftest.er1 >conftest.err |
5072 | rm -f conftest.er1 | |
5073 | cat conftest.err >&5 | |
c0d27fcc MR |
5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5075 | (exit $ac_status); } && | |
35996d22 AS |
5076 | { ac_try='test -z "$ac_c_werror_flag" |
5077 | || test ! -s conftest.err' | |
5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5079 | (eval $ac_try) 2>&5 | |
5080 | ac_status=$? | |
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5082 | (exit $ac_status); }; } && | |
5083 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5085 | (eval $ac_try) 2>&5 | |
5086 | ac_status=$? | |
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5088 | (exit $ac_status); }; }; then | |
5089 | ac_header_compiler=yes | |
5090 | else | |
5091 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5092 | sed 's/^/| /' conftest.$ac_ext >&5 |
5093 | ||
c0d27fcc MR |
5094 | ac_header_compiler=no |
5095 | fi | |
35996d22 | 5096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5097 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5098 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5099 | ||
5100 | # Is the header present? | |
5101 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5103 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5104 | /* confdefs.h. */ |
5105 | _ACEOF | |
5106 | cat confdefs.h >>conftest.$ac_ext | |
5107 | cat >>conftest.$ac_ext <<_ACEOF | |
5108 | /* end confdefs.h. */ | |
c0d27fcc MR |
5109 | #include <$ac_header> |
5110 | _ACEOF | |
5111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 5112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5113 | ac_status=$? |
6bae0ccf | 5114 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5115 | rm -f conftest.er1 |
5116 | cat conftest.err >&5 | |
c0d27fcc | 5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5118 | (exit $ac_status); } >/dev/null; then |
5119 | if test -s conftest.err; then | |
5120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5122 | else |
5123 | ac_cpp_err= | |
5124 | fi | |
5125 | else | |
5126 | ac_cpp_err=yes | |
5127 | fi | |
5128 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5129 | ac_header_preproc=yes |
f4988be7 | 5130 | else |
503d2be0 | 5131 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5132 | sed 's/^/| /' conftest.$ac_ext >&5 |
5133 | ||
c0d27fcc | 5134 | ac_header_preproc=no |
f4988be7 | 5135 | fi |
98418dba | 5136 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5137 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5138 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5139 | ||
5140 | # So? What about this header? | |
35996d22 AS |
5141 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5142 | yes:no: ) | |
c0d27fcc MR |
5143 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5144 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5146 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5147 | ac_header_preproc=yes | |
19650fd6 | 5148 | ;; |
35996d22 | 5149 | no:yes:* ) |
c0d27fcc MR |
5150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5154 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5155 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5156 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5157 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5159 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5160 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5161 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5162 | ( |
5163 | cat <<\_ASBOX | |
35996d22 AS |
5164 | ## ------------------------------------------ ## |
5165 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5166 | ## ------------------------------------------ ## | |
19650fd6 AS |
5167 | _ASBOX |
5168 | ) | | |
5169 | sed "s/^/$as_me: WARNING: /" >&2 | |
5170 | ;; | |
c0d27fcc MR |
5171 | esac |
5172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5176 | else | |
35996d22 | 5177 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 5178 | fi |
c0d27fcc | 5179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5181 | |
5182 | fi | |
98418dba | 5183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5184 | cat >>confdefs.h <<_ACEOF |
98418dba | 5185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5186 | _ACEOF |
f4988be7 GM |
5187 | |
5188 | fi | |
c0d27fcc | 5189 | |
98418dba CW |
5190 | done |
5191 | ||
5192 | # Emulation library used on NetBSD. | |
c0d27fcc | 5193 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
5194 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
5195 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 5196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 5197 | else |
98418dba CW |
5198 | ac_check_lib_save_LIBS=$LIBS |
5199 | LIBS="-lossaudio $LIBS" | |
5200 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5201 | /* confdefs.h. */ |
5202 | _ACEOF | |
5203 | cat confdefs.h >>conftest.$ac_ext | |
5204 | cat >>conftest.$ac_ext <<_ACEOF | |
5205 | /* end confdefs.h. */ | |
98418dba CW |
5206 | |
5207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5208 | #ifdef __cplusplus | |
5209 | extern "C" | |
f4988be7 | 5210 | #endif |
98418dba CW |
5211 | /* We use char because int might match the return type of a gcc2 |
5212 | builtin and then its argument prototype would still apply. */ | |
5213 | char _oss_ioctl (); | |
503d2be0 AS |
5214 | int |
5215 | main () | |
5216 | { | |
98418dba | 5217 | _oss_ioctl (); |
503d2be0 AS |
5218 | ; |
5219 | return 0; | |
5220 | } | |
5221 | _ACEOF | |
98418dba | 5222 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 5223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 5224 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 5225 | ac_status=$? |
35996d22 AS |
5226 | grep -v '^ *+' conftest.er1 >conftest.err |
5227 | rm -f conftest.er1 | |
5228 | cat conftest.err >&5 | |
c0d27fcc | 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5230 | (exit $ac_status); } && |
35996d22 AS |
5231 | { ac_try='test -z "$ac_c_werror_flag" |
5232 | || test ! -s conftest.err' | |
5233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5234 | (eval $ac_try) 2>&5 | |
5235 | ac_status=$? | |
5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5237 | (exit $ac_status); }; } && | |
5238 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 5239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5240 | (eval $ac_try) 2>&5 |
5241 | ac_status=$? | |
c0d27fcc | 5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5243 | (exit $ac_status); }; }; then |
98418dba | 5244 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 5245 | else |
503d2be0 | 5246 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5247 | sed 's/^/| /' conftest.$ac_ext >&5 |
5248 | ||
98418dba | 5249 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 5250 | fi |
35996d22 AS |
5251 | rm -f conftest.err conftest.$ac_objext \ |
5252 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 5253 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 5254 | fi |
c0d27fcc | 5255 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
5256 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
5257 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
5258 | LIBSOUND=-lossaudio | |
5259 | else | |
5260 | LIBSOUND= | |
5261 | fi | |
5262 | ||
c0d27fcc | 5263 | |
f4988be7 | 5264 | fi |
c0d27fcc MR |
5265 | |
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
22044edf DL |
5283 | |
5284 | ||
973a76b1 | 5285 | |
cffcede7 | 5286 | |
c0d27fcc | 5287 | |
f4988be7 | 5288 | |
98418dba CW |
5289 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5290 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 5291 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
cffcede7 | 5292 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h |
98418dba CW |
5293 | do |
5294 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5296 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5300 | fi |
5301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5303 | else |
c0d27fcc MR |
5304 | # Is the header compilable? |
5305 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5306 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5307 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5308 | /* confdefs.h. */ |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
c0d27fcc MR |
5313 | $ac_includes_default |
5314 | #include <$ac_header> | |
5315 | _ACEOF | |
5316 | rm -f conftest.$ac_objext | |
5317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5318 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5319 | ac_status=$? |
35996d22 AS |
5320 | grep -v '^ *+' conftest.er1 >conftest.err |
5321 | rm -f conftest.er1 | |
5322 | cat conftest.err >&5 | |
c0d27fcc MR |
5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5324 | (exit $ac_status); } && | |
35996d22 AS |
5325 | { ac_try='test -z "$ac_c_werror_flag" |
5326 | || test ! -s conftest.err' | |
5327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5328 | (eval $ac_try) 2>&5 | |
5329 | ac_status=$? | |
5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5331 | (exit $ac_status); }; } && | |
5332 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5334 | (eval $ac_try) 2>&5 | |
5335 | ac_status=$? | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); }; }; then | |
5338 | ac_header_compiler=yes | |
5339 | else | |
5340 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5341 | sed 's/^/| /' conftest.$ac_ext >&5 |
5342 | ||
c0d27fcc MR |
5343 | ac_header_compiler=no |
5344 | fi | |
35996d22 | 5345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5346 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5347 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5348 | ||
5349 | # Is the header present? | |
5350 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5351 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5352 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5353 | /* confdefs.h. */ |
5354 | _ACEOF | |
5355 | cat confdefs.h >>conftest.$ac_ext | |
5356 | cat >>conftest.$ac_ext <<_ACEOF | |
5357 | /* end confdefs.h. */ | |
98418dba | 5358 | #include <$ac_header> |
503d2be0 | 5359 | _ACEOF |
c0d27fcc | 5360 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5361 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5362 | ac_status=$? |
6bae0ccf | 5363 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5364 | rm -f conftest.er1 |
5365 | cat conftest.err >&5 | |
c0d27fcc | 5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5367 | (exit $ac_status); } >/dev/null; then |
5368 | if test -s conftest.err; then | |
5369 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5370 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5371 | else |
5372 | ac_cpp_err= | |
5373 | fi | |
5374 | else | |
5375 | ac_cpp_err=yes | |
5376 | fi | |
5377 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5378 | ac_header_preproc=yes |
34ec9ebe | 5379 | else |
503d2be0 | 5380 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5381 | sed 's/^/| /' conftest.$ac_ext >&5 |
5382 | ||
c0d27fcc | 5383 | ac_header_preproc=no |
34ec9ebe | 5384 | fi |
98418dba | 5385 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5386 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5387 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5388 | ||
5389 | # So? What about this header? | |
35996d22 AS |
5390 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5391 | yes:no: ) | |
c0d27fcc MR |
5392 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5393 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5395 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5396 | ac_header_preproc=yes | |
19650fd6 | 5397 | ;; |
35996d22 | 5398 | no:yes:* ) |
c0d27fcc MR |
5399 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5400 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5401 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5402 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5403 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5404 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5405 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5406 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5409 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5410 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5411 | ( |
5412 | cat <<\_ASBOX | |
35996d22 AS |
5413 | ## ------------------------------------------ ## |
5414 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5415 | ## ------------------------------------------ ## | |
19650fd6 AS |
5416 | _ASBOX |
5417 | ) | | |
5418 | sed "s/^/$as_me: WARNING: /" >&2 | |
5419 | ;; | |
c0d27fcc MR |
5420 | esac |
5421 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5425 | else | |
35996d22 | 5426 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 5427 | fi |
c0d27fcc | 5428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5429 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5430 | |
5431 | fi | |
98418dba | 5432 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5433 | cat >>confdefs.h <<_ACEOF |
98418dba | 5434 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5435 | _ACEOF |
34ec9ebe | 5436 | |
98418dba | 5437 | fi |
c0d27fcc | 5438 | |
98418dba CW |
5439 | done |
5440 | ||
22044edf DL |
5441 | |
5442 | for ac_header in term.h | |
5443 | do | |
5444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5449 | else | |
5450 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5451 | /* confdefs.h. */ |
5452 | _ACEOF | |
5453 | cat confdefs.h >>conftest.$ac_ext | |
5454 | cat >>conftest.$ac_ext <<_ACEOF | |
5455 | /* end confdefs.h. */ | |
22044edf DL |
5456 | #include <$ac_header> |
5457 | _ACEOF | |
5458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5460 | ac_status=$? | |
5461 | grep -v '^ *+' conftest.er1 >conftest.err | |
5462 | rm -f conftest.er1 | |
5463 | cat conftest.err >&5 | |
5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5465 | (exit $ac_status); } >/dev/null; then | |
5466 | if test -s conftest.err; then | |
5467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22044edf DL |
5469 | else |
5470 | ac_cpp_err= | |
5471 | fi | |
5472 | else | |
5473 | ac_cpp_err=yes | |
5474 | fi | |
5475 | if test -z "$ac_cpp_err"; then | |
5476 | eval "$as_ac_Header=yes" | |
5477 | else | |
5478 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5479 | sed 's/^/| /' conftest.$ac_ext >&5 |
5480 | ||
22044edf DL |
5481 | eval "$as_ac_Header=no" |
5482 | fi | |
5483 | rm -f conftest.err conftest.$ac_ext | |
5484 | fi | |
5485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5487 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5488 | cat >>confdefs.h <<_ACEOF | |
5489 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5490 | _ACEOF | |
5491 | ||
5492 | fi | |
5493 | ||
5494 | done | |
5495 | ||
c0d27fcc | 5496 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5497 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5498 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5500 | else |
503d2be0 | 5501 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5502 | /* confdefs.h. */ |
5503 | _ACEOF | |
5504 | cat confdefs.h >>conftest.$ac_ext | |
5505 | cat >>conftest.$ac_ext <<_ACEOF | |
5506 | /* end confdefs.h. */ | |
98418dba CW |
5507 | #include <stdlib.h> |
5508 | #include <stdarg.h> | |
5509 | #include <string.h> | |
5510 | #include <float.h> | |
5511 | ||
19650fd6 AS |
5512 | int |
5513 | main () | |
5514 | { | |
5515 | ||
5516 | ; | |
5517 | return 0; | |
5518 | } | |
98418dba | 5519 | _ACEOF |
19650fd6 AS |
5520 | rm -f conftest.$ac_objext |
5521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5522 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5523 | ac_status=$? |
35996d22 AS |
5524 | grep -v '^ *+' conftest.er1 >conftest.err |
5525 | rm -f conftest.er1 | |
5526 | cat conftest.err >&5 | |
cd958eb3 | 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 5528 | (exit $ac_status); } && |
35996d22 AS |
5529 | { ac_try='test -z "$ac_c_werror_flag" |
5530 | || test ! -s conftest.err' | |
5531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5532 | (eval $ac_try) 2>&5 | |
5533 | ac_status=$? | |
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5535 | (exit $ac_status); }; } && | |
5536 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
5537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5538 | (eval $ac_try) 2>&5 | |
5539 | ac_status=$? | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); }; }; then | |
98418dba | 5542 | ac_cv_header_stdc=yes |
ba4481b5 | 5543 | else |
503d2be0 | 5544 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5545 | sed 's/^/| /' conftest.$ac_ext >&5 |
5546 | ||
5547 | ac_cv_header_stdc=no | |
ba4481b5 | 5548 | fi |
35996d22 | 5549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5550 | |
5551 | if test $ac_cv_header_stdc = yes; then | |
5552 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5553 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5554 | /* confdefs.h. */ |
5555 | _ACEOF | |
5556 | cat confdefs.h >>conftest.$ac_ext | |
5557 | cat >>conftest.$ac_ext <<_ACEOF | |
5558 | /* end confdefs.h. */ | |
98418dba CW |
5559 | #include <string.h> |
5560 | ||
5561 | _ACEOF | |
5562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5563 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5564 | : |
5565 | else | |
5566 | ac_cv_header_stdc=no | |
ba4481b5 | 5567 | fi |
98418dba | 5568 | rm -f conftest* |
ba4481b5 DL |
5569 | |
5570 | fi | |
5571 | ||
98418dba CW |
5572 | if test $ac_cv_header_stdc = yes; then |
5573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5574 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5575 | /* confdefs.h. */ |
5576 | _ACEOF | |
5577 | cat confdefs.h >>conftest.$ac_ext | |
5578 | cat >>conftest.$ac_ext <<_ACEOF | |
5579 | /* end confdefs.h. */ | |
98418dba CW |
5580 | #include <stdlib.h> |
5581 | ||
5582 | _ACEOF | |
5583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5584 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5585 | : |
5586 | else | |
5587 | ac_cv_header_stdc=no | |
5588 | fi | |
5589 | rm -f conftest* | |
5590 | ||
5591 | fi | |
5592 | ||
5593 | if test $ac_cv_header_stdc = yes; then | |
5594 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5595 | if test "$cross_compiling" = yes; then | |
5596 | : | |
d42122a3 | 5597 | else |
503d2be0 | 5598 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5599 | /* confdefs.h. */ |
5600 | _ACEOF | |
5601 | cat confdefs.h >>conftest.$ac_ext | |
5602 | cat >>conftest.$ac_ext <<_ACEOF | |
5603 | /* end confdefs.h. */ | |
98418dba CW |
5604 | #include <ctype.h> |
5605 | #if ((' ' & 0x0FF) == 0x020) | |
5606 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5607 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5608 | #else | |
19650fd6 | 5609 | # define ISLOWER(c) \ |
35996d22 AS |
5610 | (('a' <= (c) && (c) <= 'i') \ |
5611 | || ('j' <= (c) && (c) <= 'r') \ | |
5612 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
5613 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5614 | #endif | |
5615 | ||
5616 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5617 | int |
5618 | main () | |
5619 | { | |
98418dba CW |
5620 | int i; |
5621 | for (i = 0; i < 256; i++) | |
5622 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 5623 | || toupper (i) != TOUPPER (i)) |
98418dba CW |
5624 | exit(2); |
5625 | exit (0); | |
503d2be0 AS |
5626 | } |
5627 | _ACEOF | |
98418dba | 5628 | rm -f conftest$ac_exeext |
c0d27fcc | 5629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5630 | (eval $ac_link) 2>&5 |
503d2be0 | 5631 | ac_status=$? |
c0d27fcc | 5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5635 | (eval $ac_try) 2>&5 |
5636 | ac_status=$? | |
c0d27fcc | 5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5638 | (exit $ac_status); }; }; then |
98418dba | 5639 | : |
d42122a3 | 5640 | else |
98418dba CW |
5641 | echo "$as_me: program exited with status $ac_status" >&5 |
5642 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5643 | sed 's/^/| /' conftest.$ac_ext >&5 |
5644 | ||
c0d27fcc | 5645 | ( exit $ac_status ) |
98418dba | 5646 | ac_cv_header_stdc=no |
d42122a3 | 5647 | fi |
35996d22 | 5648 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5649 | fi |
98418dba CW |
5650 | fi |
5651 | fi | |
c0d27fcc | 5652 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5653 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5654 | if test $ac_cv_header_stdc = yes; then | |
5655 | ||
c0d27fcc | 5656 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5657 | #define STDC_HEADERS 1 |
c0d27fcc | 5658 | _ACEOF |
d42122a3 DL |
5659 | |
5660 | fi | |
5661 | ||
c0d27fcc | 5662 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5663 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5664 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5666 | else |
503d2be0 | 5667 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5668 | /* confdefs.h. */ |
5669 | _ACEOF | |
5670 | cat confdefs.h >>conftest.$ac_ext | |
5671 | cat >>conftest.$ac_ext <<_ACEOF | |
5672 | /* end confdefs.h. */ | |
ba4481b5 | 5673 | #include <sys/types.h> |
98418dba | 5674 | #include <sys/time.h> |
ba4481b5 | 5675 | #include <time.h> |
503d2be0 AS |
5676 | |
5677 | int | |
5678 | main () | |
5679 | { | |
98418dba CW |
5680 | if ((struct tm *) 0) |
5681 | return 0; | |
503d2be0 AS |
5682 | ; |
5683 | return 0; | |
5684 | } | |
5685 | _ACEOF | |
5686 | rm -f conftest.$ac_objext | |
c0d27fcc | 5687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5688 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5689 | ac_status=$? |
35996d22 AS |
5690 | grep -v '^ *+' conftest.er1 >conftest.err |
5691 | rm -f conftest.er1 | |
5692 | cat conftest.err >&5 | |
c0d27fcc | 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5694 | (exit $ac_status); } && |
35996d22 AS |
5695 | { ac_try='test -z "$ac_c_werror_flag" |
5696 | || test ! -s conftest.err' | |
5697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5698 | (eval $ac_try) 2>&5 | |
5699 | ac_status=$? | |
5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5701 | (exit $ac_status); }; } && | |
5702 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5704 | (eval $ac_try) 2>&5 |
5705 | ac_status=$? | |
c0d27fcc | 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5707 | (exit $ac_status); }; }; then |
98418dba | 5708 | ac_cv_header_time=yes |
ba4481b5 | 5709 | else |
503d2be0 | 5710 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5711 | sed 's/^/| /' conftest.$ac_ext >&5 |
5712 | ||
98418dba | 5713 | ac_cv_header_time=no |
ba4481b5 | 5714 | fi |
35996d22 | 5715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5716 | fi |
c0d27fcc | 5717 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5718 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5719 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5720 | |
c0d27fcc | 5721 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5722 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5723 | _ACEOF |
ba4481b5 DL |
5724 | |
5725 | fi | |
5726 | ||
cd958eb3 MB |
5727 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5728 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5729 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5731 | else |
503d2be0 | 5732 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5733 | /* confdefs.h. */ |
5734 | _ACEOF | |
5735 | cat confdefs.h >>conftest.$ac_ext | |
5736 | cat >>conftest.$ac_ext <<_ACEOF | |
5737 | /* end confdefs.h. */ | |
cd958eb3 MB |
5738 | $ac_includes_default |
5739 | int | |
5740 | main () | |
5741 | { | |
5742 | #ifndef sys_siglist | |
5743 | char *p = (char *) sys_siglist; | |
98418dba | 5744 | #endif |
503d2be0 | 5745 | |
cd958eb3 MB |
5746 | ; |
5747 | return 0; | |
5748 | } | |
5749 | _ACEOF | |
5750 | rm -f conftest.$ac_objext | |
5751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5752 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5753 | ac_status=$? |
35996d22 AS |
5754 | grep -v '^ *+' conftest.er1 >conftest.err |
5755 | rm -f conftest.er1 | |
5756 | cat conftest.err >&5 | |
cd958eb3 MB |
5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5758 | (exit $ac_status); } && | |
35996d22 AS |
5759 | { ac_try='test -z "$ac_c_werror_flag" |
5760 | || test ! -s conftest.err' | |
5761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5762 | (eval $ac_try) 2>&5 | |
5763 | ac_status=$? | |
5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5765 | (exit $ac_status); }; } && | |
5766 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
5767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5768 | (eval $ac_try) 2>&5 | |
5769 | ac_status=$? | |
5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5771 | (exit $ac_status); }; }; then | |
5772 | ac_cv_have_decl_sys_siglist=yes | |
5773 | else | |
5774 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 |
5776 | ||
cd958eb3 MB |
5777 | ac_cv_have_decl_sys_siglist=no |
5778 | fi | |
35996d22 | 5779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
5780 | fi |
5781 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5782 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5783 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5784 | ||
5785 | cat >>confdefs.h <<_ACEOF | |
5786 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5787 | _ACEOF | |
5788 | ||
5789 | ||
5790 | else | |
5791 | cat >>confdefs.h <<_ACEOF | |
5792 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5793 | _ACEOF | |
5794 | ||
5795 | ||
5796 | fi | |
5797 | ||
5798 | ||
5799 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5800 | # For Tru64, at least: | |
5801 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5802 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5803 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5805 | else | |
5806 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5807 | /* confdefs.h. */ |
5808 | _ACEOF | |
5809 | cat confdefs.h >>conftest.$ac_ext | |
5810 | cat >>conftest.$ac_ext <<_ACEOF | |
5811 | /* end confdefs.h. */ | |
cd958eb3 | 5812 | $ac_includes_default |
503d2be0 AS |
5813 | int |
5814 | main () | |
5815 | { | |
cd958eb3 MB |
5816 | #ifndef __sys_siglist |
5817 | char *p = (char *) __sys_siglist; | |
5818 | #endif | |
5819 | ||
503d2be0 AS |
5820 | ; |
5821 | return 0; | |
5822 | } | |
5823 | _ACEOF | |
5824 | rm -f conftest.$ac_objext | |
c0d27fcc | 5825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5826 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5827 | ac_status=$? |
35996d22 AS |
5828 | grep -v '^ *+' conftest.er1 >conftest.err |
5829 | rm -f conftest.er1 | |
5830 | cat conftest.err >&5 | |
c0d27fcc | 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5832 | (exit $ac_status); } && |
35996d22 AS |
5833 | { ac_try='test -z "$ac_c_werror_flag" |
5834 | || test ! -s conftest.err' | |
5835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5836 | (eval $ac_try) 2>&5 | |
5837 | ac_status=$? | |
5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5839 | (exit $ac_status); }; } && | |
5840 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5842 | (eval $ac_try) 2>&5 |
5843 | ac_status=$? | |
c0d27fcc | 5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5845 | (exit $ac_status); }; }; then |
cd958eb3 | 5846 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5847 | else |
503d2be0 | 5848 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5849 | sed 's/^/| /' conftest.$ac_ext >&5 |
5850 | ||
cd958eb3 | 5851 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 5852 | fi |
35996d22 | 5853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 5854 | fi |
cd958eb3 MB |
5855 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5856 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5857 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5858 | |
cd958eb3 MB |
5859 | cat >>confdefs.h <<_ACEOF |
5860 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5861 | _ACEOF | |
5862 | ||
5863 | ||
5864 | else | |
5865 | cat >>confdefs.h <<_ACEOF | |
5866 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5867 | _ACEOF |
503d2be0 | 5868 | |
cd958eb3 | 5869 | |
ba4481b5 DL |
5870 | fi |
5871 | ||
cd958eb3 MB |
5872 | |
5873 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5874 | ||
5875 | cat >>confdefs.h <<\_ACEOF | |
5876 | #define sys_siglist __sys_siglist | |
5877 | _ACEOF | |
5878 | ||
5879 | fi | |
5880 | fi | |
c0d27fcc | 5881 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5882 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5883 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5885 | else |
503d2be0 | 5886 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5887 | /* confdefs.h. */ |
5888 | _ACEOF | |
5889 | cat confdefs.h >>conftest.$ac_ext | |
5890 | cat >>conftest.$ac_ext <<_ACEOF | |
5891 | /* end confdefs.h. */ | |
98418dba CW |
5892 | #include <sys/types.h> |
5893 | #include <sys/wait.h> | |
5894 | #ifndef WEXITSTATUS | |
5895 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5896 | #endif | |
5897 | #ifndef WIFEXITED | |
5898 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5899 | #endif |
503d2be0 AS |
5900 | |
5901 | int | |
5902 | main () | |
5903 | { | |
98418dba CW |
5904 | int s; |
5905 | wait (&s); | |
5906 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5907 | ; |
5908 | return 0; | |
5909 | } | |
5910 | _ACEOF | |
98418dba | 5911 | rm -f conftest.$ac_objext |
c0d27fcc | 5912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5913 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5914 | ac_status=$? |
35996d22 AS |
5915 | grep -v '^ *+' conftest.er1 >conftest.err |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
c0d27fcc | 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5919 | (exit $ac_status); } && |
35996d22 AS |
5920 | { ac_try='test -z "$ac_c_werror_flag" |
5921 | || test ! -s conftest.err' | |
5922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5923 | (eval $ac_try) 2>&5 | |
5924 | ac_status=$? | |
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5926 | (exit $ac_status); }; } && | |
5927 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5929 | (eval $ac_try) 2>&5 |
5930 | ac_status=$? | |
c0d27fcc | 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5932 | (exit $ac_status); }; }; then |
98418dba | 5933 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5934 | else |
503d2be0 | 5935 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5936 | sed 's/^/| /' conftest.$ac_ext >&5 |
5937 | ||
98418dba | 5938 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5939 | fi |
35996d22 | 5940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5941 | fi |
c0d27fcc | 5942 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
5943 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
5944 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 5945 | |
c0d27fcc | 5946 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5947 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 5948 | _ACEOF |
ba4481b5 | 5949 | |
ba4481b5 DL |
5950 | fi |
5951 | ||
c0d27fcc MR |
5952 | |
5953 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
5954 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5955 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 5956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 5957 | else |
503d2be0 | 5958 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5959 | /* confdefs.h. */ |
5960 | _ACEOF | |
5961 | cat confdefs.h >>conftest.$ac_ext | |
5962 | cat >>conftest.$ac_ext <<_ACEOF | |
5963 | /* end confdefs.h. */ | |
98418dba CW |
5964 | #ifdef TIME_WITH_SYS_TIME |
5965 | #include <sys/time.h> | |
5966 | #include <time.h> | |
5967 | #else | |
5968 | #ifdef HAVE_SYS_TIME_H | |
5969 | #include <sys/time.h> | |
5970 | #else | |
1113b624 | 5971 | #include <time.h> |
98418dba CW |
5972 | #endif |
5973 | #endif | |
5974 | #ifdef HAVE_UTIME_H | |
5975 | #include <utime.h> | |
5976 | #endif | |
503d2be0 AS |
5977 | int |
5978 | main () | |
5979 | { | |
98418dba | 5980 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
5981 | ; |
5982 | return 0; | |
5983 | } | |
5984 | _ACEOF | |
98418dba | 5985 | rm -f conftest.$ac_objext |
c0d27fcc | 5986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5987 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5988 | ac_status=$? |
35996d22 AS |
5989 | grep -v '^ *+' conftest.er1 >conftest.err |
5990 | rm -f conftest.er1 | |
5991 | cat conftest.err >&5 | |
c0d27fcc | 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5993 | (exit $ac_status); } && |
35996d22 AS |
5994 | { ac_try='test -z "$ac_c_werror_flag" |
5995 | || test ! -s conftest.err' | |
5996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5997 | (eval $ac_try) 2>&5 | |
5998 | ac_status=$? | |
5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6000 | (exit $ac_status); }; } && | |
6001 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6003 | (eval $ac_try) 2>&5 |
6004 | ac_status=$? | |
c0d27fcc | 6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6006 | (exit $ac_status); }; }; then |
98418dba | 6007 | emacs_cv_struct_utimbuf=yes |
1113b624 | 6008 | else |
503d2be0 | 6009 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6010 | sed 's/^/| /' conftest.$ac_ext >&5 |
6011 | ||
98418dba | 6012 | emacs_cv_struct_utimbuf=no |
1113b624 | 6013 | fi |
35996d22 | 6014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1113b624 | 6015 | fi |
c0d27fcc | 6016 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
6017 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
6018 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 6019 | |
c0d27fcc | 6020 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6021 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 6022 | _ACEOF |
1113b624 PE |
6023 | |
6024 | fi | |
ba4481b5 | 6025 | |
c0d27fcc | 6026 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
6027 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
6028 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6030 | else |
98418dba | 6031 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6032 | /* confdefs.h. */ |
6033 | _ACEOF | |
6034 | cat confdefs.h >>conftest.$ac_ext | |
6035 | cat >>conftest.$ac_ext <<_ACEOF | |
6036 | /* end confdefs.h. */ | |
7397acc4 | 6037 | #include <sys/types.h> |
98418dba CW |
6038 | #include <signal.h> |
6039 | #ifdef signal | |
6040 | # undef signal | |
6041 | #endif | |
6042 | #ifdef __cplusplus | |
6043 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6044 | #else | |
6045 | void (*signal ()) (); | |
6046 | #endif | |
6047 | ||
503d2be0 AS |
6048 | int |
6049 | main () | |
6050 | { | |
98418dba | 6051 | int i; |
503d2be0 AS |
6052 | ; |
6053 | return 0; | |
6054 | } | |
6055 | _ACEOF | |
98418dba | 6056 | rm -f conftest.$ac_objext |
c0d27fcc | 6057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6058 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6059 | ac_status=$? |
35996d22 AS |
6060 | grep -v '^ *+' conftest.er1 >conftest.err |
6061 | rm -f conftest.er1 | |
6062 | cat conftest.err >&5 | |
c0d27fcc | 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6064 | (exit $ac_status); } && |
35996d22 AS |
6065 | { ac_try='test -z "$ac_c_werror_flag" |
6066 | || test ! -s conftest.err' | |
6067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6068 | (eval $ac_try) 2>&5 | |
6069 | ac_status=$? | |
6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6071 | (exit $ac_status); }; } && | |
6072 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6074 | (eval $ac_try) 2>&5 |
6075 | ac_status=$? | |
c0d27fcc | 6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6077 | (exit $ac_status); }; }; then |
98418dba | 6078 | ac_cv_type_signal=void |
503d2be0 AS |
6079 | else |
6080 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6081 | sed 's/^/| /' conftest.$ac_ext >&5 |
6082 | ||
98418dba | 6083 | ac_cv_type_signal=int |
503d2be0 | 6084 | fi |
35996d22 | 6085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6086 | fi |
c0d27fcc | 6087 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 6088 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 6089 | |
c0d27fcc | 6090 | cat >>confdefs.h <<_ACEOF |
98418dba | 6091 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
6092 | _ACEOF |
6093 | ||
503d2be0 | 6094 | |
c0d27fcc MR |
6095 | |
6096 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
6097 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
6098 | if test "${emacs_cv_speed_t+set}" = set; then | |
6099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 6100 | else |
98418dba | 6101 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6102 | /* confdefs.h. */ |
6103 | _ACEOF | |
6104 | cat confdefs.h >>conftest.$ac_ext | |
6105 | cat >>conftest.$ac_ext <<_ACEOF | |
6106 | /* end confdefs.h. */ | |
98418dba | 6107 | #include <termios.h> |
98418dba CW |
6108 | int |
6109 | main () | |
6110 | { | |
6111 | speed_t x = 1; | |
6112 | ; | |
6113 | return 0; | |
6114 | } | |
6115 | _ACEOF | |
6116 | rm -f conftest.$ac_objext | |
c0d27fcc | 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6118 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6119 | ac_status=$? |
35996d22 AS |
6120 | grep -v '^ *+' conftest.er1 >conftest.err |
6121 | rm -f conftest.er1 | |
6122 | cat conftest.err >&5 | |
c0d27fcc | 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6124 | (exit $ac_status); } && |
35996d22 AS |
6125 | { ac_try='test -z "$ac_c_werror_flag" |
6126 | || test ! -s conftest.err' | |
6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6128 | (eval $ac_try) 2>&5 | |
6129 | ac_status=$? | |
6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6131 | (exit $ac_status); }; } && | |
6132 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6134 | (eval $ac_try) 2>&5 |
6135 | ac_status=$? | |
c0d27fcc | 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6137 | (exit $ac_status); }; }; then |
6138 | emacs_cv_speed_t=yes | |
6139 | else | |
6140 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
6142 | ||
98418dba CW |
6143 | emacs_cv_speed_t=no |
6144 | fi | |
35996d22 | 6145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 6146 | fi |
c0d27fcc | 6147 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
6148 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
6149 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 6150 | |
c0d27fcc | 6151 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6152 | #define HAVE_SPEED_T 1 |
c0d27fcc | 6153 | _ACEOF |
98418dba | 6154 | |
7397acc4 DL |
6155 | fi |
6156 | ||
c0d27fcc | 6157 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
6158 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
6159 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 6160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6161 | else |
503d2be0 | 6162 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6163 | /* confdefs.h. */ |
6164 | _ACEOF | |
6165 | cat confdefs.h >>conftest.$ac_ext | |
6166 | cat >>conftest.$ac_ext <<_ACEOF | |
6167 | /* end confdefs.h. */ | |
98418dba CW |
6168 | #ifdef TIME_WITH_SYS_TIME |
6169 | #include <sys/time.h> | |
6170 | #include <time.h> | |
6171 | #else | |
6172 | #ifdef HAVE_SYS_TIME_H | |
6173 | #include <sys/time.h> | |
6174 | #else | |
6175 | #include <time.h> | |
6176 | #endif | |
6177 | #endif | |
503d2be0 AS |
6178 | int |
6179 | main () | |
6180 | { | |
98418dba | 6181 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
6182 | ; |
6183 | return 0; | |
6184 | } | |
6185 | _ACEOF | |
6186 | rm -f conftest.$ac_objext | |
c0d27fcc | 6187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6188 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6189 | ac_status=$? |
35996d22 AS |
6190 | grep -v '^ *+' conftest.er1 >conftest.err |
6191 | rm -f conftest.er1 | |
6192 | cat conftest.err >&5 | |
c0d27fcc | 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6194 | (exit $ac_status); } && |
35996d22 AS |
6195 | { ac_try='test -z "$ac_c_werror_flag" |
6196 | || test ! -s conftest.err' | |
6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6198 | (eval $ac_try) 2>&5 | |
6199 | ac_status=$? | |
6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6201 | (exit $ac_status); }; } && | |
6202 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6204 | (eval $ac_try) 2>&5 |
6205 | ac_status=$? | |
c0d27fcc | 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6207 | (exit $ac_status); }; }; then |
98418dba | 6208 | emacs_cv_struct_timeval=yes |
7397acc4 | 6209 | else |
503d2be0 | 6210 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6211 | sed 's/^/| /' conftest.$ac_ext >&5 |
6212 | ||
98418dba | 6213 | emacs_cv_struct_timeval=no |
7397acc4 | 6214 | fi |
35996d22 | 6215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6216 | fi |
c0d27fcc | 6217 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
6218 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
6219 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
6220 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 6221 | |
c0d27fcc | 6222 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6223 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 6224 | _ACEOF |
7397acc4 DL |
6225 | |
6226 | fi | |
6227 | ||
c0d27fcc | 6228 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
6229 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
6230 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 6231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6232 | else |
503d2be0 | 6233 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6234 | /* confdefs.h. */ |
6235 | _ACEOF | |
6236 | cat confdefs.h >>conftest.$ac_ext | |
6237 | cat >>conftest.$ac_ext <<_ACEOF | |
6238 | /* end confdefs.h. */ | |
98418dba | 6239 | #include <math.h> |
503d2be0 AS |
6240 | int |
6241 | main () | |
6242 | { | |
98418dba | 6243 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
6244 | ; |
6245 | return 0; | |
ba4481b5 | 6246 | } |
503d2be0 AS |
6247 | _ACEOF |
6248 | rm -f conftest.$ac_objext | |
c0d27fcc | 6249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6250 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6251 | ac_status=$? |
35996d22 AS |
6252 | grep -v '^ *+' conftest.er1 >conftest.err |
6253 | rm -f conftest.er1 | |
6254 | cat conftest.err >&5 | |
c0d27fcc | 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6256 | (exit $ac_status); } && |
35996d22 AS |
6257 | { ac_try='test -z "$ac_c_werror_flag" |
6258 | || test ! -s conftest.err' | |
6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6260 | (eval $ac_try) 2>&5 | |
6261 | ac_status=$? | |
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6263 | (exit $ac_status); }; } && | |
6264 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6266 | (eval $ac_try) 2>&5 |
6267 | ac_status=$? | |
c0d27fcc | 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6269 | (exit $ac_status); }; }; then |
98418dba | 6270 | emacs_cv_struct_exception=yes |
ba4481b5 | 6271 | else |
503d2be0 | 6272 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6273 | sed 's/^/| /' conftest.$ac_ext >&5 |
6274 | ||
98418dba | 6275 | emacs_cv_struct_exception=no |
ba4481b5 | 6276 | fi |
35996d22 | 6277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6278 | fi |
c0d27fcc | 6279 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
6280 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
6281 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
6282 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 6283 | |
c0d27fcc | 6284 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6285 | #define NO_MATHERR 1 |
c0d27fcc | 6286 | _ACEOF |
ba4481b5 DL |
6287 | |
6288 | fi | |
6289 | ||
7862d3a8 AS |
6290 | |
6291 | for ac_header in sys/socket.h | |
6292 | do | |
6293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6299 | fi | |
6300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6302 | else | |
6303 | # Is the header compilable? | |
6304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6306 | cat >conftest.$ac_ext <<_ACEOF | |
6307 | /* confdefs.h. */ | |
6308 | _ACEOF | |
6309 | cat confdefs.h >>conftest.$ac_ext | |
6310 | cat >>conftest.$ac_ext <<_ACEOF | |
6311 | /* end confdefs.h. */ | |
6312 | $ac_includes_default | |
6313 | #include <$ac_header> | |
6314 | _ACEOF | |
6315 | rm -f conftest.$ac_objext | |
6316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6317 | (eval $ac_compile) 2>conftest.er1 | |
6318 | ac_status=$? | |
6319 | grep -v '^ *+' conftest.er1 >conftest.err | |
6320 | rm -f conftest.er1 | |
6321 | cat conftest.err >&5 | |
6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6323 | (exit $ac_status); } && | |
6324 | { ac_try='test -z "$ac_c_werror_flag" | |
6325 | || test ! -s conftest.err' | |
6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6327 | (eval $ac_try) 2>&5 | |
6328 | ac_status=$? | |
6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6330 | (exit $ac_status); }; } && | |
6331 | { ac_try='test -s conftest.$ac_objext' | |
6332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6333 | (eval $ac_try) 2>&5 | |
6334 | ac_status=$? | |
6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6336 | (exit $ac_status); }; }; then | |
6337 | ac_header_compiler=yes | |
6338 | else | |
6339 | echo "$as_me: failed program was:" >&5 | |
6340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6341 | ||
6342 | ac_header_compiler=no | |
6343 | fi | |
6344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6345 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6346 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6347 | ||
6348 | # Is the header present? | |
6349 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6350 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6351 | cat >conftest.$ac_ext <<_ACEOF | |
6352 | /* confdefs.h. */ | |
6353 | _ACEOF | |
6354 | cat confdefs.h >>conftest.$ac_ext | |
6355 | cat >>conftest.$ac_ext <<_ACEOF | |
6356 | /* end confdefs.h. */ | |
6357 | #include <$ac_header> | |
6358 | _ACEOF | |
6359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6361 | ac_status=$? | |
6362 | grep -v '^ *+' conftest.er1 >conftest.err | |
6363 | rm -f conftest.er1 | |
6364 | cat conftest.err >&5 | |
6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6366 | (exit $ac_status); } >/dev/null; then | |
6367 | if test -s conftest.err; then | |
6368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6370 | else | |
6371 | ac_cpp_err= | |
6372 | fi | |
6373 | else | |
6374 | ac_cpp_err=yes | |
6375 | fi | |
6376 | if test -z "$ac_cpp_err"; then | |
6377 | ac_header_preproc=yes | |
6378 | else | |
6379 | echo "$as_me: failed program was:" >&5 | |
6380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6381 | ||
6382 | ac_header_preproc=no | |
6383 | fi | |
6384 | rm -f conftest.err conftest.$ac_ext | |
6385 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6386 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6387 | ||
6388 | # So? What about this header? | |
6389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6390 | yes:no: ) | |
6391 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6392 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6394 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6395 | ac_header_preproc=yes | |
6396 | ;; | |
6397 | no:yes:* ) | |
6398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6403 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6404 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6405 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6407 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6408 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6409 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6410 | ( | |
6411 | cat <<\_ASBOX | |
6412 | ## ------------------------------------------ ## | |
6413 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6414 | ## ------------------------------------------ ## | |
6415 | _ASBOX | |
6416 | ) | | |
6417 | sed "s/^/$as_me: WARNING: /" >&2 | |
6418 | ;; | |
6419 | esac | |
6420 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6424 | else | |
6425 | eval "$as_ac_Header=\$ac_header_preproc" | |
6426 | fi | |
6427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6429 | ||
6430 | fi | |
6431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6432 | cat >>confdefs.h <<_ACEOF | |
6433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6434 | _ACEOF | |
6435 | ||
6436 | fi | |
6437 | ||
6438 | done | |
6439 | ||
6440 | ||
6441 | for ac_header in net/if.h | |
6442 | do | |
6443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6444 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6448 | else | |
6449 | cat >conftest.$ac_ext <<_ACEOF | |
6450 | /* confdefs.h. */ | |
6451 | _ACEOF | |
6452 | cat confdefs.h >>conftest.$ac_ext | |
6453 | cat >>conftest.$ac_ext <<_ACEOF | |
6454 | /* end confdefs.h. */ | |
6455 | $ac_includes_default | |
6456 | #if HAVE_SYS_SOCKET_H | |
6457 | #include <sys/socket.h> | |
6458 | #endif | |
6459 | ||
6460 | #include <$ac_header> | |
6461 | _ACEOF | |
6462 | rm -f conftest.$ac_objext | |
6463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6464 | (eval $ac_compile) 2>conftest.er1 | |
6465 | ac_status=$? | |
6466 | grep -v '^ *+' conftest.er1 >conftest.err | |
6467 | rm -f conftest.er1 | |
6468 | cat conftest.err >&5 | |
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6470 | (exit $ac_status); } && | |
6471 | { ac_try='test -z "$ac_c_werror_flag" | |
6472 | || test ! -s conftest.err' | |
6473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6474 | (eval $ac_try) 2>&5 | |
6475 | ac_status=$? | |
6476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6477 | (exit $ac_status); }; } && | |
6478 | { ac_try='test -s conftest.$ac_objext' | |
6479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6480 | (eval $ac_try) 2>&5 | |
6481 | ac_status=$? | |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); }; }; then | |
6484 | eval "$as_ac_Header=yes" | |
6485 | else | |
6486 | echo "$as_me: failed program was:" >&5 | |
6487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6488 | ||
6489 | eval "$as_ac_Header=no" | |
6490 | fi | |
6491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6492 | fi | |
6493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6495 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6496 | cat >>confdefs.h <<_ACEOF | |
6497 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6498 | _ACEOF | |
6499 | ||
6500 | fi | |
6501 | ||
6502 | done | |
6503 | ||
6504 | ||
c0d27fcc | 6505 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
6506 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
6507 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6509 | else |
503d2be0 | 6510 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6511 | /* confdefs.h. */ |
6512 | _ACEOF | |
6513 | cat confdefs.h >>conftest.$ac_ext | |
6514 | cat >>conftest.$ac_ext <<_ACEOF | |
6515 | /* end confdefs.h. */ | |
98418dba CW |
6516 | #include <sys/types.h> |
6517 | #include <time.h> | |
7397acc4 | 6518 | |
503d2be0 AS |
6519 | int |
6520 | main () | |
6521 | { | |
98418dba | 6522 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
6523 | ; |
6524 | return 0; | |
6525 | } | |
6526 | _ACEOF | |
6527 | rm -f conftest.$ac_objext | |
c0d27fcc | 6528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6529 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6530 | ac_status=$? |
35996d22 AS |
6531 | grep -v '^ *+' conftest.er1 >conftest.err |
6532 | rm -f conftest.er1 | |
6533 | cat conftest.err >&5 | |
c0d27fcc | 6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6535 | (exit $ac_status); } && |
35996d22 AS |
6536 | { ac_try='test -z "$ac_c_werror_flag" |
6537 | || test ! -s conftest.err' | |
c0d27fcc | 6538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6539 | (eval $ac_try) 2>&5 |
6540 | ac_status=$? | |
c0d27fcc | 6541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
6542 | (exit $ac_status); }; } && |
6543 | { ac_try='test -s conftest.$ac_objext' | |
6544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6545 | (eval $ac_try) 2>&5 | |
6546 | ac_status=$? | |
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6548 | (exit $ac_status); }; }; then | |
6549 | ac_cv_struct_tm=time.h | |
6550 | else | |
503d2be0 | 6551 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6552 | sed 's/^/| /' conftest.$ac_ext >&5 |
6553 | ||
98418dba | 6554 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 6555 | fi |
35996d22 | 6556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6557 | fi |
c0d27fcc | 6558 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
6559 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
6560 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 6561 | |
c0d27fcc | 6562 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6563 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 6564 | _ACEOF |
7397acc4 DL |
6565 | |
6566 | fi | |
ba4481b5 | 6567 | |
c0d27fcc | 6568 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
6569 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
6570 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6572 | else |
98418dba | 6573 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6574 | /* confdefs.h. */ |
6575 | _ACEOF | |
6576 | cat confdefs.h >>conftest.$ac_ext | |
6577 | cat >>conftest.$ac_ext <<_ACEOF | |
6578 | /* end confdefs.h. */ | |
98418dba CW |
6579 | #include <sys/types.h> |
6580 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6581 | |
c0d27fcc | 6582 | |
98418dba CW |
6583 | int |
6584 | main () | |
6585 | { | |
6586 | static struct tm ac_aggr; | |
6587 | if (ac_aggr.tm_zone) | |
6588 | return 0; | |
6589 | ; | |
6590 | return 0; | |
6591 | } | |
6592 | _ACEOF | |
6593 | rm -f conftest.$ac_objext | |
c0d27fcc | 6594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6595 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6596 | ac_status=$? |
35996d22 AS |
6597 | grep -v '^ *+' conftest.er1 >conftest.err |
6598 | rm -f conftest.er1 | |
6599 | cat conftest.err >&5 | |
c0d27fcc | 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6601 | (exit $ac_status); } && |
35996d22 AS |
6602 | { ac_try='test -z "$ac_c_werror_flag" |
6603 | || test ! -s conftest.err' | |
6604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6605 | (eval $ac_try) 2>&5 | |
6606 | ac_status=$? | |
6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6608 | (exit $ac_status); }; } && | |
6609 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6611 | (eval $ac_try) 2>&5 |
6612 | ac_status=$? | |
c0d27fcc | 6613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6614 | (exit $ac_status); }; }; then |
6615 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6616 | else |
98418dba | 6617 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6618 | sed 's/^/| /' conftest.$ac_ext >&5 |
6619 | ||
6bae0ccf | 6620 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6621 | /* confdefs.h. */ |
6622 | _ACEOF | |
6623 | cat confdefs.h >>conftest.$ac_ext | |
6624 | cat >>conftest.$ac_ext <<_ACEOF | |
6625 | /* end confdefs.h. */ | |
6bae0ccf DL |
6626 | #include <sys/types.h> |
6627 | #include <$ac_cv_struct_tm> | |
6628 | ||
6629 | ||
6630 | int | |
6631 | main () | |
6632 | { | |
6633 | static struct tm ac_aggr; | |
6634 | if (sizeof ac_aggr.tm_zone) | |
6635 | return 0; | |
6636 | ; | |
6637 | return 0; | |
6638 | } | |
6639 | _ACEOF | |
6640 | rm -f conftest.$ac_objext | |
6641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6642 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 6643 | ac_status=$? |
35996d22 AS |
6644 | grep -v '^ *+' conftest.er1 >conftest.err |
6645 | rm -f conftest.er1 | |
6646 | cat conftest.err >&5 | |
6bae0ccf DL |
6647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6648 | (exit $ac_status); } && | |
35996d22 AS |
6649 | { ac_try='test -z "$ac_c_werror_flag" |
6650 | || test ! -s conftest.err' | |
6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6652 | (eval $ac_try) 2>&5 | |
6653 | ac_status=$? | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); }; } && | |
6656 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
6657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6658 | (eval $ac_try) 2>&5 | |
6659 | ac_status=$? | |
6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6661 | (exit $ac_status); }; }; then | |
6662 | ac_cv_member_struct_tm_tm_zone=yes | |
6663 | else | |
6664 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
6666 | ||
98418dba | 6667 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6668 | fi |
35996d22 | 6669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6670 | fi |
35996d22 | 6671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6672 | fi |
c0d27fcc | 6673 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6674 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6675 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6676 | |
c0d27fcc | 6677 | cat >>confdefs.h <<_ACEOF |
98418dba | 6678 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6679 | _ACEOF |
6680 | ||
ba4481b5 | 6681 | |
98418dba | 6682 | fi |
ba4481b5 | 6683 | |
98418dba | 6684 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6685 | |
c0d27fcc | 6686 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6687 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6688 | _ACEOF |
ba4481b5 | 6689 | |
ba4481b5 | 6690 | else |
c0d27fcc | 6691 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6692 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6693 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6695 | else |
98418dba | 6696 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6697 | /* confdefs.h. */ |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
98418dba CW |
6702 | #include <time.h> |
6703 | #ifndef tzname /* For SGI. */ | |
6704 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6705 | #endif | |
6706 | ||
98418dba CW |
6707 | int |
6708 | main () | |
6709 | { | |
6710 | atoi(*tzname); | |
6711 | ; | |
6712 | return 0; | |
6713 | } | |
6714 | _ACEOF | |
6715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 6717 | (eval $ac_link) 2>conftest.er1 |
98418dba | 6718 | ac_status=$? |
35996d22 AS |
6719 | grep -v '^ *+' conftest.er1 >conftest.err |
6720 | rm -f conftest.er1 | |
6721 | cat conftest.err >&5 | |
c0d27fcc | 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6723 | (exit $ac_status); } && |
35996d22 AS |
6724 | { ac_try='test -z "$ac_c_werror_flag" |
6725 | || test ! -s conftest.err' | |
6726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6727 | (eval $ac_try) 2>&5 | |
6728 | ac_status=$? | |
6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6730 | (exit $ac_status); }; } && | |
6731 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6733 | (eval $ac_try) 2>&5 |
6734 | ac_status=$? | |
c0d27fcc | 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6736 | (exit $ac_status); }; }; then |
6737 | ac_cv_var_tzname=yes | |
6738 | else | |
6739 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6740 | sed 's/^/| /' conftest.$ac_ext >&5 |
6741 | ||
98418dba | 6742 | ac_cv_var_tzname=no |
ba4481b5 | 6743 | fi |
35996d22 AS |
6744 | rm -f conftest.err conftest.$ac_objext \ |
6745 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 6746 | fi |
c0d27fcc | 6747 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6748 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6749 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6750 | |
c0d27fcc | 6751 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6752 | #define HAVE_TZNAME 1 |
c0d27fcc | 6753 | _ACEOF |
503d2be0 | 6754 | |
98418dba CW |
6755 | fi |
6756 | fi | |
503d2be0 | 6757 | |
c0d27fcc | 6758 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6759 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6760 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6762 | else | |
6763 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6764 | /* confdefs.h. */ |
6765 | _ACEOF | |
6766 | cat confdefs.h >>conftest.$ac_ext | |
6767 | cat >>conftest.$ac_ext <<_ACEOF | |
6768 | /* end confdefs.h. */ | |
98418dba | 6769 | #include <time.h> |
b936fae4 | 6770 | |
98418dba CW |
6771 | int |
6772 | main () | |
6773 | { | |
b936fae4 AS |
6774 | static struct tm ac_aggr; |
6775 | if (ac_aggr.tm_gmtoff) | |
6776 | return 0; | |
98418dba CW |
6777 | ; |
6778 | return 0; | |
6779 | } | |
6780 | _ACEOF | |
b936fae4 | 6781 | rm -f conftest.$ac_objext |
c0d27fcc | 6782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6783 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6784 | ac_status=$? |
35996d22 AS |
6785 | grep -v '^ *+' conftest.er1 >conftest.err |
6786 | rm -f conftest.er1 | |
6787 | cat conftest.err >&5 | |
c0d27fcc | 6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6789 | (exit $ac_status); } && |
35996d22 AS |
6790 | { ac_try='test -z "$ac_c_werror_flag" |
6791 | || test ! -s conftest.err' | |
6792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6793 | (eval $ac_try) 2>&5 | |
6794 | ac_status=$? | |
6795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6796 | (exit $ac_status); }; } && | |
6797 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6799 | (eval $ac_try) 2>&5 |
6800 | ac_status=$? | |
c0d27fcc | 6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6802 | (exit $ac_status); }; }; then |
b936fae4 | 6803 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6804 | else |
6805 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6806 | sed 's/^/| /' conftest.$ac_ext >&5 |
6807 | ||
8799b3e4 | 6808 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6809 | /* confdefs.h. */ |
6810 | _ACEOF | |
6811 | cat confdefs.h >>conftest.$ac_ext | |
6812 | cat >>conftest.$ac_ext <<_ACEOF | |
6813 | /* end confdefs.h. */ | |
6bae0ccf DL |
6814 | #include <time.h> |
6815 | ||
8799b3e4 CW |
6816 | int |
6817 | main () | |
6818 | { | |
6bae0ccf DL |
6819 | static struct tm ac_aggr; |
6820 | if (sizeof ac_aggr.tm_gmtoff) | |
6821 | return 0; | |
8799b3e4 CW |
6822 | ; |
6823 | return 0; | |
6824 | } | |
6825 | _ACEOF | |
6bae0ccf | 6826 | rm -f conftest.$ac_objext |
c0d27fcc | 6827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6828 | (eval $ac_compile) 2>conftest.er1 |
8799b3e4 | 6829 | ac_status=$? |
35996d22 AS |
6830 | grep -v '^ *+' conftest.er1 >conftest.err |
6831 | rm -f conftest.er1 | |
6832 | cat conftest.err >&5 | |
c0d27fcc | 6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6834 | (exit $ac_status); } && |
35996d22 AS |
6835 | { ac_try='test -z "$ac_c_werror_flag" |
6836 | || test ! -s conftest.err' | |
6837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6838 | (eval $ac_try) 2>&5 | |
6839 | ac_status=$? | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 | (exit $ac_status); }; } && | |
6842 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6844 | (eval $ac_try) 2>&5 |
6845 | ac_status=$? | |
c0d27fcc | 6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6847 | (exit $ac_status); }; }; then |
6bae0ccf | 6848 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6849 | else |
6850 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6851 | sed 's/^/| /' conftest.$ac_ext >&5 |
6852 | ||
6bae0ccf | 6853 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6854 | fi |
35996d22 | 6855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6856 | fi |
35996d22 | 6857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8799b3e4 | 6858 | fi |
6bae0ccf DL |
6859 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6860 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6861 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6862 | ||
6863 | cat >>confdefs.h <<\_ACEOF | |
6864 | #define HAVE_TM_GMTOFF 1 | |
6865 | _ACEOF | |
6866 | ||
6867 | fi | |
6868 | ||
96f3a036 DL |
6869 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
6870 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6 | |
6871 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6873 | else | |
6874 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6875 | /* confdefs.h. */ |
6876 | _ACEOF | |
6877 | cat confdefs.h >>conftest.$ac_ext | |
6878 | cat >>conftest.$ac_ext <<_ACEOF | |
6879 | /* end confdefs.h. */ | |
7862d3a8 AS |
6880 | $ac_includes_default |
6881 | #if HAVE_SYS_SOCKET_H | |
6882 | #include <sys/socket.h> | |
6883 | #endif | |
6884 | #if HAVE_NET_IF_H | |
96f3a036 | 6885 | #include <net/if.h> |
7862d3a8 | 6886 | #endif |
96f3a036 DL |
6887 | |
6888 | int | |
6889 | main () | |
6890 | { | |
6891 | static struct ifreq ac_aggr; | |
6892 | if (ac_aggr.ifr_flags) | |
6893 | return 0; | |
6894 | ; | |
6895 | return 0; | |
6896 | } | |
6897 | _ACEOF | |
6898 | rm -f conftest.$ac_objext | |
6899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6900 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6901 | ac_status=$? |
35996d22 AS |
6902 | grep -v '^ *+' conftest.er1 >conftest.err |
6903 | rm -f conftest.er1 | |
6904 | cat conftest.err >&5 | |
96f3a036 DL |
6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6906 | (exit $ac_status); } && | |
35996d22 AS |
6907 | { ac_try='test -z "$ac_c_werror_flag" |
6908 | || test ! -s conftest.err' | |
6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6910 | (eval $ac_try) 2>&5 | |
6911 | ac_status=$? | |
6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6913 | (exit $ac_status); }; } && | |
6914 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6916 | (eval $ac_try) 2>&5 | |
6917 | ac_status=$? | |
6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6919 | (exit $ac_status); }; }; then | |
6920 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6921 | else | |
6922 | echo "$as_me: failed program was:" >&5 | |
6923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6924 | ||
6925 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6926 | /* confdefs.h. */ |
6927 | _ACEOF | |
6928 | cat confdefs.h >>conftest.$ac_ext | |
6929 | cat >>conftest.$ac_ext <<_ACEOF | |
6930 | /* end confdefs.h. */ | |
7862d3a8 AS |
6931 | $ac_includes_default |
6932 | #if HAVE_SYS_SOCKET_H | |
6933 | #include <sys/socket.h> | |
6934 | #endif | |
6935 | #if HAVE_NET_IF_H | |
96f3a036 | 6936 | #include <net/if.h> |
7862d3a8 | 6937 | #endif |
96f3a036 DL |
6938 | |
6939 | int | |
6940 | main () | |
6941 | { | |
6942 | static struct ifreq ac_aggr; | |
6943 | if (sizeof ac_aggr.ifr_flags) | |
6944 | return 0; | |
6945 | ; | |
6946 | return 0; | |
6947 | } | |
6948 | _ACEOF | |
6949 | rm -f conftest.$ac_objext | |
6950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6951 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6952 | ac_status=$? |
35996d22 AS |
6953 | grep -v '^ *+' conftest.er1 >conftest.err |
6954 | rm -f conftest.er1 | |
6955 | cat conftest.err >&5 | |
96f3a036 DL |
6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6957 | (exit $ac_status); } && | |
35996d22 AS |
6958 | { ac_try='test -z "$ac_c_werror_flag" |
6959 | || test ! -s conftest.err' | |
6960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6961 | (eval $ac_try) 2>&5 | |
6962 | ac_status=$? | |
6963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6964 | (exit $ac_status); }; } && | |
6965 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6967 | (eval $ac_try) 2>&5 | |
6968 | ac_status=$? | |
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6970 | (exit $ac_status); }; }; then | |
6971 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6972 | else | |
6973 | echo "$as_me: failed program was:" >&5 | |
6974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6975 | ||
6976 | ac_cv_member_struct_ifreq_ifr_flags=no | |
6977 | fi | |
35996d22 | 6978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 6979 | fi |
35996d22 | 6980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
6981 | fi |
6982 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
6983 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 | |
6984 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
6985 | ||
6986 | cat >>confdefs.h <<_ACEOF | |
6987 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
6988 | _ACEOF | |
6989 | ||
6990 | ||
6991 | fi | |
6992 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | |
6993 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6 | |
6994 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6996 | else | |
6997 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6998 | /* confdefs.h. */ |
6999 | _ACEOF | |
7000 | cat confdefs.h >>conftest.$ac_ext | |
7001 | cat >>conftest.$ac_ext <<_ACEOF | |
7002 | /* end confdefs.h. */ | |
7862d3a8 AS |
7003 | $ac_includes_default |
7004 | #if HAVE_SYS_SOCKET_H | |
7005 | #include <sys/socket.h> | |
7006 | #endif | |
7007 | #if HAVE_NET_IF_H | |
96f3a036 | 7008 | #include <net/if.h> |
7862d3a8 | 7009 | #endif |
96f3a036 DL |
7010 | |
7011 | int | |
7012 | main () | |
7013 | { | |
7014 | static struct ifreq ac_aggr; | |
7015 | if (ac_aggr.ifr_hwaddr) | |
7016 | return 0; | |
7017 | ; | |
7018 | return 0; | |
7019 | } | |
7020 | _ACEOF | |
7021 | rm -f conftest.$ac_objext | |
7022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7023 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7024 | ac_status=$? |
35996d22 AS |
7025 | grep -v '^ *+' conftest.er1 >conftest.err |
7026 | rm -f conftest.er1 | |
7027 | cat conftest.err >&5 | |
96f3a036 DL |
7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7029 | (exit $ac_status); } && | |
35996d22 AS |
7030 | { ac_try='test -z "$ac_c_werror_flag" |
7031 | || test ! -s conftest.err' | |
7032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7033 | (eval $ac_try) 2>&5 | |
7034 | ac_status=$? | |
7035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7036 | (exit $ac_status); }; } && | |
7037 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7039 | (eval $ac_try) 2>&5 | |
7040 | ac_status=$? | |
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7042 | (exit $ac_status); }; }; then | |
7043 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7044 | else | |
7045 | echo "$as_me: failed program was:" >&5 | |
7046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7047 | ||
7048 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7049 | /* confdefs.h. */ |
7050 | _ACEOF | |
7051 | cat confdefs.h >>conftest.$ac_ext | |
7052 | cat >>conftest.$ac_ext <<_ACEOF | |
7053 | /* end confdefs.h. */ | |
7862d3a8 AS |
7054 | $ac_includes_default |
7055 | #if HAVE_SYS_SOCKET_H | |
7056 | #include <sys/socket.h> | |
7057 | #endif | |
7058 | #if HAVE_NET_IF_H | |
96f3a036 | 7059 | #include <net/if.h> |
7862d3a8 | 7060 | #endif |
96f3a036 DL |
7061 | |
7062 | int | |
7063 | main () | |
7064 | { | |
7065 | static struct ifreq ac_aggr; | |
7066 | if (sizeof ac_aggr.ifr_hwaddr) | |
7067 | return 0; | |
7068 | ; | |
7069 | return 0; | |
7070 | } | |
7071 | _ACEOF | |
7072 | rm -f conftest.$ac_objext | |
7073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7074 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7075 | ac_status=$? |
35996d22 AS |
7076 | grep -v '^ *+' conftest.er1 >conftest.err |
7077 | rm -f conftest.er1 | |
7078 | cat conftest.err >&5 | |
96f3a036 DL |
7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7080 | (exit $ac_status); } && | |
35996d22 AS |
7081 | { ac_try='test -z "$ac_c_werror_flag" |
7082 | || test ! -s conftest.err' | |
7083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7084 | (eval $ac_try) 2>&5 | |
7085 | ac_status=$? | |
7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7087 | (exit $ac_status); }; } && | |
7088 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7090 | (eval $ac_try) 2>&5 | |
7091 | ac_status=$? | |
7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7093 | (exit $ac_status); }; }; then | |
7094 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7095 | else | |
7096 | echo "$as_me: failed program was:" >&5 | |
7097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7098 | ||
7099 | ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
7100 | fi | |
35996d22 | 7101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7102 | fi |
35996d22 | 7103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7104 | fi |
7105 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
7106 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 | |
7107 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
7108 | ||
7109 | cat >>confdefs.h <<_ACEOF | |
7110 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
7111 | _ACEOF | |
7112 | ||
7113 | ||
7114 | fi | |
7115 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | |
7116 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6 | |
7117 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
7118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7119 | else | |
7120 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7121 | /* confdefs.h. */ |
7122 | _ACEOF | |
7123 | cat confdefs.h >>conftest.$ac_ext | |
7124 | cat >>conftest.$ac_ext <<_ACEOF | |
7125 | /* end confdefs.h. */ | |
7862d3a8 AS |
7126 | $ac_includes_default |
7127 | #if HAVE_SYS_SOCKET_H | |
7128 | #include <sys/socket.h> | |
7129 | #endif | |
7130 | #if HAVE_NET_IF_H | |
96f3a036 | 7131 | #include <net/if.h> |
7862d3a8 | 7132 | #endif |
96f3a036 DL |
7133 | |
7134 | int | |
7135 | main () | |
7136 | { | |
7137 | static struct ifreq ac_aggr; | |
7138 | if (ac_aggr.ifr_netmask) | |
7139 | return 0; | |
7140 | ; | |
7141 | return 0; | |
7142 | } | |
7143 | _ACEOF | |
7144 | rm -f conftest.$ac_objext | |
7145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7146 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7147 | ac_status=$? |
35996d22 AS |
7148 | grep -v '^ *+' conftest.er1 >conftest.err |
7149 | rm -f conftest.er1 | |
7150 | cat conftest.err >&5 | |
96f3a036 DL |
7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7152 | (exit $ac_status); } && | |
35996d22 AS |
7153 | { ac_try='test -z "$ac_c_werror_flag" |
7154 | || test ! -s conftest.err' | |
7155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7156 | (eval $ac_try) 2>&5 | |
7157 | ac_status=$? | |
7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7159 | (exit $ac_status); }; } && | |
7160 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7162 | (eval $ac_try) 2>&5 | |
7163 | ac_status=$? | |
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7165 | (exit $ac_status); }; }; then | |
7166 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7167 | else | |
7168 | echo "$as_me: failed program was:" >&5 | |
7169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7170 | ||
7171 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7172 | /* confdefs.h. */ |
7173 | _ACEOF | |
7174 | cat confdefs.h >>conftest.$ac_ext | |
7175 | cat >>conftest.$ac_ext <<_ACEOF | |
7176 | /* end confdefs.h. */ | |
7862d3a8 AS |
7177 | $ac_includes_default |
7178 | #if HAVE_SYS_SOCKET_H | |
7179 | #include <sys/socket.h> | |
7180 | #endif | |
7181 | #if HAVE_NET_IF_H | |
96f3a036 | 7182 | #include <net/if.h> |
7862d3a8 | 7183 | #endif |
96f3a036 DL |
7184 | |
7185 | int | |
7186 | main () | |
7187 | { | |
7188 | static struct ifreq ac_aggr; | |
7189 | if (sizeof ac_aggr.ifr_netmask) | |
7190 | return 0; | |
7191 | ; | |
7192 | return 0; | |
7193 | } | |
7194 | _ACEOF | |
7195 | rm -f conftest.$ac_objext | |
7196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7197 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7198 | ac_status=$? |
35996d22 AS |
7199 | grep -v '^ *+' conftest.er1 >conftest.err |
7200 | rm -f conftest.er1 | |
7201 | cat conftest.err >&5 | |
96f3a036 DL |
7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7203 | (exit $ac_status); } && | |
35996d22 AS |
7204 | { ac_try='test -z "$ac_c_werror_flag" |
7205 | || test ! -s conftest.err' | |
7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7207 | (eval $ac_try) 2>&5 | |
7208 | ac_status=$? | |
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7210 | (exit $ac_status); }; } && | |
7211 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7213 | (eval $ac_try) 2>&5 | |
7214 | ac_status=$? | |
7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7216 | (exit $ac_status); }; }; then | |
7217 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7218 | else | |
7219 | echo "$as_me: failed program was:" >&5 | |
7220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7221 | ||
7222 | ac_cv_member_struct_ifreq_ifr_netmask=no | |
7223 | fi | |
35996d22 | 7224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7225 | fi |
35996d22 | 7226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7227 | fi |
7228 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
7229 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 | |
7230 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
7231 | ||
7232 | cat >>confdefs.h <<_ACEOF | |
7233 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
7234 | _ACEOF | |
7235 | ||
7236 | ||
7237 | fi | |
7238 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
7239 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6 | |
7240 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7242 | else | |
7243 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7244 | /* confdefs.h. */ |
7245 | _ACEOF | |
7246 | cat confdefs.h >>conftest.$ac_ext | |
7247 | cat >>conftest.$ac_ext <<_ACEOF | |
7248 | /* end confdefs.h. */ | |
7862d3a8 AS |
7249 | $ac_includes_default |
7250 | #if HAVE_SYS_SOCKET_H | |
7251 | #include <sys/socket.h> | |
7252 | #endif | |
7253 | #if HAVE_NET_IF_H | |
96f3a036 | 7254 | #include <net/if.h> |
7862d3a8 | 7255 | #endif |
96f3a036 DL |
7256 | |
7257 | int | |
7258 | main () | |
7259 | { | |
7260 | static struct ifreq ac_aggr; | |
7261 | if (ac_aggr.ifr_broadaddr) | |
7262 | return 0; | |
7263 | ; | |
7264 | return 0; | |
7265 | } | |
7266 | _ACEOF | |
7267 | rm -f conftest.$ac_objext | |
7268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7269 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7270 | ac_status=$? |
35996d22 AS |
7271 | grep -v '^ *+' conftest.er1 >conftest.err |
7272 | rm -f conftest.er1 | |
7273 | cat conftest.err >&5 | |
96f3a036 DL |
7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7275 | (exit $ac_status); } && | |
35996d22 AS |
7276 | { ac_try='test -z "$ac_c_werror_flag" |
7277 | || test ! -s conftest.err' | |
7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7279 | (eval $ac_try) 2>&5 | |
7280 | ac_status=$? | |
7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7282 | (exit $ac_status); }; } && | |
7283 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7285 | (eval $ac_try) 2>&5 | |
7286 | ac_status=$? | |
7287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7288 | (exit $ac_status); }; }; then | |
7289 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7290 | else | |
7291 | echo "$as_me: failed program was:" >&5 | |
7292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7293 | ||
7294 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7295 | /* confdefs.h. */ |
7296 | _ACEOF | |
7297 | cat confdefs.h >>conftest.$ac_ext | |
7298 | cat >>conftest.$ac_ext <<_ACEOF | |
7299 | /* end confdefs.h. */ | |
7862d3a8 AS |
7300 | $ac_includes_default |
7301 | #if HAVE_SYS_SOCKET_H | |
7302 | #include <sys/socket.h> | |
7303 | #endif | |
7304 | #if HAVE_NET_IF_H | |
96f3a036 | 7305 | #include <net/if.h> |
7862d3a8 | 7306 | #endif |
96f3a036 DL |
7307 | |
7308 | int | |
7309 | main () | |
7310 | { | |
7311 | static struct ifreq ac_aggr; | |
7312 | if (sizeof ac_aggr.ifr_broadaddr) | |
7313 | return 0; | |
7314 | ; | |
7315 | return 0; | |
7316 | } | |
7317 | _ACEOF | |
7318 | rm -f conftest.$ac_objext | |
7319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7320 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7321 | ac_status=$? |
35996d22 AS |
7322 | grep -v '^ *+' conftest.er1 >conftest.err |
7323 | rm -f conftest.er1 | |
7324 | cat conftest.err >&5 | |
96f3a036 DL |
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7326 | (exit $ac_status); } && | |
35996d22 AS |
7327 | { ac_try='test -z "$ac_c_werror_flag" |
7328 | || test ! -s conftest.err' | |
7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7330 | (eval $ac_try) 2>&5 | |
7331 | ac_status=$? | |
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7333 | (exit $ac_status); }; } && | |
7334 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7336 | (eval $ac_try) 2>&5 | |
7337 | ac_status=$? | |
7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7339 | (exit $ac_status); }; }; then | |
7340 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7341 | else | |
7342 | echo "$as_me: failed program was:" >&5 | |
7343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7344 | ||
7345 | ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
7346 | fi | |
35996d22 | 7347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7348 | fi |
35996d22 | 7349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7350 | fi |
7351 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
7352 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 | |
7353 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
7354 | ||
7355 | cat >>confdefs.h <<_ACEOF | |
7356 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
7357 | _ACEOF | |
7358 | ||
7359 | ||
7360 | fi | |
7361 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
7362 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6 | |
7363 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7365 | else | |
7366 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7367 | /* confdefs.h. */ |
7368 | _ACEOF | |
7369 | cat confdefs.h >>conftest.$ac_ext | |
7370 | cat >>conftest.$ac_ext <<_ACEOF | |
7371 | /* end confdefs.h. */ | |
7862d3a8 AS |
7372 | $ac_includes_default |
7373 | #if HAVE_SYS_SOCKET_H | |
7374 | #include <sys/socket.h> | |
7375 | #endif | |
7376 | #if HAVE_NET_IF_H | |
96f3a036 | 7377 | #include <net/if.h> |
7862d3a8 | 7378 | #endif |
96f3a036 DL |
7379 | |
7380 | int | |
7381 | main () | |
7382 | { | |
7383 | static struct ifreq ac_aggr; | |
7384 | if (ac_aggr.ifr_addr) | |
7385 | return 0; | |
7386 | ; | |
7387 | return 0; | |
7388 | } | |
7389 | _ACEOF | |
7390 | rm -f conftest.$ac_objext | |
7391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7392 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7393 | ac_status=$? |
35996d22 AS |
7394 | grep -v '^ *+' conftest.er1 >conftest.err |
7395 | rm -f conftest.er1 | |
7396 | cat conftest.err >&5 | |
96f3a036 DL |
7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7398 | (exit $ac_status); } && | |
35996d22 AS |
7399 | { ac_try='test -z "$ac_c_werror_flag" |
7400 | || test ! -s conftest.err' | |
7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7402 | (eval $ac_try) 2>&5 | |
7403 | ac_status=$? | |
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7405 | (exit $ac_status); }; } && | |
7406 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7408 | (eval $ac_try) 2>&5 | |
7409 | ac_status=$? | |
7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7411 | (exit $ac_status); }; }; then | |
7412 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7413 | else | |
7414 | echo "$as_me: failed program was:" >&5 | |
7415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7416 | ||
7417 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7418 | /* confdefs.h. */ |
7419 | _ACEOF | |
7420 | cat confdefs.h >>conftest.$ac_ext | |
7421 | cat >>conftest.$ac_ext <<_ACEOF | |
7422 | /* end confdefs.h. */ | |
7862d3a8 AS |
7423 | $ac_includes_default |
7424 | #if HAVE_SYS_SOCKET_H | |
7425 | #include <sys/socket.h> | |
7426 | #endif | |
7427 | #if HAVE_NET_IF_H | |
96f3a036 | 7428 | #include <net/if.h> |
7862d3a8 | 7429 | #endif |
96f3a036 DL |
7430 | |
7431 | int | |
7432 | main () | |
7433 | { | |
7434 | static struct ifreq ac_aggr; | |
7435 | if (sizeof ac_aggr.ifr_addr) | |
7436 | return 0; | |
7437 | ; | |
7438 | return 0; | |
7439 | } | |
7440 | _ACEOF | |
7441 | rm -f conftest.$ac_objext | |
7442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7443 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7444 | ac_status=$? |
35996d22 AS |
7445 | grep -v '^ *+' conftest.er1 >conftest.err |
7446 | rm -f conftest.er1 | |
7447 | cat conftest.err >&5 | |
96f3a036 DL |
7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7449 | (exit $ac_status); } && | |
35996d22 AS |
7450 | { ac_try='test -z "$ac_c_werror_flag" |
7451 | || test ! -s conftest.err' | |
7452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7453 | (eval $ac_try) 2>&5 | |
7454 | ac_status=$? | |
7455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7456 | (exit $ac_status); }; } && | |
7457 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7459 | (eval $ac_try) 2>&5 | |
7460 | ac_status=$? | |
7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7462 | (exit $ac_status); }; }; then | |
7463 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7464 | else | |
7465 | echo "$as_me: failed program was:" >&5 | |
7466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7467 | ||
7468 | ac_cv_member_struct_ifreq_ifr_addr=no | |
7469 | fi | |
35996d22 | 7470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7471 | fi |
35996d22 | 7472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7473 | fi |
7474 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
7475 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 | |
7476 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
7477 | ||
7478 | cat >>confdefs.h <<_ACEOF | |
7479 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
7480 | _ACEOF | |
7481 | ||
7482 | ||
7483 | fi | |
7484 | ||
8799b3e4 | 7485 | |
8799b3e4 | 7486 | |
c0d27fcc | 7487 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
7488 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
7489 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 7490 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7491 | echo "${ECHO_T}yes" >&6 |
7492 | ||
c0d27fcc | 7493 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7494 | #define PROTOTYPES 1 |
c0d27fcc MR |
7495 | _ACEOF |
7496 | ||
7497 | ||
7498 | cat >>confdefs.h <<\_ACEOF | |
7499 | #define __PROTOTYPES 1 | |
7500 | _ACEOF | |
98418dba CW |
7501 | |
7502 | else | |
c0d27fcc | 7503 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7504 | echo "${ECHO_T}no" >&6 |
7505 | fi | |
7506 | ||
c0d27fcc | 7507 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
7508 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
7509 | if test "${ac_cv_c_volatile+set}" = set; then | |
7510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7511 | else | |
7512 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7513 | /* confdefs.h. */ |
7514 | _ACEOF | |
7515 | cat confdefs.h >>conftest.$ac_ext | |
7516 | cat >>conftest.$ac_ext <<_ACEOF | |
7517 | /* end confdefs.h. */ | |
98418dba | 7518 | |
98418dba CW |
7519 | int |
7520 | main () | |
7521 | { | |
7522 | ||
7523 | volatile int x; | |
7524 | int * volatile y; | |
7525 | ; | |
7526 | return 0; | |
7527 | } | |
7528 | _ACEOF | |
7529 | rm -f conftest.$ac_objext | |
c0d27fcc | 7530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7531 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7532 | ac_status=$? |
35996d22 AS |
7533 | grep -v '^ *+' conftest.er1 >conftest.err |
7534 | rm -f conftest.er1 | |
7535 | cat conftest.err >&5 | |
c0d27fcc | 7536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7537 | (exit $ac_status); } && |
35996d22 AS |
7538 | { ac_try='test -z "$ac_c_werror_flag" |
7539 | || test ! -s conftest.err' | |
7540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7541 | (eval $ac_try) 2>&5 | |
7542 | ac_status=$? | |
7543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7544 | (exit $ac_status); }; } && | |
7545 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7547 | (eval $ac_try) 2>&5 |
7548 | ac_status=$? | |
c0d27fcc | 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7550 | (exit $ac_status); }; }; then |
7551 | ac_cv_c_volatile=yes | |
7552 | else | |
7553 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
7555 | ||
98418dba CW |
7556 | ac_cv_c_volatile=no |
7557 | fi | |
35996d22 | 7558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7559 | fi |
c0d27fcc | 7560 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
7561 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
7562 | if test $ac_cv_c_volatile = no; then | |
7563 | ||
c0d27fcc | 7564 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7565 | #define volatile |
c0d27fcc | 7566 | _ACEOF |
98418dba CW |
7567 | |
7568 | fi | |
7569 | ||
c0d27fcc | 7570 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
7571 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7572 | if test "${ac_cv_c_const+set}" = set; then | |
7573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7574 | else | |
7575 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7576 | /* confdefs.h. */ |
7577 | _ACEOF | |
7578 | cat confdefs.h >>conftest.$ac_ext | |
7579 | cat >>conftest.$ac_ext <<_ACEOF | |
7580 | /* end confdefs.h. */ | |
98418dba | 7581 | |
98418dba CW |
7582 | int |
7583 | main () | |
7584 | { | |
7585 | /* FIXME: Include the comments suggested by Paul. */ | |
7586 | #ifndef __cplusplus | |
7587 | /* Ultrix mips cc rejects this. */ | |
7588 | typedef int charset[2]; | |
7589 | const charset x; | |
7590 | /* SunOS 4.1.1 cc rejects this. */ | |
7591 | char const *const *ccp; | |
7592 | char **p; | |
7593 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7594 | struct point {int x, y;}; | |
7595 | static struct point const zero = {0,0}; | |
7596 | /* AIX XL C 1.02.0.0 rejects this. | |
7597 | It does not let you subtract one const X* pointer from another in | |
7598 | an arm of an if-expression whose if-part is not a constant | |
7599 | expression */ | |
7600 | const char *g = "string"; | |
7601 | ccp = &g + (g ? g-g : 0); | |
7602 | /* HPUX 7.0 cc rejects these. */ | |
7603 | ++ccp; | |
7604 | p = (char**) ccp; | |
7605 | ccp = (char const *const *) p; | |
7606 | { /* SCO 3.2v4 cc rejects this. */ | |
7607 | char *t; | |
7608 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7609 | ||
7610 | *t++ = 0; | |
7611 | } | |
7612 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7613 | int x[] = {25, 17}; | |
7614 | const int *foo = &x[0]; | |
7615 | ++foo; | |
7616 | } | |
7617 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7618 | typedef const int *iptr; | |
7619 | iptr p = 0; | |
7620 | ++p; | |
7621 | } | |
7622 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7623 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7624 | struct s { int j; const int *ap[3]; }; | |
7625 | struct s *b; b->j = 5; | |
7626 | } | |
7627 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7628 | const int foo = 10; | |
7629 | } | |
7630 | #endif | |
7631 | ||
7632 | ; | |
7633 | return 0; | |
7634 | } | |
7635 | _ACEOF | |
7636 | rm -f conftest.$ac_objext | |
c0d27fcc | 7637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7638 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7639 | ac_status=$? |
35996d22 AS |
7640 | grep -v '^ *+' conftest.er1 >conftest.err |
7641 | rm -f conftest.er1 | |
7642 | cat conftest.err >&5 | |
c0d27fcc | 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7644 | (exit $ac_status); } && |
35996d22 AS |
7645 | { ac_try='test -z "$ac_c_werror_flag" |
7646 | || test ! -s conftest.err' | |
7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7648 | (eval $ac_try) 2>&5 | |
7649 | ac_status=$? | |
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7651 | (exit $ac_status); }; } && | |
7652 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7654 | (eval $ac_try) 2>&5 |
7655 | ac_status=$? | |
c0d27fcc | 7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7657 | (exit $ac_status); }; }; then |
7658 | ac_cv_c_const=yes | |
7659 | else | |
7660 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7661 | sed 's/^/| /' conftest.$ac_ext >&5 |
7662 | ||
98418dba CW |
7663 | ac_cv_c_const=no |
7664 | fi | |
35996d22 | 7665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7666 | fi |
c0d27fcc | 7667 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
7668 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
7669 | if test $ac_cv_c_const = no; then | |
7670 | ||
c0d27fcc | 7671 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7672 | #define const |
c0d27fcc | 7673 | _ACEOF |
98418dba CW |
7674 | |
7675 | fi | |
7676 | ||
c0d27fcc | 7677 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
7678 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
7679 | if test "${emacs_cv_void_star+set}" = set; then | |
7680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7681 | else | |
7682 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7683 | /* confdefs.h. */ |
7684 | _ACEOF | |
7685 | cat confdefs.h >>conftest.$ac_ext | |
7686 | cat >>conftest.$ac_ext <<_ACEOF | |
7687 | /* end confdefs.h. */ | |
98418dba | 7688 | |
98418dba CW |
7689 | int |
7690 | main () | |
7691 | { | |
7692 | void * foo; | |
7693 | ; | |
7694 | return 0; | |
7695 | } | |
7696 | _ACEOF | |
7697 | rm -f conftest.$ac_objext | |
c0d27fcc | 7698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7699 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7700 | ac_status=$? |
35996d22 AS |
7701 | grep -v '^ *+' conftest.er1 >conftest.err |
7702 | rm -f conftest.er1 | |
7703 | cat conftest.err >&5 | |
c0d27fcc | 7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7705 | (exit $ac_status); } && |
35996d22 AS |
7706 | { ac_try='test -z "$ac_c_werror_flag" |
7707 | || test ! -s conftest.err' | |
7708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7709 | (eval $ac_try) 2>&5 | |
7710 | ac_status=$? | |
7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7712 | (exit $ac_status); }; } && | |
7713 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7715 | (eval $ac_try) 2>&5 |
7716 | ac_status=$? | |
c0d27fcc | 7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7718 | (exit $ac_status); }; }; then |
7719 | emacs_cv_void_star=yes | |
7720 | else | |
7721 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7722 | sed 's/^/| /' conftest.$ac_ext >&5 |
7723 | ||
98418dba CW |
7724 | emacs_cv_void_star=no |
7725 | fi | |
35996d22 | 7726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7727 | fi |
c0d27fcc | 7728 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
7729 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
7730 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 7731 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7732 | #define POINTER_TYPE void |
c0d27fcc | 7733 | _ACEOF |
98418dba CW |
7734 | |
7735 | else | |
c0d27fcc | 7736 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7737 | #define POINTER_TYPE char |
c0d27fcc | 7738 | _ACEOF |
98418dba CW |
7739 | |
7740 | fi | |
7741 | ||
c0d27fcc | 7742 | |
cd958eb3 | 7743 | |
19650fd6 AS |
7744 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7745 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35996d22 | 7746 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
98418dba CW |
7747 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
7748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7749 | else | |
c0d27fcc | 7750 | cat >conftest.make <<\_ACEOF |
98418dba | 7751 | all: |
19650fd6 | 7752 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 7753 | _ACEOF |
98418dba CW |
7754 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7755 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
7756 | if test -n "$ac_maketemp"; then | |
7757 | eval ac_cv_prog_make_${ac_make}_set=yes | |
7758 | else | |
7759 | eval ac_cv_prog_make_${ac_make}_set=no | |
7760 | fi | |
7761 | rm -f conftest.make | |
7762 | fi | |
7763 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 7764 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7765 | echo "${ECHO_T}yes" >&6 |
7766 | SET_MAKE= | |
7767 | else | |
c0d27fcc | 7768 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7769 | echo "${ECHO_T}no" >&6 |
7770 | SET_MAKE="MAKE=${MAKE-make}" | |
7771 | fi | |
7772 | ||
c0d27fcc MR |
7773 | |
7774 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
7775 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
7776 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7778 | else | |
7779 | ac_cv_sys_long_file_names=yes | |
7780 | # Test for long file names in all the places we know might matter: | |
7781 | # . the current directory, where building will happen | |
7782 | # $prefix/lib where we will be installing things | |
7783 | # $exec_prefix/lib likewise | |
7784 | # eval it to expand exec_prefix. | |
7785 | # $TMPDIR if set, where it might want to write temporary files | |
7786 | # if $TMPDIR is not set: | |
7787 | # /tmp where it might want to write temporary files | |
7788 | # /var/tmp likewise | |
7789 | # /usr/tmp likewise | |
7790 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
7791 | ac_tmpdirs=$TMPDIR | |
7792 | else | |
7793 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
7794 | fi | |
7795 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
7796 | test -d $ac_dir || continue | |
7797 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
7798 | ac_xdir=$ac_dir/cf$$ | |
7799 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
7800 | ac_tf1=$ac_xdir/conftest9012345 | |
7801 | ac_tf2=$ac_xdir/conftest9012346 | |
7802 | (echo 1 >$ac_tf1) 2>/dev/null | |
7803 | (echo 2 >$ac_tf2) 2>/dev/null | |
7804 | ac_val=`cat $ac_tf1 2>/dev/null` | |
7805 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
7806 | ac_cv_sys_long_file_names=no | |
7807 | rm -rf $ac_xdir 2>/dev/null | |
7808 | break | |
7809 | fi | |
7810 | rm -rf $ac_xdir 2>/dev/null | |
7811 | done | |
7812 | fi | |
c0d27fcc | 7813 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
7814 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
7815 | if test $ac_cv_sys_long_file_names = yes; then | |
7816 | ||
c0d27fcc | 7817 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7818 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 7819 | _ACEOF |
98418dba CW |
7820 | |
7821 | fi | |
7822 | ||
c0d27fcc | 7823 | |
98418dba CW |
7824 | #### Choose a window system. |
7825 | ||
c0d27fcc | 7826 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
7827 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
7828 | ||
c0d27fcc | 7829 | |
98418dba CW |
7830 | # Check whether --with-x or --without-x was given. |
7831 | if test "${with_x+set}" = set; then | |
7832 | withval="$with_x" | |
7833 | ||
7834 | fi; | |
7835 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7836 | if test "x$with_x" = xno; then | |
7837 | # The user explicitly disabled X. | |
7838 | have_x=disabled | |
7839 | else | |
7840 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7841 | # Both variables are already set. | |
7842 | have_x=yes | |
7843 | else | |
7844 | if test "${ac_cv_have_x+set}" = set; then | |
7845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7846 | else | |
7847 | # One or both of the vars are not set, and there is no cached value. | |
7848 | ac_x_includes=no ac_x_libraries=no | |
7849 | rm -fr conftest.dir | |
7850 | if mkdir conftest.dir; then | |
7851 | cd conftest.dir | |
7852 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 7853 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
7854 | acfindx: |
7855 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 7856 | _ACEOF |
98418dba CW |
7857 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
7858 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7859 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7860 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7861 | for ac_extension in a so sl; do | |
7862 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
35996d22 AS |
7863 | test -f $ac_im_libdir/libX11.$ac_extension; then |
7864 | ac_im_usrlibdir=$ac_im_libdir; break | |
98418dba CW |
7865 | fi |
7866 | done | |
7867 | # Screen out bogus values from the imake configuration. They are | |
7868 | # bogus both because they are the default anyway, and because | |
7869 | # using them would break gcc on systems where it needs fixed includes. | |
7870 | case $ac_im_incroot in | |
7871 | /usr/include) ;; | |
7872 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
7873 | esac | |
7874 | case $ac_im_usrlibdir in | |
7875 | /usr/lib | /lib) ;; | |
7876 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
7877 | esac | |
7878 | fi | |
7879 | cd .. | |
7880 | rm -fr conftest.dir | |
7881 | fi | |
7882 | ||
7883 | # Standard set of common directories for X headers. | |
7884 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7885 | ac_x_header_dirs=' | |
7886 | /usr/X11/include | |
7887 | /usr/X11R6/include | |
7888 | /usr/X11R5/include | |
7889 | /usr/X11R4/include | |
7890 | ||
7891 | /usr/include/X11 | |
7892 | /usr/include/X11R6 | |
7893 | /usr/include/X11R5 | |
7894 | /usr/include/X11R4 | |
7895 | ||
7896 | /usr/local/X11/include | |
7897 | /usr/local/X11R6/include | |
7898 | /usr/local/X11R5/include | |
7899 | /usr/local/X11R4/include | |
7900 | ||
7901 | /usr/local/include/X11 | |
7902 | /usr/local/include/X11R6 | |
7903 | /usr/local/include/X11R5 | |
7904 | /usr/local/include/X11R4 | |
7905 | ||
7906 | /usr/X386/include | |
7907 | /usr/x386/include | |
7908 | /usr/XFree86/include/X11 | |
7909 | ||
7910 | /usr/include | |
7911 | /usr/local/include | |
7912 | /usr/unsupported/include | |
7913 | /usr/athena/include | |
7914 | /usr/local/x11r5/include | |
7915 | /usr/lpp/Xamples/include | |
7916 | ||
7917 | /usr/openwin/include | |
7918 | /usr/openwin/share/include' | |
7919 | ||
7920 | if test "$ac_x_includes" = no; then | |
7921 | # Guess where to find include files, by looking for Intrinsic.h. | |
7922 | # First, try using that file with no special directory specified. | |
7923 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7924 | /* confdefs.h. */ |
7925 | _ACEOF | |
7926 | cat confdefs.h >>conftest.$ac_ext | |
7927 | cat >>conftest.$ac_ext <<_ACEOF | |
7928 | /* end confdefs.h. */ | |
98418dba CW |
7929 | #include <X11/Intrinsic.h> |
7930 | _ACEOF | |
c0d27fcc | 7931 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7932 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7933 | ac_status=$? | |
6bae0ccf | 7934 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7935 | rm -f conftest.er1 |
7936 | cat conftest.err >&5 | |
c0d27fcc | 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7938 | (exit $ac_status); } >/dev/null; then |
7939 | if test -s conftest.err; then | |
7940 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 7941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
7942 | else |
7943 | ac_cpp_err= | |
7944 | fi | |
7945 | else | |
7946 | ac_cpp_err=yes | |
7947 | fi | |
7948 | if test -z "$ac_cpp_err"; then | |
7949 | # We can compile using X headers with no special include directory. | |
7950 | ac_x_includes= | |
7951 | else | |
7952 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7953 | sed 's/^/| /' conftest.$ac_ext >&5 |
7954 | ||
98418dba CW |
7955 | for ac_dir in $ac_x_header_dirs; do |
7956 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
7957 | ac_x_includes=$ac_dir | |
7958 | break | |
7959 | fi | |
7960 | done | |
7961 | fi | |
7962 | rm -f conftest.err conftest.$ac_ext | |
7963 | fi # $ac_x_includes = no | |
7964 | ||
7965 | if test "$ac_x_libraries" = no; then | |
7966 | # Check for the libraries. | |
7967 | # See if we find them without any special options. | |
7968 | # Don't add to $LIBS permanently. | |
7969 | ac_save_LIBS=$LIBS | |
7970 | LIBS="-lXt $LIBS" | |
7971 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7972 | /* confdefs.h. */ |
7973 | _ACEOF | |
7974 | cat confdefs.h >>conftest.$ac_ext | |
7975 | cat >>conftest.$ac_ext <<_ACEOF | |
7976 | /* end confdefs.h. */ | |
98418dba | 7977 | #include <X11/Intrinsic.h> |
98418dba CW |
7978 | int |
7979 | main () | |
7980 | { | |
7981 | XtMalloc (0) | |
7982 | ; | |
7983 | return 0; | |
7984 | } | |
7985 | _ACEOF | |
7986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 7988 | (eval $ac_link) 2>conftest.er1 |
98418dba | 7989 | ac_status=$? |
35996d22 AS |
7990 | grep -v '^ *+' conftest.er1 >conftest.err |
7991 | rm -f conftest.er1 | |
7992 | cat conftest.err >&5 | |
c0d27fcc | 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7994 | (exit $ac_status); } && |
35996d22 AS |
7995 | { ac_try='test -z "$ac_c_werror_flag" |
7996 | || test ! -s conftest.err' | |
7997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7998 | (eval $ac_try) 2>&5 | |
7999 | ac_status=$? | |
8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8001 | (exit $ac_status); }; } && | |
8002 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8004 | (eval $ac_try) 2>&5 |
8005 | ac_status=$? | |
c0d27fcc | 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8007 | (exit $ac_status); }; }; then |
8008 | LIBS=$ac_save_LIBS | |
8009 | # We can link X programs with no special library path. | |
8010 | ac_x_libraries= | |
8011 | else | |
8012 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
8014 | ||
98418dba CW |
8015 | LIBS=$ac_save_LIBS |
8016 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
8017 | do | |
8018 | # Don't even attempt the hair of trying to link an X program! | |
8019 | for ac_extension in a so sl; do | |
8020 | if test -r $ac_dir/libXt.$ac_extension; then | |
8021 | ac_x_libraries=$ac_dir | |
8022 | break 2 | |
8023 | fi | |
8024 | done | |
8025 | done | |
8026 | fi | |
35996d22 AS |
8027 | rm -f conftest.err conftest.$ac_objext \ |
8028 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8029 | fi # $ac_x_libraries = no |
8030 | ||
8031 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
8032 | # Didn't find X anywhere. Cache the known absence of X. | |
8033 | ac_cv_have_x="have_x=no" | |
8034 | else | |
8035 | # Record where we found X for the cache. | |
8036 | ac_cv_have_x="have_x=yes \ | |
35996d22 | 8037 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
98418dba CW |
8038 | fi |
8039 | fi | |
8040 | ||
8041 | fi | |
8042 | eval "$ac_cv_have_x" | |
8043 | fi # $with_x != no | |
8044 | ||
8045 | if test "$have_x" != yes; then | |
c0d27fcc | 8046 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
8047 | echo "${ECHO_T}$have_x" >&6 |
8048 | no_x=yes | |
8049 | else | |
8050 | # If each of the values was on the command line, it overrides each guess. | |
8051 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8052 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8053 | # Update the cache value to reflect the command line values. | |
8054 | ac_cv_have_x="have_x=yes \ | |
8055 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c0d27fcc | 8056 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
8057 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
8058 | fi | |
8059 | ||
8060 | if test "$no_x" = yes; then | |
8061 | window_system=none | |
8062 | else | |
8063 | window_system=x11 | |
8064 | fi | |
8065 | ||
8066 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
8067 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
8068 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
8069 | x_default_search_path="" | |
8070 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
8071 | x_search_path="\ | |
8072 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
8073 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
8074 | ${x_library}/X11/%T/%N%C%S:\ | |
8075 | ${x_library}/X11/%L/%T/%N%S:\ | |
8076 | ${x_library}/X11/%l/%T/%N%S:\ | |
8077 | ${x_library}/X11/%T/%N%S" | |
8078 | if test x"${x_default_search_path}" = x; then | |
8079 | x_default_search_path=${x_search_path} | |
8080 | else | |
8081 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
8082 | fi | |
8083 | done | |
8084 | fi | |
8085 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
8086 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
8087 | fi | |
8088 | ||
8089 | if test x"${x_includes}" = x; then | |
8090 | bitmapdir=/usr/include/X11/bitmaps | |
8091 | else | |
8092 | # accumulate include directories that have X11 bitmap subdirectories | |
8093 | bmd_acc="dummyval" | |
8094 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
8095 | if test -d "${bmd}/X11/bitmaps"; then | |
8096 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
8097 | fi | |
8098 | if test -d "${bmd}/bitmaps"; then | |
8099 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
8100 | fi | |
8101 | done | |
8102 | if test ${bmd_acc} != "dummyval"; then | |
8103 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
8104 | fi | |
8105 | fi | |
8106 | ||
8107 | case "${window_system}" in | |
8108 | x11 ) | |
8109 | HAVE_X_WINDOWS=yes | |
8110 | HAVE_X11=yes | |
8111 | case "${with_x_toolkit}" in | |
8112 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
8113 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
8114 | gtk ) with_gtk=yes |
8115 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
8116 | no ) USE_X_TOOLKIT=none ;; |
8117 | * ) USE_X_TOOLKIT=maybe ;; | |
8118 | esac | |
8119 | ;; | |
8120 | none ) | |
8121 | HAVE_X_WINDOWS=no | |
8122 | HAVE_X11=no | |
8123 | USE_X_TOOLKIT=none | |
8124 | ;; | |
8125 | esac | |
8126 | ||
8127 | ### If we're using X11, we should use the X menu package. | |
8128 | HAVE_MENUS=no | |
8129 | case ${HAVE_X11} in | |
8130 | yes ) HAVE_MENUS=yes ;; | |
8131 | esac | |
8132 | ||
8133 | if test "${opsys}" = "hpux9"; then | |
8134 | case "${x_libraries}" in | |
8135 | *X11R4* ) | |
8136 | opsysfile="s/hpux9-x11r4.h" | |
8137 | ;; | |
8138 | esac | |
8139 | fi | |
8140 | ||
8141 | if test "${opsys}" = "hpux9shr"; then | |
8142 | case "${x_libraries}" in | |
8143 | *X11R4* ) | |
8144 | opsysfile="s/hpux9shxr4.h" | |
8145 | ;; | |
8146 | esac | |
8147 | fi | |
8148 | ||
8149 | ### Compute the unexec source name from the object name. | |
8150 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
8151 | ||
8152 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
8153 | # Assume not, until told otherwise. | |
8154 | GNU_MALLOC=yes | |
8155 | doug_lea_malloc=yes | |
c0d27fcc | 8156 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
8157 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
8158 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
8159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8160 | else | |
8161 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8162 | /* confdefs.h. */ |
8163 | _ACEOF | |
8164 | cat confdefs.h >>conftest.$ac_ext | |
8165 | cat >>conftest.$ac_ext <<_ACEOF | |
8166 | /* end confdefs.h. */ | |
35996d22 AS |
8167 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
8168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8169 | #define malloc_get_state innocuous_malloc_get_state | |
8170 | ||
98418dba | 8171 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8172 | which can conflict with char malloc_get_state (); below. |
8173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8174 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8175 | |
19650fd6 AS |
8176 | #ifdef __STDC__ |
8177 | # include <limits.h> | |
8178 | #else | |
8179 | # include <assert.h> | |
8180 | #endif | |
35996d22 AS |
8181 | |
8182 | #undef malloc_get_state | |
8183 | ||
98418dba CW |
8184 | /* Override any gcc2 internal prototype to avoid an error. */ |
8185 | #ifdef __cplusplus | |
8186 | extern "C" | |
19650fd6 | 8187 | { |
98418dba CW |
8188 | #endif |
8189 | /* We use char because int might match the return type of a gcc2 | |
8190 | builtin and then its argument prototype would still apply. */ | |
8191 | char malloc_get_state (); | |
98418dba CW |
8192 | /* The GNU C library defines this for functions which it implements |
8193 | to always fail with ENOSYS. Some functions are actually named | |
8194 | something starting with __ and the normal name is an alias. */ | |
8195 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
8196 | choke me | |
8197 | #else | |
19650fd6 AS |
8198 | char (*f) () = malloc_get_state; |
8199 | #endif | |
8200 | #ifdef __cplusplus | |
8201 | } | |
98418dba CW |
8202 | #endif |
8203 | ||
19650fd6 AS |
8204 | int |
8205 | main () | |
8206 | { | |
8207 | return f != malloc_get_state; | |
98418dba CW |
8208 | ; |
8209 | return 0; | |
8210 | } | |
8211 | _ACEOF | |
8212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8214 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8215 | ac_status=$? |
35996d22 AS |
8216 | grep -v '^ *+' conftest.er1 >conftest.err |
8217 | rm -f conftest.er1 | |
8218 | cat conftest.err >&5 | |
c0d27fcc | 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8220 | (exit $ac_status); } && |
35996d22 AS |
8221 | { ac_try='test -z "$ac_c_werror_flag" |
8222 | || test ! -s conftest.err' | |
8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8224 | (eval $ac_try) 2>&5 | |
8225 | ac_status=$? | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8227 | (exit $ac_status); }; } && | |
8228 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8230 | (eval $ac_try) 2>&5 |
8231 | ac_status=$? | |
c0d27fcc | 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8233 | (exit $ac_status); }; }; then |
8234 | ac_cv_func_malloc_get_state=yes | |
8235 | else | |
8236 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8237 | sed 's/^/| /' conftest.$ac_ext >&5 |
8238 | ||
98418dba CW |
8239 | ac_cv_func_malloc_get_state=no |
8240 | fi | |
35996d22 AS |
8241 | rm -f conftest.err conftest.$ac_objext \ |
8242 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8243 | fi |
c0d27fcc | 8244 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
8245 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
8246 | if test $ac_cv_func_malloc_get_state = yes; then | |
8247 | : | |
8248 | else | |
8249 | doug_lea_malloc=no | |
8250 | fi | |
8251 | ||
c0d27fcc | 8252 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
8253 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
8254 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
8255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8256 | else | |
8257 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8258 | /* confdefs.h. */ |
8259 | _ACEOF | |
8260 | cat confdefs.h >>conftest.$ac_ext | |
8261 | cat >>conftest.$ac_ext <<_ACEOF | |
8262 | /* end confdefs.h. */ | |
35996d22 AS |
8263 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
8264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8265 | #define malloc_set_state innocuous_malloc_set_state | |
8266 | ||
98418dba | 8267 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8268 | which can conflict with char malloc_set_state (); below. |
8269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8270 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8271 | |
19650fd6 AS |
8272 | #ifdef __STDC__ |
8273 | # include <limits.h> | |
8274 | #else | |
8275 | # include <assert.h> | |
8276 | #endif | |
35996d22 AS |
8277 | |
8278 | #undef malloc_set_state | |
8279 | ||
98418dba CW |
8280 | /* Override any gcc2 internal prototype to avoid an error. */ |
8281 | #ifdef __cplusplus | |
8282 | extern "C" | |
19650fd6 | 8283 | { |
98418dba CW |
8284 | #endif |
8285 | /* We use char because int might match the return type of a gcc2 | |
8286 | builtin and then its argument prototype would still apply. */ | |
8287 | char malloc_set_state (); | |
98418dba CW |
8288 | /* The GNU C library defines this for functions which it implements |
8289 | to always fail with ENOSYS. Some functions are actually named | |
8290 | something starting with __ and the normal name is an alias. */ | |
8291 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
8292 | choke me | |
8293 | #else | |
19650fd6 AS |
8294 | char (*f) () = malloc_set_state; |
8295 | #endif | |
8296 | #ifdef __cplusplus | |
8297 | } | |
98418dba CW |
8298 | #endif |
8299 | ||
19650fd6 AS |
8300 | int |
8301 | main () | |
8302 | { | |
8303 | return f != malloc_set_state; | |
98418dba CW |
8304 | ; |
8305 | return 0; | |
8306 | } | |
8307 | _ACEOF | |
8308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8310 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8311 | ac_status=$? |
35996d22 AS |
8312 | grep -v '^ *+' conftest.er1 >conftest.err |
8313 | rm -f conftest.er1 | |
8314 | cat conftest.err >&5 | |
c0d27fcc | 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8316 | (exit $ac_status); } && |
35996d22 AS |
8317 | { ac_try='test -z "$ac_c_werror_flag" |
8318 | || test ! -s conftest.err' | |
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8320 | (eval $ac_try) 2>&5 | |
8321 | ac_status=$? | |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 | (exit $ac_status); }; } && | |
8324 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8326 | (eval $ac_try) 2>&5 |
8327 | ac_status=$? | |
c0d27fcc | 8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8329 | (exit $ac_status); }; }; then |
8330 | ac_cv_func_malloc_set_state=yes | |
8331 | else | |
8332 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
8334 | ||
98418dba CW |
8335 | ac_cv_func_malloc_set_state=no |
8336 | fi | |
35996d22 AS |
8337 | rm -f conftest.err conftest.$ac_objext \ |
8338 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8339 | fi |
c0d27fcc | 8340 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
8341 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
8342 | if test $ac_cv_func_malloc_set_state = yes; then | |
8343 | : | |
8344 | else | |
8345 | doug_lea_malloc=no | |
8346 | fi | |
8347 | ||
c0d27fcc | 8348 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
8349 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
8350 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8352 | else | |
8353 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8354 | /* confdefs.h. */ |
8355 | _ACEOF | |
8356 | cat confdefs.h >>conftest.$ac_ext | |
8357 | cat >>conftest.$ac_ext <<_ACEOF | |
8358 | /* end confdefs.h. */ | |
98418dba | 8359 | extern void (* __after_morecore_hook)(); |
98418dba CW |
8360 | int |
8361 | main () | |
8362 | { | |
8363 | __after_morecore_hook = 0 | |
8364 | ; | |
8365 | return 0; | |
8366 | } | |
8367 | _ACEOF | |
8368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8370 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8371 | ac_status=$? |
35996d22 AS |
8372 | grep -v '^ *+' conftest.er1 >conftest.err |
8373 | rm -f conftest.er1 | |
8374 | cat conftest.err >&5 | |
c0d27fcc | 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8376 | (exit $ac_status); } && |
35996d22 AS |
8377 | { ac_try='test -z "$ac_c_werror_flag" |
8378 | || test ! -s conftest.err' | |
8379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8380 | (eval $ac_try) 2>&5 | |
8381 | ac_status=$? | |
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8383 | (exit $ac_status); }; } && | |
8384 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8386 | (eval $ac_try) 2>&5 |
8387 | ac_status=$? | |
c0d27fcc | 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8389 | (exit $ac_status); }; }; then |
8390 | emacs_cv_var___after_morecore_hook=yes | |
8391 | else | |
8392 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8393 | sed 's/^/| /' conftest.$ac_ext >&5 |
8394 | ||
98418dba CW |
8395 | emacs_cv_var___after_morecore_hook=no |
8396 | fi | |
35996d22 AS |
8397 | rm -f conftest.err conftest.$ac_objext \ |
8398 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8399 | fi |
c0d27fcc | 8400 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
8401 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
8402 | if test $emacs_cv_var___after_morecore_hook = no; then | |
8403 | doug_lea_malloc=no | |
8404 | fi | |
8405 | if test "${system_malloc}" = "yes"; then | |
8406 | GNU_MALLOC=no | |
8407 | GNU_MALLOC_reason=" | |
8408 | (The GNU allocators don't work with this system configuration.)" | |
8409 | fi | |
8410 | if test "$doug_lea_malloc" = "yes" ; then | |
8411 | if test "$GNU_MALLOC" = yes ; then | |
8412 | GNU_MALLOC_reason=" | |
8413 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
8414 | fi | |
b936fae4 | 8415 | |
c0d27fcc | 8416 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8417 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 8418 | _ACEOF |
98418dba CW |
8419 | |
8420 | fi | |
8421 | ||
8422 | if test x"${REL_ALLOC}" = x; then | |
8423 | REL_ALLOC=${GNU_MALLOC} | |
8424 | fi | |
8425 | ||
8426 | ||
c0d27fcc MR |
8427 | |
8428 | ||
8429 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
8430 | do |
8431 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
8432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
8434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
8437 | fi |
8438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 8440 | else |
c0d27fcc MR |
8441 | # Is the header compilable? |
8442 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8443 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8444 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8445 | /* confdefs.h. */ |
8446 | _ACEOF | |
8447 | cat confdefs.h >>conftest.$ac_ext | |
8448 | cat >>conftest.$ac_ext <<_ACEOF | |
8449 | /* end confdefs.h. */ | |
98418dba CW |
8450 | $ac_includes_default |
8451 | #include <$ac_header> | |
8452 | _ACEOF | |
8453 | rm -f conftest.$ac_objext | |
c0d27fcc | 8454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 8455 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 8456 | ac_status=$? |
35996d22 AS |
8457 | grep -v '^ *+' conftest.er1 >conftest.err |
8458 | rm -f conftest.er1 | |
8459 | cat conftest.err >&5 | |
c0d27fcc | 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8461 | (exit $ac_status); } && |
35996d22 AS |
8462 | { ac_try='test -z "$ac_c_werror_flag" |
8463 | || test ! -s conftest.err' | |
8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8465 | (eval $ac_try) 2>&5 | |
8466 | ac_status=$? | |
8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8468 | (exit $ac_status); }; } && | |
8469 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8471 | (eval $ac_try) 2>&5 |
8472 | ac_status=$? | |
c0d27fcc | 8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8474 | (exit $ac_status); }; }; then |
c0d27fcc | 8475 | ac_header_compiler=yes |
98418dba CW |
8476 | else |
8477 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
8479 | ||
c0d27fcc | 8480 | ac_header_compiler=no |
98418dba | 8481 | fi |
35996d22 | 8482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
8483 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8484 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 8485 | |
c0d27fcc MR |
8486 | # Is the header present? |
8487 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8489 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8490 | /* confdefs.h. */ |
8491 | _ACEOF | |
8492 | cat confdefs.h >>conftest.$ac_ext | |
8493 | cat >>conftest.$ac_ext <<_ACEOF | |
8494 | /* end confdefs.h. */ | |
98418dba CW |
8495 | #include <$ac_header> |
8496 | _ACEOF | |
c0d27fcc | 8497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
8498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8499 | ac_status=$? | |
6bae0ccf | 8500 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
8501 | rm -f conftest.er1 |
8502 | cat conftest.err >&5 | |
c0d27fcc | 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8504 | (exit $ac_status); } >/dev/null; then |
8505 | if test -s conftest.err; then | |
8506 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 8507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
8508 | else |
8509 | ac_cpp_err= | |
8510 | fi | |
8511 | else | |
8512 | ac_cpp_err=yes | |
8513 | fi | |
8514 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 8515 | ac_header_preproc=yes |
98418dba CW |
8516 | else |
8517 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8518 | sed 's/^/| /' conftest.$ac_ext >&5 |
8519 | ||
c0d27fcc | 8520 | ac_header_preproc=no |
98418dba CW |
8521 | fi |
8522 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
8523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8524 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8525 | ||
8526 | # So? What about this header? | |
35996d22 AS |
8527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8528 | yes:no: ) | |
c0d27fcc MR |
8529 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8530 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
8531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8532 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8533 | ac_header_preproc=yes | |
19650fd6 | 8534 | ;; |
35996d22 | 8535 | no:yes:* ) |
c0d27fcc MR |
8536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
8538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8540 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8541 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8542 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8543 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 8544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 8545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
8546 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8547 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
8548 | ( |
8549 | cat <<\_ASBOX | |
35996d22 AS |
8550 | ## ------------------------------------------ ## |
8551 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8552 | ## ------------------------------------------ ## | |
19650fd6 AS |
8553 | _ASBOX |
8554 | ) | | |
8555 | sed "s/^/$as_me: WARNING: /" >&2 | |
8556 | ;; | |
c0d27fcc MR |
8557 | esac |
8558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8562 | else | |
35996d22 | 8563 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 8564 | fi |
c0d27fcc | 8565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
8567 | |
8568 | fi | |
98418dba | 8569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 8570 | cat >>confdefs.h <<_ACEOF |
98418dba | 8571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 8572 | _ACEOF |
98418dba CW |
8573 | |
8574 | fi | |
c0d27fcc | 8575 | |
98418dba CW |
8576 | done |
8577 | ||
c0d27fcc | 8578 | |
98418dba CW |
8579 | for ac_func in getpagesize |
8580 | do | |
8581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 8582 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
8583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8584 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8586 | else | |
8587 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8588 | /* confdefs.h. */ |
8589 | _ACEOF | |
8590 | cat confdefs.h >>conftest.$ac_ext | |
8591 | cat >>conftest.$ac_ext <<_ACEOF | |
8592 | /* end confdefs.h. */ | |
35996d22 AS |
8593 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8595 | #define $ac_func innocuous_$ac_func | |
8596 | ||
98418dba | 8597 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8598 | which can conflict with char $ac_func (); below. |
8599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8600 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8601 | |
19650fd6 AS |
8602 | #ifdef __STDC__ |
8603 | # include <limits.h> | |
8604 | #else | |
8605 | # include <assert.h> | |
8606 | #endif | |
35996d22 AS |
8607 | |
8608 | #undef $ac_func | |
8609 | ||
98418dba CW |
8610 | /* Override any gcc2 internal prototype to avoid an error. */ |
8611 | #ifdef __cplusplus | |
8612 | extern "C" | |
19650fd6 | 8613 | { |
98418dba CW |
8614 | #endif |
8615 | /* We use char because int might match the return type of a gcc2 | |
8616 | builtin and then its argument prototype would still apply. */ | |
8617 | char $ac_func (); | |
98418dba CW |
8618 | /* The GNU C library defines this for functions which it implements |
8619 | to always fail with ENOSYS. Some functions are actually named | |
8620 | something starting with __ and the normal name is an alias. */ | |
8621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8622 | choke me | |
8623 | #else | |
19650fd6 AS |
8624 | char (*f) () = $ac_func; |
8625 | #endif | |
8626 | #ifdef __cplusplus | |
8627 | } | |
98418dba CW |
8628 | #endif |
8629 | ||
19650fd6 AS |
8630 | int |
8631 | main () | |
8632 | { | |
8633 | return f != $ac_func; | |
98418dba CW |
8634 | ; |
8635 | return 0; | |
8636 | } | |
8637 | _ACEOF | |
8638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8640 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8641 | ac_status=$? |
35996d22 AS |
8642 | grep -v '^ *+' conftest.er1 >conftest.err |
8643 | rm -f conftest.er1 | |
8644 | cat conftest.err >&5 | |
c0d27fcc | 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8646 | (exit $ac_status); } && |
35996d22 AS |
8647 | { ac_try='test -z "$ac_c_werror_flag" |
8648 | || test ! -s conftest.err' | |
8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8650 | (eval $ac_try) 2>&5 | |
8651 | ac_status=$? | |
8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8653 | (exit $ac_status); }; } && | |
8654 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8656 | (eval $ac_try) 2>&5 |
8657 | ac_status=$? | |
c0d27fcc | 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8659 | (exit $ac_status); }; }; then |
8660 | eval "$as_ac_var=yes" | |
8661 | else | |
8662 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8663 | sed 's/^/| /' conftest.$ac_ext >&5 |
8664 | ||
98418dba CW |
8665 | eval "$as_ac_var=no" |
8666 | fi | |
35996d22 AS |
8667 | rm -f conftest.err conftest.$ac_objext \ |
8668 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8669 | fi |
c0d27fcc | 8670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8671 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8672 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 8673 | cat >>confdefs.h <<_ACEOF |
98418dba | 8674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 8675 | _ACEOF |
98418dba CW |
8676 | |
8677 | fi | |
8678 | done | |
8679 | ||
c0d27fcc | 8680 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
8681 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
8682 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
8683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8684 | else | |
8685 | if test "$cross_compiling" = yes; then | |
8686 | ac_cv_func_mmap_fixed_mapped=no | |
8687 | else | |
8688 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8689 | /* confdefs.h. */ |
8690 | _ACEOF | |
8691 | cat confdefs.h >>conftest.$ac_ext | |
8692 | cat >>conftest.$ac_ext <<_ACEOF | |
8693 | /* end confdefs.h. */ | |
98418dba | 8694 | $ac_includes_default |
c0d27fcc MR |
8695 | /* malloc might have been renamed as rpl_malloc. */ |
8696 | #undef malloc | |
8697 | ||
98418dba CW |
8698 | /* Thanks to Mike Haertel and Jim Avera for this test. |
8699 | Here is a matrix of mmap possibilities: | |
8700 | mmap private not fixed | |
8701 | mmap private fixed at somewhere currently unmapped | |
8702 | mmap private fixed at somewhere already mapped | |
8703 | mmap shared not fixed | |
8704 | mmap shared fixed at somewhere currently unmapped | |
8705 | mmap shared fixed at somewhere already mapped | |
8706 | For private mappings, we should verify that changes cannot be read() | |
8707 | back from the file, nor mmap's back from the file at a different | |
8708 | address. (There have been systems where private was not correctly | |
8709 | implemented like the infamous i386 svr4.0, and systems where the | |
8710 | VM page cache was not coherent with the file system buffer cache | |
8711 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8712 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 8713 | propagated back to all the places they're supposed to be. |
98418dba CW |
8714 | |
8715 | Grep wants private fixed already mapped. | |
8716 | The main things grep needs to know about mmap are: | |
8717 | * does it exist and is it safe to write into the mmap'd area | |
8718 | * how to use it (BSD variants) */ | |
8719 | ||
8720 | #include <fcntl.h> | |
8721 | #include <sys/mman.h> | |
8722 | ||
8723 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
8724 | char *malloc (); | |
8725 | #endif | |
8726 | ||
8727 | /* This mess was copied from the GNU getpagesize.h. */ | |
8728 | #if !HAVE_GETPAGESIZE | |
8729 | /* Assume that all systems that can run configure have sys/param.h. */ | |
8730 | # if !HAVE_SYS_PARAM_H | |
8731 | # define HAVE_SYS_PARAM_H 1 | |
8732 | # endif | |
8733 | ||
8734 | # ifdef _SC_PAGESIZE | |
8735 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8736 | # else /* no _SC_PAGESIZE */ | |
8737 | # if HAVE_SYS_PARAM_H | |
8738 | # include <sys/param.h> | |
8739 | # ifdef EXEC_PAGESIZE | |
8740 | # define getpagesize() EXEC_PAGESIZE | |
8741 | # else /* no EXEC_PAGESIZE */ | |
8742 | # ifdef NBPG | |
8743 | # define getpagesize() NBPG * CLSIZE | |
8744 | # ifndef CLSIZE | |
8745 | # define CLSIZE 1 | |
8746 | # endif /* no CLSIZE */ | |
8747 | # else /* no NBPG */ | |
8748 | # ifdef NBPC | |
8749 | # define getpagesize() NBPC | |
8750 | # else /* no NBPC */ | |
8751 | # ifdef PAGESIZE | |
8752 | # define getpagesize() PAGESIZE | |
8753 | # endif /* PAGESIZE */ | |
8754 | # endif /* no NBPC */ | |
8755 | # endif /* no NBPG */ | |
8756 | # endif /* no EXEC_PAGESIZE */ | |
8757 | # else /* no HAVE_SYS_PARAM_H */ | |
8758 | # define getpagesize() 8192 /* punt totally */ | |
8759 | # endif /* no HAVE_SYS_PARAM_H */ | |
8760 | # endif /* no _SC_PAGESIZE */ | |
8761 | ||
8762 | #endif /* no HAVE_GETPAGESIZE */ | |
8763 | ||
8764 | int | |
8765 | main () | |
8766 | { | |
8767 | char *data, *data2, *data3; | |
8768 | int i, pagesize; | |
8769 | int fd; | |
8770 | ||
8771 | pagesize = getpagesize (); | |
8772 | ||
8773 | /* First, make a file with some known garbage in it. */ | |
8774 | data = (char *) malloc (pagesize); | |
8775 | if (!data) | |
8776 | exit (1); | |
8777 | for (i = 0; i < pagesize; ++i) | |
8778 | *(data + i) = rand (); | |
8779 | umask (0); | |
8780 | fd = creat ("conftest.mmap", 0600); | |
8781 | if (fd < 0) | |
8782 | exit (1); | |
8783 | if (write (fd, data, pagesize) != pagesize) | |
8784 | exit (1); | |
8785 | close (fd); | |
8786 | ||
8787 | /* Next, try to mmap the file at a fixed address which already has | |
8788 | something else allocated at it. If we can, also make sure that | |
8789 | we see the same garbage. */ | |
8790 | fd = open ("conftest.mmap", O_RDWR); | |
8791 | if (fd < 0) | |
8792 | exit (1); | |
8793 | data2 = (char *) malloc (2 * pagesize); | |
8794 | if (!data2) | |
8795 | exit (1); | |
35996d22 | 8796 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
98418dba | 8797 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
35996d22 | 8798 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
98418dba CW |
8799 | exit (1); |
8800 | for (i = 0; i < pagesize; ++i) | |
8801 | if (*(data + i) != *(data2 + i)) | |
8802 | exit (1); | |
8803 | ||
8804 | /* Finally, make sure that changes to the mapped area do not | |
8805 | percolate back to the file as seen by read(). (This is a bug on | |
8806 | some variants of i386 svr4.0.) */ | |
8807 | for (i = 0; i < pagesize; ++i) | |
8808 | *(data2 + i) = *(data2 + i) + 1; | |
8809 | data3 = (char *) malloc (pagesize); | |
8810 | if (!data3) | |
8811 | exit (1); | |
8812 | if (read (fd, data3, pagesize) != pagesize) | |
8813 | exit (1); | |
8814 | for (i = 0; i < pagesize; ++i) | |
8815 | if (*(data + i) != *(data3 + i)) | |
8816 | exit (1); | |
8817 | close (fd); | |
8818 | exit (0); | |
8819 | } | |
8820 | _ACEOF | |
8821 | rm -f conftest$ac_exeext | |
c0d27fcc | 8822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8823 | (eval $ac_link) 2>&5 |
8824 | ac_status=$? | |
c0d27fcc | 8825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 8827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8828 | (eval $ac_try) 2>&5 |
8829 | ac_status=$? | |
c0d27fcc | 8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8831 | (exit $ac_status); }; }; then |
8832 | ac_cv_func_mmap_fixed_mapped=yes | |
8833 | else | |
8834 | echo "$as_me: program exited with status $ac_status" >&5 | |
8835 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8836 | sed 's/^/| /' conftest.$ac_ext >&5 |
8837 | ||
c0d27fcc | 8838 | ( exit $ac_status ) |
98418dba CW |
8839 | ac_cv_func_mmap_fixed_mapped=no |
8840 | fi | |
35996d22 | 8841 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
8842 | fi |
8843 | fi | |
c0d27fcc | 8844 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
8845 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
8846 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8847 | ||
c0d27fcc | 8848 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8849 | #define HAVE_MMAP 1 |
c0d27fcc | 8850 | _ACEOF |
98418dba CW |
8851 | |
8852 | fi | |
8853 | rm -f conftest.mmap | |
8854 | ||
8855 | if test $use_mmap_for_buffers = yes; then | |
8856 | REL_ALLOC=no | |
8857 | fi | |
8858 | ||
8859 | LIBS="$libsrc_libs $LIBS" | |
8860 | ||
c0d27fcc MR |
8861 | |
8862 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
8863 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
8864 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
8865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8866 | else | |
8867 | ac_check_lib_save_LIBS=$LIBS | |
8868 | LIBS="-ldnet $LIBS" | |
8869 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8870 | /* confdefs.h. */ |
8871 | _ACEOF | |
8872 | cat confdefs.h >>conftest.$ac_ext | |
8873 | cat >>conftest.$ac_ext <<_ACEOF | |
8874 | /* end confdefs.h. */ | |
98418dba CW |
8875 | |
8876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8877 | #ifdef __cplusplus | |
8878 | extern "C" | |
8879 | #endif | |
8880 | /* We use char because int might match the return type of a gcc2 | |
8881 | builtin and then its argument prototype would still apply. */ | |
8882 | char dnet_ntoa (); | |
98418dba CW |
8883 | int |
8884 | main () | |
8885 | { | |
8886 | dnet_ntoa (); | |
8887 | ; | |
8888 | return 0; | |
8889 | } | |
8890 | _ACEOF | |
8891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8893 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8894 | ac_status=$? |
35996d22 AS |
8895 | grep -v '^ *+' conftest.er1 >conftest.err |
8896 | rm -f conftest.er1 | |
8897 | cat conftest.err >&5 | |
c0d27fcc | 8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8899 | (exit $ac_status); } && |
35996d22 AS |
8900 | { ac_try='test -z "$ac_c_werror_flag" |
8901 | || test ! -s conftest.err' | |
8902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8903 | (eval $ac_try) 2>&5 | |
8904 | ac_status=$? | |
8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8906 | (exit $ac_status); }; } && | |
8907 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8909 | (eval $ac_try) 2>&5 |
8910 | ac_status=$? | |
c0d27fcc | 8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8912 | (exit $ac_status); }; }; then |
8913 | ac_cv_lib_dnet_dnet_ntoa=yes | |
8914 | else | |
8915 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8916 | sed 's/^/| /' conftest.$ac_ext >&5 |
8917 | ||
98418dba CW |
8918 | ac_cv_lib_dnet_dnet_ntoa=no |
8919 | fi | |
35996d22 AS |
8920 | rm -f conftest.err conftest.$ac_objext \ |
8921 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8922 | LIBS=$ac_check_lib_save_LIBS |
8923 | fi | |
c0d27fcc | 8924 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
8925 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
8926 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 8927 | cat >>confdefs.h <<_ACEOF |
98418dba | 8928 | #define HAVE_LIBDNET 1 |
c0d27fcc | 8929 | _ACEOF |
98418dba CW |
8930 | |
8931 | LIBS="-ldnet $LIBS" | |
8932 | ||
8933 | fi | |
8934 | ||
c0d27fcc MR |
8935 | |
8936 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
8937 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
8938 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8940 | else | |
8941 | ac_check_lib_save_LIBS=$LIBS | |
8942 | LIBS="-lXbsd $LIBS" | |
8943 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8944 | /* confdefs.h. */ |
8945 | _ACEOF | |
8946 | cat confdefs.h >>conftest.$ac_ext | |
8947 | cat >>conftest.$ac_ext <<_ACEOF | |
8948 | /* end confdefs.h. */ | |
98418dba | 8949 | |
c0d27fcc | 8950 | |
98418dba CW |
8951 | int |
8952 | main () | |
8953 | { | |
8954 | main (); | |
8955 | ; | |
8956 | return 0; | |
8957 | } | |
8958 | _ACEOF | |
8959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8961 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8962 | ac_status=$? |
35996d22 AS |
8963 | grep -v '^ *+' conftest.er1 >conftest.err |
8964 | rm -f conftest.er1 | |
8965 | cat conftest.err >&5 | |
c0d27fcc | 8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8967 | (exit $ac_status); } && |
35996d22 AS |
8968 | { ac_try='test -z "$ac_c_werror_flag" |
8969 | || test ! -s conftest.err' | |
8970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8971 | (eval $ac_try) 2>&5 | |
8972 | ac_status=$? | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); }; } && | |
8975 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8977 | (eval $ac_try) 2>&5 |
8978 | ac_status=$? | |
c0d27fcc | 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8980 | (exit $ac_status); }; }; then |
8981 | ac_cv_lib_Xbsd_main=yes | |
8982 | else | |
8983 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8984 | sed 's/^/| /' conftest.$ac_ext >&5 |
8985 | ||
98418dba CW |
8986 | ac_cv_lib_Xbsd_main=no |
8987 | fi | |
35996d22 AS |
8988 | rm -f conftest.err conftest.$ac_objext \ |
8989 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8990 | LIBS=$ac_check_lib_save_LIBS |
8991 | fi | |
c0d27fcc | 8992 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
8993 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
8994 | if test $ac_cv_lib_Xbsd_main = yes; then | |
8995 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
8996 | fi | |
8997 | ||
c0d27fcc MR |
8998 | |
8999 | ||
9000 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
9001 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
9002 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
9003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9004 | else | |
9005 | ac_check_lib_save_LIBS=$LIBS | |
9006 | LIBS="-lpthreads $LIBS" | |
9007 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9008 | /* confdefs.h. */ |
9009 | _ACEOF | |
9010 | cat confdefs.h >>conftest.$ac_ext | |
9011 | cat >>conftest.$ac_ext <<_ACEOF | |
9012 | /* end confdefs.h. */ | |
98418dba CW |
9013 | |
9014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9015 | #ifdef __cplusplus | |
9016 | extern "C" | |
9017 | #endif | |
9018 | /* We use char because int might match the return type of a gcc2 | |
9019 | builtin and then its argument prototype would still apply. */ | |
9020 | char cma_open (); | |
98418dba CW |
9021 | int |
9022 | main () | |
9023 | { | |
9024 | cma_open (); | |
9025 | ; | |
9026 | return 0; | |
9027 | } | |
9028 | _ACEOF | |
9029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9031 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9032 | ac_status=$? |
35996d22 AS |
9033 | grep -v '^ *+' conftest.er1 >conftest.err |
9034 | rm -f conftest.er1 | |
9035 | cat conftest.err >&5 | |
c0d27fcc | 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9037 | (exit $ac_status); } && |
35996d22 AS |
9038 | { ac_try='test -z "$ac_c_werror_flag" |
9039 | || test ! -s conftest.err' | |
9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9041 | (eval $ac_try) 2>&5 | |
9042 | ac_status=$? | |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9044 | (exit $ac_status); }; } && | |
9045 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9047 | (eval $ac_try) 2>&5 |
9048 | ac_status=$? | |
c0d27fcc | 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9050 | (exit $ac_status); }; }; then |
9051 | ac_cv_lib_pthreads_cma_open=yes | |
9052 | else | |
9053 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
9055 | ||
98418dba CW |
9056 | ac_cv_lib_pthreads_cma_open=no |
9057 | fi | |
35996d22 AS |
9058 | rm -f conftest.err conftest.$ac_objext \ |
9059 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9060 | LIBS=$ac_check_lib_save_LIBS |
9061 | fi | |
c0d27fcc | 9062 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
9063 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
9064 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 9065 | cat >>confdefs.h <<_ACEOF |
98418dba | 9066 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 9067 | _ACEOF |
98418dba CW |
9068 | |
9069 | LIBS="-lpthreads $LIBS" | |
9070 | ||
9071 | fi | |
9072 | ||
c0d27fcc MR |
9073 | |
9074 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
9075 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
9076 | if test -d /usr/X386/include; then | |
9077 | HAVE_XFREE386=yes | |
9078 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
9079 | else | |
9080 | HAVE_XFREE386=no | |
9081 | fi | |
c0d27fcc | 9082 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
9083 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
9084 | ||
55597d70 DL |
9085 | |
9086 | case ${host_os} in | |
9087 | aix*) | |
9088 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
9089 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
9090 | if test "${gdb_cv_bigtoc+set}" = set; then | |
9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9092 | else | |
9093 | ||
9094 | case $GCC in | |
9095 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
9096 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
9097 | esac | |
9098 | ||
9099 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
9100 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9101 | /* confdefs.h. */ |
9102 | _ACEOF | |
9103 | cat confdefs.h >>conftest.$ac_ext | |
9104 | cat >>conftest.$ac_ext <<_ACEOF | |
9105 | /* end confdefs.h. */ | |
55597d70 DL |
9106 | |
9107 | int | |
9108 | main () | |
9109 | { | |
9110 | int i; | |
9111 | ; | |
9112 | return 0; | |
9113 | } | |
9114 | _ACEOF | |
9115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9117 | (eval $ac_link) 2>conftest.er1 |
55597d70 | 9118 | ac_status=$? |
35996d22 AS |
9119 | grep -v '^ *+' conftest.er1 >conftest.err |
9120 | rm -f conftest.er1 | |
9121 | cat conftest.err >&5 | |
55597d70 DL |
9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9123 | (exit $ac_status); } && | |
35996d22 AS |
9124 | { ac_try='test -z "$ac_c_werror_flag" |
9125 | || test ! -s conftest.err' | |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9127 | (eval $ac_try) 2>&5 | |
9128 | ac_status=$? | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); }; } && | |
9131 | { ac_try='test -s conftest$ac_exeext' | |
55597d70 DL |
9132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9133 | (eval $ac_try) 2>&5 | |
9134 | ac_status=$? | |
9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9136 | (exit $ac_status); }; }; then | |
9137 | : | |
9138 | else | |
9139 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9140 | sed 's/^/| /' conftest.$ac_ext >&5 |
9141 | ||
55597d70 DL |
9142 | gdb_cv_bigtoc= |
9143 | fi | |
35996d22 AS |
9144 | rm -f conftest.err conftest.$ac_objext \ |
9145 | conftest$ac_exeext conftest.$ac_ext | |
55597d70 DL |
9146 | |
9147 | fi | |
9148 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
9149 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
9150 | ;; | |
9151 | esac | |
9152 | ||
ae1a998c RS |
9153 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
9154 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
9155 | # REAL_CPPFLAGS later on. | |
98418dba CW |
9156 | |
9157 | REAL_CPPFLAGS="$CPPFLAGS" | |
9158 | ||
9159 | if test "${HAVE_X11}" = "yes"; then | |
9160 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
9161 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
9162 | LIBS="$LIBX $LIBS" | |
9163 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
9164 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
9165 | ||
9166 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
9167 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
9168 | # but it's more convenient here to set LD_RUN_PATH | |
9169 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
9170 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
9171 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
9172 | export LD_RUN_PATH | |
9173 | fi | |
9174 | ||
9175 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 9176 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
9177 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
9178 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9179 | /* confdefs.h. */ |
9180 | _ACEOF | |
9181 | cat confdefs.h >>conftest.$ac_ext | |
9182 | cat >>conftest.$ac_ext <<_ACEOF | |
9183 | /* end confdefs.h. */ | |
98418dba | 9184 | |
98418dba CW |
9185 | int |
9186 | main () | |
9187 | { | |
9188 | XOpenDisplay ("foo"); | |
9189 | ; | |
9190 | return 0; | |
9191 | } | |
9192 | _ACEOF | |
9193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9195 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9196 | ac_status=$? |
35996d22 AS |
9197 | grep -v '^ *+' conftest.er1 >conftest.err |
9198 | rm -f conftest.er1 | |
9199 | cat conftest.err >&5 | |
c0d27fcc | 9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9201 | (exit $ac_status); } && |
35996d22 AS |
9202 | { ac_try='test -z "$ac_c_werror_flag" |
9203 | || test ! -s conftest.err' | |
c0d27fcc | 9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9205 | (eval $ac_try) 2>&5 |
9206 | ac_status=$? | |
c0d27fcc | 9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
9208 | (exit $ac_status); }; } && |
9209 | { ac_try='test -s conftest$ac_exeext' | |
9210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9211 | (eval $ac_try) 2>&5 | |
9212 | ac_status=$? | |
9213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9214 | (exit $ac_status); }; }; then | |
9215 | xlinux_first_failure=no | |
98418dba CW |
9216 | else |
9217 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9218 | sed 's/^/| /' conftest.$ac_ext >&5 |
9219 | ||
98418dba CW |
9220 | xlinux_first_failure=yes |
9221 | fi | |
35996d22 AS |
9222 | rm -f conftest.err conftest.$ac_objext \ |
9223 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9224 | if test "${xlinux_first_failure}" = "yes"; then |
9225 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
9226 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
9227 | OLD_CPPFLAGS="$CPPFLAGS" | |
9228 | OLD_LIBS="$LIBS" | |
9229 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
9230 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
9231 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
9232 | LIBS="$LIBS -b i486-linuxaout" | |
9233 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9234 | /* confdefs.h. */ |
9235 | _ACEOF | |
9236 | cat confdefs.h >>conftest.$ac_ext | |
9237 | cat >>conftest.$ac_ext <<_ACEOF | |
9238 | /* end confdefs.h. */ | |
98418dba | 9239 | |
98418dba CW |
9240 | int |
9241 | main () | |
9242 | { | |
9243 | XOpenDisplay ("foo"); | |
9244 | ; | |
9245 | return 0; | |
9246 | } | |
9247 | _ACEOF | |
9248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9250 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9251 | ac_status=$? |
35996d22 AS |
9252 | grep -v '^ *+' conftest.er1 >conftest.err |
9253 | rm -f conftest.er1 | |
9254 | cat conftest.err >&5 | |
c0d27fcc | 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9256 | (exit $ac_status); } && |
35996d22 AS |
9257 | { ac_try='test -z "$ac_c_werror_flag" |
9258 | || test ! -s conftest.err' | |
9259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9260 | (eval $ac_try) 2>&5 | |
9261 | ac_status=$? | |
9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9263 | (exit $ac_status); }; } && | |
9264 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9266 | (eval $ac_try) 2>&5 |
9267 | ac_status=$? | |
c0d27fcc | 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9269 | (exit $ac_status); }; }; then |
9270 | xlinux_second_failure=no | |
9271 | else | |
9272 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9273 | sed 's/^/| /' conftest.$ac_ext >&5 |
9274 | ||
98418dba CW |
9275 | xlinux_second_failure=yes |
9276 | fi | |
35996d22 AS |
9277 | rm -f conftest.err conftest.$ac_objext \ |
9278 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9279 | if test "${xlinux_second_failure}" = "yes"; then |
9280 | # If we get the same failure with -b, there is no use adding -b. | |
9281 | # So take it out. This plays safe. | |
9282 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
9283 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
9284 | CPPFLAGS="$OLD_CPPFLAGS" | |
9285 | LIBS="$OLD_LIBS" | |
c0d27fcc | 9286 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9287 | echo "${ECHO_T}no" >&6 |
9288 | else | |
c0d27fcc | 9289 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9290 | echo "${ECHO_T}yes" >&6 |
9291 | fi | |
9292 | else | |
c0d27fcc | 9293 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9294 | echo "${ECHO_T}no" >&6 |
9295 | fi | |
9296 | fi | |
9297 | ||
9298 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
9299 | # header files included from there. | |
c0d27fcc | 9300 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
9301 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
9302 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9303 | /* confdefs.h. */ |
9304 | _ACEOF | |
9305 | cat confdefs.h >>conftest.$ac_ext | |
9306 | cat >>conftest.$ac_ext <<_ACEOF | |
9307 | /* end confdefs.h. */ | |
98418dba CW |
9308 | #include <X11/Xlib.h> |
9309 | #include <X11/XKBlib.h> | |
98418dba CW |
9310 | int |
9311 | main () | |
9312 | { | |
9313 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
9314 | ; | |
9315 | return 0; | |
9316 | } | |
9317 | _ACEOF | |
9318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9320 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9321 | ac_status=$? |
35996d22 AS |
9322 | grep -v '^ *+' conftest.er1 >conftest.err |
9323 | rm -f conftest.er1 | |
9324 | cat conftest.err >&5 | |
c0d27fcc | 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9326 | (exit $ac_status); } && |
35996d22 AS |
9327 | { ac_try='test -z "$ac_c_werror_flag" |
9328 | || test ! -s conftest.err' | |
9329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9330 | (eval $ac_try) 2>&5 | |
9331 | ac_status=$? | |
9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9333 | (exit $ac_status); }; } && | |
9334 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9336 | (eval $ac_try) 2>&5 |
9337 | ac_status=$? | |
c0d27fcc | 9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9339 | (exit $ac_status); }; }; then |
9340 | emacs_xkb=yes | |
9341 | else | |
9342 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
9344 | ||
98418dba CW |
9345 | emacs_xkb=no |
9346 | fi | |
35996d22 AS |
9347 | rm -f conftest.err conftest.$ac_objext \ |
9348 | conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 9349 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
9350 | echo "${ECHO_T}$emacs_xkb" >&6 |
9351 | if test $emacs_xkb = yes; then | |
b936fae4 | 9352 | |
c0d27fcc | 9353 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9354 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 9355 | _ACEOF |
98418dba CW |
9356 | |
9357 | fi | |
9358 | ||
c0d27fcc MR |
9359 | |
9360 | ||
9361 | ||
9362 | ||
98418dba CW |
9363 | for ac_func in XrmSetDatabase XScreenResourceString \ |
9364 | XScreenNumberOfScreen XSetWMProtocols | |
9365 | do | |
9366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 9367 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
9368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9369 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9371 | else | |
9372 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9373 | /* confdefs.h. */ |
9374 | _ACEOF | |
9375 | cat confdefs.h >>conftest.$ac_ext | |
9376 | cat >>conftest.$ac_ext <<_ACEOF | |
9377 | /* end confdefs.h. */ | |
35996d22 AS |
9378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9380 | #define $ac_func innocuous_$ac_func | |
9381 | ||
98418dba | 9382 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9383 | which can conflict with char $ac_func (); below. |
9384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9385 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9386 | |
19650fd6 AS |
9387 | #ifdef __STDC__ |
9388 | # include <limits.h> | |
9389 | #else | |
9390 | # include <assert.h> | |
9391 | #endif | |
35996d22 AS |
9392 | |
9393 | #undef $ac_func | |
9394 | ||
98418dba CW |
9395 | /* Override any gcc2 internal prototype to avoid an error. */ |
9396 | #ifdef __cplusplus | |
9397 | extern "C" | |
19650fd6 | 9398 | { |
98418dba CW |
9399 | #endif |
9400 | /* We use char because int might match the return type of a gcc2 | |
9401 | builtin and then its argument prototype would still apply. */ | |
9402 | char $ac_func (); | |
98418dba CW |
9403 | /* The GNU C library defines this for functions which it implements |
9404 | to always fail with ENOSYS. Some functions are actually named | |
9405 | something starting with __ and the normal name is an alias. */ | |
9406 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9407 | choke me | |
9408 | #else | |
19650fd6 AS |
9409 | char (*f) () = $ac_func; |
9410 | #endif | |
9411 | #ifdef __cplusplus | |
9412 | } | |
98418dba CW |
9413 | #endif |
9414 | ||
19650fd6 AS |
9415 | int |
9416 | main () | |
9417 | { | |
9418 | return f != $ac_func; | |
98418dba CW |
9419 | ; |
9420 | return 0; | |
9421 | } | |
9422 | _ACEOF | |
9423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9425 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9426 | ac_status=$? |
35996d22 AS |
9427 | grep -v '^ *+' conftest.er1 >conftest.err |
9428 | rm -f conftest.er1 | |
9429 | cat conftest.err >&5 | |
c0d27fcc | 9430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9431 | (exit $ac_status); } && |
35996d22 AS |
9432 | { ac_try='test -z "$ac_c_werror_flag" |
9433 | || test ! -s conftest.err' | |
9434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9435 | (eval $ac_try) 2>&5 | |
9436 | ac_status=$? | |
9437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9438 | (exit $ac_status); }; } && | |
9439 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9441 | (eval $ac_try) 2>&5 |
9442 | ac_status=$? | |
c0d27fcc | 9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9444 | (exit $ac_status); }; }; then |
9445 | eval "$as_ac_var=yes" | |
9446 | else | |
9447 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9448 | sed 's/^/| /' conftest.$ac_ext >&5 |
9449 | ||
98418dba CW |
9450 | eval "$as_ac_var=no" |
9451 | fi | |
35996d22 AS |
9452 | rm -f conftest.err conftest.$ac_objext \ |
9453 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9454 | fi |
c0d27fcc | 9455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
9456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9457 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 9458 | cat >>confdefs.h <<_ACEOF |
98418dba | 9459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 9460 | _ACEOF |
98418dba CW |
9461 | |
9462 | fi | |
9463 | done | |
9464 | ||
9465 | fi | |
9466 | ||
9467 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9468 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
9469 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
9470 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9472 | else | |
9473 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9474 | /* confdefs.h. */ |
9475 | _ACEOF | |
9476 | cat confdefs.h >>conftest.$ac_ext | |
9477 | cat >>conftest.$ac_ext <<_ACEOF | |
9478 | /* end confdefs.h. */ | |
98418dba | 9479 | #include <X11/Xlib.h> |
98418dba CW |
9480 | int |
9481 | main () | |
9482 | { | |
9483 | #if XlibSpecificationRelease < 6 | |
9484 | fail; | |
9485 | #endif | |
9486 | ||
9487 | ; | |
9488 | return 0; | |
9489 | } | |
9490 | _ACEOF | |
9491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9493 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9494 | ac_status=$? |
35996d22 AS |
9495 | grep -v '^ *+' conftest.er1 >conftest.err |
9496 | rm -f conftest.er1 | |
9497 | cat conftest.err >&5 | |
c0d27fcc | 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9499 | (exit $ac_status); } && |
35996d22 AS |
9500 | { ac_try='test -z "$ac_c_werror_flag" |
9501 | || test ! -s conftest.err' | |
9502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9503 | (eval $ac_try) 2>&5 | |
9504 | ac_status=$? | |
9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9506 | (exit $ac_status); }; } && | |
9507 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9509 | (eval $ac_try) 2>&5 |
9510 | ac_status=$? | |
c0d27fcc | 9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9512 | (exit $ac_status); }; }; then |
9513 | emacs_cv_x11_version_6=yes | |
9514 | else | |
9515 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9516 | sed 's/^/| /' conftest.$ac_ext >&5 |
9517 | ||
98418dba CW |
9518 | emacs_cv_x11_version_6=no |
9519 | fi | |
35996d22 AS |
9520 | rm -f conftest.err conftest.$ac_objext \ |
9521 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9522 | fi |
9523 | ||
9524 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 9525 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9526 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9527 | |
c0d27fcc | 9528 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9529 | #define HAVE_X11R6 1 |
c0d27fcc | 9530 | _ACEOF |
98418dba CW |
9531 | |
9532 | else | |
c0d27fcc | 9533 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9534 | echo "${ECHO_T}before 6" >&6 |
9535 | fi | |
9536 | fi | |
9537 | ||
9538 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9539 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
9540 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
9541 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
9542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9543 | else | |
9544 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9545 | /* confdefs.h. */ |
9546 | _ACEOF | |
9547 | cat confdefs.h >>conftest.$ac_ext | |
9548 | cat >>conftest.$ac_ext <<_ACEOF | |
9549 | /* end confdefs.h. */ | |
98418dba | 9550 | #include <X11/Xlib.h> |
98418dba CW |
9551 | int |
9552 | main () | |
9553 | { | |
9554 | #if XlibSpecificationRelease < 5 | |
9555 | fail; | |
9556 | #endif | |
9557 | ||
9558 | ; | |
9559 | return 0; | |
9560 | } | |
9561 | _ACEOF | |
9562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9564 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9565 | ac_status=$? |
35996d22 AS |
9566 | grep -v '^ *+' conftest.er1 >conftest.err |
9567 | rm -f conftest.er1 | |
9568 | cat conftest.err >&5 | |
c0d27fcc | 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9570 | (exit $ac_status); } && |
35996d22 AS |
9571 | { ac_try='test -z "$ac_c_werror_flag" |
9572 | || test ! -s conftest.err' | |
9573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9574 | (eval $ac_try) 2>&5 | |
9575 | ac_status=$? | |
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9577 | (exit $ac_status); }; } && | |
9578 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9580 | (eval $ac_try) 2>&5 |
9581 | ac_status=$? | |
c0d27fcc | 9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9583 | (exit $ac_status); }; }; then |
9584 | emacs_cv_x11_version_5=yes | |
9585 | else | |
9586 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9587 | sed 's/^/| /' conftest.$ac_ext >&5 |
9588 | ||
98418dba CW |
9589 | emacs_cv_x11_version_5=no |
9590 | fi | |
35996d22 AS |
9591 | rm -f conftest.err conftest.$ac_objext \ |
9592 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9593 | fi |
9594 | ||
9595 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 9596 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
9597 | echo "${ECHO_T}5 or newer" >&6 |
9598 | HAVE_X11R5=yes | |
b936fae4 | 9599 | |
c0d27fcc | 9600 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9601 | #define HAVE_X11R5 1 |
c0d27fcc | 9602 | _ACEOF |
98418dba CW |
9603 | |
9604 | else | |
9605 | HAVE_X11R5=no | |
c0d27fcc | 9606 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
9607 | echo "${ECHO_T}before 5" >&6 |
9608 | fi | |
9609 | fi | |
9610 | ||
488dd4c4 JD |
9611 | |
9612 | ||
9613 | HAVE_GTK=no | |
9614 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 9615 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
9616 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
9617 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
9618 | { (exit 1); exit 1; }; }; | |
9619 | fi | |
9620 | GLIB_REQUIRED=2.0.1 | |
e512ece1 | 9621 | GTK_REQUIRED=2.0.1 |
488dd4c4 JD |
9622 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
9623 | ||
9624 | if test "X${with_pkg_config_prog}" != X; then | |
9625 | PKG_CONFIG="${with_pkg_config_prog}" | |
9626 | fi | |
9627 | ||
9628 | succeeded=no | |
9629 | ||
9630 | if test -z "$PKG_CONFIG"; then | |
9631 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9632 | set dummy pkg-config; ac_word=$2 | |
9633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9635 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9637 | else | |
9638 | case $PKG_CONFIG in | |
9639 | [\\/]* | ?:[\\/]*) | |
9640 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9641 | ;; | |
9642 | *) | |
9643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9644 | for as_dir in $PATH | |
9645 | do | |
9646 | IFS=$as_save_IFS | |
9647 | test -z "$as_dir" && as_dir=. | |
9648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9650 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9652 | break 2 | |
9653 | fi | |
9654 | done | |
9655 | done | |
9656 | ||
9657 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
9658 | ;; | |
9659 | esac | |
9660 | fi | |
9661 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9662 | ||
9663 | if test -n "$PKG_CONFIG"; then | |
9664 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9665 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
9666 | else | |
9667 | echo "$as_me:$LINENO: result: no" >&5 | |
9668 | echo "${ECHO_T}no" >&6 | |
9669 | fi | |
9670 | ||
9671 | fi | |
9672 | ||
9673 | if test "$PKG_CONFIG" = "no" ; then | |
9674 | echo "*** The pkg-config script could not be found. Make sure it is" | |
9675 | echo "*** in your path, or give the full path to pkg-config with" | |
9676 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
9677 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
9678 | else | |
9679 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
9680 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
9681 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
9682 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
9683 | ||
9684 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
9685 | echo "$as_me:$LINENO: result: yes" >&5 | |
9686 | echo "${ECHO_T}yes" >&6 | |
9687 | succeeded=yes | |
9688 | ||
9689 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
9690 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
9691 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
9692 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
9693 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
9694 | ||
9695 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
9696 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
9697 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
9698 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
9699 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
9700 | else | |
9701 | GTK_CFLAGS="" | |
9702 | GTK_LIBS="" | |
9703 | ## If we have a custom action on failure, don't print errors, but | |
9704 | ## do set a variable so people can do so. | |
9705 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
9706 | echo $GTK_PKG_ERRORS | |
9707 | fi | |
9708 | ||
9709 | ||
9710 | ||
9711 | else | |
9712 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
9713 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
9714 | fi | |
9715 | fi | |
9716 | ||
9717 | if test $succeeded = yes; then | |
9718 | : | |
9719 | else | |
9720 | { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 | |
9721 | echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} | |
9722 | { (exit 1); exit 1; }; } | |
9723 | fi | |
9724 | ||
9725 | ||
9726 | ||
9727 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
9728 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
9729 | LIBS="$GTK_LIBS $LIBS" | |
488dd4c4 JD |
9730 | HAVE_GTK=yes |
9731 | ||
9732 | cat >>confdefs.h <<\_ACEOF | |
9733 | #define HAVE_GTK 1 | |
9734 | _ACEOF | |
9735 | ||
9736 | USE_X_TOOLKIT=none | |
9737 | ||
9738 | with_toolkit_scroll_bars=yes | |
57669b57 JD |
9739 | |
9740 | HAVE_GTK_MULTIDISPLAY=no | |
9741 | ||
9742 | for ac_func in gdk_display_open | |
9743 | do | |
9744 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9745 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9747 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9749 | else | |
9750 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
9751 | /* confdefs.h. */ |
9752 | _ACEOF | |
9753 | cat confdefs.h >>conftest.$ac_ext | |
9754 | cat >>conftest.$ac_ext <<_ACEOF | |
9755 | /* end confdefs.h. */ | |
35996d22 AS |
9756 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9758 | #define $ac_func innocuous_$ac_func | |
9759 | ||
57669b57 JD |
9760 | /* System header to define __stub macros and hopefully few prototypes, |
9761 | which can conflict with char $ac_func (); below. | |
9762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9763 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9764 | |
57669b57 JD |
9765 | #ifdef __STDC__ |
9766 | # include <limits.h> | |
9767 | #else | |
9768 | # include <assert.h> | |
9769 | #endif | |
35996d22 AS |
9770 | |
9771 | #undef $ac_func | |
9772 | ||
57669b57 JD |
9773 | /* Override any gcc2 internal prototype to avoid an error. */ |
9774 | #ifdef __cplusplus | |
9775 | extern "C" | |
9776 | { | |
9777 | #endif | |
9778 | /* We use char because int might match the return type of a gcc2 | |
9779 | builtin and then its argument prototype would still apply. */ | |
9780 | char $ac_func (); | |
9781 | /* The GNU C library defines this for functions which it implements | |
9782 | to always fail with ENOSYS. Some functions are actually named | |
9783 | something starting with __ and the normal name is an alias. */ | |
9784 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9785 | choke me | |
9786 | #else | |
9787 | char (*f) () = $ac_func; | |
9788 | #endif | |
9789 | #ifdef __cplusplus | |
9790 | } | |
9791 | #endif | |
9792 | ||
9793 | int | |
9794 | main () | |
9795 | { | |
9796 | return f != $ac_func; | |
9797 | ; | |
9798 | return 0; | |
9799 | } | |
9800 | _ACEOF | |
9801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9803 | (eval $ac_link) 2>conftest.er1 |
57669b57 | 9804 | ac_status=$? |
35996d22 AS |
9805 | grep -v '^ *+' conftest.er1 >conftest.err |
9806 | rm -f conftest.er1 | |
9807 | cat conftest.err >&5 | |
57669b57 JD |
9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9809 | (exit $ac_status); } && | |
35996d22 AS |
9810 | { ac_try='test -z "$ac_c_werror_flag" |
9811 | || test ! -s conftest.err' | |
9812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9813 | (eval $ac_try) 2>&5 | |
9814 | ac_status=$? | |
9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9816 | (exit $ac_status); }; } && | |
9817 | { ac_try='test -s conftest$ac_exeext' | |
57669b57 JD |
9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9819 | (eval $ac_try) 2>&5 | |
9820 | ac_status=$? | |
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9822 | (exit $ac_status); }; }; then | |
9823 | eval "$as_ac_var=yes" | |
9824 | else | |
9825 | echo "$as_me: failed program was:" >&5 | |
9826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9827 | ||
9828 | eval "$as_ac_var=no" | |
9829 | fi | |
35996d22 AS |
9830 | rm -f conftest.err conftest.$ac_objext \ |
9831 | conftest$ac_exeext conftest.$ac_ext | |
57669b57 JD |
9832 | fi |
9833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9834 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9835 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9836 | cat >>confdefs.h <<_ACEOF | |
9837 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9838 | _ACEOF | |
9839 | HAVE_GTK_MULTIDISPLAY=yes | |
9840 | fi | |
9841 | done | |
9842 | ||
9843 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
9844 | ||
9845 | cat >>confdefs.h <<\_ACEOF | |
9846 | #define HAVE_GTK_MULTIDISPLAY 1 | |
9847 | _ACEOF | |
9848 | ||
9849 | fi | |
488dd4c4 JD |
9850 | fi |
9851 | ||
98418dba CW |
9852 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
9853 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 9854 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
9855 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
9856 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9858 | else | |
9859 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9860 | /* confdefs.h. */ |
9861 | _ACEOF | |
9862 | cat confdefs.h >>conftest.$ac_ext | |
9863 | cat >>conftest.$ac_ext <<_ACEOF | |
9864 | /* end confdefs.h. */ | |
98418dba CW |
9865 | |
9866 | #include <X11/Intrinsic.h> | |
9867 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
9868 | int |
9869 | main () | |
9870 | { | |
9871 | ||
9872 | ; | |
9873 | return 0; | |
9874 | } | |
9875 | _ACEOF | |
9876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9878 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9879 | ac_status=$? |
35996d22 AS |
9880 | grep -v '^ *+' conftest.er1 >conftest.err |
9881 | rm -f conftest.er1 | |
9882 | cat conftest.err >&5 | |
c0d27fcc | 9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9884 | (exit $ac_status); } && |
35996d22 AS |
9885 | { ac_try='test -z "$ac_c_werror_flag" |
9886 | || test ! -s conftest.err' | |
9887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9888 | (eval $ac_try) 2>&5 | |
9889 | ac_status=$? | |
9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9891 | (exit $ac_status); }; } && | |
9892 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9894 | (eval $ac_try) 2>&5 |
9895 | ac_status=$? | |
c0d27fcc | 9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9897 | (exit $ac_status); }; }; then |
9898 | emacs_cv_x11_version_5_with_xaw=yes | |
9899 | else | |
9900 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9901 | sed 's/^/| /' conftest.$ac_ext >&5 |
9902 | ||
98418dba CW |
9903 | emacs_cv_x11_version_5_with_xaw=no |
9904 | fi | |
35996d22 AS |
9905 | rm -f conftest.err conftest.$ac_objext \ |
9906 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9907 | fi |
9908 | ||
9909 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 9910 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
9911 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
9912 | USE_X_TOOLKIT=LUCID | |
9913 | else | |
c0d27fcc | 9914 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
9915 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
9916 | USE_X_TOOLKIT=none | |
9917 | fi | |
9918 | else | |
9919 | USE_X_TOOLKIT=none | |
9920 | fi | |
9921 | fi | |
9922 | ||
9923 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
9924 | ||
9925 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 9926 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
9927 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
9928 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
9929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9930 | else | |
9931 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9932 | /* confdefs.h. */ |
9933 | _ACEOF | |
9934 | cat confdefs.h >>conftest.$ac_ext | |
9935 | cat >>conftest.$ac_ext <<_ACEOF | |
9936 | /* end confdefs.h. */ | |
98418dba | 9937 | #include <X11/Intrinsic.h> |
98418dba CW |
9938 | int |
9939 | main () | |
9940 | { | |
9941 | #if XtSpecificationRelease < 6 | |
9942 | fail; | |
9943 | #endif | |
9944 | ||
9945 | ; | |
9946 | return 0; | |
9947 | } | |
9948 | _ACEOF | |
9949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9951 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9952 | ac_status=$? |
35996d22 AS |
9953 | grep -v '^ *+' conftest.er1 >conftest.err |
9954 | rm -f conftest.er1 | |
9955 | cat conftest.err >&5 | |
c0d27fcc | 9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9957 | (exit $ac_status); } && |
35996d22 AS |
9958 | { ac_try='test -z "$ac_c_werror_flag" |
9959 | || test ! -s conftest.err' | |
9960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9961 | (eval $ac_try) 2>&5 | |
9962 | ac_status=$? | |
9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9964 | (exit $ac_status); }; } && | |
9965 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9967 | (eval $ac_try) 2>&5 |
9968 | ac_status=$? | |
c0d27fcc | 9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9970 | (exit $ac_status); }; }; then |
9971 | emacs_cv_x11_toolkit_version_6=yes | |
9972 | else | |
9973 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9974 | sed 's/^/| /' conftest.$ac_ext >&5 |
9975 | ||
98418dba CW |
9976 | emacs_cv_x11_toolkit_version_6=no |
9977 | fi | |
35996d22 AS |
9978 | rm -f conftest.err conftest.$ac_objext \ |
9979 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9980 | fi |
9981 | ||
9982 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
9983 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 9984 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9985 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9986 | |
c0d27fcc | 9987 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9988 | #define HAVE_X11XTR6 1 |
c0d27fcc | 9989 | _ACEOF |
98418dba CW |
9990 | |
9991 | else | |
c0d27fcc | 9992 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9993 | echo "${ECHO_T}before 6" >&6 |
9994 | fi | |
9995 | ||
9996 | OLDLIBS="$LIBS" | |
9997 | if test x$HAVE_X11XTR6 = xyes; then | |
9998 | LIBS="-lXt -lSM -lICE $LIBS" | |
9999 | else | |
10000 | LIBS="-lXt $LIBS" | |
10001 | fi | |
10002 | ||
c0d27fcc | 10003 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
10004 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
10005 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
10006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10007 | else | |
10008 | ac_check_lib_save_LIBS=$LIBS | |
10009 | LIBS="-lXmu $LIBS" | |
10010 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10011 | /* confdefs.h. */ |
10012 | _ACEOF | |
10013 | cat confdefs.h >>conftest.$ac_ext | |
10014 | cat >>conftest.$ac_ext <<_ACEOF | |
10015 | /* end confdefs.h. */ | |
98418dba CW |
10016 | |
10017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10018 | #ifdef __cplusplus | |
10019 | extern "C" | |
10020 | #endif | |
10021 | /* We use char because int might match the return type of a gcc2 | |
10022 | builtin and then its argument prototype would still apply. */ | |
10023 | char XmuConvertStandardSelection (); | |
98418dba CW |
10024 | int |
10025 | main () | |
10026 | { | |
10027 | XmuConvertStandardSelection (); | |
10028 | ; | |
10029 | return 0; | |
10030 | } | |
10031 | _ACEOF | |
10032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10034 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10035 | ac_status=$? |
35996d22 AS |
10036 | grep -v '^ *+' conftest.er1 >conftest.err |
10037 | rm -f conftest.er1 | |
10038 | cat conftest.err >&5 | |
c0d27fcc | 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10040 | (exit $ac_status); } && |
35996d22 AS |
10041 | { ac_try='test -z "$ac_c_werror_flag" |
10042 | || test ! -s conftest.err' | |
10043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10044 | (eval $ac_try) 2>&5 | |
10045 | ac_status=$? | |
10046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10047 | (exit $ac_status); }; } && | |
10048 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10050 | (eval $ac_try) 2>&5 |
10051 | ac_status=$? | |
c0d27fcc | 10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10053 | (exit $ac_status); }; }; then |
10054 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
10055 | else | |
10056 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10057 | sed 's/^/| /' conftest.$ac_ext >&5 |
10058 | ||
98418dba CW |
10059 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
10060 | fi | |
35996d22 AS |
10061 | rm -f conftest.err conftest.$ac_objext \ |
10062 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10063 | LIBS=$ac_check_lib_save_LIBS |
10064 | fi | |
c0d27fcc | 10065 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
10066 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
10067 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 10068 | cat >>confdefs.h <<_ACEOF |
98418dba | 10069 | #define HAVE_LIBXMU 1 |
c0d27fcc | 10070 | _ACEOF |
98418dba CW |
10071 | |
10072 | LIBS="-lXmu $LIBS" | |
10073 | ||
10074 | fi | |
10075 | ||
10076 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
10077 | fi | |
10078 | ||
10079 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
10080 | if test "${HAVE_X11}" = "yes"; then | |
10081 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10082 | ||
c0d27fcc | 10083 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
10084 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
10085 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
10086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10087 | else | |
10088 | ac_check_lib_save_LIBS=$LIBS | |
10089 | LIBS="-lXext $LIBS" | |
10090 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10091 | /* confdefs.h. */ |
10092 | _ACEOF | |
10093 | cat confdefs.h >>conftest.$ac_ext | |
10094 | cat >>conftest.$ac_ext <<_ACEOF | |
10095 | /* end confdefs.h. */ | |
98418dba CW |
10096 | |
10097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10098 | #ifdef __cplusplus | |
10099 | extern "C" | |
10100 | #endif | |
10101 | /* We use char because int might match the return type of a gcc2 | |
10102 | builtin and then its argument prototype would still apply. */ | |
10103 | char XShapeQueryExtension (); | |
98418dba CW |
10104 | int |
10105 | main () | |
10106 | { | |
10107 | XShapeQueryExtension (); | |
10108 | ; | |
10109 | return 0; | |
10110 | } | |
10111 | _ACEOF | |
10112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10114 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10115 | ac_status=$? |
35996d22 AS |
10116 | grep -v '^ *+' conftest.er1 >conftest.err |
10117 | rm -f conftest.er1 | |
10118 | cat conftest.err >&5 | |
c0d27fcc | 10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10120 | (exit $ac_status); } && |
35996d22 AS |
10121 | { ac_try='test -z "$ac_c_werror_flag" |
10122 | || test ! -s conftest.err' | |
10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10124 | (eval $ac_try) 2>&5 | |
10125 | ac_status=$? | |
10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10127 | (exit $ac_status); }; } && | |
10128 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10130 | (eval $ac_try) 2>&5 |
10131 | ac_status=$? | |
c0d27fcc | 10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10133 | (exit $ac_status); }; }; then |
10134 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
10135 | else | |
10136 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10137 | sed 's/^/| /' conftest.$ac_ext >&5 |
10138 | ||
98418dba CW |
10139 | ac_cv_lib_Xext_XShapeQueryExtension=no |
10140 | fi | |
35996d22 AS |
10141 | rm -f conftest.err conftest.$ac_objext \ |
10142 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10143 | LIBS=$ac_check_lib_save_LIBS |
10144 | fi | |
c0d27fcc | 10145 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
10146 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
10147 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 10148 | cat >>confdefs.h <<_ACEOF |
98418dba | 10149 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 10150 | _ACEOF |
98418dba CW |
10151 | |
10152 | LIBS="-lXext $LIBS" | |
10153 | ||
10154 | fi | |
10155 | ||
10156 | fi | |
10157 | fi | |
10158 | ||
10159 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10160 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
10161 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
10162 | if test "${emacs_cv_lesstif+set}" = set; then | |
10163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10164 | else | |
ae1a998c RS |
10165 | # We put this in CFLAGS temporarily to precede other -I options |
10166 | # that might be in CFLAGS temporarily. | |
10167 | # We put this in CPPFLAGS where it precedes the other -I options. | |
10168 | OLD_CPPFLAGS=$CPPFLAGS | |
10169 | OLD_CFLAGS=$CFLAGS | |
10170 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
10171 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 10172 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10173 | /* confdefs.h. */ |
10174 | _ACEOF | |
10175 | cat confdefs.h >>conftest.$ac_ext | |
10176 | cat >>conftest.$ac_ext <<_ACEOF | |
10177 | /* end confdefs.h. */ | |
8e967cf7 MR |
10178 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
10179 | int | |
10180 | main () | |
10181 | { | |
10182 | int x = 5; | |
10183 | ; | |
10184 | return 0; | |
10185 | } | |
10186 | _ACEOF | |
10187 | rm -f conftest.$ac_objext | |
c0d27fcc | 10188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10189 | (eval $ac_compile) 2>conftest.er1 |
8e967cf7 | 10190 | ac_status=$? |
35996d22 AS |
10191 | grep -v '^ *+' conftest.er1 >conftest.err |
10192 | rm -f conftest.er1 | |
10193 | cat conftest.err >&5 | |
c0d27fcc | 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 | 10195 | (exit $ac_status); } && |
35996d22 AS |
10196 | { ac_try='test -z "$ac_c_werror_flag" |
10197 | || test ! -s conftest.err' | |
10198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10199 | (eval $ac_try) 2>&5 | |
10200 | ac_status=$? | |
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10202 | (exit $ac_status); }; } && | |
10203 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
10205 | (eval $ac_try) 2>&5 |
10206 | ac_status=$? | |
c0d27fcc | 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
10208 | (exit $ac_status); }; }; then |
10209 | emacs_cv_lesstif=yes | |
10210 | else | |
10211 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10212 | sed 's/^/| /' conftest.$ac_ext >&5 |
10213 | ||
8e967cf7 MR |
10214 | emacs_cv_lesstif=no |
10215 | fi | |
35996d22 | 10216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8e967cf7 | 10217 | fi |
c0d27fcc | 10218 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
10219 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
10220 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
10221 | # Make sure this -I option remains in CPPFLAGS after it is set |
10222 | # back to REAL_CPPFLAGS. | |
10223 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
10224 | # have those other -I options anyway. Ultimately, having this | |
10225 | # directory ultimately in CPPFLAGS will be enough. | |
10226 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 10227 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
10228 | else |
10229 | CFLAGS=$OLD_CFLAGS | |
10230 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 10231 | fi |
c0d27fcc | 10232 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
10233 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
10234 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10236 | else | |
10237 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10238 | /* confdefs.h. */ |
10239 | _ACEOF | |
10240 | cat confdefs.h >>conftest.$ac_ext | |
10241 | cat >>conftest.$ac_ext <<_ACEOF | |
10242 | /* end confdefs.h. */ | |
98418dba | 10243 | #include <Xm/Xm.h> |
98418dba CW |
10244 | int |
10245 | main () | |
10246 | { | |
10247 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
10248 | int x = 5; | |
10249 | #else | |
10250 | Motif version prior to 2.1. | |
10251 | #endif | |
10252 | ; | |
10253 | return 0; | |
10254 | } | |
10255 | _ACEOF | |
10256 | rm -f conftest.$ac_objext | |
c0d27fcc | 10257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10258 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 10259 | ac_status=$? |
35996d22 AS |
10260 | grep -v '^ *+' conftest.er1 >conftest.err |
10261 | rm -f conftest.er1 | |
10262 | cat conftest.err >&5 | |
c0d27fcc | 10263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10264 | (exit $ac_status); } && |
35996d22 AS |
10265 | { ac_try='test -z "$ac_c_werror_flag" |
10266 | || test ! -s conftest.err' | |
10267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10268 | (eval $ac_try) 2>&5 | |
10269 | ac_status=$? | |
10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); }; } && | |
10272 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10274 | (eval $ac_try) 2>&5 |
10275 | ac_status=$? | |
c0d27fcc | 10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10277 | (exit $ac_status); }; }; then |
10278 | emacs_cv_motif_version_2_1=yes | |
10279 | else | |
10280 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10281 | sed 's/^/| /' conftest.$ac_ext >&5 |
10282 | ||
98418dba CW |
10283 | emacs_cv_motif_version_2_1=no |
10284 | fi | |
35996d22 | 10285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 10286 | fi |
c0d27fcc | 10287 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
10288 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
10289 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
10290 | if test $emacs_cv_motif_version_2_1 = yes; then | |
10291 | HAVE_LIBXP=no | |
b936fae4 | 10292 | |
c0d27fcc | 10293 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10294 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 10295 | _ACEOF |
98418dba | 10296 | |
c0d27fcc | 10297 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
10298 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
10299 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
10300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10301 | else | |
10302 | ac_check_lib_save_LIBS=$LIBS | |
10303 | LIBS="-lXp $LIBS" | |
10304 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10305 | /* confdefs.h. */ |
10306 | _ACEOF | |
10307 | cat confdefs.h >>conftest.$ac_ext | |
10308 | cat >>conftest.$ac_ext <<_ACEOF | |
10309 | /* end confdefs.h. */ | |
98418dba CW |
10310 | |
10311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10312 | #ifdef __cplusplus | |
10313 | extern "C" | |
10314 | #endif | |
10315 | /* We use char because int might match the return type of a gcc2 | |
10316 | builtin and then its argument prototype would still apply. */ | |
10317 | char XpCreateContext (); | |
98418dba CW |
10318 | int |
10319 | main () | |
10320 | { | |
10321 | XpCreateContext (); | |
10322 | ; | |
10323 | return 0; | |
10324 | } | |
10325 | _ACEOF | |
10326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10328 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10329 | ac_status=$? |
35996d22 AS |
10330 | grep -v '^ *+' conftest.er1 >conftest.err |
10331 | rm -f conftest.er1 | |
10332 | cat conftest.err >&5 | |
c0d27fcc | 10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10334 | (exit $ac_status); } && |
35996d22 AS |
10335 | { ac_try='test -z "$ac_c_werror_flag" |
10336 | || test ! -s conftest.err' | |
10337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10338 | (eval $ac_try) 2>&5 | |
10339 | ac_status=$? | |
10340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10341 | (exit $ac_status); }; } && | |
10342 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10344 | (eval $ac_try) 2>&5 |
10345 | ac_status=$? | |
c0d27fcc | 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10347 | (exit $ac_status); }; }; then |
10348 | ac_cv_lib_Xp_XpCreateContext=yes | |
10349 | else | |
10350 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10351 | sed 's/^/| /' conftest.$ac_ext >&5 |
10352 | ||
98418dba CW |
10353 | ac_cv_lib_Xp_XpCreateContext=no |
10354 | fi | |
35996d22 AS |
10355 | rm -f conftest.err conftest.$ac_objext \ |
10356 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10357 | LIBS=$ac_check_lib_save_LIBS |
10358 | fi | |
c0d27fcc | 10359 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
10360 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
10361 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
10362 | HAVE_LIBXP=yes | |
10363 | fi | |
503d2be0 | 10364 | |
98418dba | 10365 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 10366 | |
c0d27fcc | 10367 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10368 | #define HAVE_LIBXP 1 |
c0d27fcc | 10369 | _ACEOF |
503d2be0 | 10370 | |
98418dba CW |
10371 | fi |
10372 | fi | |
10373 | fi | |
10374 | ||
10375 | ### Is -lXaw3d available? | |
10376 | HAVE_XAW3D=no | |
10377 | if test "${HAVE_X11}" = "yes"; then | |
10378 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 10379 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
10380 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
10381 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
10382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 10383 | else |
22044edf | 10384 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10385 | /* confdefs.h. */ |
10386 | _ACEOF | |
10387 | cat confdefs.h >>conftest.$ac_ext | |
10388 | cat >>conftest.$ac_ext <<_ACEOF | |
10389 | /* end confdefs.h. */ | |
98418dba | 10390 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 10391 | _ACEOF |
c0d27fcc | 10392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10394 | ac_status=$? | |
6bae0ccf | 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
10396 | rm -f conftest.er1 |
10397 | cat conftest.err >&5 | |
c0d27fcc | 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10399 | (exit $ac_status); } >/dev/null; then |
10400 | if test -s conftest.err; then | |
10401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
10403 | else |
10404 | ac_cpp_err= | |
10405 | fi | |
10406 | else | |
10407 | ac_cpp_err=yes | |
10408 | fi | |
10409 | if test -z "$ac_cpp_err"; then | |
22044edf | 10410 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 10411 | else |
503d2be0 | 10412 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
10414 | ||
22044edf | 10415 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 10416 | fi |
503d2be0 | 10417 | rm -f conftest.err conftest.$ac_ext |
98418dba | 10418 | fi |
c0d27fcc | 10419 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 10420 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 10421 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 10422 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
10423 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
10424 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
10425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10426 | else | |
10427 | ac_check_lib_save_LIBS=$LIBS | |
10428 | LIBS="-lXaw3d $LIBS" | |
10429 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10430 | /* confdefs.h. */ |
10431 | _ACEOF | |
10432 | cat confdefs.h >>conftest.$ac_ext | |
10433 | cat >>conftest.$ac_ext <<_ACEOF | |
10434 | /* end confdefs.h. */ | |
98418dba CW |
10435 | |
10436 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10437 | #ifdef __cplusplus | |
10438 | extern "C" | |
10439 | #endif | |
10440 | /* We use char because int might match the return type of a gcc2 | |
10441 | builtin and then its argument prototype would still apply. */ | |
10442 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
10443 | int |
10444 | main () | |
10445 | { | |
98418dba | 10446 | XawScrollbarSetThumb (); |
503d2be0 AS |
10447 | ; |
10448 | return 0; | |
10449 | } | |
10450 | _ACEOF | |
10451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10453 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10454 | ac_status=$? |
35996d22 AS |
10455 | grep -v '^ *+' conftest.er1 >conftest.err |
10456 | rm -f conftest.er1 | |
10457 | cat conftest.err >&5 | |
c0d27fcc | 10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10459 | (exit $ac_status); } && |
35996d22 AS |
10460 | { ac_try='test -z "$ac_c_werror_flag" |
10461 | || test ! -s conftest.err' | |
10462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10463 | (eval $ac_try) 2>&5 | |
10464 | ac_status=$? | |
10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10466 | (exit $ac_status); }; } && | |
10467 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10469 | (eval $ac_try) 2>&5 |
10470 | ac_status=$? | |
c0d27fcc | 10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10472 | (exit $ac_status); }; }; then |
98418dba | 10473 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 10474 | else |
503d2be0 | 10475 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10476 | sed 's/^/| /' conftest.$ac_ext >&5 |
10477 | ||
98418dba | 10478 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 10479 | fi |
35996d22 AS |
10480 | rm -f conftest.err conftest.$ac_objext \ |
10481 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10482 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10483 | fi |
c0d27fcc | 10484 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
10485 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
10486 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
10487 | HAVE_XAW3D=yes | |
ba4481b5 | 10488 | fi |
503d2be0 | 10489 | |
ba4481b5 DL |
10490 | fi |
10491 | ||
c0d27fcc | 10492 | |
98418dba | 10493 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 10494 | |
c0d27fcc | 10495 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10496 | #define HAVE_XAW3D 1 |
c0d27fcc | 10497 | _ACEOF |
98418dba | 10498 | |
ba4481b5 | 10499 | fi |
98418dba | 10500 | fi |
ba4481b5 DL |
10501 | fi |
10502 | ||
c0d27fcc MR |
10503 | |
10504 | ||
98418dba CW |
10505 | USE_TOOLKIT_SCROLL_BARS=no |
10506 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
10507 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10508 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10509 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10510 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10511 | _ACEOF |
98418dba CW |
10512 | |
10513 | HAVE_XAW3D=no | |
10514 | USE_TOOLKIT_SCROLL_BARS=yes | |
10515 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 10516 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10517 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10518 | _ACEOF |
98418dba CW |
10519 | |
10520 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 10521 | fi |
488dd4c4 JD |
10522 | elif test "${HAVE_GTK}" = "yes"; then |
10523 | cat >>confdefs.h <<\_ACEOF | |
10524 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
10525 | _ACEOF | |
10526 | ||
10527 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
10528 | fi |
10529 | fi | |
10530 | ||
abd39b57 | 10531 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
10532 | /* confdefs.h. */ |
10533 | _ACEOF | |
10534 | cat confdefs.h >>conftest.$ac_ext | |
10535 | cat >>conftest.$ac_ext <<_ACEOF | |
10536 | /* end confdefs.h. */ | |
10537 | ||
10538 | #include <X11/Xlib.h> | |
10539 | #include <X11/Xresource.h> | |
10540 | int | |
10541 | main () | |
10542 | { | |
10543 | XIMProc callback; | |
10544 | ; | |
10545 | return 0; | |
10546 | } | |
10547 | _ACEOF | |
10548 | rm -f conftest.$ac_objext | |
10549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10550 | (eval $ac_compile) 2>conftest.er1 |
abd39b57 | 10551 | ac_status=$? |
35996d22 AS |
10552 | grep -v '^ *+' conftest.er1 >conftest.err |
10553 | rm -f conftest.er1 | |
10554 | cat conftest.err >&5 | |
abd39b57 AC |
10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10556 | (exit $ac_status); } && | |
35996d22 AS |
10557 | { ac_try='test -z "$ac_c_werror_flag" |
10558 | || test ! -s conftest.err' | |
10559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10560 | (eval $ac_try) 2>&5 | |
10561 | ac_status=$? | |
10562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10563 | (exit $ac_status); }; } && | |
10564 | { ac_try='test -s conftest.$ac_objext' | |
abd39b57 AC |
10565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10566 | (eval $ac_try) 2>&5 | |
10567 | ac_status=$? | |
10568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10569 | (exit $ac_status); }; }; then | |
10570 | HAVE_XIM=yes | |
10571 | ||
10572 | cat >>confdefs.h <<\_ACEOF | |
10573 | #define HAVE_XIM 1 | |
10574 | _ACEOF | |
10575 | ||
10576 | else | |
10577 | echo "$as_me: failed program was:" >&5 | |
10578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10579 | ||
10580 | HAVE_XIM=no | |
10581 | fi | |
35996d22 | 10582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
abd39b57 | 10583 | |
c0d27fcc | 10584 | |
98418dba | 10585 | if test "${with_xim}" != "no"; then |
b936fae4 | 10586 | |
c0d27fcc | 10587 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10588 | #define USE_XIM 1 |
c0d27fcc | 10589 | _ACEOF |
98418dba | 10590 | |
793fa0d7 | 10591 | fi |
abd39b57 AC |
10592 | |
10593 | ||
10594 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
10595 | late_CFLAGS=$CFLAGS |
10596 | if test "$GCC" = yes; then | |
10597 | CFLAGS="$CFLAGS --pedantic-errors" | |
10598 | fi | |
cffcede7 | 10599 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10600 | /* confdefs.h. */ |
10601 | _ACEOF | |
10602 | cat confdefs.h >>conftest.$ac_ext | |
10603 | cat >>conftest.$ac_ext <<_ACEOF | |
10604 | /* end confdefs.h. */ | |
cffcede7 JD |
10605 | |
10606 | #include <X11/Xlib.h> | |
10607 | #include <X11/Xresource.h> | |
10608 | int | |
10609 | main () | |
10610 | { | |
10611 | Display *display; | |
10612 | XrmDatabase db; | |
10613 | char *res_name; | |
10614 | char *res_class; | |
10615 | XIMProc callback; | |
10616 | XPointer *client_data; | |
849d80cf DL |
10617 | #ifndef __GNUC__ |
10618 | /* If we're not using GCC, it's probably not XFree86, and this is | |
10619 | probably right, but we can't use something like --pedantic-errors. */ | |
10620 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
10621 | char*, XIMProc, XPointer*); | |
10622 | #endif | |
cffcede7 JD |
10623 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
10624 | client_data); | |
10625 | ; | |
10626 | return 0; | |
10627 | } | |
10628 | _ACEOF | |
10629 | rm -f conftest.$ac_objext | |
10630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10631 | (eval $ac_compile) 2>conftest.er1 |
cffcede7 | 10632 | ac_status=$? |
35996d22 AS |
10633 | grep -v '^ *+' conftest.er1 >conftest.err |
10634 | rm -f conftest.er1 | |
10635 | cat conftest.err >&5 | |
cffcede7 JD |
10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10637 | (exit $ac_status); } && | |
35996d22 AS |
10638 | { ac_try='test -z "$ac_c_werror_flag" |
10639 | || test ! -s conftest.err' | |
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10641 | (eval $ac_try) 2>&5 | |
10642 | ac_status=$? | |
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10644 | (exit $ac_status); }; } && | |
10645 | { ac_try='test -s conftest.$ac_objext' | |
cffcede7 JD |
10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10647 | (eval $ac_try) 2>&5 | |
10648 | ac_status=$? | |
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10650 | (exit $ac_status); }; }; then | |
10651 | emacs_cv_arg6_star=yes | |
10652 | else | |
10653 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10654 | sed 's/^/| /' conftest.$ac_ext >&5 |
10655 | ||
cffcede7 | 10656 | fi |
35996d22 | 10657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cffcede7 JD |
10658 | |
10659 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 10660 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10661 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
10662 | _ACEOF | |
10663 | ||
10664 | else | |
f57bd967 | 10665 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10666 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
10667 | _ACEOF | |
10668 | ||
10669 | fi | |
849d80cf | 10670 | CFLAGS=$late_CFLAGS |
98418dba CW |
10671 | fi |
10672 | ||
10673 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
10674 | HAVE_XPM=no | |
10675 | if test "${HAVE_X11}" = "yes"; then | |
10676 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
10677 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
10678 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
10679 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
10680 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10682 | fi |
10683 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
10684 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 10685 | else |
c0d27fcc MR |
10686 | # Is the header compilable? |
10687 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
10688 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
10689 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10690 | /* confdefs.h. */ |
10691 | _ACEOF | |
10692 | cat confdefs.h >>conftest.$ac_ext | |
10693 | cat >>conftest.$ac_ext <<_ACEOF | |
10694 | /* end confdefs.h. */ | |
c0d27fcc MR |
10695 | $ac_includes_default |
10696 | #include <X11/xpm.h> | |
10697 | _ACEOF | |
10698 | rm -f conftest.$ac_objext | |
10699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10700 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10701 | ac_status=$? |
35996d22 AS |
10702 | grep -v '^ *+' conftest.er1 >conftest.err |
10703 | rm -f conftest.er1 | |
10704 | cat conftest.err >&5 | |
c0d27fcc MR |
10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10706 | (exit $ac_status); } && | |
35996d22 AS |
10707 | { ac_try='test -z "$ac_c_werror_flag" |
10708 | || test ! -s conftest.err' | |
10709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10710 | (eval $ac_try) 2>&5 | |
10711 | ac_status=$? | |
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10713 | (exit $ac_status); }; } && | |
10714 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10716 | (eval $ac_try) 2>&5 | |
10717 | ac_status=$? | |
10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10719 | (exit $ac_status); }; }; then | |
10720 | ac_header_compiler=yes | |
10721 | else | |
10722 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10723 | sed 's/^/| /' conftest.$ac_ext >&5 |
10724 | ||
c0d27fcc MR |
10725 | ac_header_compiler=no |
10726 | fi | |
35996d22 | 10727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10728 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10729 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10730 | ||
10731 | # Is the header present? | |
10732 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
10733 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
10734 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10735 | /* confdefs.h. */ |
10736 | _ACEOF | |
10737 | cat confdefs.h >>conftest.$ac_ext | |
10738 | cat >>conftest.$ac_ext <<_ACEOF | |
10739 | /* end confdefs.h. */ | |
98418dba CW |
10740 | #include <X11/xpm.h> |
10741 | _ACEOF | |
c0d27fcc | 10742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10744 | ac_status=$? | |
6bae0ccf | 10745 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10746 | rm -f conftest.er1 |
10747 | cat conftest.err >&5 | |
c0d27fcc | 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10749 | (exit $ac_status); } >/dev/null; then |
10750 | if test -s conftest.err; then | |
10751 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10752 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
10753 | else |
10754 | ac_cpp_err= | |
10755 | fi | |
10756 | else | |
10757 | ac_cpp_err=yes | |
10758 | fi | |
10759 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10760 | ac_header_preproc=yes |
98418dba CW |
10761 | else |
10762 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10763 | sed 's/^/| /' conftest.$ac_ext >&5 |
10764 | ||
c0d27fcc | 10765 | ac_header_preproc=no |
98418dba CW |
10766 | fi |
10767 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10768 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10769 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10770 | ||
10771 | # So? What about this header? | |
35996d22 AS |
10772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10773 | yes:no: ) | |
c0d27fcc MR |
10774 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10775 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
10776 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
10777 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
10778 | ac_header_preproc=yes | |
19650fd6 | 10779 | ;; |
35996d22 | 10780 | no:yes:* ) |
c0d27fcc MR |
10781 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 |
10782 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
10783 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
10784 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
10785 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
10786 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
10787 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10788 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 10789 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10790 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
10791 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
10792 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
10793 | ( |
10794 | cat <<\_ASBOX | |
35996d22 AS |
10795 | ## ------------------------------------------ ## |
10796 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10797 | ## ------------------------------------------ ## | |
19650fd6 AS |
10798 | _ASBOX |
10799 | ) | | |
10800 | sed "s/^/$as_me: WARNING: /" >&2 | |
10801 | ;; | |
c0d27fcc MR |
10802 | esac |
10803 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
10804 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
10805 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10807 | else | |
10808 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 10809 | fi |
c0d27fcc | 10810 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 10811 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
10812 | |
10813 | fi | |
98418dba | 10814 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 10815 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
10816 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
10817 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 10818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10819 | else |
98418dba CW |
10820 | ac_check_lib_save_LIBS=$LIBS |
10821 | LIBS="-lXpm -lX11 $LIBS" | |
10822 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10823 | /* confdefs.h. */ |
10824 | _ACEOF | |
10825 | cat confdefs.h >>conftest.$ac_ext | |
10826 | cat >>conftest.$ac_ext <<_ACEOF | |
10827 | /* end confdefs.h. */ | |
98418dba | 10828 | |
ba4481b5 | 10829 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10830 | #ifdef __cplusplus |
10831 | extern "C" | |
10832 | #endif | |
ba4481b5 | 10833 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10834 | builtin and then its argument prototype would still apply. */ |
98418dba | 10835 | char XpmReadFileToPixmap (); |
503d2be0 AS |
10836 | int |
10837 | main () | |
10838 | { | |
98418dba | 10839 | XpmReadFileToPixmap (); |
503d2be0 AS |
10840 | ; |
10841 | return 0; | |
10842 | } | |
10843 | _ACEOF | |
10844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10846 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10847 | ac_status=$? |
35996d22 AS |
10848 | grep -v '^ *+' conftest.er1 >conftest.err |
10849 | rm -f conftest.er1 | |
10850 | cat conftest.err >&5 | |
c0d27fcc | 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10852 | (exit $ac_status); } && |
35996d22 AS |
10853 | { ac_try='test -z "$ac_c_werror_flag" |
10854 | || test ! -s conftest.err' | |
10855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10856 | (eval $ac_try) 2>&5 | |
10857 | ac_status=$? | |
10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10859 | (exit $ac_status); }; } && | |
10860 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10862 | (eval $ac_try) 2>&5 |
10863 | ac_status=$? | |
c0d27fcc | 10864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10865 | (exit $ac_status); }; }; then |
98418dba | 10866 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
10867 | else |
10868 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10869 | sed 's/^/| /' conftest.$ac_ext >&5 |
10870 | ||
98418dba | 10871 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 10872 | fi |
35996d22 AS |
10873 | rm -f conftest.err conftest.$ac_objext \ |
10874 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10875 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 10876 | fi |
c0d27fcc | 10877 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
10878 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
10879 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
10880 | HAVE_XPM=yes | |
ba4481b5 DL |
10881 | fi |
10882 | ||
98418dba CW |
10883 | fi |
10884 | ||
c0d27fcc | 10885 | |
98418dba | 10886 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10887 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
10888 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
10889 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10890 | /* confdefs.h. */ |
10891 | _ACEOF | |
10892 | cat confdefs.h >>conftest.$ac_ext | |
10893 | cat >>conftest.$ac_ext <<_ACEOF | |
10894 | /* end confdefs.h. */ | |
98418dba CW |
10895 | #include "X11/xpm.h" |
10896 | #ifndef XpmReturnAllocPixels | |
10897 | no_return_alloc_pixels | |
503d2be0 | 10898 | #endif |
ba4481b5 | 10899 | |
98418dba CW |
10900 | _ACEOF |
10901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10902 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
10903 | HAVE_XPM=no |
10904 | else | |
10905 | HAVE_XPM=yes | |
10906 | fi | |
10907 | rm -f conftest* | |
ba4481b5 | 10908 | |
c0d27fcc | 10909 | |
98418dba | 10910 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10911 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
10912 | echo "${ECHO_T}yes" >&6 |
10913 | else | |
c0d27fcc | 10914 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
10915 | echo "${ECHO_T}no" >&6 |
10916 | fi | |
10917 | fi | |
10918 | fi | |
10919 | ||
10920 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 10921 | |
c0d27fcc | 10922 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10923 | #define HAVE_XPM 1 |
c0d27fcc | 10924 | _ACEOF |
98418dba CW |
10925 | |
10926 | fi | |
10927 | fi | |
10928 | ||
10929 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
10930 | HAVE_JPEG=no | |
10931 | if test "${HAVE_X11}" = "yes"; then | |
10932 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
10933 | if test "${ac_cv_header_jerror_h+set}" = set; then |
10934 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
10935 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
10936 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10938 | fi |
10939 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
10940 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 10941 | else |
c0d27fcc MR |
10942 | # Is the header compilable? |
10943 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
10944 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
10945 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10946 | /* confdefs.h. */ |
10947 | _ACEOF | |
10948 | cat confdefs.h >>conftest.$ac_ext | |
10949 | cat >>conftest.$ac_ext <<_ACEOF | |
10950 | /* end confdefs.h. */ | |
c0d27fcc MR |
10951 | $ac_includes_default |
10952 | #include <jerror.h> | |
10953 | _ACEOF | |
10954 | rm -f conftest.$ac_objext | |
10955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10956 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10957 | ac_status=$? |
35996d22 AS |
10958 | grep -v '^ *+' conftest.er1 >conftest.err |
10959 | rm -f conftest.er1 | |
10960 | cat conftest.err >&5 | |
c0d27fcc MR |
10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10962 | (exit $ac_status); } && | |
35996d22 AS |
10963 | { ac_try='test -z "$ac_c_werror_flag" |
10964 | || test ! -s conftest.err' | |
10965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10966 | (eval $ac_try) 2>&5 | |
10967 | ac_status=$? | |
10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10969 | (exit $ac_status); }; } && | |
10970 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10972 | (eval $ac_try) 2>&5 | |
10973 | ac_status=$? | |
10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10975 | (exit $ac_status); }; }; then | |
10976 | ac_header_compiler=yes | |
10977 | else | |
10978 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10979 | sed 's/^/| /' conftest.$ac_ext >&5 |
10980 | ||
c0d27fcc MR |
10981 | ac_header_compiler=no |
10982 | fi | |
35996d22 | 10983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10985 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10986 | ||
10987 | # Is the header present? | |
10988 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
10989 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
10990 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10991 | /* confdefs.h. */ |
10992 | _ACEOF | |
10993 | cat confdefs.h >>conftest.$ac_ext | |
10994 | cat >>conftest.$ac_ext <<_ACEOF | |
10995 | /* end confdefs.h. */ | |
98418dba CW |
10996 | #include <jerror.h> |
10997 | _ACEOF | |
c0d27fcc | 10998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11000 | ac_status=$? | |
6bae0ccf | 11001 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11002 | rm -f conftest.er1 |
11003 | cat conftest.err >&5 | |
c0d27fcc | 11004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11005 | (exit $ac_status); } >/dev/null; then |
11006 | if test -s conftest.err; then | |
11007 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11009 | else |
11010 | ac_cpp_err= | |
11011 | fi | |
11012 | else | |
11013 | ac_cpp_err=yes | |
503d2be0 | 11014 | fi |
98418dba | 11015 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 11016 | ac_header_preproc=yes |
ba4481b5 | 11017 | else |
98418dba | 11018 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11019 | sed 's/^/| /' conftest.$ac_ext >&5 |
11020 | ||
c0d27fcc | 11021 | ac_header_preproc=no |
98418dba CW |
11022 | fi |
11023 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11025 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11026 | ||
11027 | # So? What about this header? | |
35996d22 AS |
11028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11029 | yes:no: ) | |
c0d27fcc MR |
11030 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11031 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11032 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
11033 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
11034 | ac_header_preproc=yes | |
19650fd6 | 11035 | ;; |
35996d22 | 11036 | no:yes:* ) |
c0d27fcc MR |
11037 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
11038 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11039 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
11040 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
11041 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
11042 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
11043 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11044 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11045 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11046 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11047 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
11048 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11049 | ( |
11050 | cat <<\_ASBOX | |
35996d22 AS |
11051 | ## ------------------------------------------ ## |
11052 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11053 | ## ------------------------------------------ ## | |
19650fd6 AS |
11054 | _ASBOX |
11055 | ) | | |
11056 | sed "s/^/$as_me: WARNING: /" >&2 | |
11057 | ;; | |
c0d27fcc MR |
11058 | esac |
11059 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
11060 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
11061 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
11062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11063 | else | |
11064 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 11065 | fi |
c0d27fcc | 11066 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 11067 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
11068 | |
11069 | fi | |
98418dba | 11070 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 11071 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
11072 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
11073 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 11074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11075 | else |
98418dba CW |
11076 | ac_check_lib_save_LIBS=$LIBS |
11077 | LIBS="-ljpeg $LIBS" | |
11078 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11079 | /* confdefs.h. */ |
11080 | _ACEOF | |
11081 | cat confdefs.h >>conftest.$ac_ext | |
11082 | cat >>conftest.$ac_ext <<_ACEOF | |
11083 | /* end confdefs.h. */ | |
98418dba CW |
11084 | |
11085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11086 | #ifdef __cplusplus | |
11087 | extern "C" | |
11088 | #endif | |
11089 | /* We use char because int might match the return type of a gcc2 | |
11090 | builtin and then its argument prototype would still apply. */ | |
11091 | char jpeg_destroy_compress (); | |
503d2be0 AS |
11092 | int |
11093 | main () | |
11094 | { | |
98418dba | 11095 | jpeg_destroy_compress (); |
503d2be0 AS |
11096 | ; |
11097 | return 0; | |
11098 | } | |
11099 | _ACEOF | |
11100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11102 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11103 | ac_status=$? |
35996d22 AS |
11104 | grep -v '^ *+' conftest.er1 >conftest.err |
11105 | rm -f conftest.er1 | |
11106 | cat conftest.err >&5 | |
c0d27fcc | 11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11108 | (exit $ac_status); } && |
35996d22 AS |
11109 | { ac_try='test -z "$ac_c_werror_flag" |
11110 | || test ! -s conftest.err' | |
11111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11112 | (eval $ac_try) 2>&5 | |
11113 | ac_status=$? | |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); }; } && | |
11116 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11118 | (eval $ac_try) 2>&5 |
11119 | ac_status=$? | |
c0d27fcc | 11120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11121 | (exit $ac_status); }; }; then |
98418dba | 11122 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 11123 | else |
503d2be0 | 11124 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11125 | sed 's/^/| /' conftest.$ac_ext >&5 |
11126 | ||
98418dba | 11127 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 11128 | fi |
35996d22 AS |
11129 | rm -f conftest.err conftest.$ac_objext \ |
11130 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11131 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 11132 | fi |
c0d27fcc | 11133 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
11134 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
11135 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
11136 | HAVE_JPEG=yes | |
ba4481b5 | 11137 | fi |
98418dba | 11138 | |
ba4481b5 | 11139 | fi |
98418dba | 11140 | |
c0d27fcc | 11141 | |
ba4481b5 | 11142 | fi |
ba4481b5 | 11143 | |
c0d27fcc | 11144 | |
98418dba | 11145 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 11146 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11147 | #define HAVE_JPEG 1 |
c0d27fcc | 11148 | _ACEOF |
98418dba CW |
11149 | |
11150 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11151 | /* confdefs.h. */ |
11152 | _ACEOF | |
11153 | cat confdefs.h >>conftest.$ac_ext | |
11154 | cat >>conftest.$ac_ext <<_ACEOF | |
11155 | /* end confdefs.h. */ | |
22044edf | 11156 | #include <jpeglib.h> |
98418dba CW |
11157 | version=JPEG_LIB_VERSION |
11158 | ||
11159 | _ACEOF | |
11160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 11161 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 11162 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11163 | #define HAVE_JPEG 1 |
c0d27fcc | 11164 | _ACEOF |
ba4481b5 | 11165 | |
98418dba | 11166 | else |
c0d27fcc | 11167 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
11168 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
11169 | HAVE_JPEG=no | |
ba4481b5 | 11170 | fi |
98418dba | 11171 | rm -f conftest* |
ba4481b5 | 11172 | |
98418dba CW |
11173 | fi |
11174 | fi | |
503d2be0 | 11175 | |
98418dba CW |
11176 | ### Use -lpng if available, unless `--with-png=no'. |
11177 | HAVE_PNG=no | |
11178 | if test "${HAVE_X11}" = "yes"; then | |
11179 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
11180 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
11181 | # in /usr/include/libpng. | |
11182 | ||
11183 | ||
11184 | for ac_header in png.h libpng/png.h | |
11185 | do | |
11186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 11192 | fi |
f57bd967 DL |
11193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
503d2be0 | 11195 | else |
c0d27fcc | 11196 | # Is the header compilable? |
f57bd967 DL |
11197 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
c0d27fcc | 11199 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11200 | /* confdefs.h. */ |
11201 | _ACEOF | |
11202 | cat confdefs.h >>conftest.$ac_ext | |
11203 | cat >>conftest.$ac_ext <<_ACEOF | |
11204 | /* end confdefs.h. */ | |
c0d27fcc | 11205 | $ac_includes_default |
f57bd967 | 11206 | #include <$ac_header> |
c0d27fcc MR |
11207 | _ACEOF |
11208 | rm -f conftest.$ac_objext | |
11209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11210 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11211 | ac_status=$? |
35996d22 AS |
11212 | grep -v '^ *+' conftest.er1 >conftest.err |
11213 | rm -f conftest.er1 | |
11214 | cat conftest.err >&5 | |
c0d27fcc MR |
11215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11216 | (exit $ac_status); } && | |
35996d22 AS |
11217 | { ac_try='test -z "$ac_c_werror_flag" |
11218 | || test ! -s conftest.err' | |
11219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11220 | (eval $ac_try) 2>&5 | |
11221 | ac_status=$? | |
11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11223 | (exit $ac_status); }; } && | |
11224 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11226 | (eval $ac_try) 2>&5 | |
11227 | ac_status=$? | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); }; }; then | |
11230 | ac_header_compiler=yes | |
11231 | else | |
11232 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11233 | sed 's/^/| /' conftest.$ac_ext >&5 |
11234 | ||
c0d27fcc MR |
11235 | ac_header_compiler=no |
11236 | fi | |
35996d22 | 11237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11238 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11239 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11240 | ||
11241 | # Is the header present? | |
f57bd967 DL |
11242 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11243 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
c0d27fcc | 11244 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11245 | /* confdefs.h. */ |
11246 | _ACEOF | |
11247 | cat confdefs.h >>conftest.$ac_ext | |
11248 | cat >>conftest.$ac_ext <<_ACEOF | |
11249 | /* end confdefs.h. */ | |
f57bd967 | 11250 | #include <$ac_header> |
503d2be0 | 11251 | _ACEOF |
c0d27fcc | 11252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11254 | ac_status=$? | |
6bae0ccf | 11255 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11256 | rm -f conftest.er1 |
11257 | cat conftest.err >&5 | |
c0d27fcc | 11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11259 | (exit $ac_status); } >/dev/null; then |
11260 | if test -s conftest.err; then | |
11261 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11262 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
11263 | else |
11264 | ac_cpp_err= | |
11265 | fi | |
11266 | else | |
11267 | ac_cpp_err=yes | |
11268 | fi | |
11269 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11270 | ac_header_preproc=yes |
503d2be0 AS |
11271 | else |
11272 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11273 | sed 's/^/| /' conftest.$ac_ext >&5 |
11274 | ||
c0d27fcc | 11275 | ac_header_preproc=no |
ba4481b5 | 11276 | fi |
503d2be0 | 11277 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11278 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11279 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11280 | ||
11281 | # So? What about this header? | |
35996d22 AS |
11282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11283 | yes:no: ) | |
f57bd967 DL |
11284 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11285 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11287 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11288 | ac_header_preproc=yes | |
19650fd6 | 11289 | ;; |
35996d22 | 11290 | no:yes:* ) |
f57bd967 DL |
11291 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11292 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
11293 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11294 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11295 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11296 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11297 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11298 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 11299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11300 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11301 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11302 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11303 | ( |
11304 | cat <<\_ASBOX | |
35996d22 AS |
11305 | ## ------------------------------------------ ## |
11306 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11307 | ## ------------------------------------------ ## | |
19650fd6 AS |
11308 | _ASBOX |
11309 | ) | | |
11310 | sed "s/^/$as_me: WARNING: /" >&2 | |
11311 | ;; | |
c0d27fcc | 11312 | esac |
f57bd967 DL |
11313 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11315 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
c0d27fcc MR |
11316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11317 | else | |
35996d22 | 11318 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 DL |
11319 | fi |
11320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11322 | ||
ba4481b5 | 11323 | fi |
f57bd967 DL |
11324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11325 | cat >>confdefs.h <<_ACEOF | |
11326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11327 | _ACEOF | |
c0d27fcc MR |
11328 | |
11329 | fi | |
f57bd967 DL |
11330 | |
11331 | done | |
11332 | ||
11333 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
11334 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
98418dba CW |
11335 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
11336 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 11337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11338 | else |
98418dba CW |
11339 | ac_check_lib_save_LIBS=$LIBS |
11340 | LIBS="-lpng -lz -lm $LIBS" | |
11341 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11342 | /* confdefs.h. */ |
11343 | _ACEOF | |
11344 | cat confdefs.h >>conftest.$ac_ext | |
11345 | cat >>conftest.$ac_ext <<_ACEOF | |
11346 | /* end confdefs.h. */ | |
98418dba | 11347 | |
ba4481b5 | 11348 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11349 | #ifdef __cplusplus |
11350 | extern "C" | |
11351 | #endif | |
ba4481b5 | 11352 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11353 | builtin and then its argument prototype would still apply. */ |
98418dba | 11354 | char png_get_channels (); |
503d2be0 AS |
11355 | int |
11356 | main () | |
11357 | { | |
98418dba | 11358 | png_get_channels (); |
503d2be0 AS |
11359 | ; |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11365 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11366 | ac_status=$? |
35996d22 AS |
11367 | grep -v '^ *+' conftest.er1 >conftest.err |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
c0d27fcc | 11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11371 | (exit $ac_status); } && |
35996d22 AS |
11372 | { ac_try='test -z "$ac_c_werror_flag" |
11373 | || test ! -s conftest.err' | |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; } && | |
11379 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11381 | (eval $ac_try) 2>&5 |
11382 | ac_status=$? | |
c0d27fcc | 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11384 | (exit $ac_status); }; }; then |
98418dba | 11385 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 11386 | else |
98418dba | 11387 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11388 | sed 's/^/| /' conftest.$ac_ext >&5 |
11389 | ||
98418dba | 11390 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 11391 | fi |
35996d22 AS |
11392 | rm -f conftest.err conftest.$ac_objext \ |
11393 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11394 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 11395 | fi |
c0d27fcc | 11396 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
11397 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
11398 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
11399 | HAVE_PNG=yes | |
73b77ee5 | 11400 | fi |
503d2be0 | 11401 | |
f57bd967 | 11402 | fi |
98418dba CW |
11403 | fi |
11404 | ||
11405 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 11406 | |
c0d27fcc | 11407 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11408 | #define HAVE_PNG 1 |
c0d27fcc | 11409 | _ACEOF |
73b77ee5 | 11410 | |
98418dba | 11411 | fi |
73b77ee5 GM |
11412 | fi |
11413 | ||
98418dba CW |
11414 | ### Use -ltiff if available, unless `--with-tiff=no'. |
11415 | HAVE_TIFF=no | |
11416 | if test "${HAVE_X11}" = "yes"; then | |
11417 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
11418 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
11419 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
11420 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
11421 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11423 | fi |
11424 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
11425 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 11426 | else |
c0d27fcc MR |
11427 | # Is the header compilable? |
11428 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
11429 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
11430 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11431 | /* confdefs.h. */ |
11432 | _ACEOF | |
11433 | cat confdefs.h >>conftest.$ac_ext | |
11434 | cat >>conftest.$ac_ext <<_ACEOF | |
11435 | /* end confdefs.h. */ | |
c0d27fcc MR |
11436 | $ac_includes_default |
11437 | #include <tiffio.h> | |
11438 | _ACEOF | |
11439 | rm -f conftest.$ac_objext | |
11440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11441 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11442 | ac_status=$? |
35996d22 AS |
11443 | grep -v '^ *+' conftest.er1 >conftest.err |
11444 | rm -f conftest.er1 | |
11445 | cat conftest.err >&5 | |
c0d27fcc MR |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11447 | (exit $ac_status); } && | |
35996d22 AS |
11448 | { ac_try='test -z "$ac_c_werror_flag" |
11449 | || test ! -s conftest.err' | |
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11451 | (eval $ac_try) 2>&5 | |
11452 | ac_status=$? | |
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11454 | (exit $ac_status); }; } && | |
11455 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11457 | (eval $ac_try) 2>&5 | |
11458 | ac_status=$? | |
11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11460 | (exit $ac_status); }; }; then | |
11461 | ac_header_compiler=yes | |
11462 | else | |
11463 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11464 | sed 's/^/| /' conftest.$ac_ext >&5 |
11465 | ||
c0d27fcc MR |
11466 | ac_header_compiler=no |
11467 | fi | |
35996d22 | 11468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11470 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11471 | ||
11472 | # Is the header present? | |
11473 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
11474 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
11475 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11476 | /* confdefs.h. */ |
11477 | _ACEOF | |
11478 | cat confdefs.h >>conftest.$ac_ext | |
11479 | cat >>conftest.$ac_ext <<_ACEOF | |
11480 | /* end confdefs.h. */ | |
98418dba CW |
11481 | #include <tiffio.h> |
11482 | _ACEOF | |
c0d27fcc | 11483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11485 | ac_status=$? | |
6bae0ccf | 11486 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11487 | rm -f conftest.er1 |
11488 | cat conftest.err >&5 | |
c0d27fcc | 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11490 | (exit $ac_status); } >/dev/null; then |
11491 | if test -s conftest.err; then | |
11492 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11494 | else |
11495 | ac_cpp_err= | |
11496 | fi | |
11497 | else | |
11498 | ac_cpp_err=yes | |
11499 | fi | |
11500 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11501 | ac_header_preproc=yes |
98418dba CW |
11502 | else |
11503 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11504 | sed 's/^/| /' conftest.$ac_ext >&5 |
11505 | ||
c0d27fcc | 11506 | ac_header_preproc=no |
98418dba CW |
11507 | fi |
11508 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11510 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11511 | ||
11512 | # So? What about this header? | |
35996d22 AS |
11513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11514 | yes:no: ) | |
c0d27fcc MR |
11515 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11516 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11517 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
11518 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
11519 | ac_header_preproc=yes | |
19650fd6 | 11520 | ;; |
35996d22 | 11521 | no:yes:* ) |
c0d27fcc MR |
11522 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
11523 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11524 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
11525 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
11526 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
11527 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
11528 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11529 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11530 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11531 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11532 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
11533 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11534 | ( |
11535 | cat <<\_ASBOX | |
35996d22 AS |
11536 | ## ------------------------------------------ ## |
11537 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11538 | ## ------------------------------------------ ## | |
19650fd6 AS |
11539 | _ASBOX |
11540 | ) | | |
11541 | sed "s/^/$as_me: WARNING: /" >&2 | |
11542 | ;; | |
c0d27fcc MR |
11543 | esac |
11544 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
11545 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
11546 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11548 | else | |
11549 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 11550 | fi |
c0d27fcc | 11551 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 11552 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
11553 | |
11554 | fi | |
98418dba CW |
11555 | if test $ac_cv_header_tiffio_h = yes; then |
11556 | tifflibs="-lz -lm" | |
11557 | # At least one tiff package requires the jpeg library. | |
11558 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 11559 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
11560 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
11561 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 11562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11563 | else |
503d2be0 | 11564 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11565 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 11566 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11567 | /* confdefs.h. */ |
11568 | _ACEOF | |
11569 | cat confdefs.h >>conftest.$ac_ext | |
11570 | cat >>conftest.$ac_ext <<_ACEOF | |
11571 | /* end confdefs.h. */ | |
503d2be0 | 11572 | |
73b77ee5 | 11573 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11574 | #ifdef __cplusplus |
11575 | extern "C" | |
11576 | #endif | |
73b77ee5 | 11577 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11578 | builtin and then its argument prototype would still apply. */ |
98418dba | 11579 | char TIFFGetVersion (); |
503d2be0 AS |
11580 | int |
11581 | main () | |
11582 | { | |
98418dba | 11583 | TIFFGetVersion (); |
503d2be0 AS |
11584 | ; |
11585 | return 0; | |
11586 | } | |
11587 | _ACEOF | |
11588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11590 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11591 | ac_status=$? |
35996d22 AS |
11592 | grep -v '^ *+' conftest.er1 >conftest.err |
11593 | rm -f conftest.er1 | |
11594 | cat conftest.err >&5 | |
c0d27fcc | 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11596 | (exit $ac_status); } && |
35996d22 AS |
11597 | { ac_try='test -z "$ac_c_werror_flag" |
11598 | || test ! -s conftest.err' | |
11599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11600 | (eval $ac_try) 2>&5 | |
11601 | ac_status=$? | |
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11603 | (exit $ac_status); }; } && | |
11604 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11606 | (eval $ac_try) 2>&5 |
11607 | ac_status=$? | |
c0d27fcc | 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11609 | (exit $ac_status); }; }; then |
98418dba | 11610 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
11611 | else |
11612 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11613 | sed 's/^/| /' conftest.$ac_ext >&5 |
11614 | ||
98418dba | 11615 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 11616 | fi |
35996d22 AS |
11617 | rm -f conftest.err conftest.$ac_objext \ |
11618 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
11619 | LIBS=$ac_check_lib_save_LIBS |
11620 | fi | |
c0d27fcc | 11621 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
11622 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
11623 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
11624 | HAVE_TIFF=yes | |
11625 | fi | |
11626 | ||
11627 | fi | |
73b77ee5 | 11628 | |
c0d27fcc | 11629 | |
98418dba CW |
11630 | fi |
11631 | ||
11632 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 11633 | |
c0d27fcc | 11634 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11635 | #define HAVE_TIFF 1 |
c0d27fcc | 11636 | _ACEOF |
98418dba CW |
11637 | |
11638 | fi | |
73b77ee5 GM |
11639 | fi |
11640 | ||
98418dba CW |
11641 | ### Use -lgif if available, unless `--with-gif=no'. |
11642 | HAVE_GIF=no | |
11643 | if test "${HAVE_X11}" = "yes"; then | |
11644 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
11645 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
11646 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
11647 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
11648 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11650 | fi |
11651 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
11652 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 11653 | else |
c0d27fcc MR |
11654 | # Is the header compilable? |
11655 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
11656 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
11657 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11658 | /* confdefs.h. */ |
11659 | _ACEOF | |
11660 | cat confdefs.h >>conftest.$ac_ext | |
11661 | cat >>conftest.$ac_ext <<_ACEOF | |
11662 | /* end confdefs.h. */ | |
c0d27fcc MR |
11663 | $ac_includes_default |
11664 | #include <gif_lib.h> | |
11665 | _ACEOF | |
11666 | rm -f conftest.$ac_objext | |
11667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11668 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11669 | ac_status=$? |
35996d22 AS |
11670 | grep -v '^ *+' conftest.er1 >conftest.err |
11671 | rm -f conftest.er1 | |
11672 | cat conftest.err >&5 | |
c0d27fcc MR |
11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11674 | (exit $ac_status); } && | |
35996d22 AS |
11675 | { ac_try='test -z "$ac_c_werror_flag" |
11676 | || test ! -s conftest.err' | |
11677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11678 | (eval $ac_try) 2>&5 | |
11679 | ac_status=$? | |
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11681 | (exit $ac_status); }; } && | |
11682 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11684 | (eval $ac_try) 2>&5 | |
11685 | ac_status=$? | |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11687 | (exit $ac_status); }; }; then | |
11688 | ac_header_compiler=yes | |
11689 | else | |
11690 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11691 | sed 's/^/| /' conftest.$ac_ext >&5 |
11692 | ||
c0d27fcc MR |
11693 | ac_header_compiler=no |
11694 | fi | |
35996d22 | 11695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11696 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11697 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11698 | ||
11699 | # Is the header present? | |
11700 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
11701 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
11702 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11703 | /* confdefs.h. */ |
11704 | _ACEOF | |
11705 | cat confdefs.h >>conftest.$ac_ext | |
11706 | cat >>conftest.$ac_ext <<_ACEOF | |
11707 | /* end confdefs.h. */ | |
98418dba CW |
11708 | #include <gif_lib.h> |
11709 | _ACEOF | |
c0d27fcc | 11710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11712 | ac_status=$? | |
6bae0ccf | 11713 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11714 | rm -f conftest.er1 |
11715 | cat conftest.err >&5 | |
c0d27fcc | 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11717 | (exit $ac_status); } >/dev/null; then |
11718 | if test -s conftest.err; then | |
11719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11721 | else |
11722 | ac_cpp_err= | |
11723 | fi | |
11724 | else | |
11725 | ac_cpp_err=yes | |
11726 | fi | |
11727 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11728 | ac_header_preproc=yes |
98418dba CW |
11729 | else |
11730 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
11732 | ||
c0d27fcc | 11733 | ac_header_preproc=no |
98418dba CW |
11734 | fi |
11735 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11736 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11737 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11738 | ||
11739 | # So? What about this header? | |
35996d22 AS |
11740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11741 | yes:no: ) | |
c0d27fcc MR |
11742 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11743 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11744 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
11745 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
11746 | ac_header_preproc=yes | |
19650fd6 | 11747 | ;; |
35996d22 | 11748 | no:yes:* ) |
c0d27fcc MR |
11749 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
11750 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11751 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
11752 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
11753 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
11754 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
11755 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11756 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11757 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11758 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11759 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
11760 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11761 | ( |
11762 | cat <<\_ASBOX | |
35996d22 AS |
11763 | ## ------------------------------------------ ## |
11764 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11765 | ## ------------------------------------------ ## | |
19650fd6 AS |
11766 | _ASBOX |
11767 | ) | | |
11768 | sed "s/^/$as_me: WARNING: /" >&2 | |
11769 | ;; | |
c0d27fcc MR |
11770 | esac |
11771 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
11772 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
11773 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11775 | else | |
11776 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 11777 | fi |
c0d27fcc | 11778 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 11779 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
11780 | |
11781 | fi | |
98418dba CW |
11782 | if test $ac_cv_header_gif_lib_h = yes; then |
11783 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
11784 | # Earlier versions can crash Emacs. | |
c0d27fcc | 11785 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
11786 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
11787 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 11788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11789 | else |
503d2be0 | 11790 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11791 | LIBS="-lungif $LIBS" |
503d2be0 | 11792 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11793 | /* confdefs.h. */ |
11794 | _ACEOF | |
11795 | cat confdefs.h >>conftest.$ac_ext | |
11796 | cat >>conftest.$ac_ext <<_ACEOF | |
11797 | /* end confdefs.h. */ | |
73b77ee5 | 11798 | |
98418dba CW |
11799 | /* Override any gcc2 internal prototype to avoid an error. */ |
11800 | #ifdef __cplusplus | |
11801 | extern "C" | |
11802 | #endif | |
11803 | /* We use char because int might match the return type of a gcc2 | |
11804 | builtin and then its argument prototype would still apply. */ | |
11805 | char EGifPutExtensionLast (); | |
503d2be0 AS |
11806 | int |
11807 | main () | |
11808 | { | |
98418dba | 11809 | EGifPutExtensionLast (); |
503d2be0 AS |
11810 | ; |
11811 | return 0; | |
11812 | } | |
11813 | _ACEOF | |
11814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11816 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11817 | ac_status=$? |
35996d22 AS |
11818 | grep -v '^ *+' conftest.er1 >conftest.err |
11819 | rm -f conftest.er1 | |
11820 | cat conftest.err >&5 | |
c0d27fcc | 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11822 | (exit $ac_status); } && |
35996d22 AS |
11823 | { ac_try='test -z "$ac_c_werror_flag" |
11824 | || test ! -s conftest.err' | |
c0d27fcc | 11825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
11826 | (eval $ac_try) 2>&5 |
11827 | ac_status=$? | |
c0d27fcc | 11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
11829 | (exit $ac_status); }; } && |
11830 | { ac_try='test -s conftest$ac_exeext' | |
11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11832 | (eval $ac_try) 2>&5 | |
11833 | ac_status=$? | |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11835 | (exit $ac_status); }; }; then | |
11836 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
11837 | else | |
98418dba | 11838 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11839 | sed 's/^/| /' conftest.$ac_ext >&5 |
11840 | ||
98418dba CW |
11841 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
11842 | fi | |
35996d22 AS |
11843 | rm -f conftest.err conftest.$ac_objext \ |
11844 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
11845 | LIBS=$ac_check_lib_save_LIBS |
11846 | fi | |
c0d27fcc | 11847 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
11848 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
11849 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
11850 | HAVE_GIF=yes | |
11851 | fi | |
11852 | ||
11853 | fi | |
11854 | ||
c0d27fcc | 11855 | |
98418dba CW |
11856 | fi |
11857 | ||
11858 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 11859 | |
c0d27fcc | 11860 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11861 | #define HAVE_GIF 1 |
c0d27fcc | 11862 | _ACEOF |
98418dba CW |
11863 | |
11864 | fi | |
11865 | fi | |
11866 | ||
c0d27fcc MR |
11867 | ### Use Mac OS X Carbon API to implement GUI. |
11868 | HAVE_CARBON=no | |
11869 | if test "${with_carbon}" != "no"; then | |
11870 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11871 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11872 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11873 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11875 | fi | |
11876 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
11877 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
11878 | else | |
11879 | # Is the header compilable? | |
11880 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
11881 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
11882 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11883 | /* confdefs.h. */ |
11884 | _ACEOF | |
11885 | cat confdefs.h >>conftest.$ac_ext | |
11886 | cat >>conftest.$ac_ext <<_ACEOF | |
11887 | /* end confdefs.h. */ | |
c0d27fcc MR |
11888 | $ac_includes_default |
11889 | #include <Carbon/Carbon.h> | |
11890 | _ACEOF | |
11891 | rm -f conftest.$ac_objext | |
11892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11893 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11894 | ac_status=$? |
35996d22 AS |
11895 | grep -v '^ *+' conftest.er1 >conftest.err |
11896 | rm -f conftest.er1 | |
11897 | cat conftest.err >&5 | |
c0d27fcc MR |
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11899 | (exit $ac_status); } && | |
35996d22 AS |
11900 | { ac_try='test -z "$ac_c_werror_flag" |
11901 | || test ! -s conftest.err' | |
11902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11903 | (eval $ac_try) 2>&5 | |
11904 | ac_status=$? | |
11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11906 | (exit $ac_status); }; } && | |
11907 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11909 | (eval $ac_try) 2>&5 | |
11910 | ac_status=$? | |
11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11912 | (exit $ac_status); }; }; then | |
11913 | ac_header_compiler=yes | |
11914 | else | |
11915 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11916 | sed 's/^/| /' conftest.$ac_ext >&5 |
11917 | ||
c0d27fcc MR |
11918 | ac_header_compiler=no |
11919 | fi | |
35996d22 | 11920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11921 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11922 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11923 | ||
11924 | # Is the header present? | |
11925 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
11926 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
11927 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11928 | /* confdefs.h. */ |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
e0f712ba AC |
11933 | #include <Carbon/Carbon.h> |
11934 | _ACEOF | |
c0d27fcc | 11935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
11936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11937 | ac_status=$? | |
6bae0ccf | 11938 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
11939 | rm -f conftest.er1 |
11940 | cat conftest.err >&5 | |
c0d27fcc | 11941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
11942 | (exit $ac_status); } >/dev/null; then |
11943 | if test -s conftest.err; then | |
11944 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11945 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e0f712ba AC |
11946 | else |
11947 | ac_cpp_err= | |
11948 | fi | |
11949 | else | |
11950 | ac_cpp_err=yes | |
11951 | fi | |
11952 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11953 | ac_header_preproc=yes |
e0f712ba AC |
11954 | else |
11955 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11956 | sed 's/^/| /' conftest.$ac_ext >&5 |
11957 | ||
c0d27fcc | 11958 | ac_header_preproc=no |
e0f712ba AC |
11959 | fi |
11960 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11961 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11962 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11963 | ||
11964 | # So? What about this header? | |
35996d22 AS |
11965 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11966 | yes:no: ) | |
c0d27fcc MR |
11967 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11968 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11969 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
11970 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
11971 | ac_header_preproc=yes | |
19650fd6 | 11972 | ;; |
35996d22 | 11973 | no:yes:* ) |
c0d27fcc MR |
11974 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
11975 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11976 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
11977 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
11978 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
11979 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
11980 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11981 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11982 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11983 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11984 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
11985 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11986 | ( |
11987 | cat <<\_ASBOX | |
35996d22 AS |
11988 | ## ------------------------------------------ ## |
11989 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11990 | ## ------------------------------------------ ## | |
19650fd6 AS |
11991 | _ASBOX |
11992 | ) | | |
11993 | sed "s/^/$as_me: WARNING: /" >&2 | |
11994 | ;; | |
c0d27fcc MR |
11995 | esac |
11996 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11997 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11998 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12000 | else | |
12001 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 12002 | fi |
c0d27fcc | 12003 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 12004 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
12005 | |
12006 | fi | |
e0f712ba AC |
12007 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
12008 | HAVE_CARBON=yes | |
12009 | fi | |
12010 | ||
c0d27fcc | 12011 | |
e0f712ba AC |
12012 | fi |
12013 | ||
12014 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 12015 | |
c0d27fcc | 12016 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 12017 | #define HAVE_CARBON 1 |
c0d27fcc | 12018 | _ACEOF |
e0f712ba | 12019 | |
6a3a24fa JD |
12020 | window_system=mac |
12021 | ## Specify the install directory | |
12022 | carbon_appdir= | |
12023 | if test "${carbon_appdir_x}" != ""; then | |
12024 | case ${carbon_appdir_x} in | |
12025 | y | ye | yes) carbon_appdir=/Applications ;; | |
12026 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
12027 | esac | |
12028 | fi | |
8f417b3b AS |
12029 | # We also have mouse menus. |
12030 | HAVE_MENUS=yes | |
e0f712ba AC |
12031 | fi |
12032 | ||
98418dba CW |
12033 | ### Use session management (-lSM -lICE) if available |
12034 | HAVE_X_SM=no | |
12035 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
12036 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
12037 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
12038 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
12039 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
12041 | fi |
12042 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
12043 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 12044 | else |
c0d27fcc MR |
12045 | # Is the header compilable? |
12046 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
12047 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
12048 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12049 | /* confdefs.h. */ |
12050 | _ACEOF | |
12051 | cat confdefs.h >>conftest.$ac_ext | |
12052 | cat >>conftest.$ac_ext <<_ACEOF | |
12053 | /* end confdefs.h. */ | |
c0d27fcc MR |
12054 | $ac_includes_default |
12055 | #include <X11/SM/SMlib.h> | |
12056 | _ACEOF | |
12057 | rm -f conftest.$ac_objext | |
12058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 12059 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 12060 | ac_status=$? |
35996d22 AS |
12061 | grep -v '^ *+' conftest.er1 >conftest.err |
12062 | rm -f conftest.er1 | |
12063 | cat conftest.err >&5 | |
c0d27fcc MR |
12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12065 | (exit $ac_status); } && | |
35996d22 AS |
12066 | { ac_try='test -z "$ac_c_werror_flag" |
12067 | || test ! -s conftest.err' | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12069 | (eval $ac_try) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); }; } && | |
12073 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
12074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12075 | (eval $ac_try) 2>&5 | |
12076 | ac_status=$? | |
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12078 | (exit $ac_status); }; }; then | |
12079 | ac_header_compiler=yes | |
12080 | else | |
12081 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12082 | sed 's/^/| /' conftest.$ac_ext >&5 |
12083 | ||
c0d27fcc MR |
12084 | ac_header_compiler=no |
12085 | fi | |
35996d22 | 12086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
12087 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12088 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12089 | ||
12090 | # Is the header present? | |
12091 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
12092 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
12093 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12094 | /* confdefs.h. */ |
12095 | _ACEOF | |
12096 | cat confdefs.h >>conftest.$ac_ext | |
12097 | cat >>conftest.$ac_ext <<_ACEOF | |
12098 | /* end confdefs.h. */ | |
98418dba CW |
12099 | #include <X11/SM/SMlib.h> |
12100 | _ACEOF | |
c0d27fcc | 12101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12103 | ac_status=$? | |
6bae0ccf | 12104 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12105 | rm -f conftest.er1 |
12106 | cat conftest.err >&5 | |
c0d27fcc | 12107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12108 | (exit $ac_status); } >/dev/null; then |
12109 | if test -s conftest.err; then | |
12110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 12111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
12112 | else |
12113 | ac_cpp_err= | |
12114 | fi | |
12115 | else | |
12116 | ac_cpp_err=yes | |
503d2be0 | 12117 | fi |
98418dba | 12118 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12119 | ac_header_preproc=yes |
98418dba CW |
12120 | else |
12121 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12122 | sed 's/^/| /' conftest.$ac_ext >&5 |
12123 | ||
c0d27fcc | 12124 | ac_header_preproc=no |
98418dba CW |
12125 | fi |
12126 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
12127 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12128 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12129 | ||
12130 | # So? What about this header? | |
35996d22 AS |
12131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12132 | yes:no: ) | |
c0d27fcc MR |
12133 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12134 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
12135 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
12136 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
12137 | ac_header_preproc=yes | |
19650fd6 | 12138 | ;; |
35996d22 | 12139 | no:yes:* ) |
c0d27fcc MR |
12140 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
12141 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
12142 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
12143 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
12144 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
12145 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
12146 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12147 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 12148 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12149 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
12150 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
12151 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
12152 | ( |
12153 | cat <<\_ASBOX | |
35996d22 AS |
12154 | ## ------------------------------------------ ## |
12155 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12156 | ## ------------------------------------------ ## | |
19650fd6 AS |
12157 | _ASBOX |
12158 | ) | | |
12159 | sed "s/^/$as_me: WARNING: /" >&2 | |
12160 | ;; | |
c0d27fcc MR |
12161 | esac |
12162 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
12163 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
12164 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12166 | else | |
12167 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 12168 | fi |
c0d27fcc | 12169 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 12170 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
12171 | |
12172 | fi | |
98418dba | 12173 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 12174 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
12175 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
12176 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 12177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 12178 | else |
503d2be0 | 12179 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 12180 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 12181 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12182 | /* confdefs.h. */ |
12183 | _ACEOF | |
12184 | cat confdefs.h >>conftest.$ac_ext | |
12185 | cat >>conftest.$ac_ext <<_ACEOF | |
12186 | /* end confdefs.h. */ | |
503d2be0 | 12187 | |
73b77ee5 | 12188 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12189 | #ifdef __cplusplus |
12190 | extern "C" | |
12191 | #endif | |
73b77ee5 | 12192 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12193 | builtin and then its argument prototype would still apply. */ |
98418dba | 12194 | char SmcOpenConnection (); |
503d2be0 AS |
12195 | int |
12196 | main () | |
12197 | { | |
98418dba | 12198 | SmcOpenConnection (); |
503d2be0 AS |
12199 | ; |
12200 | return 0; | |
12201 | } | |
12202 | _ACEOF | |
12203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12205 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12206 | ac_status=$? |
35996d22 AS |
12207 | grep -v '^ *+' conftest.er1 >conftest.err |
12208 | rm -f conftest.er1 | |
12209 | cat conftest.err >&5 | |
c0d27fcc | 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12211 | (exit $ac_status); } && |
35996d22 AS |
12212 | { ac_try='test -z "$ac_c_werror_flag" |
12213 | || test ! -s conftest.err' | |
12214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12215 | (eval $ac_try) 2>&5 | |
12216 | ac_status=$? | |
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12218 | (exit $ac_status); }; } && | |
12219 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12221 | (eval $ac_try) 2>&5 |
12222 | ac_status=$? | |
c0d27fcc | 12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12224 | (exit $ac_status); }; }; then |
98418dba | 12225 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
12226 | else |
12227 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12228 | sed 's/^/| /' conftest.$ac_ext >&5 |
12229 | ||
98418dba | 12230 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 12231 | fi |
35996d22 AS |
12232 | rm -f conftest.err conftest.$ac_objext \ |
12233 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
12234 | LIBS=$ac_check_lib_save_LIBS |
12235 | fi | |
c0d27fcc | 12236 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
12237 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
12238 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
12239 | HAVE_X_SM=yes | |
73b77ee5 GM |
12240 | fi |
12241 | ||
73b77ee5 | 12242 | fi |
73b77ee5 | 12243 | |
c0d27fcc MR |
12244 | |
12245 | ||
98418dba | 12246 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 12247 | |
c0d27fcc | 12248 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12249 | #define HAVE_X_SM 1 |
c0d27fcc | 12250 | _ACEOF |
73b77ee5 | 12251 | |
98418dba CW |
12252 | case "$LIBS" in |
12253 | *-lSM*) ;; | |
12254 | *) LIBS="-lSM -lICE $LIBS" ;; | |
12255 | esac | |
73b77ee5 | 12256 | fi |
98418dba | 12257 | fi |
73b77ee5 | 12258 | |
98418dba | 12259 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 12260 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
12261 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
12262 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12264 | else | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12266 | /* confdefs.h. */ |
12267 | _ACEOF | |
12268 | cat confdefs.h >>conftest.$ac_ext | |
12269 | cat >>conftest.$ac_ext <<_ACEOF | |
12270 | /* end confdefs.h. */ | |
98418dba | 12271 | #include <netdb.h> |
503d2be0 AS |
12272 | int |
12273 | main () | |
12274 | { | |
98418dba | 12275 | return h_errno; |
503d2be0 AS |
12276 | ; |
12277 | return 0; | |
12278 | } | |
12279 | _ACEOF | |
12280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12282 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12283 | ac_status=$? |
35996d22 AS |
12284 | grep -v '^ *+' conftest.er1 >conftest.err |
12285 | rm -f conftest.er1 | |
12286 | cat conftest.err >&5 | |
c0d27fcc | 12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12288 | (exit $ac_status); } && |
35996d22 AS |
12289 | { ac_try='test -z "$ac_c_werror_flag" |
12290 | || test ! -s conftest.err' | |
12291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12292 | (eval $ac_try) 2>&5 | |
12293 | ac_status=$? | |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12295 | (exit $ac_status); }; } && | |
12296 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12298 | (eval $ac_try) 2>&5 |
12299 | ac_status=$? | |
c0d27fcc | 12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12301 | (exit $ac_status); }; }; then |
98418dba | 12302 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 12303 | else |
503d2be0 | 12304 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12305 | sed 's/^/| /' conftest.$ac_ext >&5 |
12306 | ||
98418dba | 12307 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 12308 | fi |
35996d22 AS |
12309 | rm -f conftest.err conftest.$ac_objext \ |
12310 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12311 | fi |
c0d27fcc | 12312 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
12313 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
12314 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 12315 | |
c0d27fcc | 12316 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12317 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 12318 | _ACEOF |
73b77ee5 | 12319 | |
98418dba CW |
12320 | fi |
12321 | ||
12322 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12323 | # for constant arguments. Useless! | |
c0d27fcc | 12324 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
12325 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
12326 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12328 | else | |
12329 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12330 | /* confdefs.h. */ |
12331 | _ACEOF | |
12332 | cat confdefs.h >>conftest.$ac_ext | |
12333 | cat >>conftest.$ac_ext <<_ACEOF | |
12334 | /* end confdefs.h. */ | |
98418dba | 12335 | #include <alloca.h> |
503d2be0 AS |
12336 | int |
12337 | main () | |
12338 | { | |
98418dba | 12339 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
12340 | ; |
12341 | return 0; | |
12342 | } | |
12343 | _ACEOF | |
12344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12346 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12347 | ac_status=$? |
35996d22 AS |
12348 | grep -v '^ *+' conftest.er1 >conftest.err |
12349 | rm -f conftest.er1 | |
12350 | cat conftest.err >&5 | |
c0d27fcc | 12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12352 | (exit $ac_status); } && |
35996d22 AS |
12353 | { ac_try='test -z "$ac_c_werror_flag" |
12354 | || test ! -s conftest.err' | |
12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12356 | (eval $ac_try) 2>&5 | |
12357 | ac_status=$? | |
12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12359 | (exit $ac_status); }; } && | |
12360 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12362 | (eval $ac_try) 2>&5 |
12363 | ac_status=$? | |
c0d27fcc | 12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12365 | (exit $ac_status); }; }; then |
98418dba | 12366 | ac_cv_working_alloca_h=yes |
73b77ee5 | 12367 | else |
503d2be0 | 12368 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12369 | sed 's/^/| /' conftest.$ac_ext >&5 |
12370 | ||
98418dba | 12371 | ac_cv_working_alloca_h=no |
73b77ee5 | 12372 | fi |
35996d22 AS |
12373 | rm -f conftest.err conftest.$ac_objext \ |
12374 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12375 | fi |
c0d27fcc | 12376 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
12377 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
12378 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 12379 | |
c0d27fcc | 12380 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12381 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 12382 | _ACEOF |
98418dba CW |
12383 | |
12384 | fi | |
12385 | ||
c0d27fcc | 12386 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
12387 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
12388 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12390 | else | |
503d2be0 | 12391 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12392 | /* confdefs.h. */ |
12393 | _ACEOF | |
12394 | cat confdefs.h >>conftest.$ac_ext | |
12395 | cat >>conftest.$ac_ext <<_ACEOF | |
12396 | /* end confdefs.h. */ | |
98418dba CW |
12397 | #ifdef __GNUC__ |
12398 | # define alloca __builtin_alloca | |
12399 | #else | |
12400 | # ifdef _MSC_VER | |
12401 | # include <malloc.h> | |
12402 | # define alloca _alloca | |
12403 | # else | |
12404 | # if HAVE_ALLOCA_H | |
12405 | # include <alloca.h> | |
12406 | # else | |
12407 | # ifdef _AIX | |
12408 | #pragma alloca | |
12409 | # else | |
12410 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12411 | char *alloca (); | |
12412 | # endif | |
12413 | # endif | |
12414 | # endif | |
12415 | # endif | |
12416 | #endif | |
12417 | ||
503d2be0 AS |
12418 | int |
12419 | main () | |
12420 | { | |
98418dba | 12421 | char *p = (char *) alloca (1); |
503d2be0 AS |
12422 | ; |
12423 | return 0; | |
12424 | } | |
12425 | _ACEOF | |
12426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12428 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12429 | ac_status=$? |
35996d22 AS |
12430 | grep -v '^ *+' conftest.er1 >conftest.err |
12431 | rm -f conftest.er1 | |
12432 | cat conftest.err >&5 | |
c0d27fcc | 12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12434 | (exit $ac_status); } && |
35996d22 AS |
12435 | { ac_try='test -z "$ac_c_werror_flag" |
12436 | || test ! -s conftest.err' | |
12437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12438 | (eval $ac_try) 2>&5 | |
12439 | ac_status=$? | |
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12441 | (exit $ac_status); }; } && | |
12442 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12444 | (eval $ac_try) 2>&5 |
12445 | ac_status=$? | |
c0d27fcc | 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12447 | (exit $ac_status); }; }; then |
98418dba | 12448 | ac_cv_func_alloca_works=yes |
ac95a621 | 12449 | else |
503d2be0 | 12450 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12451 | sed 's/^/| /' conftest.$ac_ext >&5 |
12452 | ||
98418dba | 12453 | ac_cv_func_alloca_works=no |
ac95a621 | 12454 | fi |
35996d22 AS |
12455 | rm -f conftest.err conftest.$ac_objext \ |
12456 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12457 | fi |
c0d27fcc | 12458 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 12459 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 12460 | |
98418dba CW |
12461 | if test $ac_cv_func_alloca_works = yes; then |
12462 | ||
c0d27fcc | 12463 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12464 | #define HAVE_ALLOCA 1 |
c0d27fcc | 12465 | _ACEOF |
98418dba CW |
12466 | |
12467 | else | |
12468 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12469 | # that cause trouble. Some versions do not even contain alloca or | |
12470 | # contain a buggy version. If you still want to use their alloca, | |
12471 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12472 | ||
12473 | ALLOCA=alloca.$ac_objext | |
12474 | ||
c0d27fcc | 12475 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12476 | #define C_ALLOCA 1 |
c0d27fcc | 12477 | _ACEOF |
98418dba | 12478 | |
c0d27fcc MR |
12479 | |
12480 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
12481 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
12482 | if test "${ac_cv_os_cray+set}" = set; then | |
12483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12484 | else | |
12485 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12486 | /* confdefs.h. */ |
12487 | _ACEOF | |
12488 | cat confdefs.h >>conftest.$ac_ext | |
12489 | cat >>conftest.$ac_ext <<_ACEOF | |
12490 | /* end confdefs.h. */ | |
98418dba CW |
12491 | #if defined(CRAY) && ! defined(CRAY2) |
12492 | webecray | |
12493 | #else | |
12494 | wenotbecray | |
12495 | #endif | |
12496 | ||
12497 | _ACEOF | |
12498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 12499 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
12500 | ac_cv_os_cray=yes |
12501 | else | |
12502 | ac_cv_os_cray=no | |
12503 | fi | |
12504 | rm -f conftest* | |
ac95a621 | 12505 | |
98418dba | 12506 | fi |
c0d27fcc | 12507 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
12508 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
12509 | if test $ac_cv_os_cray = yes; then | |
12510 | for ac_func in _getb67 GETB67 getb67; do | |
12511 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12512 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12513 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12514 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 12516 | else |
503d2be0 | 12517 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12518 | /* confdefs.h. */ |
12519 | _ACEOF | |
12520 | cat confdefs.h >>conftest.$ac_ext | |
12521 | cat >>conftest.$ac_ext <<_ACEOF | |
12522 | /* end confdefs.h. */ | |
35996d22 AS |
12523 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12524 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12525 | #define $ac_func innocuous_$ac_func | |
12526 | ||
73b77ee5 | 12527 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12528 | which can conflict with char $ac_func (); below. |
12529 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12530 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12531 | |
19650fd6 AS |
12532 | #ifdef __STDC__ |
12533 | # include <limits.h> | |
12534 | #else | |
12535 | # include <assert.h> | |
12536 | #endif | |
35996d22 AS |
12537 | |
12538 | #undef $ac_func | |
12539 | ||
73b77ee5 | 12540 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12541 | #ifdef __cplusplus |
12542 | extern "C" | |
19650fd6 | 12543 | { |
503d2be0 | 12544 | #endif |
73b77ee5 | 12545 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12546 | builtin and then its argument prototype would still apply. */ |
12547 | char $ac_func (); | |
73b77ee5 GM |
12548 | /* The GNU C library defines this for functions which it implements |
12549 | to always fail with ENOSYS. Some functions are actually named | |
12550 | something starting with __ and the normal name is an alias. */ | |
12551 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12552 | choke me | |
12553 | #else | |
19650fd6 AS |
12554 | char (*f) () = $ac_func; |
12555 | #endif | |
12556 | #ifdef __cplusplus | |
12557 | } | |
73b77ee5 GM |
12558 | #endif |
12559 | ||
19650fd6 AS |
12560 | int |
12561 | main () | |
12562 | { | |
12563 | return f != $ac_func; | |
503d2be0 AS |
12564 | ; |
12565 | return 0; | |
12566 | } | |
12567 | _ACEOF | |
12568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12570 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12571 | ac_status=$? |
35996d22 AS |
12572 | grep -v '^ *+' conftest.er1 >conftest.err |
12573 | rm -f conftest.er1 | |
12574 | cat conftest.err >&5 | |
c0d27fcc | 12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12576 | (exit $ac_status); } && |
35996d22 AS |
12577 | { ac_try='test -z "$ac_c_werror_flag" |
12578 | || test ! -s conftest.err' | |
12579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12580 | (eval $ac_try) 2>&5 | |
12581 | ac_status=$? | |
12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12583 | (exit $ac_status); }; } && | |
12584 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12586 | (eval $ac_try) 2>&5 |
12587 | ac_status=$? | |
c0d27fcc | 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12589 | (exit $ac_status); }; }; then |
12590 | eval "$as_ac_var=yes" | |
12591 | else | |
12592 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12593 | sed 's/^/| /' conftest.$ac_ext >&5 |
12594 | ||
503d2be0 AS |
12595 | eval "$as_ac_var=no" |
12596 | fi | |
35996d22 AS |
12597 | rm -f conftest.err conftest.$ac_objext \ |
12598 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 12599 | fi |
c0d27fcc | 12600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12601 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12602 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 12603 | |
c0d27fcc | 12604 | cat >>confdefs.h <<_ACEOF |
98418dba | 12605 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 12606 | _ACEOF |
98418dba CW |
12607 | |
12608 | break | |
73b77ee5 | 12609 | fi |
73b77ee5 | 12610 | |
98418dba | 12611 | done |
73b77ee5 GM |
12612 | fi |
12613 | ||
c0d27fcc | 12614 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
12615 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
12616 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 12617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
12618 | else |
12619 | if test "$cross_compiling" = yes; then | |
12620 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 12621 | else |
503d2be0 | 12622 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12623 | /* confdefs.h. */ |
12624 | _ACEOF | |
12625 | cat confdefs.h >>conftest.$ac_ext | |
12626 | cat >>conftest.$ac_ext <<_ACEOF | |
12627 | /* end confdefs.h. */ | |
503d2be0 | 12628 | int |
98418dba | 12629 | find_stack_direction () |
503d2be0 | 12630 | { |
98418dba CW |
12631 | static char *addr = 0; |
12632 | auto char dummy; | |
12633 | if (addr == 0) | |
12634 | { | |
12635 | addr = &dummy; | |
12636 | return find_stack_direction (); | |
12637 | } | |
73b77ee5 | 12638 | else |
98418dba CW |
12639 | return (&dummy > addr) ? 1 : -1; |
12640 | } | |
ba4481b5 | 12641 | |
503d2be0 AS |
12642 | int |
12643 | main () | |
12644 | { | |
98418dba | 12645 | exit (find_stack_direction () < 0); |
503d2be0 AS |
12646 | } |
12647 | _ACEOF | |
98418dba | 12648 | rm -f conftest$ac_exeext |
c0d27fcc | 12649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12650 | (eval $ac_link) 2>&5 |
12651 | ac_status=$? | |
c0d27fcc | 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 12654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12655 | (eval $ac_try) 2>&5 |
12656 | ac_status=$? | |
c0d27fcc | 12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12658 | (exit $ac_status); }; }; then |
98418dba | 12659 | ac_cv_c_stack_direction=1 |
ba4481b5 | 12660 | else |
98418dba CW |
12661 | echo "$as_me: program exited with status $ac_status" >&5 |
12662 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12663 | sed 's/^/| /' conftest.$ac_ext >&5 |
12664 | ||
c0d27fcc | 12665 | ( exit $ac_status ) |
98418dba | 12666 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 12667 | fi |
35996d22 | 12668 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 12669 | fi |
98418dba | 12670 | fi |
c0d27fcc | 12671 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
12672 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
12673 | ||
c0d27fcc | 12674 | cat >>confdefs.h <<_ACEOF |
98418dba | 12675 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
12676 | _ACEOF |
12677 | ||
ba4481b5 | 12678 | |
ba4481b5 DL |
12679 | fi |
12680 | ||
c0d27fcc | 12681 | |
98418dba CW |
12682 | # fmod, logb, and frexp are found in -lm on most systems. |
12683 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
12684 | ||
c0d27fcc | 12685 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
12686 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
12687 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 12688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12689 | else |
98418dba CW |
12690 | ac_check_lib_save_LIBS=$LIBS |
12691 | LIBS="-lm $LIBS" | |
12692 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12693 | /* confdefs.h. */ |
12694 | _ACEOF | |
12695 | cat confdefs.h >>conftest.$ac_ext | |
12696 | cat >>conftest.$ac_ext <<_ACEOF | |
12697 | /* end confdefs.h. */ | |
ba4481b5 | 12698 | |
98418dba CW |
12699 | /* Override any gcc2 internal prototype to avoid an error. */ |
12700 | #ifdef __cplusplus | |
12701 | extern "C" | |
12702 | #endif | |
12703 | /* We use char because int might match the return type of a gcc2 | |
12704 | builtin and then its argument prototype would still apply. */ | |
12705 | char sqrt (); | |
503d2be0 AS |
12706 | int |
12707 | main () | |
12708 | { | |
98418dba | 12709 | sqrt (); |
503d2be0 AS |
12710 | ; |
12711 | return 0; | |
12712 | } | |
12713 | _ACEOF | |
12714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12716 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12717 | ac_status=$? |
35996d22 AS |
12718 | grep -v '^ *+' conftest.er1 >conftest.err |
12719 | rm -f conftest.er1 | |
12720 | cat conftest.err >&5 | |
c0d27fcc | 12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12722 | (exit $ac_status); } && |
35996d22 AS |
12723 | { ac_try='test -z "$ac_c_werror_flag" |
12724 | || test ! -s conftest.err' | |
12725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12726 | (eval $ac_try) 2>&5 | |
12727 | ac_status=$? | |
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12729 | (exit $ac_status); }; } && | |
12730 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12732 | (eval $ac_try) 2>&5 |
12733 | ac_status=$? | |
c0d27fcc | 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12735 | (exit $ac_status); }; }; then |
98418dba | 12736 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 12737 | else |
503d2be0 | 12738 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12739 | sed 's/^/| /' conftest.$ac_ext >&5 |
12740 | ||
98418dba | 12741 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 12742 | fi |
35996d22 AS |
12743 | rm -f conftest.err conftest.$ac_objext \ |
12744 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12745 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12746 | fi |
c0d27fcc | 12747 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
12748 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
12749 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 12750 | cat >>confdefs.h <<_ACEOF |
98418dba | 12751 | #define HAVE_LIBM 1 |
c0d27fcc | 12752 | _ACEOF |
98418dba CW |
12753 | |
12754 | LIBS="-lm $LIBS" | |
ba4481b5 | 12755 | |
ba4481b5 DL |
12756 | fi |
12757 | ||
c0d27fcc | 12758 | |
55597d70 DL |
12759 | # Check for mail-locking functions in a "mail" library. Probably this should |
12760 | # have the same check as for liblockfile below. | |
98418dba | 12761 | |
c0d27fcc | 12762 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
12763 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
12764 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 12765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12766 | else |
98418dba CW |
12767 | ac_check_lib_save_LIBS=$LIBS |
12768 | LIBS="-lmail $LIBS" | |
12769 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12770 | /* confdefs.h. */ |
12771 | _ACEOF | |
12772 | cat confdefs.h >>conftest.$ac_ext | |
12773 | cat >>conftest.$ac_ext <<_ACEOF | |
12774 | /* end confdefs.h. */ | |
98418dba CW |
12775 | |
12776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12777 | #ifdef __cplusplus | |
12778 | extern "C" | |
12779 | #endif | |
12780 | /* We use char because int might match the return type of a gcc2 | |
12781 | builtin and then its argument prototype would still apply. */ | |
12782 | char maillock (); | |
503d2be0 AS |
12783 | int |
12784 | main () | |
12785 | { | |
98418dba | 12786 | maillock (); |
503d2be0 AS |
12787 | ; |
12788 | return 0; | |
12789 | } | |
12790 | _ACEOF | |
12791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12793 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12794 | ac_status=$? |
35996d22 AS |
12795 | grep -v '^ *+' conftest.er1 >conftest.err |
12796 | rm -f conftest.er1 | |
12797 | cat conftest.err >&5 | |
c0d27fcc | 12798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12799 | (exit $ac_status); } && |
35996d22 AS |
12800 | { ac_try='test -z "$ac_c_werror_flag" |
12801 | || test ! -s conftest.err' | |
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12803 | (eval $ac_try) 2>&5 | |
12804 | ac_status=$? | |
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); }; } && | |
12807 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12809 | (eval $ac_try) 2>&5 |
12810 | ac_status=$? | |
c0d27fcc | 12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12812 | (exit $ac_status); }; }; then |
98418dba | 12813 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 12814 | else |
503d2be0 | 12815 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12816 | sed 's/^/| /' conftest.$ac_ext >&5 |
12817 | ||
98418dba | 12818 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 12819 | fi |
35996d22 AS |
12820 | rm -f conftest.err conftest.$ac_objext \ |
12821 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12822 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12823 | fi |
c0d27fcc | 12824 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
12825 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
12826 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 12827 | cat >>confdefs.h <<_ACEOF |
98418dba | 12828 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 12829 | _ACEOF |
ba4481b5 | 12830 | |
98418dba | 12831 | LIBS="-lmail $LIBS" |
ba4481b5 | 12832 | |
98418dba | 12833 | fi |
ba4481b5 | 12834 | |
c0d27fcc MR |
12835 | |
12836 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
12837 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
12838 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 12839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12840 | else |
503d2be0 | 12841 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 12842 | LIBS="-llockfile $LIBS" |
503d2be0 | 12843 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12844 | /* confdefs.h. */ |
12845 | _ACEOF | |
12846 | cat confdefs.h >>conftest.$ac_ext | |
12847 | cat >>conftest.$ac_ext <<_ACEOF | |
12848 | /* end confdefs.h. */ | |
503d2be0 | 12849 | |
ba4481b5 | 12850 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12851 | #ifdef __cplusplus |
12852 | extern "C" | |
12853 | #endif | |
ba4481b5 | 12854 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12855 | builtin and then its argument prototype would still apply. */ |
98418dba | 12856 | char maillock (); |
503d2be0 AS |
12857 | int |
12858 | main () | |
12859 | { | |
98418dba | 12860 | maillock (); |
503d2be0 AS |
12861 | ; |
12862 | return 0; | |
12863 | } | |
12864 | _ACEOF | |
12865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12867 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12868 | ac_status=$? |
35996d22 AS |
12869 | grep -v '^ *+' conftest.er1 >conftest.err |
12870 | rm -f conftest.er1 | |
12871 | cat conftest.err >&5 | |
c0d27fcc | 12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12873 | (exit $ac_status); } && |
35996d22 AS |
12874 | { ac_try='test -z "$ac_c_werror_flag" |
12875 | || test ! -s conftest.err' | |
12876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12877 | (eval $ac_try) 2>&5 | |
12878 | ac_status=$? | |
12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12880 | (exit $ac_status); }; } && | |
12881 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12883 | (eval $ac_try) 2>&5 |
12884 | ac_status=$? | |
c0d27fcc | 12885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12886 | (exit $ac_status); }; }; then |
98418dba | 12887 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
12888 | else |
12889 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12890 | sed 's/^/| /' conftest.$ac_ext >&5 |
12891 | ||
98418dba CW |
12892 | ac_cv_lib_lockfile_maillock=no |
12893 | fi | |
35996d22 AS |
12894 | rm -f conftest.err conftest.$ac_objext \ |
12895 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
12896 | LIBS=$ac_check_lib_save_LIBS |
12897 | fi | |
c0d27fcc | 12898 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
12899 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
12900 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 12901 | cat >>confdefs.h <<_ACEOF |
98418dba | 12902 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 12903 | _ACEOF |
98418dba CW |
12904 | |
12905 | LIBS="-llockfile $LIBS" | |
12906 | ||
12907 | fi | |
12908 | ||
12909 | # If we have the shared liblockfile, assume we must use it for mail | |
12910 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
12911 | # (no liblockfile.a installed), ensure that we don't need to. | |
12912 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
12913 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
12914 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 12915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
12916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12917 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
12918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12919 | else | |
12920 | if test -n "$liblockfile"; then | |
12921 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
12922 | else | |
c0d27fcc | 12923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
12924 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
12925 | for as_dir in $as_dummy | |
c0d27fcc MR |
12926 | do |
12927 | IFS=$as_save_IFS | |
12928 | test -z "$as_dir" && as_dir=. | |
12929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12931 | ac_cv_prog_liblockfile="yes" | |
12932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12933 | break 2 | |
12934 | fi | |
12935 | done | |
98418dba CW |
12936 | done |
12937 | ||
12938 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 12939 | fi |
503d2be0 | 12940 | fi |
98418dba CW |
12941 | liblockfile=$ac_cv_prog_liblockfile |
12942 | if test -n "$liblockfile"; then | |
c0d27fcc | 12943 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
12944 | echo "${ECHO_T}$liblockfile" >&6 |
12945 | else | |
c0d27fcc | 12946 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 12947 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
12948 | fi |
12949 | ||
98418dba | 12950 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 12951 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
12952 | This probably means that movemail could lose mail. |
12953 | There may be a \`development' package to install containing liblockfile." >&5 | |
12954 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
12955 | This probably means that movemail could lose mail. | |
12956 | There may be a \`development' package to install containing liblockfile." >&2;} | |
12957 | { (exit 1); exit 1; }; } | |
98418dba | 12958 | else : |
55597d70 | 12959 | fi |
98418dba | 12960 | fi |
503d2be0 | 12961 | |
98418dba CW |
12962 | for ac_func in touchlock |
12963 | do | |
12964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
12966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 12968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 12969 | else |
98418dba | 12970 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12971 | /* confdefs.h. */ |
12972 | _ACEOF | |
12973 | cat confdefs.h >>conftest.$ac_ext | |
12974 | cat >>conftest.$ac_ext <<_ACEOF | |
12975 | /* end confdefs.h. */ | |
35996d22 AS |
12976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12978 | #define $ac_func innocuous_$ac_func | |
12979 | ||
98418dba | 12980 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12981 | which can conflict with char $ac_func (); below. |
12982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12983 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12984 | |
19650fd6 AS |
12985 | #ifdef __STDC__ |
12986 | # include <limits.h> | |
12987 | #else | |
12988 | # include <assert.h> | |
12989 | #endif | |
35996d22 AS |
12990 | |
12991 | #undef $ac_func | |
12992 | ||
457b792c | 12993 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12994 | #ifdef __cplusplus |
12995 | extern "C" | |
19650fd6 | 12996 | { |
503d2be0 | 12997 | #endif |
457b792c | 12998 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12999 | builtin and then its argument prototype would still apply. */ |
98418dba | 13000 | char $ac_func (); |
98418dba CW |
13001 | /* The GNU C library defines this for functions which it implements |
13002 | to always fail with ENOSYS. Some functions are actually named | |
13003 | something starting with __ and the normal name is an alias. */ | |
13004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13005 | choke me | |
13006 | #else | |
19650fd6 AS |
13007 | char (*f) () = $ac_func; |
13008 | #endif | |
13009 | #ifdef __cplusplus | |
13010 | } | |
cd958eb3 MB |
13011 | #endif |
13012 | ||
19650fd6 AS |
13013 | int |
13014 | main () | |
13015 | { | |
13016 | return f != $ac_func; | |
503d2be0 AS |
13017 | ; |
13018 | return 0; | |
13019 | } | |
13020 | _ACEOF | |
13021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13023 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13024 | ac_status=$? |
35996d22 AS |
13025 | grep -v '^ *+' conftest.er1 >conftest.err |
13026 | rm -f conftest.er1 | |
13027 | cat conftest.err >&5 | |
c0d27fcc | 13028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13029 | (exit $ac_status); } && |
35996d22 AS |
13030 | { ac_try='test -z "$ac_c_werror_flag" |
13031 | || test ! -s conftest.err' | |
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13033 | (eval $ac_try) 2>&5 | |
13034 | ac_status=$? | |
13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13036 | (exit $ac_status); }; } && | |
13037 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13039 | (eval $ac_try) 2>&5 |
13040 | ac_status=$? | |
c0d27fcc | 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13042 | (exit $ac_status); }; }; then |
98418dba | 13043 | eval "$as_ac_var=yes" |
503d2be0 AS |
13044 | else |
13045 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13046 | sed 's/^/| /' conftest.$ac_ext >&5 |
13047 | ||
98418dba | 13048 | eval "$as_ac_var=no" |
503d2be0 | 13049 | fi |
35996d22 AS |
13050 | rm -f conftest.err conftest.$ac_objext \ |
13051 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 13052 | fi |
c0d27fcc | 13053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13054 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13055 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13056 | cat >>confdefs.h <<_ACEOF |
98418dba | 13057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13058 | _ACEOF |
457b792c | 13059 | |
457b792c | 13060 | fi |
98418dba | 13061 | done |
457b792c | 13062 | |
c0d27fcc | 13063 | |
98418dba CW |
13064 | for ac_header in maillock.h |
13065 | do | |
13066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 13071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13072 | fi |
13073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 13075 | else |
c0d27fcc MR |
13076 | # Is the header compilable? |
13077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13079 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13080 | /* confdefs.h. */ |
13081 | _ACEOF | |
13082 | cat confdefs.h >>conftest.$ac_ext | |
13083 | cat >>conftest.$ac_ext <<_ACEOF | |
13084 | /* end confdefs.h. */ | |
c0d27fcc MR |
13085 | $ac_includes_default |
13086 | #include <$ac_header> | |
13087 | _ACEOF | |
13088 | rm -f conftest.$ac_objext | |
13089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13090 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13091 | ac_status=$? |
35996d22 AS |
13092 | grep -v '^ *+' conftest.er1 >conftest.err |
13093 | rm -f conftest.er1 | |
13094 | cat conftest.err >&5 | |
c0d27fcc MR |
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13096 | (exit $ac_status); } && | |
35996d22 AS |
13097 | { ac_try='test -z "$ac_c_werror_flag" |
13098 | || test ! -s conftest.err' | |
13099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13100 | (eval $ac_try) 2>&5 | |
13101 | ac_status=$? | |
13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13103 | (exit $ac_status); }; } && | |
13104 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13106 | (eval $ac_try) 2>&5 | |
13107 | ac_status=$? | |
13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13109 | (exit $ac_status); }; }; then | |
13110 | ac_header_compiler=yes | |
13111 | else | |
13112 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13113 | sed 's/^/| /' conftest.$ac_ext >&5 |
13114 | ||
c0d27fcc MR |
13115 | ac_header_compiler=no |
13116 | fi | |
35996d22 | 13117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13120 | ||
13121 | # Is the header present? | |
13122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13124 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13125 | /* confdefs.h. */ |
13126 | _ACEOF | |
13127 | cat confdefs.h >>conftest.$ac_ext | |
13128 | cat >>conftest.$ac_ext <<_ACEOF | |
13129 | /* end confdefs.h. */ | |
98418dba | 13130 | #include <$ac_header> |
503d2be0 | 13131 | _ACEOF |
c0d27fcc | 13132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 13133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 13134 | ac_status=$? |
6bae0ccf | 13135 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13136 | rm -f conftest.er1 |
13137 | cat conftest.err >&5 | |
c0d27fcc | 13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13139 | (exit $ac_status); } >/dev/null; then |
13140 | if test -s conftest.err; then | |
13141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
13143 | else |
13144 | ac_cpp_err= | |
13145 | fi | |
503d2be0 | 13146 | else |
98418dba | 13147 | ac_cpp_err=yes |
503d2be0 | 13148 | fi |
98418dba | 13149 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13150 | ac_header_preproc=yes |
98418dba CW |
13151 | else |
13152 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13153 | sed 's/^/| /' conftest.$ac_ext >&5 |
13154 | ||
c0d27fcc | 13155 | ac_header_preproc=no |
503d2be0 | 13156 | fi |
98418dba | 13157 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13160 | ||
13161 | # So? What about this header? | |
35996d22 AS |
13162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13163 | yes:no: ) | |
c0d27fcc MR |
13164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13168 | ac_header_preproc=yes | |
19650fd6 | 13169 | ;; |
35996d22 | 13170 | no:yes:* ) |
c0d27fcc MR |
13171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13183 | ( |
13184 | cat <<\_ASBOX | |
35996d22 AS |
13185 | ## ------------------------------------------ ## |
13186 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13187 | ## ------------------------------------------ ## | |
19650fd6 AS |
13188 | _ASBOX |
13189 | ) | | |
13190 | sed "s/^/$as_me: WARNING: /" >&2 | |
13191 | ;; | |
c0d27fcc MR |
13192 | esac |
13193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13197 | else | |
35996d22 | 13198 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13199 | fi |
c0d27fcc | 13200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13202 | |
13203 | fi | |
98418dba | 13204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13205 | cat >>confdefs.h <<_ACEOF |
98418dba | 13206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13207 | _ACEOF |
48d4b120 | 13208 | |
ba4481b5 | 13209 | fi |
c0d27fcc | 13210 | |
98418dba CW |
13211 | done |
13212 | ||
c0d27fcc MR |
13213 | |
13214 | ||
13215 | ||
13216 | ||
13217 | ||
13218 | ||
13219 | ||
13220 | ||
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | ||
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | ||
13240 | ||
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | ||
13246 | ||
13247 | ||
13248 | ||
13249 | ||
13250 | ||
13251 | ||
13252 | ||
13253 | ||
13254 | ||
13255 | ||
13256 | ||
13257 | ||
13258 | ||
13259 | ||
13260 | ||
13261 | ||
13262 | ||
13263 | ||
13264 | ||
13265 | ||
13266 | ||
13267 | ||
22044edf DL |
13268 | |
13269 | ||
c0d27fcc | 13270 | |
b0e44248 RB |
13271 | |
13272 | ||
973a76b1 DL |
13273 | |
13274 | ||
13275 | ||
cd958eb3 | 13276 | |
25ca0bca | 13277 | |
28127e47 | 13278 | |
c0d27fcc MR |
13279 | |
13280 | ||
98418dba CW |
13281 | for ac_func in gethostname getdomainname dup2 \ |
13282 | rename closedir mkdir rmdir sysinfo \ | |
13283 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
13284 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 13285 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
13286 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
13287 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
b0e44248 | 13288 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
28127e47 | 13289 | memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
13290 | do |
13291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13292 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13294 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13296 | else |
503d2be0 | 13297 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13298 | /* confdefs.h. */ |
13299 | _ACEOF | |
13300 | cat confdefs.h >>conftest.$ac_ext | |
13301 | cat >>conftest.$ac_ext <<_ACEOF | |
13302 | /* end confdefs.h. */ | |
35996d22 AS |
13303 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13305 | #define $ac_func innocuous_$ac_func | |
13306 | ||
98418dba | 13307 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13308 | which can conflict with char $ac_func (); below. |
13309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13310 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13311 | |
19650fd6 AS |
13312 | #ifdef __STDC__ |
13313 | # include <limits.h> | |
13314 | #else | |
13315 | # include <assert.h> | |
13316 | #endif | |
35996d22 AS |
13317 | |
13318 | #undef $ac_func | |
13319 | ||
ba4481b5 | 13320 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13321 | #ifdef __cplusplus |
13322 | extern "C" | |
19650fd6 | 13323 | { |
503d2be0 | 13324 | #endif |
ba4481b5 | 13325 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13326 | builtin and then its argument prototype would still apply. */ |
98418dba | 13327 | char $ac_func (); |
98418dba CW |
13328 | /* The GNU C library defines this for functions which it implements |
13329 | to always fail with ENOSYS. Some functions are actually named | |
13330 | something starting with __ and the normal name is an alias. */ | |
13331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13332 | choke me | |
13333 | #else | |
19650fd6 AS |
13334 | char (*f) () = $ac_func; |
13335 | #endif | |
13336 | #ifdef __cplusplus | |
13337 | } | |
98418dba CW |
13338 | #endif |
13339 | ||
19650fd6 AS |
13340 | int |
13341 | main () | |
13342 | { | |
13343 | return f != $ac_func; | |
503d2be0 AS |
13344 | ; |
13345 | return 0; | |
13346 | } | |
13347 | _ACEOF | |
13348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13350 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13351 | ac_status=$? |
35996d22 AS |
13352 | grep -v '^ *+' conftest.er1 >conftest.err |
13353 | rm -f conftest.er1 | |
13354 | cat conftest.err >&5 | |
c0d27fcc | 13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13356 | (exit $ac_status); } && |
35996d22 AS |
13357 | { ac_try='test -z "$ac_c_werror_flag" |
13358 | || test ! -s conftest.err' | |
13359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13360 | (eval $ac_try) 2>&5 | |
13361 | ac_status=$? | |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13363 | (exit $ac_status); }; } && | |
13364 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13366 | (eval $ac_try) 2>&5 |
13367 | ac_status=$? | |
c0d27fcc | 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13369 | (exit $ac_status); }; }; then |
98418dba | 13370 | eval "$as_ac_var=yes" |
503d2be0 AS |
13371 | else |
13372 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13373 | sed 's/^/| /' conftest.$ac_ext >&5 |
13374 | ||
98418dba | 13375 | eval "$as_ac_var=no" |
503d2be0 | 13376 | fi |
35996d22 AS |
13377 | rm -f conftest.err conftest.$ac_objext \ |
13378 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 13379 | fi |
c0d27fcc | 13380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13383 | cat >>confdefs.h <<_ACEOF |
98418dba | 13384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13385 | _ACEOF |
ba4481b5 | 13386 | |
ba4481b5 | 13387 | fi |
98418dba | 13388 | done |
ba4481b5 | 13389 | |
c0d27fcc MR |
13390 | |
13391 | ||
98418dba CW |
13392 | for ac_header in sys/un.h |
13393 | do | |
13394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13400 | fi |
13401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13403 | else |
c0d27fcc MR |
13404 | # Is the header compilable? |
13405 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13406 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13407 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13408 | /* confdefs.h. */ |
13409 | _ACEOF | |
13410 | cat confdefs.h >>conftest.$ac_ext | |
13411 | cat >>conftest.$ac_ext <<_ACEOF | |
13412 | /* end confdefs.h. */ | |
c0d27fcc MR |
13413 | $ac_includes_default |
13414 | #include <$ac_header> | |
13415 | _ACEOF | |
13416 | rm -f conftest.$ac_objext | |
13417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13418 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13419 | ac_status=$? |
35996d22 AS |
13420 | grep -v '^ *+' conftest.er1 >conftest.err |
13421 | rm -f conftest.er1 | |
13422 | cat conftest.err >&5 | |
c0d27fcc MR |
13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13424 | (exit $ac_status); } && | |
35996d22 AS |
13425 | { ac_try='test -z "$ac_c_werror_flag" |
13426 | || test ! -s conftest.err' | |
13427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13428 | (eval $ac_try) 2>&5 | |
13429 | ac_status=$? | |
13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13431 | (exit $ac_status); }; } && | |
13432 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13434 | (eval $ac_try) 2>&5 | |
13435 | ac_status=$? | |
13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13437 | (exit $ac_status); }; }; then | |
13438 | ac_header_compiler=yes | |
13439 | else | |
13440 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13441 | sed 's/^/| /' conftest.$ac_ext >&5 |
13442 | ||
c0d27fcc MR |
13443 | ac_header_compiler=no |
13444 | fi | |
35996d22 | 13445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13447 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13448 | ||
13449 | # Is the header present? | |
13450 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13452 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13453 | /* confdefs.h. */ |
13454 | _ACEOF | |
13455 | cat confdefs.h >>conftest.$ac_ext | |
13456 | cat >>conftest.$ac_ext <<_ACEOF | |
13457 | /* end confdefs.h. */ | |
98418dba | 13458 | #include <$ac_header> |
503d2be0 | 13459 | _ACEOF |
c0d27fcc | 13460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13462 | ac_status=$? | |
6bae0ccf | 13463 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13464 | rm -f conftest.er1 |
13465 | cat conftest.err >&5 | |
c0d27fcc | 13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13467 | (exit $ac_status); } >/dev/null; then |
13468 | if test -s conftest.err; then | |
13469 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13471 | else |
13472 | ac_cpp_err= | |
13473 | fi | |
13474 | else | |
13475 | ac_cpp_err=yes | |
13476 | fi | |
13477 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13478 | ac_header_preproc=yes |
ba4481b5 | 13479 | else |
503d2be0 | 13480 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13481 | sed 's/^/| /' conftest.$ac_ext >&5 |
13482 | ||
c0d27fcc | 13483 | ac_header_preproc=no |
ba4481b5 | 13484 | fi |
503d2be0 | 13485 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13486 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13487 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13488 | ||
13489 | # So? What about this header? | |
35996d22 AS |
13490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13491 | yes:no: ) | |
c0d27fcc MR |
13492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13493 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13496 | ac_header_preproc=yes | |
19650fd6 | 13497 | ;; |
35996d22 | 13498 | no:yes:* ) |
c0d27fcc MR |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13506 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13510 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13511 | ( |
13512 | cat <<\_ASBOX | |
35996d22 AS |
13513 | ## ------------------------------------------ ## |
13514 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13515 | ## ------------------------------------------ ## | |
19650fd6 AS |
13516 | _ASBOX |
13517 | ) | | |
13518 | sed "s/^/$as_me: WARNING: /" >&2 | |
13519 | ;; | |
c0d27fcc MR |
13520 | esac |
13521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13525 | else | |
35996d22 | 13526 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13527 | fi |
c0d27fcc | 13528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 13529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13530 | |
13531 | fi | |
925c2f3f | 13532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13533 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 13534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13535 | _ACEOF |
503d2be0 | 13536 | |
925c2f3f | 13537 | fi |
c0d27fcc | 13538 | |
925c2f3f EZ |
13539 | done |
13540 | ||
c0d27fcc MR |
13541 | |
13542 | ||
13543 | ||
35996d22 AS |
13544 | |
13545 | for ac_header in stdlib.h sys/time.h unistd.h | |
925c2f3f EZ |
13546 | do |
13547 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13548 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13549 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
13550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13553 | fi |
13554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13555 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 13556 | else |
c0d27fcc MR |
13557 | # Is the header compilable? |
13558 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13559 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13560 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13561 | /* confdefs.h. */ |
13562 | _ACEOF | |
13563 | cat confdefs.h >>conftest.$ac_ext | |
13564 | cat >>conftest.$ac_ext <<_ACEOF | |
13565 | /* end confdefs.h. */ | |
c0d27fcc MR |
13566 | $ac_includes_default |
13567 | #include <$ac_header> | |
13568 | _ACEOF | |
13569 | rm -f conftest.$ac_objext | |
13570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13571 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13572 | ac_status=$? |
35996d22 AS |
13573 | grep -v '^ *+' conftest.er1 >conftest.err |
13574 | rm -f conftest.er1 | |
13575 | cat conftest.err >&5 | |
c0d27fcc MR |
13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13577 | (exit $ac_status); } && | |
35996d22 AS |
13578 | { ac_try='test -z "$ac_c_werror_flag" |
13579 | || test ! -s conftest.err' | |
13580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13581 | (eval $ac_try) 2>&5 | |
13582 | ac_status=$? | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); }; } && | |
13585 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13587 | (eval $ac_try) 2>&5 | |
13588 | ac_status=$? | |
13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13590 | (exit $ac_status); }; }; then | |
13591 | ac_header_compiler=yes | |
13592 | else | |
13593 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13594 | sed 's/^/| /' conftest.$ac_ext >&5 |
13595 | ||
c0d27fcc MR |
13596 | ac_header_compiler=no |
13597 | fi | |
35996d22 | 13598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13599 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13600 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13601 | ||
13602 | # Is the header present? | |
13603 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13604 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13605 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13606 | /* confdefs.h. */ |
13607 | _ACEOF | |
13608 | cat confdefs.h >>conftest.$ac_ext | |
13609 | cat >>conftest.$ac_ext <<_ACEOF | |
13610 | /* end confdefs.h. */ | |
98418dba | 13611 | #include <$ac_header> |
503d2be0 | 13612 | _ACEOF |
c0d27fcc | 13613 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13614 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13615 | ac_status=$? | |
6bae0ccf | 13616 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13617 | rm -f conftest.er1 |
13618 | cat conftest.err >&5 | |
c0d27fcc | 13619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13620 | (exit $ac_status); } >/dev/null; then |
13621 | if test -s conftest.err; then | |
13622 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13623 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13624 | else |
13625 | ac_cpp_err= | |
13626 | fi | |
13627 | else | |
13628 | ac_cpp_err=yes | |
13629 | fi | |
13630 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13631 | ac_header_preproc=yes |
98418dba CW |
13632 | else |
13633 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13634 | sed 's/^/| /' conftest.$ac_ext >&5 |
13635 | ||
c0d27fcc | 13636 | ac_header_preproc=no |
98418dba CW |
13637 | fi |
13638 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13639 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13640 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13641 | ||
13642 | # So? What about this header? | |
35996d22 AS |
13643 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13644 | yes:no: ) | |
c0d27fcc MR |
13645 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13646 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13647 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13648 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13649 | ac_header_preproc=yes | |
19650fd6 | 13650 | ;; |
35996d22 | 13651 | no:yes:* ) |
c0d27fcc MR |
13652 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13653 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13654 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13655 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13656 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13657 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13658 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13659 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13660 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13661 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13662 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13663 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13664 | ( |
13665 | cat <<\_ASBOX | |
35996d22 AS |
13666 | ## ------------------------------------------ ## |
13667 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13668 | ## ------------------------------------------ ## | |
19650fd6 AS |
13669 | _ASBOX |
13670 | ) | | |
13671 | sed "s/^/$as_me: WARNING: /" >&2 | |
13672 | ;; | |
c0d27fcc MR |
13673 | esac |
13674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 | else | |
35996d22 | 13679 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 13680 | fi |
c0d27fcc | 13681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13682 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13683 | |
13684 | fi | |
98418dba | 13685 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13686 | cat >>confdefs.h <<_ACEOF |
98418dba | 13687 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13688 | _ACEOF |
98418dba CW |
13689 | |
13690 | fi | |
c0d27fcc | 13691 | |
98418dba CW |
13692 | done |
13693 | ||
c0d27fcc | 13694 | |
98418dba CW |
13695 | for ac_func in alarm |
13696 | do | |
13697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13698 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13700 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13702 | else |
98418dba | 13703 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13704 | /* confdefs.h. */ |
13705 | _ACEOF | |
13706 | cat confdefs.h >>conftest.$ac_ext | |
13707 | cat >>conftest.$ac_ext <<_ACEOF | |
13708 | /* end confdefs.h. */ | |
35996d22 AS |
13709 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13711 | #define $ac_func innocuous_$ac_func | |
13712 | ||
98418dba | 13713 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13714 | which can conflict with char $ac_func (); below. |
13715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13716 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13717 | |
19650fd6 AS |
13718 | #ifdef __STDC__ |
13719 | # include <limits.h> | |
13720 | #else | |
13721 | # include <assert.h> | |
13722 | #endif | |
35996d22 AS |
13723 | |
13724 | #undef $ac_func | |
13725 | ||
ba4481b5 | 13726 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13727 | #ifdef __cplusplus |
13728 | extern "C" | |
19650fd6 | 13729 | { |
503d2be0 | 13730 | #endif |
ba4481b5 | 13731 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13732 | builtin and then its argument prototype would still apply. */ |
98418dba | 13733 | char $ac_func (); |
98418dba CW |
13734 | /* The GNU C library defines this for functions which it implements |
13735 | to always fail with ENOSYS. Some functions are actually named | |
13736 | something starting with __ and the normal name is an alias. */ | |
13737 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13738 | choke me | |
13739 | #else | |
19650fd6 AS |
13740 | char (*f) () = $ac_func; |
13741 | #endif | |
13742 | #ifdef __cplusplus | |
13743 | } | |
98418dba CW |
13744 | #endif |
13745 | ||
19650fd6 AS |
13746 | int |
13747 | main () | |
13748 | { | |
13749 | return f != $ac_func; | |
503d2be0 AS |
13750 | ; |
13751 | return 0; | |
13752 | } | |
13753 | _ACEOF | |
13754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13756 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13757 | ac_status=$? |
35996d22 AS |
13758 | grep -v '^ *+' conftest.er1 >conftest.err |
13759 | rm -f conftest.er1 | |
13760 | cat conftest.err >&5 | |
c0d27fcc | 13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13762 | (exit $ac_status); } && |
35996d22 AS |
13763 | { ac_try='test -z "$ac_c_werror_flag" |
13764 | || test ! -s conftest.err' | |
13765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13766 | (eval $ac_try) 2>&5 | |
13767 | ac_status=$? | |
13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13769 | (exit $ac_status); }; } && | |
13770 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13772 | (eval $ac_try) 2>&5 |
13773 | ac_status=$? | |
c0d27fcc | 13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13775 | (exit $ac_status); }; }; then |
98418dba | 13776 | eval "$as_ac_var=yes" |
503d2be0 AS |
13777 | else |
13778 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13779 | sed 's/^/| /' conftest.$ac_ext >&5 |
13780 | ||
98418dba | 13781 | eval "$as_ac_var=no" |
503d2be0 | 13782 | fi |
35996d22 AS |
13783 | rm -f conftest.err conftest.$ac_objext \ |
13784 | conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 13785 | fi |
c0d27fcc | 13786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13787 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13788 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13789 | cat >>confdefs.h <<_ACEOF |
98418dba | 13790 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13791 | _ACEOF |
ffe36136 | 13792 | |
ba4481b5 | 13793 | fi |
98418dba | 13794 | done |
ba4481b5 | 13795 | |
c0d27fcc | 13796 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
13797 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
13798 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
13799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13800 | else | |
13801 | if test "$cross_compiling" = yes; then | |
13802 | ac_cv_func_working_mktime=no | |
13803 | else | |
13804 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13805 | /* confdefs.h. */ |
13806 | _ACEOF | |
13807 | cat confdefs.h >>conftest.$ac_ext | |
13808 | cat >>conftest.$ac_ext <<_ACEOF | |
13809 | /* end confdefs.h. */ | |
98418dba CW |
13810 | /* Test program from Paul Eggert and Tony Leneis. */ |
13811 | #if TIME_WITH_SYS_TIME | |
13812 | # include <sys/time.h> | |
13813 | # include <time.h> | |
13814 | #else | |
13815 | # if HAVE_SYS_TIME_H | |
13816 | # include <sys/time.h> | |
13817 | # else | |
13818 | # include <time.h> | |
13819 | # endif | |
13820 | #endif | |
ba4481b5 | 13821 | |
35996d22 AS |
13822 | #if HAVE_STDLIB_H |
13823 | # include <stdlib.h> | |
13824 | #endif | |
13825 | ||
98418dba CW |
13826 | #if HAVE_UNISTD_H |
13827 | # include <unistd.h> | |
13828 | #endif | |
ba4481b5 | 13829 | |
98418dba CW |
13830 | #if !HAVE_ALARM |
13831 | # define alarm(X) /* empty */ | |
13832 | #endif | |
df645f7c | 13833 | |
98418dba CW |
13834 | /* Work around redefinition to rpl_putenv by other config tests. */ |
13835 | #undef putenv | |
df645f7c | 13836 | |
98418dba | 13837 | static time_t time_t_max; |
35996d22 | 13838 | static time_t time_t_min; |
df645f7c | 13839 | |
98418dba | 13840 | /* Values we'll use to set the TZ environment variable. */ |
35996d22 AS |
13841 | static char *tz_strings[] = { |
13842 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
13843 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
13844 | }; | |
13845 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 13846 | |
98418dba CW |
13847 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
13848 | Based on a problem report from Andreas Jaeger. */ | |
13849 | static void | |
13850 | spring_forward_gap () | |
13851 | { | |
13852 | /* glibc (up to about 1998-10-07) failed this test. */ | |
13853 | struct tm tm; | |
13854 | ||
13855 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
13856 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
13857 | on systems that don't support the Olson extension, or don't have the | |
13858 | full zoneinfo tables installed. */ | |
13859 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
13860 | ||
13861 | tm.tm_year = 98; | |
13862 | tm.tm_mon = 3; | |
13863 | tm.tm_mday = 5; | |
13864 | tm.tm_hour = 2; | |
13865 | tm.tm_min = 0; | |
13866 | tm.tm_sec = 0; | |
13867 | tm.tm_isdst = -1; | |
13868 | if (mktime (&tm) == (time_t)-1) | |
13869 | exit (1); | |
13870 | } | |
13871 | ||
13872 | static void | |
35996d22 | 13873 | mktime_test1 (now) |
98418dba CW |
13874 | time_t now; |
13875 | { | |
13876 | struct tm *lt; | |
13877 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
13878 | exit (1); | |
35996d22 AS |
13879 | } |
13880 | ||
13881 | static void | |
13882 | mktime_test (now) | |
13883 | time_t now; | |
13884 | { | |
13885 | mktime_test1 (now); | |
13886 | mktime_test1 ((time_t) (time_t_max - now)); | |
13887 | mktime_test1 ((time_t) (time_t_min + now)); | |
98418dba CW |
13888 | } |
13889 | ||
13890 | static void | |
13891 | irix_6_4_bug () | |
13892 | { | |
13893 | /* Based on code from Ariel Faigon. */ | |
13894 | struct tm tm; | |
13895 | tm.tm_year = 96; | |
13896 | tm.tm_mon = 3; | |
13897 | tm.tm_mday = 0; | |
13898 | tm.tm_hour = 0; | |
13899 | tm.tm_min = 0; | |
13900 | tm.tm_sec = 0; | |
13901 | tm.tm_isdst = -1; | |
13902 | mktime (&tm); | |
13903 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
13904 | exit (1); | |
13905 | } | |
13906 | ||
13907 | static void | |
13908 | bigtime_test (j) | |
13909 | int j; | |
13910 | { | |
13911 | struct tm tm; | |
13912 | time_t now; | |
13913 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
13914 | now = mktime (&tm); | |
13915 | if (now != (time_t) -1) | |
13916 | { | |
13917 | struct tm *lt = localtime (&now); | |
13918 | if (! (lt | |
13919 | && lt->tm_year == tm.tm_year | |
13920 | && lt->tm_mon == tm.tm_mon | |
13921 | && lt->tm_mday == tm.tm_mday | |
13922 | && lt->tm_hour == tm.tm_hour | |
13923 | && lt->tm_min == tm.tm_min | |
13924 | && lt->tm_sec == tm.tm_sec | |
13925 | && lt->tm_yday == tm.tm_yday | |
13926 | && lt->tm_wday == tm.tm_wday | |
13927 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
13928 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
13929 | exit (1); | |
13930 | } | |
13931 | } | |
13932 | ||
13933 | int | |
13934 | main () | |
13935 | { | |
13936 | time_t t, delta; | |
13937 | int i, j; | |
13938 | ||
13939 | /* This test makes some buggy mktime implementations loop. | |
13940 | Give up after 60 seconds; a mktime slower than that | |
13941 | isn't worth using anyway. */ | |
13942 | alarm (60); | |
13943 | ||
13944 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
13945 | continue; | |
13946 | time_t_max--; | |
35996d22 AS |
13947 | if ((time_t) -1 < 0) |
13948 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
13949 | continue; | |
98418dba CW |
13950 | delta = time_t_max / 997; /* a suitable prime number */ |
13951 | for (i = 0; i < N_STRINGS; i++) | |
13952 | { | |
13953 | if (tz_strings[i]) | |
13954 | putenv (tz_strings[i]); | |
503d2be0 | 13955 | |
98418dba CW |
13956 | for (t = 0; t <= time_t_max - delta; t += delta) |
13957 | mktime_test (t); | |
35996d22 AS |
13958 | mktime_test ((time_t) 1); |
13959 | mktime_test ((time_t) (60 * 60)); | |
13960 | mktime_test ((time_t) (60 * 60 * 24)); | |
98418dba CW |
13961 | |
13962 | for (j = 1; 0 < j; j *= 2) | |
35996d22 | 13963 | bigtime_test (j); |
98418dba CW |
13964 | bigtime_test (j - 1); |
13965 | } | |
13966 | irix_6_4_bug (); | |
13967 | spring_forward_gap (); | |
13968 | exit (0); | |
503d2be0 AS |
13969 | } |
13970 | _ACEOF | |
98418dba | 13971 | rm -f conftest$ac_exeext |
c0d27fcc | 13972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13973 | (eval $ac_link) 2>&5 |
13974 | ac_status=$? | |
c0d27fcc | 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 13976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13978 | (eval $ac_try) 2>&5 |
13979 | ac_status=$? | |
c0d27fcc | 13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13981 | (exit $ac_status); }; }; then |
98418dba | 13982 | ac_cv_func_working_mktime=yes |
503d2be0 | 13983 | else |
98418dba CW |
13984 | echo "$as_me: program exited with status $ac_status" >&5 |
13985 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13986 | sed 's/^/| /' conftest.$ac_ext >&5 |
13987 | ||
c0d27fcc | 13988 | ( exit $ac_status ) |
98418dba | 13989 | ac_cv_func_working_mktime=no |
503d2be0 | 13990 | fi |
35996d22 | 13991 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 13992 | fi |
ba4481b5 | 13993 | fi |
c0d27fcc | 13994 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
13995 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
13996 | if test $ac_cv_func_working_mktime = no; then | |
35996d22 AS |
13997 | case $LIBOBJS in |
13998 | "mktime.$ac_objext" | \ | |
13999 | *" mktime.$ac_objext" | \ | |
14000 | "mktime.$ac_objext "* | \ | |
14001 | *" mktime.$ac_objext "* ) ;; | |
14002 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; | |
14003 | esac | |
14004 | ||
ba4481b5 DL |
14005 | fi |
14006 | ||
98418dba | 14007 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 14008 | |
c0d27fcc | 14009 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14010 | #define BROKEN_MKTIME 1 |
c0d27fcc | 14011 | _ACEOF |
ba4481b5 | 14012 | |
ba4481b5 | 14013 | fi |
503d2be0 | 14014 | |
98418dba CW |
14015 | ac_have_func=no # yes means we've found a way to get the load average. |
14016 | ||
6bae0ccf DL |
14017 | # Make sure getloadavg.c is where it belongs, at configure-time. |
14018 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
14019 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
14020 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
14021 | { (exit 1); exit 1; }; } | |
14022 | ||
98418dba CW |
14023 | ac_save_LIBS=$LIBS |
14024 | ||
14025 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 14026 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
14027 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
14028 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 14029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14030 | else |
503d2be0 | 14031 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14032 | /* confdefs.h. */ |
14033 | _ACEOF | |
14034 | cat confdefs.h >>conftest.$ac_ext | |
14035 | cat >>conftest.$ac_ext <<_ACEOF | |
14036 | /* end confdefs.h. */ | |
35996d22 AS |
14037 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
14038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14039 | #define getloadavg innocuous_getloadavg | |
14040 | ||
98418dba | 14041 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14042 | which can conflict with char getloadavg (); below. |
14043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14044 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14045 | |
19650fd6 AS |
14046 | #ifdef __STDC__ |
14047 | # include <limits.h> | |
14048 | #else | |
14049 | # include <assert.h> | |
14050 | #endif | |
35996d22 AS |
14051 | |
14052 | #undef getloadavg | |
14053 | ||
ba4481b5 | 14054 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14055 | #ifdef __cplusplus |
14056 | extern "C" | |
19650fd6 | 14057 | { |
503d2be0 | 14058 | #endif |
ba4481b5 | 14059 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14060 | builtin and then its argument prototype would still apply. */ |
98418dba | 14061 | char getloadavg (); |
98418dba CW |
14062 | /* The GNU C library defines this for functions which it implements |
14063 | to always fail with ENOSYS. Some functions are actually named | |
14064 | something starting with __ and the normal name is an alias. */ | |
14065 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
14066 | choke me | |
14067 | #else | |
19650fd6 AS |
14068 | char (*f) () = getloadavg; |
14069 | #endif | |
14070 | #ifdef __cplusplus | |
14071 | } | |
cd958eb3 MB |
14072 | #endif |
14073 | ||
19650fd6 AS |
14074 | int |
14075 | main () | |
14076 | { | |
14077 | return f != getloadavg; | |
503d2be0 AS |
14078 | ; |
14079 | return 0; | |
14080 | } | |
14081 | _ACEOF | |
14082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14084 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14085 | ac_status=$? |
35996d22 AS |
14086 | grep -v '^ *+' conftest.er1 >conftest.err |
14087 | rm -f conftest.er1 | |
14088 | cat conftest.err >&5 | |
c0d27fcc | 14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14090 | (exit $ac_status); } && |
35996d22 AS |
14091 | { ac_try='test -z "$ac_c_werror_flag" |
14092 | || test ! -s conftest.err' | |
14093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14094 | (eval $ac_try) 2>&5 | |
14095 | ac_status=$? | |
14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14097 | (exit $ac_status); }; } && | |
14098 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14100 | (eval $ac_try) 2>&5 |
14101 | ac_status=$? | |
c0d27fcc | 14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14103 | (exit $ac_status); }; }; then |
98418dba | 14104 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
14105 | else |
14106 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14107 | sed 's/^/| /' conftest.$ac_ext >&5 |
14108 | ||
98418dba | 14109 | ac_cv_func_getloadavg=no |
503d2be0 | 14110 | fi |
35996d22 AS |
14111 | rm -f conftest.err conftest.$ac_objext \ |
14112 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 14113 | fi |
c0d27fcc | 14114 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
14115 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
14116 | if test $ac_cv_func_getloadavg = yes; then | |
14117 | exit 0 | |
14118 | else | |
14119 | exit 1 | |
ba4481b5 | 14120 | fi |
98418dba | 14121 | ) && ac_have_func=yes |
ba4481b5 | 14122 | |
98418dba | 14123 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 14124 | |
98418dba CW |
14125 | for ac_func in pstat_getdynamic |
14126 | do | |
14127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14128 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
14129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14130 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14132 | else |
503d2be0 | 14133 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14134 | /* confdefs.h. */ |
14135 | _ACEOF | |
14136 | cat confdefs.h >>conftest.$ac_ext | |
14137 | cat >>conftest.$ac_ext <<_ACEOF | |
14138 | /* end confdefs.h. */ | |
35996d22 AS |
14139 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14141 | #define $ac_func innocuous_$ac_func | |
14142 | ||
98418dba | 14143 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14144 | which can conflict with char $ac_func (); below. |
14145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14146 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14147 | |
19650fd6 AS |
14148 | #ifdef __STDC__ |
14149 | # include <limits.h> | |
14150 | #else | |
14151 | # include <assert.h> | |
14152 | #endif | |
35996d22 AS |
14153 | |
14154 | #undef $ac_func | |
14155 | ||
ba4481b5 | 14156 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14157 | #ifdef __cplusplus |
14158 | extern "C" | |
19650fd6 | 14159 | { |
503d2be0 | 14160 | #endif |
ba4481b5 | 14161 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14162 | builtin and then its argument prototype would still apply. */ |
98418dba | 14163 | char $ac_func (); |
98418dba CW |
14164 | /* The GNU C library defines this for functions which it implements |
14165 | to always fail with ENOSYS. Some functions are actually named | |
14166 | something starting with __ and the normal name is an alias. */ | |
14167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14168 | choke me | |
14169 | #else | |
19650fd6 AS |
14170 | char (*f) () = $ac_func; |
14171 | #endif | |
14172 | #ifdef __cplusplus | |
14173 | } | |
98418dba CW |
14174 | #endif |
14175 | ||
19650fd6 AS |
14176 | int |
14177 | main () | |
14178 | { | |
14179 | return f != $ac_func; | |
98418dba CW |
14180 | ; |
14181 | return 0; | |
14182 | } | |
f21fadcc | 14183 | _ACEOF |
98418dba | 14184 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14186 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14187 | ac_status=$? |
35996d22 AS |
14188 | grep -v '^ *+' conftest.er1 >conftest.err |
14189 | rm -f conftest.er1 | |
14190 | cat conftest.err >&5 | |
c0d27fcc | 14191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14192 | (exit $ac_status); } && |
35996d22 AS |
14193 | { ac_try='test -z "$ac_c_werror_flag" |
14194 | || test ! -s conftest.err' | |
14195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14196 | (eval $ac_try) 2>&5 | |
14197 | ac_status=$? | |
14198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14199 | (exit $ac_status); }; } && | |
14200 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14202 | (eval $ac_try) 2>&5 |
14203 | ac_status=$? | |
c0d27fcc | 14204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14205 | (exit $ac_status); }; }; then |
14206 | eval "$as_ac_var=yes" | |
f21fadcc JD |
14207 | else |
14208 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14209 | sed 's/^/| /' conftest.$ac_ext >&5 |
14210 | ||
98418dba | 14211 | eval "$as_ac_var=no" |
f21fadcc | 14212 | fi |
35996d22 AS |
14213 | rm -f conftest.err conftest.$ac_objext \ |
14214 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc | 14215 | fi |
c0d27fcc | 14216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
14217 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14218 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14219 | cat >>confdefs.h <<_ACEOF |
98418dba | 14220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14221 | _ACEOF |
98418dba CW |
14222 | |
14223 | fi | |
14224 | done | |
14225 | ||
c0d27fcc | 14226 | |
98418dba CW |
14227 | # Solaris has libkstat which does not require root. |
14228 | ||
c0d27fcc | 14229 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
14230 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
14231 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
14232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14233 | else | |
14234 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 14235 | LIBS="-lkstat $LIBS" |
f21fadcc | 14236 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14237 | /* confdefs.h. */ |
14238 | _ACEOF | |
14239 | cat confdefs.h >>conftest.$ac_ext | |
14240 | cat >>conftest.$ac_ext <<_ACEOF | |
14241 | /* end confdefs.h. */ | |
f21fadcc JD |
14242 | |
14243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14244 | #ifdef __cplusplus | |
14245 | extern "C" | |
14246 | #endif | |
14247 | /* We use char because int might match the return type of a gcc2 | |
14248 | builtin and then its argument prototype would still apply. */ | |
98418dba | 14249 | char kstat_open (); |
f21fadcc JD |
14250 | int |
14251 | main () | |
14252 | { | |
98418dba | 14253 | kstat_open (); |
f21fadcc JD |
14254 | ; |
14255 | return 0; | |
14256 | } | |
14257 | _ACEOF | |
14258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14260 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14261 | ac_status=$? |
35996d22 AS |
14262 | grep -v '^ *+' conftest.er1 >conftest.err |
14263 | rm -f conftest.er1 | |
14264 | cat conftest.err >&5 | |
c0d27fcc | 14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14266 | (exit $ac_status); } && |
35996d22 AS |
14267 | { ac_try='test -z "$ac_c_werror_flag" |
14268 | || test ! -s conftest.err' | |
14269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14270 | (eval $ac_try) 2>&5 | |
14271 | ac_status=$? | |
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14273 | (exit $ac_status); }; } && | |
14274 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
14276 | (eval $ac_try) 2>&5 |
14277 | ac_status=$? | |
c0d27fcc | 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14279 | (exit $ac_status); }; }; then |
98418dba | 14280 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
14281 | else |
14282 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
14284 | ||
98418dba | 14285 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 14286 | fi |
35996d22 AS |
14287 | rm -f conftest.err conftest.$ac_objext \ |
14288 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc JD |
14289 | LIBS=$ac_check_lib_save_LIBS |
14290 | fi | |
c0d27fcc | 14291 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
14292 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
14293 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 14294 | cat >>confdefs.h <<_ACEOF |
98418dba | 14295 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 14296 | _ACEOF |
f21fadcc | 14297 | |
98418dba | 14298 | LIBS="-lkstat $LIBS" |
f21fadcc | 14299 | |
f21fadcc JD |
14300 | fi |
14301 | ||
98418dba CW |
14302 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
14303 | ||
14304 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
14305 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
14306 | # to get the right answer into the cache. | |
14307 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
14308 | if test $ac_have_func = no; then | |
c0d27fcc | 14309 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
14310 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
14311 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 14312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14313 | else |
98418dba CW |
14314 | ac_check_lib_save_LIBS=$LIBS |
14315 | LIBS="-lelf $LIBS" | |
14316 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14317 | /* confdefs.h. */ |
14318 | _ACEOF | |
14319 | cat confdefs.h >>conftest.$ac_ext | |
14320 | cat >>conftest.$ac_ext <<_ACEOF | |
14321 | /* end confdefs.h. */ | |
98418dba CW |
14322 | |
14323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14324 | #ifdef __cplusplus | |
14325 | extern "C" | |
14326 | #endif | |
14327 | /* We use char because int might match the return type of a gcc2 | |
14328 | builtin and then its argument prototype would still apply. */ | |
14329 | char elf_begin (); | |
503d2be0 AS |
14330 | int |
14331 | main () | |
14332 | { | |
98418dba | 14333 | elf_begin (); |
503d2be0 AS |
14334 | ; |
14335 | return 0; | |
14336 | } | |
14337 | _ACEOF | |
14338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14340 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14341 | ac_status=$? |
35996d22 AS |
14342 | grep -v '^ *+' conftest.er1 >conftest.err |
14343 | rm -f conftest.er1 | |
14344 | cat conftest.err >&5 | |
c0d27fcc | 14345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14346 | (exit $ac_status); } && |
35996d22 AS |
14347 | { ac_try='test -z "$ac_c_werror_flag" |
14348 | || test ! -s conftest.err' | |
14349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14350 | (eval $ac_try) 2>&5 | |
14351 | ac_status=$? | |
14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14353 | (exit $ac_status); }; } && | |
14354 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14356 | (eval $ac_try) 2>&5 |
14357 | ac_status=$? | |
c0d27fcc | 14358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14359 | (exit $ac_status); }; }; then |
98418dba | 14360 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 14361 | else |
503d2be0 | 14362 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14363 | sed 's/^/| /' conftest.$ac_ext >&5 |
14364 | ||
98418dba | 14365 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 14366 | fi |
35996d22 AS |
14367 | rm -f conftest.err conftest.$ac_objext \ |
14368 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14369 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14370 | fi |
c0d27fcc | 14371 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
14372 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
14373 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
14374 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
14375 | fi |
14376 | ||
98418dba CW |
14377 | fi |
14378 | if test $ac_have_func = no; then | |
c0d27fcc | 14379 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
14380 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
14381 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 14382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14383 | else |
98418dba CW |
14384 | ac_check_lib_save_LIBS=$LIBS |
14385 | LIBS="-lkvm $LIBS" | |
14386 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14387 | /* confdefs.h. */ |
14388 | _ACEOF | |
14389 | cat confdefs.h >>conftest.$ac_ext | |
14390 | cat >>conftest.$ac_ext <<_ACEOF | |
14391 | /* end confdefs.h. */ | |
98418dba CW |
14392 | |
14393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14394 | #ifdef __cplusplus | |
14395 | extern "C" | |
14396 | #endif | |
14397 | /* We use char because int might match the return type of a gcc2 | |
14398 | builtin and then its argument prototype would still apply. */ | |
14399 | char kvm_open (); | |
503d2be0 AS |
14400 | int |
14401 | main () | |
14402 | { | |
98418dba | 14403 | kvm_open (); |
503d2be0 AS |
14404 | ; |
14405 | return 0; | |
14406 | } | |
14407 | _ACEOF | |
14408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14410 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14411 | ac_status=$? |
35996d22 AS |
14412 | grep -v '^ *+' conftest.er1 >conftest.err |
14413 | rm -f conftest.er1 | |
14414 | cat conftest.err >&5 | |
c0d27fcc | 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14416 | (exit $ac_status); } && |
35996d22 AS |
14417 | { ac_try='test -z "$ac_c_werror_flag" |
14418 | || test ! -s conftest.err' | |
14419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14420 | (eval $ac_try) 2>&5 | |
14421 | ac_status=$? | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); }; } && | |
14424 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14426 | (eval $ac_try) 2>&5 |
14427 | ac_status=$? | |
c0d27fcc | 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14429 | (exit $ac_status); }; }; then |
98418dba | 14430 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
14431 | else |
14432 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14433 | sed 's/^/| /' conftest.$ac_ext >&5 |
14434 | ||
98418dba | 14435 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 14436 | fi |
35996d22 AS |
14437 | rm -f conftest.err conftest.$ac_objext \ |
14438 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14439 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 14440 | fi |
c0d27fcc | 14441 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
14442 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
14443 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
14444 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
14445 | fi |
14446 | ||
98418dba | 14447 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 14448 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
14449 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
14450 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 14451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14452 | else |
98418dba CW |
14453 | ac_check_lib_save_LIBS=$LIBS |
14454 | LIBS="-lutil $LIBS" | |
14455 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14456 | /* confdefs.h. */ |
14457 | _ACEOF | |
14458 | cat confdefs.h >>conftest.$ac_ext | |
14459 | cat >>conftest.$ac_ext <<_ACEOF | |
14460 | /* end confdefs.h. */ | |
98418dba CW |
14461 | |
14462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14463 | #ifdef __cplusplus | |
14464 | extern "C" | |
14465 | #endif | |
14466 | /* We use char because int might match the return type of a gcc2 | |
14467 | builtin and then its argument prototype would still apply. */ | |
14468 | char getloadavg (); | |
503d2be0 AS |
14469 | int |
14470 | main () | |
14471 | { | |
98418dba | 14472 | getloadavg (); |
503d2be0 AS |
14473 | ; |
14474 | return 0; | |
14475 | } | |
14476 | _ACEOF | |
14477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14479 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14480 | ac_status=$? |
35996d22 AS |
14481 | grep -v '^ *+' conftest.er1 >conftest.err |
14482 | rm -f conftest.er1 | |
14483 | cat conftest.err >&5 | |
c0d27fcc | 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14485 | (exit $ac_status); } && |
35996d22 AS |
14486 | { ac_try='test -z "$ac_c_werror_flag" |
14487 | || test ! -s conftest.err' | |
c0d27fcc | 14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14489 | (eval $ac_try) 2>&5 |
14490 | ac_status=$? | |
c0d27fcc | 14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
14492 | (exit $ac_status); }; } && |
14493 | { ac_try='test -s conftest$ac_exeext' | |
14494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14495 | (eval $ac_try) 2>&5 | |
14496 | ac_status=$? | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); }; }; then | |
14499 | ac_cv_lib_util_getloadavg=yes | |
14500 | else | |
503d2be0 | 14501 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14502 | sed 's/^/| /' conftest.$ac_ext >&5 |
14503 | ||
98418dba | 14504 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 14505 | fi |
35996d22 AS |
14506 | rm -f conftest.err conftest.$ac_objext \ |
14507 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14508 | LIBS=$ac_check_lib_save_LIBS |
14509 | fi | |
c0d27fcc | 14510 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
14511 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
14512 | if test $ac_cv_lib_util_getloadavg = yes; then | |
14513 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 14514 | fi |
503d2be0 | 14515 | |
98418dba | 14516 | fi |
ba4481b5 | 14517 | |
98418dba CW |
14518 | if test $ac_have_func = no; then |
14519 | # There is a commonly available library for RS/6000 AIX. | |
14520 | # Since it is not a standard part of AIX, it might be installed locally. | |
14521 | ac_getloadavg_LIBS=$LIBS | |
14522 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 14523 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
14524 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
14525 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 14526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14527 | else |
98418dba CW |
14528 | ac_check_lib_save_LIBS=$LIBS |
14529 | LIBS="-lgetloadavg $LIBS" | |
14530 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14531 | /* confdefs.h. */ |
14532 | _ACEOF | |
14533 | cat confdefs.h >>conftest.$ac_ext | |
14534 | cat >>conftest.$ac_ext <<_ACEOF | |
14535 | /* end confdefs.h. */ | |
ba4481b5 | 14536 | |
98418dba CW |
14537 | /* Override any gcc2 internal prototype to avoid an error. */ |
14538 | #ifdef __cplusplus | |
14539 | extern "C" | |
14540 | #endif | |
14541 | /* We use char because int might match the return type of a gcc2 | |
14542 | builtin and then its argument prototype would still apply. */ | |
14543 | char getloadavg (); | |
98418dba CW |
14544 | int |
14545 | main () | |
14546 | { | |
14547 | getloadavg (); | |
14548 | ; | |
14549 | return 0; | |
14550 | } | |
503d2be0 | 14551 | _ACEOF |
98418dba | 14552 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14554 | (eval $ac_link) 2>conftest.er1 |
98418dba | 14555 | ac_status=$? |
35996d22 AS |
14556 | grep -v '^ *+' conftest.er1 >conftest.err |
14557 | rm -f conftest.er1 | |
14558 | cat conftest.err >&5 | |
c0d27fcc | 14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14560 | (exit $ac_status); } && |
35996d22 AS |
14561 | { ac_try='test -z "$ac_c_werror_flag" |
14562 | || test ! -s conftest.err' | |
14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); }; } && | |
14568 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14570 | (eval $ac_try) 2>&5 |
14571 | ac_status=$? | |
c0d27fcc | 14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14573 | (exit $ac_status); }; }; then |
14574 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 14575 | else |
98418dba | 14576 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14577 | sed 's/^/| /' conftest.$ac_ext >&5 |
14578 | ||
98418dba CW |
14579 | ac_cv_lib_getloadavg_getloadavg=no |
14580 | fi | |
35996d22 AS |
14581 | rm -f conftest.err conftest.$ac_objext \ |
14582 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14583 | LIBS=$ac_check_lib_save_LIBS |
14584 | fi | |
c0d27fcc | 14585 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
14586 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
14587 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
14588 | LIBS="-lgetloadavg $LIBS" | |
14589 | else | |
14590 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 14591 | fi |
ba4481b5 DL |
14592 | |
14593 | fi | |
98418dba CW |
14594 | |
14595 | # Make sure it is really in the library, if we think we found it, | |
14596 | # otherwise set up the replacement function. | |
14597 | ||
14598 | for ac_func in getloadavg | |
14599 | do | |
14600 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14601 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
14602 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14603 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14605 | else |
503d2be0 | 14606 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14607 | /* confdefs.h. */ |
14608 | _ACEOF | |
14609 | cat confdefs.h >>conftest.$ac_ext | |
14610 | cat >>conftest.$ac_ext <<_ACEOF | |
14611 | /* end confdefs.h. */ | |
35996d22 AS |
14612 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14614 | #define $ac_func innocuous_$ac_func | |
14615 | ||
ba4481b5 | 14616 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14617 | which can conflict with char $ac_func (); below. |
14618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14619 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14620 | |
19650fd6 AS |
14621 | #ifdef __STDC__ |
14622 | # include <limits.h> | |
14623 | #else | |
14624 | # include <assert.h> | |
14625 | #endif | |
35996d22 AS |
14626 | |
14627 | #undef $ac_func | |
14628 | ||
ba4481b5 | 14629 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14630 | #ifdef __cplusplus |
14631 | extern "C" | |
19650fd6 | 14632 | { |
503d2be0 | 14633 | #endif |
ba4481b5 | 14634 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14635 | builtin and then its argument prototype would still apply. */ |
14636 | char $ac_func (); | |
ba4481b5 DL |
14637 | /* The GNU C library defines this for functions which it implements |
14638 | to always fail with ENOSYS. Some functions are actually named | |
14639 | something starting with __ and the normal name is an alias. */ | |
14640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14641 | choke me | |
14642 | #else | |
19650fd6 AS |
14643 | char (*f) () = $ac_func; |
14644 | #endif | |
14645 | #ifdef __cplusplus | |
14646 | } | |
cd958eb3 MB |
14647 | #endif |
14648 | ||
19650fd6 AS |
14649 | int |
14650 | main () | |
14651 | { | |
14652 | return f != $ac_func; | |
503d2be0 AS |
14653 | ; |
14654 | return 0; | |
14655 | } | |
14656 | _ACEOF | |
14657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14659 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14660 | ac_status=$? |
35996d22 AS |
14661 | grep -v '^ *+' conftest.er1 >conftest.err |
14662 | rm -f conftest.er1 | |
14663 | cat conftest.err >&5 | |
c0d27fcc | 14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14665 | (exit $ac_status); } && |
35996d22 AS |
14666 | { ac_try='test -z "$ac_c_werror_flag" |
14667 | || test ! -s conftest.err' | |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; } && | |
14673 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14675 | (eval $ac_try) 2>&5 |
14676 | ac_status=$? | |
c0d27fcc | 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14678 | (exit $ac_status); }; }; then |
14679 | eval "$as_ac_var=yes" | |
14680 | else | |
14681 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14682 | sed 's/^/| /' conftest.$ac_ext >&5 |
14683 | ||
503d2be0 AS |
14684 | eval "$as_ac_var=no" |
14685 | fi | |
35996d22 AS |
14686 | rm -f conftest.err conftest.$ac_objext \ |
14687 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 14688 | fi |
c0d27fcc | 14689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14691 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14692 | cat >>confdefs.h <<_ACEOF |
98418dba | 14693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14694 | _ACEOF |
503d2be0 | 14695 | |
98418dba | 14696 | else |
35996d22 AS |
14697 | case $LIBOBJS in |
14698 | "getloadavg.$ac_objext" | \ | |
14699 | *" getloadavg.$ac_objext" | \ | |
14700 | "getloadavg.$ac_objext "* | \ | |
14701 | *" getloadavg.$ac_objext "* ) ;; | |
14702 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; | |
14703 | esac | |
14704 | ||
ba4481b5 | 14705 | |
c0d27fcc | 14706 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14707 | #define C_GETLOADAVG 1 |
c0d27fcc | 14708 | _ACEOF |
ba4481b5 | 14709 | |
98418dba CW |
14710 | # Figure out what our getloadavg.c needs. |
14711 | ac_have_func=no | |
c0d27fcc MR |
14712 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
14713 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
14714 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
14715 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 14716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14717 | fi |
14718 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
14719 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 14720 | else |
c0d27fcc MR |
14721 | # Is the header compilable? |
14722 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
14723 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
14724 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14725 | /* confdefs.h. */ |
14726 | _ACEOF | |
14727 | cat confdefs.h >>conftest.$ac_ext | |
14728 | cat >>conftest.$ac_ext <<_ACEOF | |
14729 | /* end confdefs.h. */ | |
c0d27fcc MR |
14730 | $ac_includes_default |
14731 | #include <sys/dg_sys_info.h> | |
14732 | _ACEOF | |
14733 | rm -f conftest.$ac_objext | |
14734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14735 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14736 | ac_status=$? |
35996d22 AS |
14737 | grep -v '^ *+' conftest.er1 >conftest.err |
14738 | rm -f conftest.er1 | |
14739 | cat conftest.err >&5 | |
c0d27fcc MR |
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14741 | (exit $ac_status); } && | |
35996d22 AS |
14742 | { ac_try='test -z "$ac_c_werror_flag" |
14743 | || test ! -s conftest.err' | |
14744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14745 | (eval $ac_try) 2>&5 | |
14746 | ac_status=$? | |
14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14748 | (exit $ac_status); }; } && | |
14749 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14751 | (eval $ac_try) 2>&5 | |
14752 | ac_status=$? | |
14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14754 | (exit $ac_status); }; }; then | |
14755 | ac_header_compiler=yes | |
14756 | else | |
14757 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14758 | sed 's/^/| /' conftest.$ac_ext >&5 |
14759 | ||
c0d27fcc MR |
14760 | ac_header_compiler=no |
14761 | fi | |
35996d22 | 14762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14763 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14764 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14765 | ||
14766 | # Is the header present? | |
14767 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
14768 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
14769 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14770 | /* confdefs.h. */ |
14771 | _ACEOF | |
14772 | cat confdefs.h >>conftest.$ac_ext | |
14773 | cat >>conftest.$ac_ext <<_ACEOF | |
14774 | /* end confdefs.h. */ | |
98418dba CW |
14775 | #include <sys/dg_sys_info.h> |
14776 | _ACEOF | |
c0d27fcc | 14777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
14778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14779 | ac_status=$? | |
6bae0ccf | 14780 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14781 | rm -f conftest.er1 |
14782 | cat conftest.err >&5 | |
c0d27fcc | 14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14784 | (exit $ac_status); } >/dev/null; then |
14785 | if test -s conftest.err; then | |
14786 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 14787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
14788 | else |
14789 | ac_cpp_err= | |
14790 | fi | |
14791 | else | |
14792 | ac_cpp_err=yes | |
ba4481b5 | 14793 | fi |
98418dba | 14794 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 14795 | ac_header_preproc=yes |
98418dba CW |
14796 | else |
14797 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14798 | sed 's/^/| /' conftest.$ac_ext >&5 |
14799 | ||
c0d27fcc | 14800 | ac_header_preproc=no |
ba4481b5 | 14801 | fi |
98418dba | 14802 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
14803 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14804 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14805 | ||
14806 | # So? What about this header? | |
35996d22 AS |
14807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14808 | yes:no: ) | |
c0d27fcc MR |
14809 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14810 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
14811 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
14812 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
14813 | ac_header_preproc=yes | |
19650fd6 | 14814 | ;; |
35996d22 | 14815 | no:yes:* ) |
c0d27fcc MR |
14816 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
14817 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
14818 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
14819 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
14820 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
14821 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
14822 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14823 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14824 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14825 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
14826 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
14827 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
14828 | ( |
14829 | cat <<\_ASBOX | |
35996d22 AS |
14830 | ## ------------------------------------------ ## |
14831 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14832 | ## ------------------------------------------ ## | |
19650fd6 AS |
14833 | _ASBOX |
14834 | ) | | |
14835 | sed "s/^/$as_me: WARNING: /" >&2 | |
14836 | ;; | |
c0d27fcc MR |
14837 | esac |
14838 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
14839 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
14840 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
14841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14842 | else | |
14843 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 14844 | fi |
c0d27fcc | 14845 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 14846 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
14847 | |
14848 | fi | |
98418dba CW |
14849 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
14850 | ac_have_func=yes | |
ba4481b5 | 14851 | |
c0d27fcc | 14852 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14853 | #define DGUX 1 |
c0d27fcc MR |
14854 | _ACEOF |
14855 | ||
503d2be0 | 14856 | |
c0d27fcc | 14857 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
14858 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
14859 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 14860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14861 | else |
503d2be0 | 14862 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 14863 | LIBS="-ldgc $LIBS" |
503d2be0 | 14864 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14865 | /* confdefs.h. */ |
14866 | _ACEOF | |
14867 | cat confdefs.h >>conftest.$ac_ext | |
14868 | cat >>conftest.$ac_ext <<_ACEOF | |
14869 | /* end confdefs.h. */ | |
503d2be0 | 14870 | |
ba4481b5 | 14871 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14872 | #ifdef __cplusplus |
14873 | extern "C" | |
14874 | #endif | |
ba4481b5 | 14875 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14876 | builtin and then its argument prototype would still apply. */ |
98418dba | 14877 | char dg_sys_info (); |
503d2be0 AS |
14878 | int |
14879 | main () | |
14880 | { | |
98418dba | 14881 | dg_sys_info (); |
503d2be0 AS |
14882 | ; |
14883 | return 0; | |
14884 | } | |
14885 | _ACEOF | |
14886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14888 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14889 | ac_status=$? |
35996d22 AS |
14890 | grep -v '^ *+' conftest.er1 >conftest.err |
14891 | rm -f conftest.er1 | |
14892 | cat conftest.err >&5 | |
c0d27fcc | 14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14894 | (exit $ac_status); } && |
35996d22 AS |
14895 | { ac_try='test -z "$ac_c_werror_flag" |
14896 | || test ! -s conftest.err' | |
14897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14898 | (eval $ac_try) 2>&5 | |
14899 | ac_status=$? | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); }; } && | |
14902 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14904 | (eval $ac_try) 2>&5 |
14905 | ac_status=$? | |
c0d27fcc | 14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14907 | (exit $ac_status); }; }; then |
98418dba | 14908 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
14909 | else |
14910 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 |
14912 | ||
98418dba | 14913 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 14914 | fi |
35996d22 AS |
14915 | rm -f conftest.err conftest.$ac_objext \ |
14916 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
14917 | LIBS=$ac_check_lib_save_LIBS |
14918 | fi | |
c0d27fcc | 14919 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
14920 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
14921 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 14922 | cat >>confdefs.h <<_ACEOF |
98418dba | 14923 | #define HAVE_LIBDGC 1 |
c0d27fcc | 14924 | _ACEOF |
ba4481b5 | 14925 | |
98418dba | 14926 | LIBS="-ldgc $LIBS" |
ba4481b5 | 14927 | |
ba4481b5 DL |
14928 | fi |
14929 | ||
98418dba | 14930 | fi |
503d2be0 | 14931 | |
c0d27fcc MR |
14932 | |
14933 | ||
14934 | if test "${ac_cv_header_locale_h+set}" = set; then | |
14935 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
14936 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
14937 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 14938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14939 | fi |
14940 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
14941 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 14942 | else |
c0d27fcc MR |
14943 | # Is the header compilable? |
14944 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
14945 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
14946 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14947 | /* confdefs.h. */ |
14948 | _ACEOF | |
14949 | cat confdefs.h >>conftest.$ac_ext | |
14950 | cat >>conftest.$ac_ext <<_ACEOF | |
14951 | /* end confdefs.h. */ | |
c0d27fcc MR |
14952 | $ac_includes_default |
14953 | #include <locale.h> | |
14954 | _ACEOF | |
14955 | rm -f conftest.$ac_objext | |
14956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14957 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14958 | ac_status=$? |
35996d22 AS |
14959 | grep -v '^ *+' conftest.er1 >conftest.err |
14960 | rm -f conftest.er1 | |
14961 | cat conftest.err >&5 | |
c0d27fcc MR |
14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14963 | (exit $ac_status); } && | |
35996d22 AS |
14964 | { ac_try='test -z "$ac_c_werror_flag" |
14965 | || test ! -s conftest.err' | |
14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14967 | (eval $ac_try) 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); }; } && | |
14971 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; }; then | |
14977 | ac_header_compiler=yes | |
14978 | else | |
14979 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14980 | sed 's/^/| /' conftest.$ac_ext >&5 |
14981 | ||
c0d27fcc MR |
14982 | ac_header_compiler=no |
14983 | fi | |
35996d22 | 14984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14985 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14986 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14987 | ||
14988 | # Is the header present? | |
14989 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
14990 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
14991 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14992 | /* confdefs.h. */ |
14993 | _ACEOF | |
14994 | cat confdefs.h >>conftest.$ac_ext | |
14995 | cat >>conftest.$ac_ext <<_ACEOF | |
14996 | /* end confdefs.h. */ | |
98418dba | 14997 | #include <locale.h> |
503d2be0 | 14998 | _ACEOF |
c0d27fcc | 14999 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 15000 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 15001 | ac_status=$? |
6bae0ccf | 15002 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15003 | rm -f conftest.er1 |
15004 | cat conftest.err >&5 | |
c0d27fcc | 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15006 | (exit $ac_status); } >/dev/null; then |
15007 | if test -s conftest.err; then | |
15008 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15009 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15010 | else |
15011 | ac_cpp_err= | |
15012 | fi | |
503d2be0 | 15013 | else |
98418dba | 15014 | ac_cpp_err=yes |
503d2be0 | 15015 | fi |
98418dba | 15016 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15017 | ac_header_preproc=yes |
98418dba CW |
15018 | else |
15019 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15020 | sed 's/^/| /' conftest.$ac_ext >&5 |
15021 | ||
c0d27fcc | 15022 | ac_header_preproc=no |
ba4481b5 | 15023 | fi |
98418dba | 15024 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15025 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15026 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15027 | ||
15028 | # So? What about this header? | |
35996d22 AS |
15029 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15030 | yes:no: ) | |
c0d27fcc MR |
15031 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15032 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15033 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
15034 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
15035 | ac_header_preproc=yes | |
19650fd6 | 15036 | ;; |
35996d22 | 15037 | no:yes:* ) |
c0d27fcc MR |
15038 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
15039 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15040 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
15041 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
15042 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
15043 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
15044 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15045 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15046 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15047 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15048 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
15049 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15050 | ( |
15051 | cat <<\_ASBOX | |
35996d22 AS |
15052 | ## ------------------------------------------ ## |
15053 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15054 | ## ------------------------------------------ ## | |
19650fd6 AS |
15055 | _ASBOX |
15056 | ) | | |
15057 | sed "s/^/$as_me: WARNING: /" >&2 | |
15058 | ;; | |
c0d27fcc MR |
15059 | esac |
15060 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
15061 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
15062 | if test "${ac_cv_header_locale_h+set}" = set; then | |
15063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15064 | else | |
15065 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 15066 | fi |
c0d27fcc | 15067 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
15068 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
15069 | ||
c0d27fcc MR |
15070 | fi |
15071 | ||
15072 | ||
15073 | ||
98418dba | 15074 | for ac_func in setlocale |
ba4481b5 | 15075 | do |
503d2be0 | 15076 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 15077 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
15078 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
15079 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 15081 | else |
503d2be0 | 15082 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15083 | /* confdefs.h. */ |
15084 | _ACEOF | |
15085 | cat confdefs.h >>conftest.$ac_ext | |
15086 | cat >>conftest.$ac_ext <<_ACEOF | |
15087 | /* end confdefs.h. */ | |
35996d22 AS |
15088 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15090 | #define $ac_func innocuous_$ac_func | |
15091 | ||
ba4481b5 | 15092 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15093 | which can conflict with char $ac_func (); below. |
15094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15095 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 15096 | |
19650fd6 AS |
15097 | #ifdef __STDC__ |
15098 | # include <limits.h> | |
15099 | #else | |
15100 | # include <assert.h> | |
15101 | #endif | |
35996d22 AS |
15102 | |
15103 | #undef $ac_func | |
15104 | ||
ba4481b5 | 15105 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15106 | #ifdef __cplusplus |
15107 | extern "C" | |
19650fd6 | 15108 | { |
503d2be0 | 15109 | #endif |
ba4481b5 | 15110 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15111 | builtin and then its argument prototype would still apply. */ |
15112 | char $ac_func (); | |
ba4481b5 DL |
15113 | /* The GNU C library defines this for functions which it implements |
15114 | to always fail with ENOSYS. Some functions are actually named | |
15115 | something starting with __ and the normal name is an alias. */ | |
15116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15117 | choke me | |
15118 | #else | |
19650fd6 AS |
15119 | char (*f) () = $ac_func; |
15120 | #endif | |
15121 | #ifdef __cplusplus | |
15122 | } | |
ba4481b5 DL |
15123 | #endif |
15124 | ||
19650fd6 AS |
15125 | int |
15126 | main () | |
15127 | { | |
15128 | return f != $ac_func; | |
503d2be0 AS |
15129 | ; |
15130 | return 0; | |
15131 | } | |
15132 | _ACEOF | |
15133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 15135 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 15136 | ac_status=$? |
35996d22 AS |
15137 | grep -v '^ *+' conftest.er1 >conftest.err |
15138 | rm -f conftest.er1 | |
15139 | cat conftest.err >&5 | |
c0d27fcc | 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15141 | (exit $ac_status); } && |
35996d22 AS |
15142 | { ac_try='test -z "$ac_c_werror_flag" |
15143 | || test ! -s conftest.err' | |
15144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15145 | (eval $ac_try) 2>&5 | |
15146 | ac_status=$? | |
15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15148 | (exit $ac_status); }; } && | |
15149 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 15150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15151 | (eval $ac_try) 2>&5 |
15152 | ac_status=$? | |
c0d27fcc | 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15154 | (exit $ac_status); }; }; then |
15155 | eval "$as_ac_var=yes" | |
15156 | else | |
15157 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15158 | sed 's/^/| /' conftest.$ac_ext >&5 |
15159 | ||
503d2be0 AS |
15160 | eval "$as_ac_var=no" |
15161 | fi | |
35996d22 AS |
15162 | rm -f conftest.err conftest.$ac_objext \ |
15163 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 15164 | fi |
c0d27fcc | 15165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
15166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 15168 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15170 | _ACEOF |
ba4481b5 | 15171 | |
ba4481b5 DL |
15172 | fi |
15173 | done | |
15174 | ||
c0d27fcc | 15175 | |
98418dba CW |
15176 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
15177 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
15178 | # Irix 4.0.5F has the header but not the library. | |
15179 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
15180 | ac_have_func=yes | |
15181 | ||
c0d27fcc | 15182 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15183 | #define SVR4 1 |
c0d27fcc | 15184 | _ACEOF |
98418dba CW |
15185 | |
15186 | fi | |
15187 | ||
15188 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15189 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
15190 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
15191 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
15192 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 15193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15194 | fi |
15195 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
15196 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 15197 | else |
c0d27fcc MR |
15198 | # Is the header compilable? |
15199 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
15200 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
15201 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15202 | /* confdefs.h. */ |
15203 | _ACEOF | |
15204 | cat confdefs.h >>conftest.$ac_ext | |
15205 | cat >>conftest.$ac_ext <<_ACEOF | |
15206 | /* end confdefs.h. */ | |
c0d27fcc MR |
15207 | $ac_includes_default |
15208 | #include <inq_stats/cpustats.h> | |
15209 | _ACEOF | |
15210 | rm -f conftest.$ac_objext | |
15211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15212 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15213 | ac_status=$? |
35996d22 AS |
15214 | grep -v '^ *+' conftest.er1 >conftest.err |
15215 | rm -f conftest.er1 | |
15216 | cat conftest.err >&5 | |
c0d27fcc MR |
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15218 | (exit $ac_status); } && | |
35996d22 AS |
15219 | { ac_try='test -z "$ac_c_werror_flag" |
15220 | || test ! -s conftest.err' | |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; } && | |
15226 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15228 | (eval $ac_try) 2>&5 | |
15229 | ac_status=$? | |
15230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15231 | (exit $ac_status); }; }; then | |
15232 | ac_header_compiler=yes | |
15233 | else | |
15234 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15235 | sed 's/^/| /' conftest.$ac_ext >&5 |
15236 | ||
c0d27fcc MR |
15237 | ac_header_compiler=no |
15238 | fi | |
35996d22 | 15239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15240 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15241 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15242 | ||
15243 | # Is the header present? | |
15244 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
15245 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
15246 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15247 | /* confdefs.h. */ |
15248 | _ACEOF | |
15249 | cat confdefs.h >>conftest.$ac_ext | |
15250 | cat >>conftest.$ac_ext <<_ACEOF | |
15251 | /* end confdefs.h. */ | |
98418dba | 15252 | #include <inq_stats/cpustats.h> |
503d2be0 | 15253 | _ACEOF |
c0d27fcc | 15254 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15255 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15256 | ac_status=$? | |
6bae0ccf | 15257 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15258 | rm -f conftest.er1 |
15259 | cat conftest.err >&5 | |
c0d27fcc | 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15261 | (exit $ac_status); } >/dev/null; then |
15262 | if test -s conftest.err; then | |
15263 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15264 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15265 | else |
15266 | ac_cpp_err= | |
15267 | fi | |
15268 | else | |
15269 | ac_cpp_err=yes | |
15270 | fi | |
15271 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15272 | ac_header_preproc=yes |
503d2be0 AS |
15273 | else |
15274 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15275 | sed 's/^/| /' conftest.$ac_ext >&5 |
15276 | ||
c0d27fcc | 15277 | ac_header_preproc=no |
ba4481b5 | 15278 | fi |
503d2be0 | 15279 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15280 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15281 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15282 | ||
15283 | # So? What about this header? | |
35996d22 AS |
15284 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15285 | yes:no: ) | |
c0d27fcc MR |
15286 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15287 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15288 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
15289 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
15290 | ac_header_preproc=yes | |
19650fd6 | 15291 | ;; |
35996d22 | 15292 | no:yes:* ) |
c0d27fcc MR |
15293 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
15294 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15295 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
15296 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15297 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
15298 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
15299 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15300 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15301 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15302 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15303 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
15304 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15305 | ( |
15306 | cat <<\_ASBOX | |
35996d22 AS |
15307 | ## ------------------------------------------ ## |
15308 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15309 | ## ------------------------------------------ ## | |
19650fd6 AS |
15310 | _ASBOX |
15311 | ) | | |
15312 | sed "s/^/$as_me: WARNING: /" >&2 | |
15313 | ;; | |
c0d27fcc MR |
15314 | esac |
15315 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
15316 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
15317 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
15318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15319 | else | |
15320 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 15321 | fi |
c0d27fcc | 15322 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 15323 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
15324 | |
15325 | fi | |
98418dba CW |
15326 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
15327 | ac_have_func=yes | |
ba4481b5 | 15328 | |
c0d27fcc | 15329 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15330 | #define UMAX 1 |
c0d27fcc | 15331 | _ACEOF |
98418dba | 15332 | |
c0d27fcc MR |
15333 | |
15334 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15335 | #define UMAX4_3 1 |
c0d27fcc | 15336 | _ACEOF |
98418dba CW |
15337 | |
15338 | fi | |
15339 | ||
c0d27fcc | 15340 | |
98418dba CW |
15341 | fi |
15342 | ||
15343 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15344 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
15345 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
15346 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
15347 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 15348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15349 | fi |
15350 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
15351 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 15352 | else |
c0d27fcc MR |
15353 | # Is the header compilable? |
15354 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
15355 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
15356 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15357 | /* confdefs.h. */ |
15358 | _ACEOF | |
15359 | cat confdefs.h >>conftest.$ac_ext | |
15360 | cat >>conftest.$ac_ext <<_ACEOF | |
15361 | /* end confdefs.h. */ | |
c0d27fcc MR |
15362 | $ac_includes_default |
15363 | #include <sys/cpustats.h> | |
15364 | _ACEOF | |
15365 | rm -f conftest.$ac_objext | |
15366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15367 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15368 | ac_status=$? |
35996d22 AS |
15369 | grep -v '^ *+' conftest.er1 >conftest.err |
15370 | rm -f conftest.er1 | |
15371 | cat conftest.err >&5 | |
c0d27fcc MR |
15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15373 | (exit $ac_status); } && | |
35996d22 AS |
15374 | { ac_try='test -z "$ac_c_werror_flag" |
15375 | || test ! -s conftest.err' | |
15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15377 | (eval $ac_try) 2>&5 | |
15378 | ac_status=$? | |
15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15380 | (exit $ac_status); }; } && | |
15381 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); }; }; then | |
15387 | ac_header_compiler=yes | |
15388 | else | |
15389 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 |
15391 | ||
c0d27fcc MR |
15392 | ac_header_compiler=no |
15393 | fi | |
35996d22 | 15394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15396 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15397 | ||
15398 | # Is the header present? | |
15399 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
15400 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
15401 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15402 | /* confdefs.h. */ |
15403 | _ACEOF | |
15404 | cat confdefs.h >>conftest.$ac_ext | |
15405 | cat >>conftest.$ac_ext <<_ACEOF | |
15406 | /* end confdefs.h. */ | |
98418dba CW |
15407 | #include <sys/cpustats.h> |
15408 | _ACEOF | |
c0d27fcc | 15409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
15410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15411 | ac_status=$? | |
6bae0ccf | 15412 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15413 | rm -f conftest.er1 |
15414 | cat conftest.err >&5 | |
c0d27fcc | 15415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15416 | (exit $ac_status); } >/dev/null; then |
15417 | if test -s conftest.err; then | |
15418 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15420 | else |
15421 | ac_cpp_err= | |
15422 | fi | |
15423 | else | |
15424 | ac_cpp_err=yes | |
503d2be0 | 15425 | fi |
98418dba | 15426 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15427 | ac_header_preproc=yes |
98418dba CW |
15428 | else |
15429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15430 | sed 's/^/| /' conftest.$ac_ext >&5 |
15431 | ||
c0d27fcc | 15432 | ac_header_preproc=no |
98418dba CW |
15433 | fi |
15434 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
15435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15436 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15437 | ||
15438 | # So? What about this header? | |
35996d22 AS |
15439 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15440 | yes:no: ) | |
c0d27fcc MR |
15441 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15442 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15443 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
15444 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
15445 | ac_header_preproc=yes | |
19650fd6 | 15446 | ;; |
35996d22 | 15447 | no:yes:* ) |
c0d27fcc MR |
15448 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
15449 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15450 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
15451 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15452 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
15453 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
15454 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15455 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15456 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15457 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15458 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
15459 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15460 | ( |
15461 | cat <<\_ASBOX | |
35996d22 AS |
15462 | ## ------------------------------------------ ## |
15463 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15464 | ## ------------------------------------------ ## | |
19650fd6 AS |
15465 | _ASBOX |
15466 | ) | | |
15467 | sed "s/^/$as_me: WARNING: /" >&2 | |
15468 | ;; | |
c0d27fcc MR |
15469 | esac |
15470 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
15471 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
15472 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
15473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15474 | else | |
15475 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 15476 | fi |
c0d27fcc | 15477 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 15478 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
15479 | |
15480 | fi | |
98418dba | 15481 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 15482 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 15483 | #define UMAX 1 |
c0d27fcc | 15484 | _ACEOF |
ba4481b5 | 15485 | |
98418dba CW |
15486 | fi |
15487 | ||
c0d27fcc | 15488 | |
98418dba CW |
15489 | fi |
15490 | ||
15491 | if test $ac_have_func = no; then | |
15492 | ||
15493 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
15494 | do |
15495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
15498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15501 | fi |
15502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15504 | else |
c0d27fcc MR |
15505 | # Is the header compilable? |
15506 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15507 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15508 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15509 | /* confdefs.h. */ |
15510 | _ACEOF | |
15511 | cat confdefs.h >>conftest.$ac_ext | |
15512 | cat >>conftest.$ac_ext <<_ACEOF | |
15513 | /* end confdefs.h. */ | |
c0d27fcc MR |
15514 | $ac_includes_default |
15515 | #include <$ac_header> | |
15516 | _ACEOF | |
15517 | rm -f conftest.$ac_objext | |
15518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15519 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15520 | ac_status=$? |
35996d22 AS |
15521 | grep -v '^ *+' conftest.er1 >conftest.err |
15522 | rm -f conftest.er1 | |
15523 | cat conftest.err >&5 | |
c0d27fcc MR |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15525 | (exit $ac_status); } && | |
35996d22 AS |
15526 | { ac_try='test -z "$ac_c_werror_flag" |
15527 | || test ! -s conftest.err' | |
15528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15529 | (eval $ac_try) 2>&5 | |
15530 | ac_status=$? | |
15531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15532 | (exit $ac_status); }; } && | |
15533 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15535 | (eval $ac_try) 2>&5 | |
15536 | ac_status=$? | |
15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15538 | (exit $ac_status); }; }; then | |
15539 | ac_header_compiler=yes | |
15540 | else | |
15541 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15542 | sed 's/^/| /' conftest.$ac_ext >&5 |
15543 | ||
c0d27fcc MR |
15544 | ac_header_compiler=no |
15545 | fi | |
35996d22 | 15546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15549 | ||
15550 | # Is the header present? | |
15551 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15552 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15553 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15554 | /* confdefs.h. */ |
15555 | _ACEOF | |
15556 | cat confdefs.h >>conftest.$ac_ext | |
15557 | cat >>conftest.$ac_ext <<_ACEOF | |
15558 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
15559 | #include <$ac_header> |
15560 | _ACEOF | |
c0d27fcc | 15561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
15562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15563 | ac_status=$? | |
6bae0ccf | 15564 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
15565 | rm -f conftest.er1 |
15566 | cat conftest.err >&5 | |
c0d27fcc | 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
15568 | (exit $ac_status); } >/dev/null; then |
15569 | if test -s conftest.err; then | |
15570 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2c9dccc9 PJ |
15572 | else |
15573 | ac_cpp_err= | |
15574 | fi | |
15575 | else | |
15576 | ac_cpp_err=yes | |
15577 | fi | |
15578 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
15579 | ac_header_preproc=yes |
15580 | else | |
15581 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15582 | sed 's/^/| /' conftest.$ac_ext >&5 |
15583 | ||
c0d27fcc MR |
15584 | ac_header_preproc=no |
15585 | fi | |
15586 | rm -f conftest.err conftest.$ac_ext | |
15587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15589 | ||
15590 | # So? What about this header? | |
35996d22 AS |
15591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15592 | yes:no: ) | |
c0d27fcc MR |
15593 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15594 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15596 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15597 | ac_header_preproc=yes | |
19650fd6 | 15598 | ;; |
35996d22 | 15599 | no:yes:* ) |
c0d27fcc MR |
15600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15604 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15605 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15606 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15607 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15609 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15610 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15611 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15612 | ( |
15613 | cat <<\_ASBOX | |
35996d22 AS |
15614 | ## ------------------------------------------ ## |
15615 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15616 | ## ------------------------------------------ ## | |
19650fd6 AS |
15617 | _ASBOX |
15618 | ) | | |
15619 | sed "s/^/$as_me: WARNING: /" >&2 | |
15620 | ;; | |
c0d27fcc MR |
15621 | esac |
15622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15626 | else | |
35996d22 | 15627 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc MR |
15628 | fi |
15629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15631 | ||
15632 | fi | |
15633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15634 | cat >>confdefs.h <<_ACEOF | |
15635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15636 | _ACEOF | |
15637 | ||
15638 | fi | |
15639 | ||
15640 | done | |
15641 | ||
15642 | fi | |
15643 | ||
15644 | ||
15645 | for ac_header in nlist.h | |
15646 | do | |
15647 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15653 | fi | |
15654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15656 | else | |
15657 | # Is the header compilable? | |
15658 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15659 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15660 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15661 | /* confdefs.h. */ |
15662 | _ACEOF | |
15663 | cat confdefs.h >>conftest.$ac_ext | |
15664 | cat >>conftest.$ac_ext <<_ACEOF | |
15665 | /* end confdefs.h. */ | |
c0d27fcc MR |
15666 | $ac_includes_default |
15667 | #include <$ac_header> | |
15668 | _ACEOF | |
15669 | rm -f conftest.$ac_objext | |
15670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15671 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15672 | ac_status=$? |
35996d22 AS |
15673 | grep -v '^ *+' conftest.er1 >conftest.err |
15674 | rm -f conftest.er1 | |
15675 | cat conftest.err >&5 | |
c0d27fcc MR |
15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15677 | (exit $ac_status); } && | |
35996d22 AS |
15678 | { ac_try='test -z "$ac_c_werror_flag" |
15679 | || test ! -s conftest.err' | |
15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15681 | (eval $ac_try) 2>&5 | |
15682 | ac_status=$? | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); }; } && | |
15685 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15687 | (eval $ac_try) 2>&5 | |
15688 | ac_status=$? | |
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15690 | (exit $ac_status); }; }; then | |
15691 | ac_header_compiler=yes | |
2c9dccc9 PJ |
15692 | else |
15693 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15694 | sed 's/^/| /' conftest.$ac_ext >&5 |
15695 | ||
c0d27fcc | 15696 | ac_header_compiler=no |
98418dba | 15697 | fi |
35996d22 | 15698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15699 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15700 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 15701 | |
c0d27fcc MR |
15702 | # Is the header present? |
15703 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15704 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15705 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15706 | /* confdefs.h. */ |
15707 | _ACEOF | |
15708 | cat confdefs.h >>conftest.$ac_ext | |
15709 | cat >>conftest.$ac_ext <<_ACEOF | |
15710 | /* end confdefs.h. */ | |
503d2be0 AS |
15711 | #include <$ac_header> |
15712 | _ACEOF | |
c0d27fcc | 15713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15715 | ac_status=$? | |
6bae0ccf | 15716 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15717 | rm -f conftest.er1 |
15718 | cat conftest.err >&5 | |
c0d27fcc | 15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15720 | (exit $ac_status); } >/dev/null; then |
15721 | if test -s conftest.err; then | |
15722 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15723 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15724 | else |
15725 | ac_cpp_err= | |
15726 | fi | |
15727 | else | |
15728 | ac_cpp_err=yes | |
15729 | fi | |
15730 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15731 | ac_header_preproc=yes |
503d2be0 AS |
15732 | else |
15733 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15734 | sed 's/^/| /' conftest.$ac_ext >&5 |
15735 | ||
c0d27fcc | 15736 | ac_header_preproc=no |
b5de8dc0 | 15737 | fi |
503d2be0 | 15738 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15739 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15740 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15741 | ||
15742 | # So? What about this header? | |
35996d22 AS |
15743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15744 | yes:no: ) | |
c0d27fcc MR |
15745 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15746 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15748 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15749 | ac_header_preproc=yes | |
19650fd6 | 15750 | ;; |
35996d22 | 15751 | no:yes:* ) |
c0d27fcc MR |
15752 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15753 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15754 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15755 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15756 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15757 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15758 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15759 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15761 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15762 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15763 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15764 | ( |
15765 | cat <<\_ASBOX | |
35996d22 AS |
15766 | ## ------------------------------------------ ## |
15767 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15768 | ## ------------------------------------------ ## | |
19650fd6 AS |
15769 | _ASBOX |
15770 | ) | | |
15771 | sed "s/^/$as_me: WARNING: /" >&2 | |
15772 | ;; | |
c0d27fcc MR |
15773 | esac |
15774 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15775 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15778 | else | |
35996d22 | 15779 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 15780 | fi |
c0d27fcc | 15781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15783 | |
15784 | fi | |
98418dba | 15785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15786 | cat >>confdefs.h <<_ACEOF |
98418dba | 15787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
15788 | _ACEOF |
15789 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
15790 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
15791 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 15792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 15793 | else |
503d2be0 | 15794 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15795 | /* confdefs.h. */ |
15796 | _ACEOF | |
15797 | cat confdefs.h >>conftest.$ac_ext | |
15798 | cat >>conftest.$ac_ext <<_ACEOF | |
15799 | /* end confdefs.h. */ | |
98418dba | 15800 | #include <nlist.h> |
b5de8dc0 | 15801 | |
503d2be0 AS |
15802 | int |
15803 | main () | |
15804 | { | |
98418dba CW |
15805 | static struct nlist ac_aggr; |
15806 | if (ac_aggr.n_un.n_name) | |
15807 | return 0; | |
503d2be0 AS |
15808 | ; |
15809 | return 0; | |
15810 | } | |
15811 | _ACEOF | |
98418dba | 15812 | rm -f conftest.$ac_objext |
c0d27fcc | 15813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 15814 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 15815 | ac_status=$? |
35996d22 AS |
15816 | grep -v '^ *+' conftest.er1 >conftest.err |
15817 | rm -f conftest.er1 | |
15818 | cat conftest.err >&5 | |
c0d27fcc | 15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15820 | (exit $ac_status); } && |
35996d22 AS |
15821 | { ac_try='test -z "$ac_c_werror_flag" |
15822 | || test ! -s conftest.err' | |
15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15824 | (eval $ac_try) 2>&5 | |
15825 | ac_status=$? | |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); }; } && | |
15828 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 15829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15830 | (eval $ac_try) 2>&5 |
15831 | ac_status=$? | |
c0d27fcc | 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15833 | (exit $ac_status); }; }; then |
98418dba | 15834 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
15835 | else |
15836 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15837 | sed 's/^/| /' conftest.$ac_ext >&5 |
15838 | ||
6bae0ccf | 15839 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15840 | /* confdefs.h. */ |
15841 | _ACEOF | |
15842 | cat confdefs.h >>conftest.$ac_ext | |
15843 | cat >>conftest.$ac_ext <<_ACEOF | |
15844 | /* end confdefs.h. */ | |
6bae0ccf DL |
15845 | #include <nlist.h> |
15846 | ||
15847 | int | |
15848 | main () | |
15849 | { | |
15850 | static struct nlist ac_aggr; | |
15851 | if (sizeof ac_aggr.n_un.n_name) | |
15852 | return 0; | |
15853 | ; | |
15854 | return 0; | |
15855 | } | |
15856 | _ACEOF | |
15857 | rm -f conftest.$ac_objext | |
15858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15859 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 15860 | ac_status=$? |
35996d22 AS |
15861 | grep -v '^ *+' conftest.er1 >conftest.err |
15862 | rm -f conftest.er1 | |
15863 | cat conftest.err >&5 | |
6bae0ccf DL |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15865 | (exit $ac_status); } && | |
35996d22 AS |
15866 | { ac_try='test -z "$ac_c_werror_flag" |
15867 | || test ! -s conftest.err' | |
15868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15869 | (eval $ac_try) 2>&5 | |
15870 | ac_status=$? | |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15872 | (exit $ac_status); }; } && | |
15873 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
15874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15875 | (eval $ac_try) 2>&5 | |
15876 | ac_status=$? | |
15877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15878 | (exit $ac_status); }; }; then | |
15879 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
15880 | else | |
15881 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15882 | sed 's/^/| /' conftest.$ac_ext >&5 |
15883 | ||
98418dba | 15884 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 15885 | fi |
35996d22 | 15886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 15887 | fi |
35996d22 | 15888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 15889 | fi |
c0d27fcc | 15890 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
15891 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
15892 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 15893 | |
c0d27fcc | 15894 | cat >>confdefs.h <<_ACEOF |
98418dba | 15895 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 15896 | _ACEOF |
b5de8dc0 | 15897 | |
c0d27fcc MR |
15898 | |
15899 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15900 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 15901 | _ACEOF |
b5de8dc0 | 15902 | |
98418dba | 15903 | fi |
b5de8dc0 | 15904 | |
c0d27fcc | 15905 | |
98418dba | 15906 | fi |
c0d27fcc | 15907 | |
98418dba | 15908 | done |
b5de8dc0 | 15909 | |
98418dba CW |
15910 | fi |
15911 | done | |
b5de8dc0 | 15912 | |
c0d27fcc | 15913 | |
98418dba | 15914 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 15915 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
15916 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
15917 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15919 | else | |
15920 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15921 | /* confdefs.h. */ |
15922 | _ACEOF | |
15923 | cat confdefs.h >>conftest.$ac_ext | |
15924 | cat >>conftest.$ac_ext <<_ACEOF | |
15925 | /* end confdefs.h. */ | |
6bae0ccf | 15926 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
15927 | #ifdef LDAV_PRIVILEGED |
15928 | Yowza Am I SETGID yet | |
15929 | #endif | |
15930 | _ACEOF | |
15931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 15932 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
15933 | ac_cv_func_getloadavg_setgid=yes |
15934 | else | |
15935 | ac_cv_func_getloadavg_setgid=no | |
15936 | fi | |
15937 | rm -f conftest* | |
b5de8dc0 | 15938 | |
98418dba | 15939 | fi |
c0d27fcc | 15940 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
15941 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
15942 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
15943 | NEED_SETGID=true | |
b5de8dc0 | 15944 | |
c0d27fcc | 15945 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15946 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 15947 | _ACEOF |
98418dba | 15948 | |
b5de8dc0 | 15949 | else |
98418dba | 15950 | NEED_SETGID=false |
b5de8dc0 | 15951 | fi |
98418dba CW |
15952 | |
15953 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 15954 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
15955 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
15956 | if test "${ac_cv_group_kmem+set}" = set; then | |
15957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15958 | else | |
15959 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
15960 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
15961 | # If we got an error (system does not support symlinks), try without -L. | |
15962 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
15963 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
35996d22 | 15964 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
15965 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
15966 | / /s/.* //;p;'` | |
15967 | ||
b5de8dc0 | 15968 | fi |
c0d27fcc | 15969 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
15970 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
15971 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 15972 | fi |
98418dba CW |
15973 | if test "x$ac_save_LIBS" = x; then |
15974 | GETLOADAVG_LIBS=$LIBS | |
15975 | else | |
15976 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 15977 | fi |
98418dba | 15978 | LIBS=$ac_save_LIBS |
b5de8dc0 | 15979 | |
c0d27fcc MR |
15980 | |
15981 | ||
15982 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
15983 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
15984 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 15985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 15986 | else |
b936fae4 AS |
15987 | while :; do |
15988 | ac_cv_sys_largefile_source=no | |
503d2be0 | 15989 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15990 | /* confdefs.h. */ |
15991 | _ACEOF | |
15992 | cat confdefs.h >>conftest.$ac_ext | |
15993 | cat >>conftest.$ac_ext <<_ACEOF | |
15994 | /* end confdefs.h. */ | |
b936fae4 | 15995 | #include <stdio.h> |
503d2be0 AS |
15996 | int |
15997 | main () | |
15998 | { | |
b936fae4 AS |
15999 | return !fseeko; |
16000 | ; | |
16001 | return 0; | |
16002 | } | |
16003 | _ACEOF | |
16004 | rm -f conftest.$ac_objext | |
c0d27fcc | 16005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16006 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16007 | ac_status=$? |
35996d22 AS |
16008 | grep -v '^ *+' conftest.er1 >conftest.err |
16009 | rm -f conftest.er1 | |
16010 | cat conftest.err >&5 | |
c0d27fcc | 16011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16012 | (exit $ac_status); } && |
35996d22 AS |
16013 | { ac_try='test -z "$ac_c_werror_flag" |
16014 | || test ! -s conftest.err' | |
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16016 | (eval $ac_try) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); }; } && | |
16020 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16022 | (eval $ac_try) 2>&5 |
16023 | ac_status=$? | |
c0d27fcc | 16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16025 | (exit $ac_status); }; }; then |
16026 | break | |
16027 | else | |
16028 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16029 | sed 's/^/| /' conftest.$ac_ext >&5 |
16030 | ||
b936fae4 | 16031 | fi |
35996d22 | 16032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 | 16033 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16034 | /* confdefs.h. */ |
16035 | _ACEOF | |
16036 | cat confdefs.h >>conftest.$ac_ext | |
16037 | cat >>conftest.$ac_ext <<_ACEOF | |
16038 | /* end confdefs.h. */ | |
b936fae4 AS |
16039 | #define _LARGEFILE_SOURCE 1 |
16040 | #include <stdio.h> | |
b936fae4 AS |
16041 | int |
16042 | main () | |
16043 | { | |
16044 | return !fseeko; | |
16045 | ; | |
16046 | return 0; | |
16047 | } | |
16048 | _ACEOF | |
16049 | rm -f conftest.$ac_objext | |
c0d27fcc | 16050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16051 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16052 | ac_status=$? |
35996d22 AS |
16053 | grep -v '^ *+' conftest.er1 >conftest.err |
16054 | rm -f conftest.er1 | |
16055 | cat conftest.err >&5 | |
c0d27fcc | 16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16057 | (exit $ac_status); } && |
35996d22 AS |
16058 | { ac_try='test -z "$ac_c_werror_flag" |
16059 | || test ! -s conftest.err' | |
16060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16061 | (eval $ac_try) 2>&5 | |
16062 | ac_status=$? | |
16063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16064 | (exit $ac_status); }; } && | |
16065 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16067 | (eval $ac_try) 2>&5 |
16068 | ac_status=$? | |
c0d27fcc | 16069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16070 | (exit $ac_status); }; }; then |
16071 | ac_cv_sys_largefile_source=1; break | |
16072 | else | |
16073 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16074 | sed 's/^/| /' conftest.$ac_ext >&5 |
16075 | ||
b936fae4 | 16076 | fi |
35996d22 | 16077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 AS |
16078 | break |
16079 | done | |
16080 | fi | |
c0d27fcc | 16081 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
16082 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
16083 | if test "$ac_cv_sys_largefile_source" != no; then | |
16084 | ||
c0d27fcc | 16085 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 16086 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 16087 | _ACEOF |
b936fae4 AS |
16088 | |
16089 | fi | |
16090 | rm -f conftest* | |
4c343001 | 16091 | |
b936fae4 AS |
16092 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
16093 | # in glibc 2.1.3, but that breaks too many other things. | |
16094 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 16095 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
16096 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
16097 | if test "${ac_cv_func_fseeko+set}" = set; then | |
16098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16099 | else | |
16100 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16101 | /* confdefs.h. */ |
16102 | _ACEOF | |
16103 | cat confdefs.h >>conftest.$ac_ext | |
16104 | cat >>conftest.$ac_ext <<_ACEOF | |
16105 | /* end confdefs.h. */ | |
b936fae4 | 16106 | #include <stdio.h> |
b936fae4 AS |
16107 | int |
16108 | main () | |
16109 | { | |
16110 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
16111 | ; |
16112 | return 0; | |
16113 | } | |
16114 | _ACEOF | |
16115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16117 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16118 | ac_status=$? |
35996d22 AS |
16119 | grep -v '^ *+' conftest.er1 >conftest.err |
16120 | rm -f conftest.er1 | |
16121 | cat conftest.err >&5 | |
c0d27fcc | 16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16123 | (exit $ac_status); } && |
35996d22 AS |
16124 | { ac_try='test -z "$ac_c_werror_flag" |
16125 | || test ! -s conftest.err' | |
16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16127 | (eval $ac_try) 2>&5 | |
16128 | ac_status=$? | |
16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16130 | (exit $ac_status); }; } && | |
16131 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16133 | (eval $ac_try) 2>&5 |
16134 | ac_status=$? | |
c0d27fcc | 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16136 | (exit $ac_status); }; }; then |
b936fae4 | 16137 | ac_cv_func_fseeko=yes |
503d2be0 AS |
16138 | else |
16139 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16140 | sed 's/^/| /' conftest.$ac_ext >&5 |
16141 | ||
b936fae4 | 16142 | ac_cv_func_fseeko=no |
503d2be0 | 16143 | fi |
35996d22 AS |
16144 | rm -f conftest.err conftest.$ac_objext \ |
16145 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16146 | fi |
c0d27fcc | 16147 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
16148 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
16149 | if test $ac_cv_func_fseeko = yes; then | |
16150 | ||
c0d27fcc | 16151 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 16152 | #define HAVE_FSEEKO 1 |
c0d27fcc | 16153 | _ACEOF |
b936fae4 | 16154 | |
4c343001 DL |
16155 | fi |
16156 | ||
c0d27fcc | 16157 | |
cd958eb3 MB |
16158 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
16159 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
16160 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
16161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16162 | else | |
16163 | # Use it with a single arg. | |
16164 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16165 | /* confdefs.h. */ |
16166 | _ACEOF | |
16167 | cat confdefs.h >>conftest.$ac_ext | |
16168 | cat >>conftest.$ac_ext <<_ACEOF | |
16169 | /* end confdefs.h. */ | |
cd958eb3 MB |
16170 | $ac_includes_default |
16171 | int | |
16172 | main () | |
16173 | { | |
16174 | getpgrp (0); | |
16175 | ; | |
16176 | return 0; | |
16177 | } | |
16178 | _ACEOF | |
16179 | rm -f conftest.$ac_objext | |
16180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 16181 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 16182 | ac_status=$? |
35996d22 AS |
16183 | grep -v '^ *+' conftest.er1 >conftest.err |
16184 | rm -f conftest.er1 | |
16185 | cat conftest.err >&5 | |
cd958eb3 MB |
16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16187 | (exit $ac_status); } && | |
35996d22 AS |
16188 | { ac_try='test -z "$ac_c_werror_flag" |
16189 | || test ! -s conftest.err' | |
16190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16191 | (eval $ac_try) 2>&5 | |
16192 | ac_status=$? | |
16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16194 | (exit $ac_status); }; } && | |
16195 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; }; then | |
16201 | ac_cv_func_getpgrp_void=no | |
16202 | else | |
16203 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16204 | sed 's/^/| /' conftest.$ac_ext >&5 |
16205 | ||
cd958eb3 MB |
16206 | ac_cv_func_getpgrp_void=yes |
16207 | fi | |
35996d22 | 16208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
16209 | |
16210 | fi | |
16211 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
16212 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
16213 | if test $ac_cv_func_getpgrp_void = yes; then | |
16214 | ||
16215 | cat >>confdefs.h <<\_ACEOF | |
16216 | #define GETPGRP_VOID 1 | |
16217 | _ACEOF | |
16218 | ||
16219 | fi | |
16220 | ||
16221 | ||
973a76b1 DL |
16222 | |
16223 | for ac_func in strftime | |
16224 | do | |
16225 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16226 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16227 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16228 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16230 | else | |
16231 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16232 | /* confdefs.h. */ |
16233 | _ACEOF | |
16234 | cat confdefs.h >>conftest.$ac_ext | |
16235 | cat >>conftest.$ac_ext <<_ACEOF | |
16236 | /* end confdefs.h. */ | |
35996d22 AS |
16237 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16239 | #define $ac_func innocuous_$ac_func | |
16240 | ||
973a76b1 | 16241 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16242 | which can conflict with char $ac_func (); below. |
16243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16244 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16245 | |
19650fd6 AS |
16246 | #ifdef __STDC__ |
16247 | # include <limits.h> | |
16248 | #else | |
16249 | # include <assert.h> | |
16250 | #endif | |
35996d22 AS |
16251 | |
16252 | #undef $ac_func | |
16253 | ||
973a76b1 DL |
16254 | /* Override any gcc2 internal prototype to avoid an error. */ |
16255 | #ifdef __cplusplus | |
16256 | extern "C" | |
19650fd6 | 16257 | { |
973a76b1 DL |
16258 | #endif |
16259 | /* We use char because int might match the return type of a gcc2 | |
16260 | builtin and then its argument prototype would still apply. */ | |
16261 | char $ac_func (); | |
16262 | /* The GNU C library defines this for functions which it implements | |
16263 | to always fail with ENOSYS. Some functions are actually named | |
16264 | something starting with __ and the normal name is an alias. */ | |
16265 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16266 | choke me | |
16267 | #else | |
19650fd6 AS |
16268 | char (*f) () = $ac_func; |
16269 | #endif | |
16270 | #ifdef __cplusplus | |
16271 | } | |
973a76b1 DL |
16272 | #endif |
16273 | ||
19650fd6 AS |
16274 | int |
16275 | main () | |
16276 | { | |
16277 | return f != $ac_func; | |
973a76b1 DL |
16278 | ; |
16279 | return 0; | |
16280 | } | |
16281 | _ACEOF | |
16282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16284 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16285 | ac_status=$? |
35996d22 AS |
16286 | grep -v '^ *+' conftest.er1 >conftest.err |
16287 | rm -f conftest.er1 | |
16288 | cat conftest.err >&5 | |
973a76b1 DL |
16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16290 | (exit $ac_status); } && | |
35996d22 AS |
16291 | { ac_try='test -z "$ac_c_werror_flag" |
16292 | || test ! -s conftest.err' | |
16293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16294 | (eval $ac_try) 2>&5 | |
16295 | ac_status=$? | |
16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16297 | (exit $ac_status); }; } && | |
16298 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16300 | (eval $ac_try) 2>&5 | |
16301 | ac_status=$? | |
16302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16303 | (exit $ac_status); }; }; then | |
16304 | eval "$as_ac_var=yes" | |
16305 | else | |
16306 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16307 | sed 's/^/| /' conftest.$ac_ext >&5 |
16308 | ||
973a76b1 DL |
16309 | eval "$as_ac_var=no" |
16310 | fi | |
35996d22 AS |
16311 | rm -f conftest.err conftest.$ac_objext \ |
16312 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16313 | fi |
16314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16315 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16316 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16317 | cat >>confdefs.h <<_ACEOF | |
16318 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16319 | _ACEOF | |
16320 | ||
16321 | else | |
16322 | # strftime is in -lintl on SCO UNIX. | |
16323 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
16324 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
16325 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
16326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16327 | else | |
16328 | ac_check_lib_save_LIBS=$LIBS | |
16329 | LIBS="-lintl $LIBS" | |
16330 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16331 | /* confdefs.h. */ |
16332 | _ACEOF | |
16333 | cat confdefs.h >>conftest.$ac_ext | |
16334 | cat >>conftest.$ac_ext <<_ACEOF | |
16335 | /* end confdefs.h. */ | |
973a76b1 DL |
16336 | |
16337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16338 | #ifdef __cplusplus | |
16339 | extern "C" | |
16340 | #endif | |
16341 | /* We use char because int might match the return type of a gcc2 | |
16342 | builtin and then its argument prototype would still apply. */ | |
16343 | char strftime (); | |
16344 | int | |
16345 | main () | |
16346 | { | |
16347 | strftime (); | |
16348 | ; | |
16349 | return 0; | |
16350 | } | |
16351 | _ACEOF | |
16352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16354 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16355 | ac_status=$? |
35996d22 AS |
16356 | grep -v '^ *+' conftest.er1 >conftest.err |
16357 | rm -f conftest.er1 | |
16358 | cat conftest.err >&5 | |
973a76b1 DL |
16359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16360 | (exit $ac_status); } && | |
35996d22 AS |
16361 | { ac_try='test -z "$ac_c_werror_flag" |
16362 | || test ! -s conftest.err' | |
16363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16364 | (eval $ac_try) 2>&5 | |
16365 | ac_status=$? | |
16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16367 | (exit $ac_status); }; } && | |
16368 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16370 | (eval $ac_try) 2>&5 | |
16371 | ac_status=$? | |
16372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16373 | (exit $ac_status); }; }; then | |
16374 | ac_cv_lib_intl_strftime=yes | |
16375 | else | |
16376 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16377 | sed 's/^/| /' conftest.$ac_ext >&5 |
16378 | ||
973a76b1 DL |
16379 | ac_cv_lib_intl_strftime=no |
16380 | fi | |
35996d22 AS |
16381 | rm -f conftest.err conftest.$ac_objext \ |
16382 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16383 | LIBS=$ac_check_lib_save_LIBS |
16384 | fi | |
16385 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
16386 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
16387 | if test $ac_cv_lib_intl_strftime = yes; then | |
16388 | cat >>confdefs.h <<\_ACEOF | |
16389 | #define HAVE_STRFTIME 1 | |
16390 | _ACEOF | |
16391 | ||
16392 | LIBS="-lintl $LIBS" | |
16393 | fi | |
16394 | ||
16395 | fi | |
16396 | done | |
16397 | ||
16398 | ||
b936fae4 AS |
16399 | # UNIX98 PTYs. |
16400 | ||
16401 | for ac_func in grantpt | |
503d2be0 AS |
16402 | do |
16403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16404 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16406 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 16408 | else |
503d2be0 | 16409 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16410 | /* confdefs.h. */ |
16411 | _ACEOF | |
16412 | cat confdefs.h >>conftest.$ac_ext | |
16413 | cat >>conftest.$ac_ext <<_ACEOF | |
16414 | /* end confdefs.h. */ | |
35996d22 AS |
16415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16417 | #define $ac_func innocuous_$ac_func | |
16418 | ||
503d2be0 | 16419 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16420 | which can conflict with char $ac_func (); below. |
16421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16422 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16423 | |
19650fd6 AS |
16424 | #ifdef __STDC__ |
16425 | # include <limits.h> | |
16426 | #else | |
16427 | # include <assert.h> | |
16428 | #endif | |
35996d22 AS |
16429 | |
16430 | #undef $ac_func | |
16431 | ||
4c343001 | 16432 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16433 | #ifdef __cplusplus |
16434 | extern "C" | |
19650fd6 | 16435 | { |
503d2be0 | 16436 | #endif |
4c343001 | 16437 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16438 | builtin and then its argument prototype would still apply. */ |
16439 | char $ac_func (); | |
503d2be0 AS |
16440 | /* The GNU C library defines this for functions which it implements |
16441 | to always fail with ENOSYS. Some functions are actually named | |
16442 | something starting with __ and the normal name is an alias. */ | |
16443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16444 | choke me | |
16445 | #else | |
19650fd6 AS |
16446 | char (*f) () = $ac_func; |
16447 | #endif | |
16448 | #ifdef __cplusplus | |
16449 | } | |
503d2be0 | 16450 | #endif |
4c343001 | 16451 | |
19650fd6 AS |
16452 | int |
16453 | main () | |
16454 | { | |
16455 | return f != $ac_func; | |
503d2be0 AS |
16456 | ; |
16457 | return 0; | |
16458 | } | |
16459 | _ACEOF | |
16460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16462 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16463 | ac_status=$? |
35996d22 AS |
16464 | grep -v '^ *+' conftest.er1 >conftest.err |
16465 | rm -f conftest.er1 | |
16466 | cat conftest.err >&5 | |
c0d27fcc | 16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16468 | (exit $ac_status); } && |
35996d22 AS |
16469 | { ac_try='test -z "$ac_c_werror_flag" |
16470 | || test ! -s conftest.err' | |
16471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16472 | (eval $ac_try) 2>&5 | |
16473 | ac_status=$? | |
16474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16475 | (exit $ac_status); }; } && | |
16476 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16478 | (eval $ac_try) 2>&5 |
16479 | ac_status=$? | |
c0d27fcc | 16480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16481 | (exit $ac_status); }; }; then |
16482 | eval "$as_ac_var=yes" | |
16483 | else | |
16484 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16485 | sed 's/^/| /' conftest.$ac_ext >&5 |
16486 | ||
503d2be0 AS |
16487 | eval "$as_ac_var=no" |
16488 | fi | |
35996d22 AS |
16489 | rm -f conftest.err conftest.$ac_objext \ |
16490 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16491 | fi |
c0d27fcc | 16492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16493 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16494 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16495 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16496 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16497 | _ACEOF |
4c343001 DL |
16498 | |
16499 | fi | |
503d2be0 AS |
16500 | done |
16501 | ||
c0d27fcc | 16502 | |
b936fae4 | 16503 | # PTY-related GNU extensions. |
4c343001 | 16504 | |
b936fae4 AS |
16505 | for ac_func in getpt |
16506 | do | |
16507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16508 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
16509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16510 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 16511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 16512 | else |
b936fae4 | 16513 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16514 | /* confdefs.h. */ |
16515 | _ACEOF | |
16516 | cat confdefs.h >>conftest.$ac_ext | |
16517 | cat >>conftest.$ac_ext <<_ACEOF | |
16518 | /* end confdefs.h. */ | |
35996d22 AS |
16519 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16521 | #define $ac_func innocuous_$ac_func | |
16522 | ||
087121cc | 16523 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16524 | which can conflict with char $ac_func (); below. |
16525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16526 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16527 | |
19650fd6 AS |
16528 | #ifdef __STDC__ |
16529 | # include <limits.h> | |
16530 | #else | |
16531 | # include <assert.h> | |
16532 | #endif | |
35996d22 AS |
16533 | |
16534 | #undef $ac_func | |
16535 | ||
087121cc | 16536 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16537 | #ifdef __cplusplus |
16538 | extern "C" | |
19650fd6 | 16539 | { |
503d2be0 | 16540 | #endif |
087121cc | 16541 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16542 | builtin and then its argument prototype would still apply. */ |
16543 | char $ac_func (); | |
087121cc GM |
16544 | /* The GNU C library defines this for functions which it implements |
16545 | to always fail with ENOSYS. Some functions are actually named | |
16546 | something starting with __ and the normal name is an alias. */ | |
16547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16548 | choke me | |
16549 | #else | |
19650fd6 AS |
16550 | char (*f) () = $ac_func; |
16551 | #endif | |
16552 | #ifdef __cplusplus | |
16553 | } | |
087121cc GM |
16554 | #endif |
16555 | ||
19650fd6 AS |
16556 | int |
16557 | main () | |
16558 | { | |
16559 | return f != $ac_func; | |
503d2be0 AS |
16560 | ; |
16561 | return 0; | |
16562 | } | |
16563 | _ACEOF | |
16564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16566 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16567 | ac_status=$? |
35996d22 AS |
16568 | grep -v '^ *+' conftest.er1 >conftest.err |
16569 | rm -f conftest.er1 | |
16570 | cat conftest.err >&5 | |
c0d27fcc | 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16572 | (exit $ac_status); } && |
35996d22 AS |
16573 | { ac_try='test -z "$ac_c_werror_flag" |
16574 | || test ! -s conftest.err' | |
16575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16576 | (eval $ac_try) 2>&5 | |
16577 | ac_status=$? | |
16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16579 | (exit $ac_status); }; } && | |
16580 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16582 | (eval $ac_try) 2>&5 |
16583 | ac_status=$? | |
c0d27fcc | 16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16585 | (exit $ac_status); }; }; then |
16586 | eval "$as_ac_var=yes" | |
16587 | else | |
16588 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16589 | sed 's/^/| /' conftest.$ac_ext >&5 |
16590 | ||
503d2be0 AS |
16591 | eval "$as_ac_var=no" |
16592 | fi | |
35996d22 AS |
16593 | rm -f conftest.err conftest.$ac_objext \ |
16594 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16595 | fi |
c0d27fcc | 16596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16597 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16598 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16599 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16601 | _ACEOF |
087121cc | 16602 | |
087121cc GM |
16603 | fi |
16604 | done | |
16605 | ||
c0d27fcc | 16606 | |
ba4481b5 DL |
16607 | # Check this now, so that we will NOT find the above functions in ncurses. |
16608 | # That is because we have not set up to link ncurses in lib-src. | |
16609 | # It's better to believe a function is not available | |
16610 | # than to expect to find it in ncurses. | |
503d2be0 | 16611 | |
c0d27fcc | 16612 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
16613 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
16614 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16616 | else |
503d2be0 | 16617 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16618 | LIBS="-lncurses $LIBS" |
503d2be0 | 16619 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16620 | /* confdefs.h. */ |
16621 | _ACEOF | |
16622 | cat confdefs.h >>conftest.$ac_ext | |
16623 | cat >>conftest.$ac_ext <<_ACEOF | |
16624 | /* end confdefs.h. */ | |
503d2be0 | 16625 | |
ba4481b5 | 16626 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16627 | #ifdef __cplusplus |
16628 | extern "C" | |
16629 | #endif | |
ba4481b5 | 16630 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16631 | builtin and then its argument prototype would still apply. */ |
16632 | char tparm (); | |
16633 | int | |
16634 | main () | |
16635 | { | |
16636 | tparm (); | |
16637 | ; | |
16638 | return 0; | |
16639 | } | |
16640 | _ACEOF | |
16641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16643 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16644 | ac_status=$? |
35996d22 AS |
16645 | grep -v '^ *+' conftest.er1 >conftest.err |
16646 | rm -f conftest.er1 | |
16647 | cat conftest.err >&5 | |
c0d27fcc | 16648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16649 | (exit $ac_status); } && |
35996d22 AS |
16650 | { ac_try='test -z "$ac_c_werror_flag" |
16651 | || test ! -s conftest.err' | |
16652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16653 | (eval $ac_try) 2>&5 | |
16654 | ac_status=$? | |
16655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16656 | (exit $ac_status); }; } && | |
16657 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16659 | (eval $ac_try) 2>&5 |
16660 | ac_status=$? | |
c0d27fcc | 16661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16662 | (exit $ac_status); }; }; then |
16663 | ac_cv_lib_ncurses_tparm=yes | |
16664 | else | |
16665 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16666 | sed 's/^/| /' conftest.$ac_ext >&5 |
16667 | ||
503d2be0 AS |
16668 | ac_cv_lib_ncurses_tparm=no |
16669 | fi | |
35996d22 AS |
16670 | rm -f conftest.err conftest.$ac_objext \ |
16671 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
16672 | LIBS=$ac_check_lib_save_LIBS |
16673 | fi | |
c0d27fcc | 16674 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
16675 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
16676 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 16677 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16678 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 16679 | _ACEOF |
ba4481b5 DL |
16680 | |
16681 | LIBS="-lncurses $LIBS" | |
16682 | ||
ba4481b5 DL |
16683 | fi |
16684 | ||
c0d27fcc | 16685 | |
84e70f78 KR |
16686 | # Do we need the Hesiod library to provide the support routines? |
16687 | if test "$with_hesiod" = yes ; then | |
16688 | # Don't set $LIBS here -- see comments above. | |
16689 | resolv=no | |
c0d27fcc | 16690 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
16691 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
16692 | if test "${ac_cv_func_res_send+set}" = set; then | |
16693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16694 | else | |
16695 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16696 | /* confdefs.h. */ |
16697 | _ACEOF | |
16698 | cat confdefs.h >>conftest.$ac_ext | |
16699 | cat >>conftest.$ac_ext <<_ACEOF | |
16700 | /* end confdefs.h. */ | |
35996d22 AS |
16701 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
16702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16703 | #define res_send innocuous_res_send | |
16704 | ||
84e70f78 | 16705 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16706 | which can conflict with char res_send (); below. |
16707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16708 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16709 | |
19650fd6 AS |
16710 | #ifdef __STDC__ |
16711 | # include <limits.h> | |
16712 | #else | |
16713 | # include <assert.h> | |
16714 | #endif | |
35996d22 AS |
16715 | |
16716 | #undef res_send | |
16717 | ||
84e70f78 KR |
16718 | /* Override any gcc2 internal prototype to avoid an error. */ |
16719 | #ifdef __cplusplus | |
16720 | extern "C" | |
19650fd6 | 16721 | { |
84e70f78 KR |
16722 | #endif |
16723 | /* We use char because int might match the return type of a gcc2 | |
16724 | builtin and then its argument prototype would still apply. */ | |
16725 | char res_send (); | |
84e70f78 KR |
16726 | /* The GNU C library defines this for functions which it implements |
16727 | to always fail with ENOSYS. Some functions are actually named | |
16728 | something starting with __ and the normal name is an alias. */ | |
16729 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
16730 | choke me | |
16731 | #else | |
19650fd6 AS |
16732 | char (*f) () = res_send; |
16733 | #endif | |
16734 | #ifdef __cplusplus | |
16735 | } | |
cd958eb3 MB |
16736 | #endif |
16737 | ||
19650fd6 AS |
16738 | int |
16739 | main () | |
16740 | { | |
16741 | return f != res_send; | |
84e70f78 KR |
16742 | ; |
16743 | return 0; | |
16744 | } | |
16745 | _ACEOF | |
16746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16748 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16749 | ac_status=$? |
35996d22 AS |
16750 | grep -v '^ *+' conftest.er1 >conftest.err |
16751 | rm -f conftest.er1 | |
16752 | cat conftest.err >&5 | |
c0d27fcc | 16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16754 | (exit $ac_status); } && |
35996d22 AS |
16755 | { ac_try='test -z "$ac_c_werror_flag" |
16756 | || test ! -s conftest.err' | |
16757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16758 | (eval $ac_try) 2>&5 | |
16759 | ac_status=$? | |
16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16761 | (exit $ac_status); }; } && | |
16762 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16764 | (eval $ac_try) 2>&5 |
16765 | ac_status=$? | |
c0d27fcc | 16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16767 | (exit $ac_status); }; }; then |
16768 | ac_cv_func_res_send=yes | |
16769 | else | |
16770 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16771 | sed 's/^/| /' conftest.$ac_ext >&5 |
16772 | ||
84e70f78 KR |
16773 | ac_cv_func_res_send=no |
16774 | fi | |
35996d22 AS |
16775 | rm -f conftest.err conftest.$ac_objext \ |
16776 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16777 | fi |
c0d27fcc | 16778 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
16779 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
16780 | if test $ac_cv_func_res_send = yes; then | |
16781 | : | |
16782 | else | |
c0d27fcc | 16783 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
16784 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
16785 | if test "${ac_cv_func___res_send+set}" = set; then | |
16786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16787 | else | |
16788 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16789 | /* confdefs.h. */ |
16790 | _ACEOF | |
16791 | cat confdefs.h >>conftest.$ac_ext | |
16792 | cat >>conftest.$ac_ext <<_ACEOF | |
16793 | /* end confdefs.h. */ | |
35996d22 AS |
16794 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
16795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16796 | #define __res_send innocuous___res_send | |
16797 | ||
84e70f78 | 16798 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16799 | which can conflict with char __res_send (); below. |
16800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16801 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16802 | |
19650fd6 AS |
16803 | #ifdef __STDC__ |
16804 | # include <limits.h> | |
16805 | #else | |
16806 | # include <assert.h> | |
16807 | #endif | |
35996d22 AS |
16808 | |
16809 | #undef __res_send | |
16810 | ||
84e70f78 KR |
16811 | /* Override any gcc2 internal prototype to avoid an error. */ |
16812 | #ifdef __cplusplus | |
16813 | extern "C" | |
19650fd6 | 16814 | { |
84e70f78 KR |
16815 | #endif |
16816 | /* We use char because int might match the return type of a gcc2 | |
16817 | builtin and then its argument prototype would still apply. */ | |
16818 | char __res_send (); | |
84e70f78 KR |
16819 | /* The GNU C library defines this for functions which it implements |
16820 | to always fail with ENOSYS. Some functions are actually named | |
16821 | something starting with __ and the normal name is an alias. */ | |
16822 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
16823 | choke me | |
16824 | #else | |
19650fd6 AS |
16825 | char (*f) () = __res_send; |
16826 | #endif | |
16827 | #ifdef __cplusplus | |
16828 | } | |
84e70f78 KR |
16829 | #endif |
16830 | ||
19650fd6 AS |
16831 | int |
16832 | main () | |
16833 | { | |
16834 | return f != __res_send; | |
84e70f78 KR |
16835 | ; |
16836 | return 0; | |
16837 | } | |
16838 | _ACEOF | |
16839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16841 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16842 | ac_status=$? |
35996d22 AS |
16843 | grep -v '^ *+' conftest.er1 >conftest.err |
16844 | rm -f conftest.er1 | |
16845 | cat conftest.err >&5 | |
c0d27fcc | 16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16847 | (exit $ac_status); } && |
35996d22 AS |
16848 | { ac_try='test -z "$ac_c_werror_flag" |
16849 | || test ! -s conftest.err' | |
16850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16854 | (exit $ac_status); }; } && | |
16855 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16857 | (eval $ac_try) 2>&5 |
16858 | ac_status=$? | |
c0d27fcc | 16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16860 | (exit $ac_status); }; }; then |
16861 | ac_cv_func___res_send=yes | |
16862 | else | |
16863 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 |
16865 | ||
84e70f78 KR |
16866 | ac_cv_func___res_send=no |
16867 | fi | |
35996d22 AS |
16868 | rm -f conftest.err conftest.$ac_objext \ |
16869 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16870 | fi |
c0d27fcc | 16871 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
16872 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
16873 | if test $ac_cv_func___res_send = yes; then | |
16874 | : | |
16875 | else | |
c0d27fcc | 16876 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
16877 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
16878 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
16879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16880 | else | |
16881 | ac_check_lib_save_LIBS=$LIBS | |
16882 | LIBS="-lresolv $LIBS" | |
16883 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16884 | /* confdefs.h. */ |
16885 | _ACEOF | |
16886 | cat confdefs.h >>conftest.$ac_ext | |
16887 | cat >>conftest.$ac_ext <<_ACEOF | |
16888 | /* end confdefs.h. */ | |
84e70f78 KR |
16889 | |
16890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16891 | #ifdef __cplusplus | |
16892 | extern "C" | |
16893 | #endif | |
16894 | /* We use char because int might match the return type of a gcc2 | |
16895 | builtin and then its argument prototype would still apply. */ | |
16896 | char res_send (); | |
16897 | int | |
16898 | main () | |
16899 | { | |
16900 | res_send (); | |
16901 | ; | |
16902 | return 0; | |
16903 | } | |
16904 | _ACEOF | |
16905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16907 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16908 | ac_status=$? |
35996d22 AS |
16909 | grep -v '^ *+' conftest.er1 >conftest.err |
16910 | rm -f conftest.er1 | |
16911 | cat conftest.err >&5 | |
c0d27fcc | 16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16913 | (exit $ac_status); } && |
35996d22 AS |
16914 | { ac_try='test -z "$ac_c_werror_flag" |
16915 | || test ! -s conftest.err' | |
16916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16917 | (eval $ac_try) 2>&5 | |
16918 | ac_status=$? | |
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16920 | (exit $ac_status); }; } && | |
16921 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16923 | (eval $ac_try) 2>&5 |
16924 | ac_status=$? | |
c0d27fcc | 16925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16926 | (exit $ac_status); }; }; then |
16927 | ac_cv_lib_resolv_res_send=yes | |
16928 | else | |
16929 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16930 | sed 's/^/| /' conftest.$ac_ext >&5 |
16931 | ||
84e70f78 KR |
16932 | ac_cv_lib_resolv_res_send=no |
16933 | fi | |
35996d22 AS |
16934 | rm -f conftest.err conftest.$ac_objext \ |
16935 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
16936 | LIBS=$ac_check_lib_save_LIBS |
16937 | fi | |
c0d27fcc | 16938 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
16939 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
16940 | if test $ac_cv_lib_resolv_res_send = yes; then | |
16941 | resolv=yes | |
16942 | else | |
c0d27fcc | 16943 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
16944 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
16945 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
16946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16947 | else | |
16948 | ac_check_lib_save_LIBS=$LIBS | |
16949 | LIBS="-lresolv $LIBS" | |
16950 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16951 | /* confdefs.h. */ |
16952 | _ACEOF | |
16953 | cat confdefs.h >>conftest.$ac_ext | |
16954 | cat >>conftest.$ac_ext <<_ACEOF | |
16955 | /* end confdefs.h. */ | |
84e70f78 KR |
16956 | |
16957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16958 | #ifdef __cplusplus | |
16959 | extern "C" | |
16960 | #endif | |
16961 | /* We use char because int might match the return type of a gcc2 | |
16962 | builtin and then its argument prototype would still apply. */ | |
16963 | char __res_send (); | |
16964 | int | |
16965 | main () | |
16966 | { | |
16967 | __res_send (); | |
16968 | ; | |
16969 | return 0; | |
16970 | } | |
16971 | _ACEOF | |
16972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16974 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16975 | ac_status=$? |
35996d22 AS |
16976 | grep -v '^ *+' conftest.er1 >conftest.err |
16977 | rm -f conftest.er1 | |
16978 | cat conftest.err >&5 | |
c0d27fcc | 16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16980 | (exit $ac_status); } && |
35996d22 AS |
16981 | { ac_try='test -z "$ac_c_werror_flag" |
16982 | || test ! -s conftest.err' | |
16983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16984 | (eval $ac_try) 2>&5 | |
16985 | ac_status=$? | |
16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16987 | (exit $ac_status); }; } && | |
16988 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16990 | (eval $ac_try) 2>&5 |
16991 | ac_status=$? | |
c0d27fcc | 16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16993 | (exit $ac_status); }; }; then |
16994 | ac_cv_lib_resolv___res_send=yes | |
16995 | else | |
16996 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16997 | sed 's/^/| /' conftest.$ac_ext >&5 |
16998 | ||
84e70f78 KR |
16999 | ac_cv_lib_resolv___res_send=no |
17000 | fi | |
35996d22 AS |
17001 | rm -f conftest.err conftest.$ac_objext \ |
17002 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17003 | LIBS=$ac_check_lib_save_LIBS |
17004 | fi | |
c0d27fcc | 17005 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
17006 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
17007 | if test $ac_cv_lib_resolv___res_send = yes; then | |
17008 | resolv=yes | |
17009 | fi | |
17010 | ||
17011 | fi | |
17012 | ||
17013 | fi | |
17014 | ||
17015 | fi | |
17016 | ||
17017 | if test "$resolv" = yes ; then | |
17018 | RESOLVLIB=-lresolv | |
b936fae4 | 17019 | |
c0d27fcc | 17020 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17021 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 17022 | _ACEOF |
84e70f78 KR |
17023 | |
17024 | else | |
17025 | RESOLVLIB= | |
17026 | fi | |
c0d27fcc | 17027 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
17028 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
17029 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
17030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17031 | else | |
17032 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17033 | /* confdefs.h. */ |
17034 | _ACEOF | |
17035 | cat confdefs.h >>conftest.$ac_ext | |
17036 | cat >>conftest.$ac_ext <<_ACEOF | |
17037 | /* end confdefs.h. */ | |
35996d22 AS |
17038 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
17039 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17040 | #define hes_getmailhost innocuous_hes_getmailhost | |
17041 | ||
84e70f78 | 17042 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17043 | which can conflict with char hes_getmailhost (); below. |
17044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17045 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 17046 | |
19650fd6 AS |
17047 | #ifdef __STDC__ |
17048 | # include <limits.h> | |
17049 | #else | |
17050 | # include <assert.h> | |
17051 | #endif | |
35996d22 AS |
17052 | |
17053 | #undef hes_getmailhost | |
17054 | ||
84e70f78 KR |
17055 | /* Override any gcc2 internal prototype to avoid an error. */ |
17056 | #ifdef __cplusplus | |
17057 | extern "C" | |
19650fd6 | 17058 | { |
84e70f78 KR |
17059 | #endif |
17060 | /* We use char because int might match the return type of a gcc2 | |
17061 | builtin and then its argument prototype would still apply. */ | |
17062 | char hes_getmailhost (); | |
84e70f78 KR |
17063 | /* The GNU C library defines this for functions which it implements |
17064 | to always fail with ENOSYS. Some functions are actually named | |
17065 | something starting with __ and the normal name is an alias. */ | |
17066 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
17067 | choke me | |
17068 | #else | |
19650fd6 AS |
17069 | char (*f) () = hes_getmailhost; |
17070 | #endif | |
17071 | #ifdef __cplusplus | |
17072 | } | |
cd958eb3 MB |
17073 | #endif |
17074 | ||
19650fd6 AS |
17075 | int |
17076 | main () | |
17077 | { | |
17078 | return f != hes_getmailhost; | |
84e70f78 KR |
17079 | ; |
17080 | return 0; | |
17081 | } | |
17082 | _ACEOF | |
17083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17085 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17086 | ac_status=$? |
35996d22 AS |
17087 | grep -v '^ *+' conftest.er1 >conftest.err |
17088 | rm -f conftest.er1 | |
17089 | cat conftest.err >&5 | |
c0d27fcc | 17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17091 | (exit $ac_status); } && |
35996d22 AS |
17092 | { ac_try='test -z "$ac_c_werror_flag" |
17093 | || test ! -s conftest.err' | |
17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; } && | |
17099 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17101 | (eval $ac_try) 2>&5 |
17102 | ac_status=$? | |
c0d27fcc | 17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17104 | (exit $ac_status); }; }; then |
17105 | ac_cv_func_hes_getmailhost=yes | |
17106 | else | |
17107 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 |
17109 | ||
84e70f78 KR |
17110 | ac_cv_func_hes_getmailhost=no |
17111 | fi | |
35996d22 AS |
17112 | rm -f conftest.err conftest.$ac_objext \ |
17113 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 17114 | fi |
c0d27fcc | 17115 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
17116 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
17117 | if test $ac_cv_func_hes_getmailhost = yes; then | |
17118 | : | |
17119 | else | |
c0d27fcc | 17120 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
17121 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
17122 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
17123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17124 | else | |
17125 | ac_check_lib_save_LIBS=$LIBS | |
17126 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
17127 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17128 | /* confdefs.h. */ |
17129 | _ACEOF | |
17130 | cat confdefs.h >>conftest.$ac_ext | |
17131 | cat >>conftest.$ac_ext <<_ACEOF | |
17132 | /* end confdefs.h. */ | |
84e70f78 KR |
17133 | |
17134 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17135 | #ifdef __cplusplus | |
17136 | extern "C" | |
17137 | #endif | |
17138 | /* We use char because int might match the return type of a gcc2 | |
17139 | builtin and then its argument prototype would still apply. */ | |
17140 | char hes_getmailhost (); | |
17141 | int | |
17142 | main () | |
17143 | { | |
17144 | hes_getmailhost (); | |
17145 | ; | |
17146 | return 0; | |
17147 | } | |
17148 | _ACEOF | |
17149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17151 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17152 | ac_status=$? |
35996d22 AS |
17153 | grep -v '^ *+' conftest.er1 >conftest.err |
17154 | rm -f conftest.er1 | |
17155 | cat conftest.err >&5 | |
c0d27fcc | 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17157 | (exit $ac_status); } && |
35996d22 AS |
17158 | { ac_try='test -z "$ac_c_werror_flag" |
17159 | || test ! -s conftest.err' | |
17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); }; } && | |
17165 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17167 | (eval $ac_try) 2>&5 |
17168 | ac_status=$? | |
c0d27fcc | 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17170 | (exit $ac_status); }; }; then |
17171 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
17172 | else | |
17173 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17174 | sed 's/^/| /' conftest.$ac_ext >&5 |
17175 | ||
84e70f78 KR |
17176 | ac_cv_lib_hesiod_hes_getmailhost=no |
17177 | fi | |
35996d22 AS |
17178 | rm -f conftest.err conftest.$ac_objext \ |
17179 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17180 | LIBS=$ac_check_lib_save_LIBS |
17181 | fi | |
c0d27fcc | 17182 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
17183 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
17184 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 17185 | |
c0d27fcc | 17186 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17187 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 17188 | _ACEOF |
84e70f78 KR |
17189 | |
17190 | else | |
17191 | : | |
17192 | fi | |
17193 | ||
17194 | fi | |
17195 | ||
17196 | fi | |
17197 | ||
a21616bd KR |
17198 | # These tell us which Kerberos-related libraries to use. |
17199 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 17200 | |
c0d27fcc | 17201 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
17202 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
17203 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
17204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17205 | else |
503d2be0 | 17206 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17207 | LIBS="-lcom_err $LIBS" |
503d2be0 | 17208 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17209 | /* confdefs.h. */ |
17210 | _ACEOF | |
17211 | cat confdefs.h >>conftest.$ac_ext | |
17212 | cat >>conftest.$ac_ext <<_ACEOF | |
17213 | /* end confdefs.h. */ | |
503d2be0 | 17214 | |
a21616bd | 17215 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17216 | #ifdef __cplusplus |
17217 | extern "C" | |
17218 | #endif | |
a21616bd | 17219 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17220 | builtin and then its argument prototype would still apply. */ |
17221 | char com_err (); | |
17222 | int | |
17223 | main () | |
17224 | { | |
17225 | com_err (); | |
17226 | ; | |
17227 | return 0; | |
17228 | } | |
17229 | _ACEOF | |
17230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17232 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17233 | ac_status=$? |
35996d22 AS |
17234 | grep -v '^ *+' conftest.er1 >conftest.err |
17235 | rm -f conftest.er1 | |
17236 | cat conftest.err >&5 | |
c0d27fcc | 17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17238 | (exit $ac_status); } && |
35996d22 AS |
17239 | { ac_try='test -z "$ac_c_werror_flag" |
17240 | || test ! -s conftest.err' | |
17241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17242 | (eval $ac_try) 2>&5 | |
17243 | ac_status=$? | |
17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17245 | (exit $ac_status); }; } && | |
17246 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17248 | (eval $ac_try) 2>&5 |
17249 | ac_status=$? | |
c0d27fcc | 17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17251 | (exit $ac_status); }; }; then |
17252 | ac_cv_lib_com_err_com_err=yes | |
17253 | else | |
17254 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17255 | sed 's/^/| /' conftest.$ac_ext >&5 |
17256 | ||
503d2be0 AS |
17257 | ac_cv_lib_com_err_com_err=no |
17258 | fi | |
35996d22 AS |
17259 | rm -f conftest.err conftest.$ac_objext \ |
17260 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17261 | LIBS=$ac_check_lib_save_LIBS |
17262 | fi | |
c0d27fcc | 17263 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
17264 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
17265 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 17266 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17267 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 17268 | _ACEOF |
a21616bd KR |
17269 | |
17270 | LIBS="-lcom_err $LIBS" | |
17271 | ||
a21616bd KR |
17272 | fi |
17273 | ||
c0d27fcc MR |
17274 | |
17275 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
17276 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
17277 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
17278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17279 | else |
503d2be0 | 17280 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17281 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 17282 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17283 | /* confdefs.h. */ |
17284 | _ACEOF | |
17285 | cat confdefs.h >>conftest.$ac_ext | |
17286 | cat >>conftest.$ac_ext <<_ACEOF | |
17287 | /* end confdefs.h. */ | |
503d2be0 | 17288 | |
a21616bd | 17289 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17290 | #ifdef __cplusplus |
17291 | extern "C" | |
17292 | #endif | |
a21616bd | 17293 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17294 | builtin and then its argument prototype would still apply. */ |
17295 | char mit_des_cbc_encrypt (); | |
17296 | int | |
17297 | main () | |
17298 | { | |
17299 | mit_des_cbc_encrypt (); | |
17300 | ; | |
17301 | return 0; | |
17302 | } | |
17303 | _ACEOF | |
17304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17306 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17307 | ac_status=$? |
35996d22 AS |
17308 | grep -v '^ *+' conftest.er1 >conftest.err |
17309 | rm -f conftest.er1 | |
17310 | cat conftest.err >&5 | |
c0d27fcc | 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17312 | (exit $ac_status); } && |
35996d22 AS |
17313 | { ac_try='test -z "$ac_c_werror_flag" |
17314 | || test ! -s conftest.err' | |
17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17316 | (eval $ac_try) 2>&5 | |
17317 | ac_status=$? | |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17319 | (exit $ac_status); }; } && | |
17320 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17322 | (eval $ac_try) 2>&5 |
17323 | ac_status=$? | |
c0d27fcc | 17324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17325 | (exit $ac_status); }; }; then |
17326 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
17327 | else | |
17328 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17329 | sed 's/^/| /' conftest.$ac_ext >&5 |
17330 | ||
503d2be0 AS |
17331 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
17332 | fi | |
35996d22 AS |
17333 | rm -f conftest.err conftest.$ac_objext \ |
17334 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17335 | LIBS=$ac_check_lib_save_LIBS |
17336 | fi | |
c0d27fcc | 17337 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17338 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
17339 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17340 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17341 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 17342 | _ACEOF |
a21616bd KR |
17343 | |
17344 | LIBS="-lk5crypto $LIBS" | |
17345 | ||
a21616bd KR |
17346 | fi |
17347 | ||
c0d27fcc MR |
17348 | |
17349 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
17350 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
17351 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
17352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17353 | else |
503d2be0 | 17354 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17355 | LIBS="-lcrypto $LIBS" |
503d2be0 | 17356 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17357 | /* confdefs.h. */ |
17358 | _ACEOF | |
17359 | cat confdefs.h >>conftest.$ac_ext | |
17360 | cat >>conftest.$ac_ext <<_ACEOF | |
17361 | /* end confdefs.h. */ | |
503d2be0 | 17362 | |
a21616bd | 17363 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17364 | #ifdef __cplusplus |
17365 | extern "C" | |
17366 | #endif | |
a21616bd | 17367 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17368 | builtin and then its argument prototype would still apply. */ |
17369 | char mit_des_cbc_encrypt (); | |
17370 | int | |
17371 | main () | |
17372 | { | |
17373 | mit_des_cbc_encrypt (); | |
17374 | ; | |
17375 | return 0; | |
17376 | } | |
17377 | _ACEOF | |
17378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17380 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17381 | ac_status=$? |
35996d22 AS |
17382 | grep -v '^ *+' conftest.er1 >conftest.err |
17383 | rm -f conftest.er1 | |
17384 | cat conftest.err >&5 | |
c0d27fcc | 17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17386 | (exit $ac_status); } && |
35996d22 AS |
17387 | { ac_try='test -z "$ac_c_werror_flag" |
17388 | || test ! -s conftest.err' | |
17389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17390 | (eval $ac_try) 2>&5 | |
17391 | ac_status=$? | |
17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17393 | (exit $ac_status); }; } && | |
17394 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17396 | (eval $ac_try) 2>&5 |
17397 | ac_status=$? | |
c0d27fcc | 17398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17399 | (exit $ac_status); }; }; then |
17400 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
17401 | else | |
17402 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17403 | sed 's/^/| /' conftest.$ac_ext >&5 |
17404 | ||
503d2be0 AS |
17405 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
17406 | fi | |
35996d22 AS |
17407 | rm -f conftest.err conftest.$ac_objext \ |
17408 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17409 | LIBS=$ac_check_lib_save_LIBS |
17410 | fi | |
c0d27fcc | 17411 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17412 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
17413 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17414 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17415 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 17416 | _ACEOF |
a21616bd KR |
17417 | |
17418 | LIBS="-lcrypto $LIBS" | |
17419 | ||
a21616bd KR |
17420 | fi |
17421 | ||
c0d27fcc MR |
17422 | |
17423 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
17424 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
17425 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
17426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17427 | else |
503d2be0 | 17428 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17429 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 17430 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17431 | /* confdefs.h. */ |
17432 | _ACEOF | |
17433 | cat confdefs.h >>conftest.$ac_ext | |
17434 | cat >>conftest.$ac_ext <<_ACEOF | |
17435 | /* end confdefs.h. */ | |
a21616bd | 17436 | |
503d2be0 AS |
17437 | /* Override any gcc2 internal prototype to avoid an error. */ |
17438 | #ifdef __cplusplus | |
17439 | extern "C" | |
17440 | #endif | |
17441 | /* We use char because int might match the return type of a gcc2 | |
17442 | builtin and then its argument prototype would still apply. */ | |
17443 | char krb5_init_context (); | |
17444 | int | |
17445 | main () | |
17446 | { | |
17447 | krb5_init_context (); | |
17448 | ; | |
17449 | return 0; | |
17450 | } | |
17451 | _ACEOF | |
17452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17454 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17455 | ac_status=$? |
35996d22 AS |
17456 | grep -v '^ *+' conftest.er1 >conftest.err |
17457 | rm -f conftest.er1 | |
17458 | cat conftest.err >&5 | |
c0d27fcc | 17459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17460 | (exit $ac_status); } && |
35996d22 AS |
17461 | { ac_try='test -z "$ac_c_werror_flag" |
17462 | || test ! -s conftest.err' | |
17463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17464 | (eval $ac_try) 2>&5 | |
17465 | ac_status=$? | |
17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17467 | (exit $ac_status); }; } && | |
17468 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17470 | (eval $ac_try) 2>&5 |
17471 | ac_status=$? | |
c0d27fcc | 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17473 | (exit $ac_status); }; }; then |
17474 | ac_cv_lib_krb5_krb5_init_context=yes | |
17475 | else | |
17476 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17477 | sed 's/^/| /' conftest.$ac_ext >&5 |
17478 | ||
503d2be0 AS |
17479 | ac_cv_lib_krb5_krb5_init_context=no |
17480 | fi | |
35996d22 AS |
17481 | rm -f conftest.err conftest.$ac_objext \ |
17482 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17483 | LIBS=$ac_check_lib_save_LIBS |
17484 | fi | |
c0d27fcc | 17485 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
17486 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
17487 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 17488 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17489 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 17490 | _ACEOF |
a21616bd KR |
17491 | |
17492 | LIBS="-lkrb5 $LIBS" | |
17493 | ||
a21616bd KR |
17494 | fi |
17495 | ||
17496 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 17497 | |
c0d27fcc | 17498 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
17499 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
17500 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
17501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17502 | else |
503d2be0 | 17503 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17504 | LIBS="-ldes425 $LIBS" |
503d2be0 | 17505 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17506 | /* confdefs.h. */ |
17507 | _ACEOF | |
17508 | cat confdefs.h >>conftest.$ac_ext | |
17509 | cat >>conftest.$ac_ext <<_ACEOF | |
17510 | /* end confdefs.h. */ | |
503d2be0 | 17511 | |
a21616bd | 17512 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17513 | #ifdef __cplusplus |
17514 | extern "C" | |
17515 | #endif | |
a21616bd | 17516 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17517 | builtin and then its argument prototype would still apply. */ |
17518 | char des_cbc_encrypt (); | |
17519 | int | |
17520 | main () | |
17521 | { | |
17522 | des_cbc_encrypt (); | |
17523 | ; | |
17524 | return 0; | |
17525 | } | |
17526 | _ACEOF | |
17527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17529 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17530 | ac_status=$? |
35996d22 AS |
17531 | grep -v '^ *+' conftest.er1 >conftest.err |
17532 | rm -f conftest.er1 | |
17533 | cat conftest.err >&5 | |
c0d27fcc | 17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17535 | (exit $ac_status); } && |
35996d22 AS |
17536 | { ac_try='test -z "$ac_c_werror_flag" |
17537 | || test ! -s conftest.err' | |
17538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17539 | (eval $ac_try) 2>&5 | |
17540 | ac_status=$? | |
17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); }; } && | |
17543 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17545 | (eval $ac_try) 2>&5 |
17546 | ac_status=$? | |
c0d27fcc | 17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17548 | (exit $ac_status); }; }; then |
17549 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
17550 | else | |
17551 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17552 | sed 's/^/| /' conftest.$ac_ext >&5 |
17553 | ||
503d2be0 AS |
17554 | ac_cv_lib_des425_des_cbc_encrypt=no |
17555 | fi | |
35996d22 AS |
17556 | rm -f conftest.err conftest.$ac_objext \ |
17557 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17558 | LIBS=$ac_check_lib_save_LIBS |
17559 | fi | |
c0d27fcc | 17560 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
17561 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
17562 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 17563 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17564 | #define HAVE_LIBDES425 1 |
c0d27fcc | 17565 | _ACEOF |
a21616bd KR |
17566 | |
17567 | LIBS="-ldes425 $LIBS" | |
17568 | ||
17569 | else | |
503d2be0 | 17570 | |
c0d27fcc | 17571 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
17572 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
17573 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
17574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17575 | else |
503d2be0 | 17576 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17577 | LIBS="-ldes $LIBS" |
503d2be0 | 17578 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17579 | /* confdefs.h. */ |
17580 | _ACEOF | |
17581 | cat confdefs.h >>conftest.$ac_ext | |
17582 | cat >>conftest.$ac_ext <<_ACEOF | |
17583 | /* end confdefs.h. */ | |
503d2be0 | 17584 | |
a21616bd | 17585 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17586 | #ifdef __cplusplus |
17587 | extern "C" | |
17588 | #endif | |
a21616bd | 17589 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17590 | builtin and then its argument prototype would still apply. */ |
17591 | char des_cbc_encrypt (); | |
17592 | int | |
17593 | main () | |
17594 | { | |
17595 | des_cbc_encrypt (); | |
17596 | ; | |
17597 | return 0; | |
17598 | } | |
17599 | _ACEOF | |
17600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17602 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17603 | ac_status=$? |
35996d22 AS |
17604 | grep -v '^ *+' conftest.er1 >conftest.err |
17605 | rm -f conftest.er1 | |
17606 | cat conftest.err >&5 | |
c0d27fcc | 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17608 | (exit $ac_status); } && |
35996d22 AS |
17609 | { ac_try='test -z "$ac_c_werror_flag" |
17610 | || test ! -s conftest.err' | |
17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17612 | (eval $ac_try) 2>&5 | |
17613 | ac_status=$? | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); }; } && | |
17616 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17618 | (eval $ac_try) 2>&5 |
17619 | ac_status=$? | |
c0d27fcc | 17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17621 | (exit $ac_status); }; }; then |
17622 | ac_cv_lib_des_des_cbc_encrypt=yes | |
17623 | else | |
17624 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17625 | sed 's/^/| /' conftest.$ac_ext >&5 |
17626 | ||
503d2be0 AS |
17627 | ac_cv_lib_des_des_cbc_encrypt=no |
17628 | fi | |
35996d22 AS |
17629 | rm -f conftest.err conftest.$ac_objext \ |
17630 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17631 | LIBS=$ac_check_lib_save_LIBS |
17632 | fi | |
c0d27fcc | 17633 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
17634 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
17635 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 17636 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17637 | #define HAVE_LIBDES 1 |
c0d27fcc | 17638 | _ACEOF |
a21616bd KR |
17639 | |
17640 | LIBS="-ldes $LIBS" | |
17641 | ||
a21616bd KR |
17642 | fi |
17643 | ||
17644 | fi | |
17645 | ||
c0d27fcc MR |
17646 | |
17647 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
17648 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
17649 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
17650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17651 | else |
503d2be0 | 17652 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17653 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 17654 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17655 | /* confdefs.h. */ |
17656 | _ACEOF | |
17657 | cat confdefs.h >>conftest.$ac_ext | |
17658 | cat >>conftest.$ac_ext <<_ACEOF | |
17659 | /* end confdefs.h. */ | |
503d2be0 | 17660 | |
a21616bd | 17661 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17662 | #ifdef __cplusplus |
17663 | extern "C" | |
17664 | #endif | |
a21616bd | 17665 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17666 | builtin and then its argument prototype would still apply. */ |
17667 | char krb_get_cred (); | |
17668 | int | |
17669 | main () | |
17670 | { | |
17671 | krb_get_cred (); | |
17672 | ; | |
17673 | return 0; | |
17674 | } | |
17675 | _ACEOF | |
17676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17678 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17679 | ac_status=$? |
35996d22 AS |
17680 | grep -v '^ *+' conftest.er1 >conftest.err |
17681 | rm -f conftest.er1 | |
17682 | cat conftest.err >&5 | |
c0d27fcc | 17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17684 | (exit $ac_status); } && |
35996d22 AS |
17685 | { ac_try='test -z "$ac_c_werror_flag" |
17686 | || test ! -s conftest.err' | |
17687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17688 | (eval $ac_try) 2>&5 | |
17689 | ac_status=$? | |
17690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17691 | (exit $ac_status); }; } && | |
17692 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17694 | (eval $ac_try) 2>&5 |
17695 | ac_status=$? | |
c0d27fcc | 17696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17697 | (exit $ac_status); }; }; then |
17698 | ac_cv_lib_krb4_krb_get_cred=yes | |
17699 | else | |
17700 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17701 | sed 's/^/| /' conftest.$ac_ext >&5 |
17702 | ||
503d2be0 AS |
17703 | ac_cv_lib_krb4_krb_get_cred=no |
17704 | fi | |
35996d22 AS |
17705 | rm -f conftest.err conftest.$ac_objext \ |
17706 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17707 | LIBS=$ac_check_lib_save_LIBS |
17708 | fi | |
c0d27fcc | 17709 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
17710 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
17711 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 17712 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17713 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 17714 | _ACEOF |
a21616bd KR |
17715 | |
17716 | LIBS="-lkrb4 $LIBS" | |
17717 | ||
17718 | else | |
503d2be0 | 17719 | |
c0d27fcc | 17720 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
17721 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
17722 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
17723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17724 | else |
503d2be0 | 17725 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17726 | LIBS="-lkrb $LIBS" |
503d2be0 | 17727 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17728 | /* confdefs.h. */ |
17729 | _ACEOF | |
17730 | cat confdefs.h >>conftest.$ac_ext | |
17731 | cat >>conftest.$ac_ext <<_ACEOF | |
17732 | /* end confdefs.h. */ | |
503d2be0 | 17733 | |
a21616bd | 17734 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17735 | #ifdef __cplusplus |
17736 | extern "C" | |
17737 | #endif | |
a21616bd | 17738 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17739 | builtin and then its argument prototype would still apply. */ |
17740 | char krb_get_cred (); | |
17741 | int | |
17742 | main () | |
17743 | { | |
17744 | krb_get_cred (); | |
17745 | ; | |
17746 | return 0; | |
17747 | } | |
17748 | _ACEOF | |
17749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17751 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17752 | ac_status=$? |
35996d22 AS |
17753 | grep -v '^ *+' conftest.er1 >conftest.err |
17754 | rm -f conftest.er1 | |
17755 | cat conftest.err >&5 | |
c0d27fcc | 17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17757 | (exit $ac_status); } && |
35996d22 AS |
17758 | { ac_try='test -z "$ac_c_werror_flag" |
17759 | || test ! -s conftest.err' | |
17760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17761 | (eval $ac_try) 2>&5 | |
17762 | ac_status=$? | |
17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17764 | (exit $ac_status); }; } && | |
17765 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17767 | (eval $ac_try) 2>&5 |
17768 | ac_status=$? | |
c0d27fcc | 17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17770 | (exit $ac_status); }; }; then |
17771 | ac_cv_lib_krb_krb_get_cred=yes | |
17772 | else | |
17773 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17774 | sed 's/^/| /' conftest.$ac_ext >&5 |
17775 | ||
503d2be0 AS |
17776 | ac_cv_lib_krb_krb_get_cred=no |
17777 | fi | |
35996d22 AS |
17778 | rm -f conftest.err conftest.$ac_objext \ |
17779 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17780 | LIBS=$ac_check_lib_save_LIBS |
17781 | fi | |
c0d27fcc | 17782 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
17783 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
17784 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 17785 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17786 | #define HAVE_LIBKRB 1 |
c0d27fcc | 17787 | _ACEOF |
a21616bd KR |
17788 | |
17789 | LIBS="-lkrb $LIBS" | |
17790 | ||
a21616bd KR |
17791 | fi |
17792 | ||
17793 | fi | |
17794 | ||
17795 | fi | |
17796 | ||
17797 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
17798 | |
17799 | for ac_header in krb5.h | |
a21616bd | 17800 | do |
503d2be0 | 17801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17807 | fi |
17808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17810 | else |
c0d27fcc MR |
17811 | # Is the header compilable? |
17812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17814 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17815 | /* confdefs.h. */ |
17816 | _ACEOF | |
17817 | cat confdefs.h >>conftest.$ac_ext | |
17818 | cat >>conftest.$ac_ext <<_ACEOF | |
17819 | /* end confdefs.h. */ | |
c0d27fcc MR |
17820 | $ac_includes_default |
17821 | #include <$ac_header> | |
17822 | _ACEOF | |
17823 | rm -f conftest.$ac_objext | |
17824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17825 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17826 | ac_status=$? |
35996d22 AS |
17827 | grep -v '^ *+' conftest.er1 >conftest.err |
17828 | rm -f conftest.er1 | |
17829 | cat conftest.err >&5 | |
c0d27fcc MR |
17830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17831 | (exit $ac_status); } && | |
35996d22 AS |
17832 | { ac_try='test -z "$ac_c_werror_flag" |
17833 | || test ! -s conftest.err' | |
17834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17835 | (eval $ac_try) 2>&5 | |
17836 | ac_status=$? | |
17837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17838 | (exit $ac_status); }; } && | |
17839 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
17840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17841 | (eval $ac_try) 2>&5 | |
17842 | ac_status=$? | |
17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17844 | (exit $ac_status); }; }; then | |
17845 | ac_header_compiler=yes | |
17846 | else | |
17847 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17848 | sed 's/^/| /' conftest.$ac_ext >&5 |
17849 | ||
c0d27fcc MR |
17850 | ac_header_compiler=no |
17851 | fi | |
35996d22 | 17852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
17853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17854 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17855 | ||
17856 | # Is the header present? | |
17857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17859 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17860 | /* confdefs.h. */ |
17861 | _ACEOF | |
17862 | cat confdefs.h >>conftest.$ac_ext | |
17863 | cat >>conftest.$ac_ext <<_ACEOF | |
17864 | /* end confdefs.h. */ | |
503d2be0 AS |
17865 | #include <$ac_header> |
17866 | _ACEOF | |
c0d27fcc | 17867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17869 | ac_status=$? | |
6bae0ccf | 17870 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17871 | rm -f conftest.er1 |
17872 | cat conftest.err >&5 | |
c0d27fcc | 17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17874 | (exit $ac_status); } >/dev/null; then |
17875 | if test -s conftest.err; then | |
17876 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 17877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
17878 | else |
17879 | ac_cpp_err= | |
17880 | fi | |
17881 | else | |
17882 | ac_cpp_err=yes | |
17883 | fi | |
17884 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17885 | ac_header_preproc=yes |
503d2be0 AS |
17886 | else |
17887 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17888 | sed 's/^/| /' conftest.$ac_ext >&5 |
17889 | ||
c0d27fcc | 17890 | ac_header_preproc=no |
a21616bd | 17891 | fi |
503d2be0 | 17892 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17894 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17895 | ||
17896 | # So? What about this header? | |
35996d22 AS |
17897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17898 | yes:no: ) | |
c0d27fcc MR |
17899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
17901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17903 | ac_header_preproc=yes | |
19650fd6 | 17904 | ;; |
35996d22 | 17905 | no:yes:* ) |
c0d27fcc MR |
17906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
17908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
17916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
17918 | ( |
17919 | cat <<\_ASBOX | |
35996d22 AS |
17920 | ## ------------------------------------------ ## |
17921 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17922 | ## ------------------------------------------ ## | |
19650fd6 AS |
17923 | _ASBOX |
17924 | ) | | |
17925 | sed "s/^/$as_me: WARNING: /" >&2 | |
17926 | ;; | |
c0d27fcc MR |
17927 | esac |
17928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17932 | else | |
35996d22 | 17933 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 17934 | fi |
c0d27fcc | 17935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 17936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17937 | |
17938 | fi | |
503d2be0 | 17939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17940 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17942 | _ACEOF |
503d2be0 | 17943 | |
a21616bd | 17944 | fi |
c0d27fcc | 17945 | |
a21616bd KR |
17946 | done |
17947 | ||
17948 | else | |
503d2be0 AS |
17949 | |
17950 | for ac_header in des.h | |
a21616bd | 17951 | do |
503d2be0 | 17952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17954 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17958 | fi |
17959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17961 | else |
c0d27fcc MR |
17962 | # Is the header compilable? |
17963 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17964 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17965 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17966 | /* confdefs.h. */ |
17967 | _ACEOF | |
17968 | cat confdefs.h >>conftest.$ac_ext | |
17969 | cat >>conftest.$ac_ext <<_ACEOF | |
17970 | /* end confdefs.h. */ | |
c0d27fcc MR |
17971 | $ac_includes_default |
17972 | #include <$ac_header> | |
17973 | _ACEOF | |
17974 | rm -f conftest.$ac_objext | |
17975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17976 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17977 | ac_status=$? |
35996d22 AS |
17978 | grep -v '^ *+' conftest.er1 >conftest.err |
17979 | rm -f conftest.er1 | |
17980 | cat conftest.err >&5 | |
c0d27fcc MR |
17981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17982 | (exit $ac_status); } && | |
35996d22 AS |
17983 | { ac_try='test -z "$ac_c_werror_flag" |
17984 | || test ! -s conftest.err' | |
17985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17986 | (eval $ac_try) 2>&5 | |
17987 | ac_status=$? | |
17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17989 | (exit $ac_status); }; } && | |
17990 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
17991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17992 | (eval $ac_try) 2>&5 | |
17993 | ac_status=$? | |
17994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17995 | (exit $ac_status); }; }; then | |
17996 | ac_header_compiler=yes | |
17997 | else | |
17998 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17999 | sed 's/^/| /' conftest.$ac_ext >&5 |
18000 | ||
c0d27fcc MR |
18001 | ac_header_compiler=no |
18002 | fi | |
35996d22 | 18003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18005 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18006 | ||
18007 | # Is the header present? | |
18008 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18009 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18010 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18011 | /* confdefs.h. */ |
18012 | _ACEOF | |
18013 | cat confdefs.h >>conftest.$ac_ext | |
18014 | cat >>conftest.$ac_ext <<_ACEOF | |
18015 | /* end confdefs.h. */ | |
503d2be0 AS |
18016 | #include <$ac_header> |
18017 | _ACEOF | |
c0d27fcc | 18018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18020 | ac_status=$? | |
6bae0ccf | 18021 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18022 | rm -f conftest.er1 |
18023 | cat conftest.err >&5 | |
c0d27fcc | 18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18025 | (exit $ac_status); } >/dev/null; then |
18026 | if test -s conftest.err; then | |
18027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18029 | else |
18030 | ac_cpp_err= | |
18031 | fi | |
18032 | else | |
18033 | ac_cpp_err=yes | |
18034 | fi | |
18035 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18036 | ac_header_preproc=yes |
503d2be0 AS |
18037 | else |
18038 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18039 | sed 's/^/| /' conftest.$ac_ext >&5 |
18040 | ||
c0d27fcc | 18041 | ac_header_preproc=no |
a21616bd | 18042 | fi |
503d2be0 | 18043 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18045 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18046 | ||
18047 | # So? What about this header? | |
35996d22 AS |
18048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18049 | yes:no: ) | |
c0d27fcc MR |
18050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18054 | ac_header_preproc=yes | |
19650fd6 | 18055 | ;; |
35996d22 | 18056 | no:yes:* ) |
c0d27fcc MR |
18057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18059 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18060 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18063 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18064 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18069 | ( |
18070 | cat <<\_ASBOX | |
35996d22 AS |
18071 | ## ------------------------------------------ ## |
18072 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18073 | ## ------------------------------------------ ## | |
19650fd6 AS |
18074 | _ASBOX |
18075 | ) | | |
18076 | sed "s/^/$as_me: WARNING: /" >&2 | |
18077 | ;; | |
c0d27fcc MR |
18078 | esac |
18079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18083 | else | |
35996d22 | 18084 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18085 | fi |
c0d27fcc | 18086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18088 | |
18089 | fi | |
503d2be0 | 18090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18091 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18093 | _ACEOF |
503d2be0 | 18094 | |
a21616bd | 18095 | else |
503d2be0 AS |
18096 | |
18097 | for ac_header in kerberosIV/des.h | |
a21616bd | 18098 | do |
503d2be0 | 18099 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18105 | fi |
18106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18107 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18108 | else |
c0d27fcc MR |
18109 | # Is the header compilable? |
18110 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18112 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18113 | /* confdefs.h. */ |
18114 | _ACEOF | |
18115 | cat confdefs.h >>conftest.$ac_ext | |
18116 | cat >>conftest.$ac_ext <<_ACEOF | |
18117 | /* end confdefs.h. */ | |
c0d27fcc MR |
18118 | $ac_includes_default |
18119 | #include <$ac_header> | |
18120 | _ACEOF | |
18121 | rm -f conftest.$ac_objext | |
18122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18123 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18124 | ac_status=$? |
35996d22 AS |
18125 | grep -v '^ *+' conftest.er1 >conftest.err |
18126 | rm -f conftest.er1 | |
18127 | cat conftest.err >&5 | |
c0d27fcc MR |
18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18129 | (exit $ac_status); } && | |
35996d22 AS |
18130 | { ac_try='test -z "$ac_c_werror_flag" |
18131 | || test ! -s conftest.err' | |
18132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18133 | (eval $ac_try) 2>&5 | |
18134 | ac_status=$? | |
18135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18136 | (exit $ac_status); }; } && | |
18137 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18139 | (eval $ac_try) 2>&5 | |
18140 | ac_status=$? | |
18141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18142 | (exit $ac_status); }; }; then | |
18143 | ac_header_compiler=yes | |
18144 | else | |
18145 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18146 | sed 's/^/| /' conftest.$ac_ext >&5 |
18147 | ||
c0d27fcc MR |
18148 | ac_header_compiler=no |
18149 | fi | |
35996d22 | 18150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18151 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18152 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18153 | ||
18154 | # Is the header present? | |
18155 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18156 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18157 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18158 | /* confdefs.h. */ |
18159 | _ACEOF | |
18160 | cat confdefs.h >>conftest.$ac_ext | |
18161 | cat >>conftest.$ac_ext <<_ACEOF | |
18162 | /* end confdefs.h. */ | |
503d2be0 AS |
18163 | #include <$ac_header> |
18164 | _ACEOF | |
c0d27fcc | 18165 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18166 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18167 | ac_status=$? | |
6bae0ccf | 18168 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18169 | rm -f conftest.er1 |
18170 | cat conftest.err >&5 | |
c0d27fcc | 18171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18172 | (exit $ac_status); } >/dev/null; then |
18173 | if test -s conftest.err; then | |
18174 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18175 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18176 | else |
18177 | ac_cpp_err= | |
18178 | fi | |
18179 | else | |
18180 | ac_cpp_err=yes | |
18181 | fi | |
18182 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18183 | ac_header_preproc=yes |
503d2be0 AS |
18184 | else |
18185 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18186 | sed 's/^/| /' conftest.$ac_ext >&5 |
18187 | ||
c0d27fcc | 18188 | ac_header_preproc=no |
a21616bd | 18189 | fi |
503d2be0 | 18190 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18191 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18192 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18193 | ||
18194 | # So? What about this header? | |
35996d22 AS |
18195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18196 | yes:no: ) | |
c0d27fcc MR |
18197 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18198 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18200 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18201 | ac_header_preproc=yes | |
19650fd6 | 18202 | ;; |
35996d22 | 18203 | no:yes:* ) |
c0d27fcc MR |
18204 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18205 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18206 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18207 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18208 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18209 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18210 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18211 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18212 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18213 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18214 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18215 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18216 | ( |
18217 | cat <<\_ASBOX | |
35996d22 AS |
18218 | ## ------------------------------------------ ## |
18219 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18220 | ## ------------------------------------------ ## | |
19650fd6 AS |
18221 | _ASBOX |
18222 | ) | | |
18223 | sed "s/^/$as_me: WARNING: /" >&2 | |
18224 | ;; | |
c0d27fcc MR |
18225 | esac |
18226 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18230 | else | |
35996d22 | 18231 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18232 | fi |
c0d27fcc | 18233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18235 | |
18236 | fi | |
503d2be0 | 18237 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18238 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18239 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18240 | _ACEOF |
503d2be0 | 18241 | |
a21616bd | 18242 | else |
503d2be0 AS |
18243 | |
18244 | for ac_header in kerberos/des.h | |
a21616bd | 18245 | do |
503d2be0 | 18246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18252 | fi |
18253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18255 | else |
c0d27fcc MR |
18256 | # Is the header compilable? |
18257 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18258 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18259 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18260 | /* confdefs.h. */ |
18261 | _ACEOF | |
18262 | cat confdefs.h >>conftest.$ac_ext | |
18263 | cat >>conftest.$ac_ext <<_ACEOF | |
18264 | /* end confdefs.h. */ | |
c0d27fcc MR |
18265 | $ac_includes_default |
18266 | #include <$ac_header> | |
18267 | _ACEOF | |
18268 | rm -f conftest.$ac_objext | |
18269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18270 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18271 | ac_status=$? |
35996d22 AS |
18272 | grep -v '^ *+' conftest.er1 >conftest.err |
18273 | rm -f conftest.er1 | |
18274 | cat conftest.err >&5 | |
c0d27fcc MR |
18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18276 | (exit $ac_status); } && | |
35996d22 AS |
18277 | { ac_try='test -z "$ac_c_werror_flag" |
18278 | || test ! -s conftest.err' | |
18279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18280 | (eval $ac_try) 2>&5 | |
18281 | ac_status=$? | |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18283 | (exit $ac_status); }; } && | |
18284 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18286 | (eval $ac_try) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); }; }; then | |
18290 | ac_header_compiler=yes | |
18291 | else | |
18292 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18293 | sed 's/^/| /' conftest.$ac_ext >&5 |
18294 | ||
c0d27fcc MR |
18295 | ac_header_compiler=no |
18296 | fi | |
35996d22 | 18297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18298 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18299 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18300 | ||
18301 | # Is the header present? | |
18302 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18304 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18305 | /* confdefs.h. */ |
18306 | _ACEOF | |
18307 | cat confdefs.h >>conftest.$ac_ext | |
18308 | cat >>conftest.$ac_ext <<_ACEOF | |
18309 | /* end confdefs.h. */ | |
503d2be0 AS |
18310 | #include <$ac_header> |
18311 | _ACEOF | |
c0d27fcc | 18312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18314 | ac_status=$? | |
6bae0ccf | 18315 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18316 | rm -f conftest.er1 |
18317 | cat conftest.err >&5 | |
c0d27fcc | 18318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18319 | (exit $ac_status); } >/dev/null; then |
18320 | if test -s conftest.err; then | |
18321 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18323 | else |
18324 | ac_cpp_err= | |
18325 | fi | |
18326 | else | |
18327 | ac_cpp_err=yes | |
18328 | fi | |
18329 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18330 | ac_header_preproc=yes |
503d2be0 AS |
18331 | else |
18332 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18333 | sed 's/^/| /' conftest.$ac_ext >&5 |
18334 | ||
c0d27fcc | 18335 | ac_header_preproc=no |
a21616bd | 18336 | fi |
503d2be0 | 18337 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18338 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18339 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18340 | ||
18341 | # So? What about this header? | |
35996d22 AS |
18342 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18343 | yes:no: ) | |
c0d27fcc MR |
18344 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18345 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18347 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18348 | ac_header_preproc=yes | |
19650fd6 | 18349 | ;; |
35996d22 | 18350 | no:yes:* ) |
c0d27fcc MR |
18351 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18352 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18353 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18354 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18355 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18356 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18357 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18358 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18359 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18360 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18361 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18362 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18363 | ( |
18364 | cat <<\_ASBOX | |
35996d22 AS |
18365 | ## ------------------------------------------ ## |
18366 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18367 | ## ------------------------------------------ ## | |
19650fd6 AS |
18368 | _ASBOX |
18369 | ) | | |
18370 | sed "s/^/$as_me: WARNING: /" >&2 | |
18371 | ;; | |
c0d27fcc MR |
18372 | esac |
18373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18377 | else | |
35996d22 | 18378 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18379 | fi |
c0d27fcc | 18380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18381 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18382 | |
18383 | fi | |
503d2be0 | 18384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18385 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18387 | _ACEOF |
a21616bd KR |
18388 | |
18389 | fi | |
c0d27fcc | 18390 | |
a21616bd KR |
18391 | done |
18392 | ||
98418dba | 18393 | fi |
c0d27fcc | 18394 | |
925c2f3f EZ |
18395 | done |
18396 | ||
98418dba | 18397 | fi |
c0d27fcc | 18398 | |
925c2f3f | 18399 | done |
98418dba | 18400 | |
c0d27fcc | 18401 | |
925c2f3f EZ |
18402 | for ac_header in krb.h |
18403 | do | |
18404 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
18405 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
18407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18410 | fi |
18411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18412 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18413 | else | |
18414 | # Is the header compilable? | |
18415 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18416 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18417 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18418 | /* confdefs.h. */ |
18419 | _ACEOF | |
18420 | cat confdefs.h >>conftest.$ac_ext | |
18421 | cat >>conftest.$ac_ext <<_ACEOF | |
18422 | /* end confdefs.h. */ | |
c0d27fcc MR |
18423 | $ac_includes_default |
18424 | #include <$ac_header> | |
18425 | _ACEOF | |
18426 | rm -f conftest.$ac_objext | |
18427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18428 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18429 | ac_status=$? |
35996d22 AS |
18430 | grep -v '^ *+' conftest.er1 >conftest.err |
18431 | rm -f conftest.er1 | |
18432 | cat conftest.err >&5 | |
c0d27fcc MR |
18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18434 | (exit $ac_status); } && | |
35996d22 AS |
18435 | { ac_try='test -z "$ac_c_werror_flag" |
18436 | || test ! -s conftest.err' | |
18437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18438 | (eval $ac_try) 2>&5 | |
18439 | ac_status=$? | |
18440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18441 | (exit $ac_status); }; } && | |
18442 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18444 | (eval $ac_try) 2>&5 | |
18445 | ac_status=$? | |
18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18447 | (exit $ac_status); }; }; then | |
18448 | ac_header_compiler=yes | |
925c2f3f | 18449 | else |
c0d27fcc | 18450 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
18451 | sed 's/^/| /' conftest.$ac_ext >&5 |
18452 | ||
c0d27fcc MR |
18453 | ac_header_compiler=no |
18454 | fi | |
35996d22 | 18455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18456 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18457 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18458 | ||
18459 | # Is the header present? | |
18460 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18461 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18462 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18463 | /* confdefs.h. */ |
18464 | _ACEOF | |
18465 | cat confdefs.h >>conftest.$ac_ext | |
18466 | cat >>conftest.$ac_ext <<_ACEOF | |
18467 | /* end confdefs.h. */ | |
503d2be0 AS |
18468 | #include <$ac_header> |
18469 | _ACEOF | |
c0d27fcc | 18470 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18471 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18472 | ac_status=$? | |
6bae0ccf | 18473 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18474 | rm -f conftest.er1 |
18475 | cat conftest.err >&5 | |
c0d27fcc | 18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18477 | (exit $ac_status); } >/dev/null; then |
18478 | if test -s conftest.err; then | |
18479 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18480 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18481 | else |
18482 | ac_cpp_err= | |
18483 | fi | |
18484 | else | |
18485 | ac_cpp_err=yes | |
18486 | fi | |
18487 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18488 | ac_header_preproc=yes |
503d2be0 AS |
18489 | else |
18490 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18491 | sed 's/^/| /' conftest.$ac_ext >&5 |
18492 | ||
c0d27fcc | 18493 | ac_header_preproc=no |
a21616bd | 18494 | fi |
503d2be0 | 18495 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18496 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18497 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18498 | ||
18499 | # So? What about this header? | |
35996d22 AS |
18500 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18501 | yes:no: ) | |
c0d27fcc MR |
18502 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18503 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18504 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18505 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18506 | ac_header_preproc=yes | |
19650fd6 | 18507 | ;; |
35996d22 | 18508 | no:yes:* ) |
c0d27fcc MR |
18509 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18510 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18511 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18512 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18513 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18514 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18515 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18516 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18518 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18519 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18520 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18521 | ( |
18522 | cat <<\_ASBOX | |
35996d22 AS |
18523 | ## ------------------------------------------ ## |
18524 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18525 | ## ------------------------------------------ ## | |
19650fd6 AS |
18526 | _ASBOX |
18527 | ) | | |
18528 | sed "s/^/$as_me: WARNING: /" >&2 | |
18529 | ;; | |
c0d27fcc MR |
18530 | esac |
18531 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18535 | else | |
35996d22 | 18536 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18537 | fi |
c0d27fcc | 18538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18540 | |
18541 | fi | |
503d2be0 | 18542 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18543 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18544 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18545 | _ACEOF |
503d2be0 | 18546 | |
a21616bd | 18547 | else |
503d2be0 AS |
18548 | |
18549 | for ac_header in kerberosIV/krb.h | |
a21616bd | 18550 | do |
503d2be0 | 18551 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18553 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18554 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18555 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18557 | fi |
18558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18559 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18560 | else |
c0d27fcc MR |
18561 | # Is the header compilable? |
18562 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18563 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18564 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18565 | /* confdefs.h. */ |
18566 | _ACEOF | |
18567 | cat confdefs.h >>conftest.$ac_ext | |
18568 | cat >>conftest.$ac_ext <<_ACEOF | |
18569 | /* end confdefs.h. */ | |
c0d27fcc MR |
18570 | $ac_includes_default |
18571 | #include <$ac_header> | |
18572 | _ACEOF | |
18573 | rm -f conftest.$ac_objext | |
18574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18575 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18576 | ac_status=$? |
35996d22 AS |
18577 | grep -v '^ *+' conftest.er1 >conftest.err |
18578 | rm -f conftest.er1 | |
18579 | cat conftest.err >&5 | |
c0d27fcc MR |
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18581 | (exit $ac_status); } && | |
35996d22 AS |
18582 | { ac_try='test -z "$ac_c_werror_flag" |
18583 | || test ! -s conftest.err' | |
18584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18585 | (eval $ac_try) 2>&5 | |
18586 | ac_status=$? | |
18587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18588 | (exit $ac_status); }; } && | |
18589 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18591 | (eval $ac_try) 2>&5 | |
18592 | ac_status=$? | |
18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18594 | (exit $ac_status); }; }; then | |
18595 | ac_header_compiler=yes | |
18596 | else | |
18597 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18598 | sed 's/^/| /' conftest.$ac_ext >&5 |
18599 | ||
c0d27fcc MR |
18600 | ac_header_compiler=no |
18601 | fi | |
35996d22 | 18602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18604 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18605 | ||
18606 | # Is the header present? | |
18607 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18608 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18609 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18610 | /* confdefs.h. */ |
18611 | _ACEOF | |
18612 | cat confdefs.h >>conftest.$ac_ext | |
18613 | cat >>conftest.$ac_ext <<_ACEOF | |
18614 | /* end confdefs.h. */ | |
503d2be0 AS |
18615 | #include <$ac_header> |
18616 | _ACEOF | |
c0d27fcc | 18617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18619 | ac_status=$? | |
6bae0ccf | 18620 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18621 | rm -f conftest.er1 |
18622 | cat conftest.err >&5 | |
c0d27fcc | 18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18624 | (exit $ac_status); } >/dev/null; then |
18625 | if test -s conftest.err; then | |
18626 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18628 | else |
18629 | ac_cpp_err= | |
18630 | fi | |
18631 | else | |
18632 | ac_cpp_err=yes | |
18633 | fi | |
18634 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18635 | ac_header_preproc=yes |
503d2be0 AS |
18636 | else |
18637 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18638 | sed 's/^/| /' conftest.$ac_ext >&5 |
18639 | ||
c0d27fcc | 18640 | ac_header_preproc=no |
a21616bd | 18641 | fi |
503d2be0 | 18642 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18644 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18645 | ||
18646 | # So? What about this header? | |
35996d22 AS |
18647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18648 | yes:no: ) | |
c0d27fcc MR |
18649 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18650 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18652 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18653 | ac_header_preproc=yes | |
19650fd6 | 18654 | ;; |
35996d22 | 18655 | no:yes:* ) |
c0d27fcc MR |
18656 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18657 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18658 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18659 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18660 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18661 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18662 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18663 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18664 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18665 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18666 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18667 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18668 | ( |
18669 | cat <<\_ASBOX | |
35996d22 AS |
18670 | ## ------------------------------------------ ## |
18671 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18672 | ## ------------------------------------------ ## | |
19650fd6 AS |
18673 | _ASBOX |
18674 | ) | | |
18675 | sed "s/^/$as_me: WARNING: /" >&2 | |
18676 | ;; | |
c0d27fcc MR |
18677 | esac |
18678 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18679 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18682 | else | |
35996d22 | 18683 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18684 | fi |
c0d27fcc | 18685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18687 | |
18688 | fi | |
503d2be0 | 18689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18690 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18692 | _ACEOF |
503d2be0 | 18693 | |
a21616bd | 18694 | else |
503d2be0 AS |
18695 | |
18696 | for ac_header in kerberos/krb.h | |
a21616bd | 18697 | do |
503d2be0 | 18698 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18704 | fi |
18705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18707 | else |
c0d27fcc MR |
18708 | # Is the header compilable? |
18709 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18710 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18711 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18712 | /* confdefs.h. */ |
18713 | _ACEOF | |
18714 | cat confdefs.h >>conftest.$ac_ext | |
18715 | cat >>conftest.$ac_ext <<_ACEOF | |
18716 | /* end confdefs.h. */ | |
c0d27fcc MR |
18717 | $ac_includes_default |
18718 | #include <$ac_header> | |
18719 | _ACEOF | |
18720 | rm -f conftest.$ac_objext | |
18721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18722 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18723 | ac_status=$? |
35996d22 AS |
18724 | grep -v '^ *+' conftest.er1 >conftest.err |
18725 | rm -f conftest.er1 | |
18726 | cat conftest.err >&5 | |
c0d27fcc MR |
18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18728 | (exit $ac_status); } && | |
35996d22 AS |
18729 | { ac_try='test -z "$ac_c_werror_flag" |
18730 | || test ! -s conftest.err' | |
18731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18732 | (eval $ac_try) 2>&5 | |
18733 | ac_status=$? | |
18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18735 | (exit $ac_status); }; } && | |
18736 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18738 | (eval $ac_try) 2>&5 | |
18739 | ac_status=$? | |
18740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18741 | (exit $ac_status); }; }; then | |
18742 | ac_header_compiler=yes | |
18743 | else | |
18744 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18745 | sed 's/^/| /' conftest.$ac_ext >&5 |
18746 | ||
c0d27fcc MR |
18747 | ac_header_compiler=no |
18748 | fi | |
35996d22 | 18749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18750 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18751 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18752 | ||
18753 | # Is the header present? | |
18754 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18755 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18756 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18757 | /* confdefs.h. */ |
18758 | _ACEOF | |
18759 | cat confdefs.h >>conftest.$ac_ext | |
18760 | cat >>conftest.$ac_ext <<_ACEOF | |
18761 | /* end confdefs.h. */ | |
503d2be0 AS |
18762 | #include <$ac_header> |
18763 | _ACEOF | |
c0d27fcc | 18764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18766 | ac_status=$? | |
6bae0ccf | 18767 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18768 | rm -f conftest.er1 |
18769 | cat conftest.err >&5 | |
c0d27fcc | 18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18771 | (exit $ac_status); } >/dev/null; then |
18772 | if test -s conftest.err; then | |
18773 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18775 | else |
18776 | ac_cpp_err= | |
18777 | fi | |
18778 | else | |
18779 | ac_cpp_err=yes | |
18780 | fi | |
18781 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18782 | ac_header_preproc=yes |
503d2be0 AS |
18783 | else |
18784 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18785 | sed 's/^/| /' conftest.$ac_ext >&5 |
18786 | ||
c0d27fcc | 18787 | ac_header_preproc=no |
a21616bd | 18788 | fi |
503d2be0 | 18789 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18790 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18791 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35996d22 AS |
18792 | |
18793 | # So? What about this header? | |
18794 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18795 | yes:no: ) | |
18796 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18797 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18799 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18800 | ac_header_preproc=yes | |
19650fd6 | 18801 | ;; |
35996d22 | 18802 | no:yes:* ) |
c0d27fcc MR |
18803 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18804 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18805 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18806 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18807 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18808 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18809 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18810 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18811 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18812 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18813 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18814 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18815 | ( |
18816 | cat <<\_ASBOX | |
35996d22 AS |
18817 | ## ------------------------------------------ ## |
18818 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18819 | ## ------------------------------------------ ## | |
19650fd6 AS |
18820 | _ASBOX |
18821 | ) | | |
18822 | sed "s/^/$as_me: WARNING: /" >&2 | |
18823 | ;; | |
c0d27fcc MR |
18824 | esac |
18825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18829 | else | |
35996d22 | 18830 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18831 | fi |
c0d27fcc | 18832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18834 | |
18835 | fi | |
503d2be0 | 18836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18837 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18839 | _ACEOF |
503d2be0 | 18840 | |
a21616bd | 18841 | fi |
c0d27fcc | 18842 | |
a21616bd KR |
18843 | done |
18844 | ||
18845 | fi | |
c0d27fcc | 18846 | |
a21616bd KR |
18847 | done |
18848 | ||
18849 | fi | |
c0d27fcc | 18850 | |
a21616bd KR |
18851 | done |
18852 | ||
18853 | fi | |
503d2be0 AS |
18854 | |
18855 | for ac_header in com_err.h | |
a21616bd | 18856 | do |
503d2be0 | 18857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18863 | fi |
18864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18865 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18866 | else |
c0d27fcc MR |
18867 | # Is the header compilable? |
18868 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18869 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18870 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18871 | /* confdefs.h. */ |
18872 | _ACEOF | |
18873 | cat confdefs.h >>conftest.$ac_ext | |
18874 | cat >>conftest.$ac_ext <<_ACEOF | |
18875 | /* end confdefs.h. */ | |
c0d27fcc MR |
18876 | $ac_includes_default |
18877 | #include <$ac_header> | |
18878 | _ACEOF | |
18879 | rm -f conftest.$ac_objext | |
18880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18881 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18882 | ac_status=$? |
35996d22 AS |
18883 | grep -v '^ *+' conftest.er1 >conftest.err |
18884 | rm -f conftest.er1 | |
18885 | cat conftest.err >&5 | |
c0d27fcc MR |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18887 | (exit $ac_status); } && | |
35996d22 AS |
18888 | { ac_try='test -z "$ac_c_werror_flag" |
18889 | || test ! -s conftest.err' | |
18890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18891 | (eval $ac_try) 2>&5 | |
18892 | ac_status=$? | |
18893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18894 | (exit $ac_status); }; } && | |
18895 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18897 | (eval $ac_try) 2>&5 | |
18898 | ac_status=$? | |
18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18900 | (exit $ac_status); }; }; then | |
18901 | ac_header_compiler=yes | |
18902 | else | |
18903 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18904 | sed 's/^/| /' conftest.$ac_ext >&5 |
18905 | ||
c0d27fcc MR |
18906 | ac_header_compiler=no |
18907 | fi | |
35996d22 | 18908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18910 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18911 | ||
18912 | # Is the header present? | |
18913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18915 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18916 | /* confdefs.h. */ |
18917 | _ACEOF | |
18918 | cat confdefs.h >>conftest.$ac_ext | |
18919 | cat >>conftest.$ac_ext <<_ACEOF | |
18920 | /* end confdefs.h. */ | |
503d2be0 AS |
18921 | #include <$ac_header> |
18922 | _ACEOF | |
c0d27fcc | 18923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18925 | ac_status=$? | |
6bae0ccf | 18926 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18927 | rm -f conftest.er1 |
18928 | cat conftest.err >&5 | |
c0d27fcc | 18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18930 | (exit $ac_status); } >/dev/null; then |
18931 | if test -s conftest.err; then | |
18932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18933 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18934 | else |
18935 | ac_cpp_err= | |
18936 | fi | |
18937 | else | |
18938 | ac_cpp_err=yes | |
18939 | fi | |
18940 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18941 | ac_header_preproc=yes |
503d2be0 AS |
18942 | else |
18943 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18944 | sed 's/^/| /' conftest.$ac_ext >&5 |
18945 | ||
c0d27fcc | 18946 | ac_header_preproc=no |
a21616bd | 18947 | fi |
503d2be0 | 18948 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18950 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18951 | ||
18952 | # So? What about this header? | |
35996d22 AS |
18953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18954 | yes:no: ) | |
c0d27fcc MR |
18955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18959 | ac_header_preproc=yes | |
19650fd6 | 18960 | ;; |
35996d22 | 18961 | no:yes:* ) |
c0d27fcc MR |
18962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18974 | ( |
18975 | cat <<\_ASBOX | |
35996d22 AS |
18976 | ## ------------------------------------------ ## |
18977 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18978 | ## ------------------------------------------ ## | |
19650fd6 AS |
18979 | _ASBOX |
18980 | ) | | |
18981 | sed "s/^/$as_me: WARNING: /" >&2 | |
18982 | ;; | |
c0d27fcc MR |
18983 | esac |
18984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18988 | else | |
35996d22 | 18989 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18990 | fi |
c0d27fcc | 18991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18993 | |
18994 | fi | |
503d2be0 | 18995 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18996 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18997 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18998 | _ACEOF |
503d2be0 | 18999 | |
a21616bd | 19000 | fi |
c0d27fcc | 19001 | |
a21616bd KR |
19002 | done |
19003 | ||
19004 | fi | |
19005 | ||
ba4481b5 DL |
19006 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
19007 | # to return localized messages. | |
503d2be0 | 19008 | |
c0d27fcc | 19009 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
19010 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
19011 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
19012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19013 | else |
503d2be0 | 19014 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 19015 | LIBS="-lintl $LIBS" |
503d2be0 | 19016 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19017 | /* confdefs.h. */ |
19018 | _ACEOF | |
19019 | cat confdefs.h >>conftest.$ac_ext | |
19020 | cat >>conftest.$ac_ext <<_ACEOF | |
19021 | /* end confdefs.h. */ | |
503d2be0 | 19022 | |
ba4481b5 | 19023 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19024 | #ifdef __cplusplus |
19025 | extern "C" | |
19026 | #endif | |
ba4481b5 | 19027 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19028 | builtin and then its argument prototype would still apply. */ |
19029 | char dgettext (); | |
19030 | int | |
19031 | main () | |
19032 | { | |
19033 | dgettext (); | |
19034 | ; | |
19035 | return 0; | |
19036 | } | |
19037 | _ACEOF | |
19038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19040 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19041 | ac_status=$? |
35996d22 AS |
19042 | grep -v '^ *+' conftest.er1 >conftest.err |
19043 | rm -f conftest.er1 | |
19044 | cat conftest.err >&5 | |
c0d27fcc | 19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19046 | (exit $ac_status); } && |
35996d22 AS |
19047 | { ac_try='test -z "$ac_c_werror_flag" |
19048 | || test ! -s conftest.err' | |
19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19050 | (eval $ac_try) 2>&5 | |
19051 | ac_status=$? | |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19053 | (exit $ac_status); }; } && | |
19054 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19056 | (eval $ac_try) 2>&5 |
19057 | ac_status=$? | |
c0d27fcc | 19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19059 | (exit $ac_status); }; }; then |
19060 | ac_cv_lib_intl_dgettext=yes | |
19061 | else | |
19062 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19063 | sed 's/^/| /' conftest.$ac_ext >&5 |
19064 | ||
503d2be0 AS |
19065 | ac_cv_lib_intl_dgettext=no |
19066 | fi | |
35996d22 AS |
19067 | rm -f conftest.err conftest.$ac_objext \ |
19068 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
19069 | LIBS=$ac_check_lib_save_LIBS |
19070 | fi | |
c0d27fcc | 19071 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
19072 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
19073 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 19074 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19075 | #define HAVE_LIBINTL 1 |
c0d27fcc | 19076 | _ACEOF |
ba4481b5 DL |
19077 | |
19078 | LIBS="-lintl $LIBS" | |
19079 | ||
ba4481b5 DL |
19080 | fi |
19081 | ||
c0d27fcc MR |
19082 | |
19083 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
19084 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
19085 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
19086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
19087 | else |
19088 | if test x$ac_cv_func_tzset = xyes; then | |
19089 | if test "$cross_compiling" = yes; then | |
19090 | # If we have tzset, assume the worst when cross-compiling. | |
19091 | emacs_cv_localtime_cache=yes | |
19092 | else | |
503d2be0 | 19093 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19094 | /* confdefs.h. */ |
19095 | _ACEOF | |
19096 | cat confdefs.h >>conftest.$ac_ext | |
19097 | cat >>conftest.$ac_ext <<_ACEOF | |
19098 | /* end confdefs.h. */ | |
ba4481b5 | 19099 | #include <time.h> |
ba4481b5 DL |
19100 | extern char **environ; |
19101 | unset_TZ () | |
19102 | { | |
19103 | char **from, **to; | |
19104 | for (to = from = environ; (*to = *from); from++) | |
19105 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
19106 | to++; | |
19107 | } | |
19108 | char TZ_GMT0[] = "TZ=GMT0"; | |
19109 | char TZ_PST8[] = "TZ=PST8"; | |
19110 | main() | |
19111 | { | |
19112 | time_t now = time ((time_t *) 0); | |
19113 | int hour_GMT0, hour_unset; | |
19114 | if (putenv (TZ_GMT0) != 0) | |
19115 | exit (1); | |
19116 | hour_GMT0 = localtime (&now)->tm_hour; | |
19117 | unset_TZ (); | |
19118 | hour_unset = localtime (&now)->tm_hour; | |
19119 | if (putenv (TZ_PST8) != 0) | |
19120 | exit (1); | |
19121 | if (localtime (&now)->tm_hour == hour_GMT0) | |
19122 | exit (1); | |
19123 | unset_TZ (); | |
19124 | if (localtime (&now)->tm_hour != hour_unset) | |
19125 | exit (1); | |
19126 | exit (0); | |
19127 | } | |
503d2be0 AS |
19128 | _ACEOF |
19129 | rm -f conftest$ac_exeext | |
c0d27fcc | 19130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19131 | (eval $ac_link) 2>&5 |
19132 | ac_status=$? | |
c0d27fcc | 19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19136 | (eval $ac_try) 2>&5 |
19137 | ac_status=$? | |
c0d27fcc | 19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19139 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19140 | emacs_cv_localtime_cache=no |
19141 | else | |
503d2be0 AS |
19142 | echo "$as_me: program exited with status $ac_status" >&5 |
19143 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19144 | sed 's/^/| /' conftest.$ac_ext >&5 |
19145 | ||
c0d27fcc | 19146 | ( exit $ac_status ) |
503d2be0 | 19147 | emacs_cv_localtime_cache=yes |
ba4481b5 | 19148 | fi |
35996d22 | 19149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19150 | fi |
ba4481b5 DL |
19151 | else |
19152 | # If we lack tzset, report that localtime does not cache TZ, | |
19153 | # since we can't invalidate the cache if we don't have tzset. | |
19154 | emacs_cv_localtime_cache=no | |
19155 | fi | |
19156 | fi | |
c0d27fcc | 19157 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 19158 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 19159 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 19160 | |
c0d27fcc | 19161 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19162 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 19163 | _ACEOF |
ba4481b5 DL |
19164 | |
19165 | fi | |
19166 | ||
19167 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
19168 | |
19169 | for ac_func in gettimeofday | |
48d4b120 | 19170 | do |
503d2be0 | 19171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 19172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
19173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19174 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19176 | else |
503d2be0 | 19177 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19178 | /* confdefs.h. */ |
19179 | _ACEOF | |
19180 | cat confdefs.h >>conftest.$ac_ext | |
19181 | cat >>conftest.$ac_ext <<_ACEOF | |
19182 | /* end confdefs.h. */ | |
35996d22 AS |
19183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19185 | #define $ac_func innocuous_$ac_func | |
19186 | ||
48d4b120 | 19187 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19188 | which can conflict with char $ac_func (); below. |
19189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19190 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19191 | |
19650fd6 AS |
19192 | #ifdef __STDC__ |
19193 | # include <limits.h> | |
19194 | #else | |
19195 | # include <assert.h> | |
19196 | #endif | |
35996d22 AS |
19197 | |
19198 | #undef $ac_func | |
19199 | ||
48d4b120 | 19200 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19201 | #ifdef __cplusplus |
19202 | extern "C" | |
19650fd6 | 19203 | { |
503d2be0 | 19204 | #endif |
48d4b120 | 19205 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19206 | builtin and then its argument prototype would still apply. */ |
19207 | char $ac_func (); | |
48d4b120 DL |
19208 | /* The GNU C library defines this for functions which it implements |
19209 | to always fail with ENOSYS. Some functions are actually named | |
19210 | something starting with __ and the normal name is an alias. */ | |
19211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19212 | choke me | |
19213 | #else | |
19650fd6 AS |
19214 | char (*f) () = $ac_func; |
19215 | #endif | |
19216 | #ifdef __cplusplus | |
19217 | } | |
cd958eb3 MB |
19218 | #endif |
19219 | ||
19650fd6 AS |
19220 | int |
19221 | main () | |
19222 | { | |
19223 | return f != $ac_func; | |
503d2be0 AS |
19224 | ; |
19225 | return 0; | |
19226 | } | |
19227 | _ACEOF | |
19228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19230 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19231 | ac_status=$? |
35996d22 AS |
19232 | grep -v '^ *+' conftest.er1 >conftest.err |
19233 | rm -f conftest.er1 | |
19234 | cat conftest.err >&5 | |
c0d27fcc | 19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19236 | (exit $ac_status); } && |
35996d22 AS |
19237 | { ac_try='test -z "$ac_c_werror_flag" |
19238 | || test ! -s conftest.err' | |
19239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19240 | (eval $ac_try) 2>&5 | |
19241 | ac_status=$? | |
19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19243 | (exit $ac_status); }; } && | |
19244 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19246 | (eval $ac_try) 2>&5 |
19247 | ac_status=$? | |
c0d27fcc | 19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19249 | (exit $ac_status); }; }; then |
19250 | eval "$as_ac_var=yes" | |
19251 | else | |
19252 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19253 | sed 's/^/| /' conftest.$ac_ext >&5 |
19254 | ||
503d2be0 AS |
19255 | eval "$as_ac_var=no" |
19256 | fi | |
35996d22 AS |
19257 | rm -f conftest.err conftest.$ac_objext \ |
19258 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19259 | fi |
c0d27fcc | 19260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
19261 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19262 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 19263 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19264 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19265 | _ACEOF |
48d4b120 | 19266 | |
48d4b120 DL |
19267 | fi |
19268 | done | |
19269 | ||
b936fae4 | 19270 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 19271 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
19272 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
19273 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
19274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19275 | else |
503d2be0 | 19276 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19277 | /* confdefs.h. */ |
19278 | _ACEOF | |
19279 | cat confdefs.h >>conftest.$ac_ext | |
19280 | cat >>conftest.$ac_ext <<_ACEOF | |
19281 | /* end confdefs.h. */ | |
ba4481b5 | 19282 | |
a3f08d9e DL |
19283 | #ifdef TIME_WITH_SYS_TIME |
19284 | #include <sys/time.h> | |
19285 | #include <time.h> | |
19286 | #else | |
19287 | #ifdef HAVE_SYS_TIME_H | |
19288 | #include <sys/time.h> | |
19289 | #else | |
19290 | #include <time.h> | |
19291 | #endif | |
19292 | #endif | |
503d2be0 AS |
19293 | int |
19294 | main () | |
19295 | { | |
a3f08d9e | 19296 | struct timeval time; |
b936fae4 | 19297 | gettimeofday (&time, 0); |
503d2be0 AS |
19298 | ; |
19299 | return 0; | |
19300 | } | |
19301 | _ACEOF | |
19302 | rm -f conftest.$ac_objext | |
c0d27fcc | 19303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19304 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19305 | ac_status=$? |
35996d22 AS |
19306 | grep -v '^ *+' conftest.er1 >conftest.err |
19307 | rm -f conftest.er1 | |
19308 | cat conftest.err >&5 | |
c0d27fcc | 19309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19310 | (exit $ac_status); } && |
35996d22 AS |
19311 | { ac_try='test -z "$ac_c_werror_flag" |
19312 | || test ! -s conftest.err' | |
19313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19314 | (eval $ac_try) 2>&5 | |
19315 | ac_status=$? | |
19316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19317 | (exit $ac_status); }; } && | |
19318 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19320 | (eval $ac_try) 2>&5 |
19321 | ac_status=$? | |
c0d27fcc | 19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19323 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19324 | emacs_cv_gettimeofday_two_arguments=yes |
19325 | else | |
503d2be0 | 19326 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19327 | sed 's/^/| /' conftest.$ac_ext >&5 |
19328 | ||
503d2be0 | 19329 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 19330 | fi |
35996d22 | 19331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19332 | fi |
c0d27fcc | 19333 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 19334 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
19335 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
19336 | ||
c0d27fcc | 19337 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19338 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 19339 | _ACEOF |
ba4481b5 | 19340 | |
b936fae4 | 19341 | fi |
ba4481b5 DL |
19342 | fi |
19343 | fi | |
19344 | ||
973a76b1 DL |
19345 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
19346 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
19347 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
19348 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
19349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19350 | else | |
19351 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19352 | /* confdefs.h. */ |
19353 | _ACEOF | |
19354 | cat confdefs.h >>conftest.$ac_ext | |
19355 | cat >>conftest.$ac_ext <<_ACEOF | |
19356 | /* end confdefs.h. */ | |
973a76b1 DL |
19357 | #include <sys/types.h> |
19358 | #include <$ac_cv_struct_tm> | |
19359 | ||
19360 | ||
19361 | int | |
19362 | main () | |
19363 | { | |
19364 | static struct tm ac_aggr; | |
19365 | if (ac_aggr.tm_zone) | |
19366 | return 0; | |
19367 | ; | |
19368 | return 0; | |
19369 | } | |
19370 | _ACEOF | |
19371 | rm -f conftest.$ac_objext | |
19372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19373 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19374 | ac_status=$? |
35996d22 AS |
19375 | grep -v '^ *+' conftest.er1 >conftest.err |
19376 | rm -f conftest.er1 | |
19377 | cat conftest.err >&5 | |
973a76b1 DL |
19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19379 | (exit $ac_status); } && | |
35996d22 AS |
19380 | { ac_try='test -z "$ac_c_werror_flag" |
19381 | || test ! -s conftest.err' | |
19382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19383 | (eval $ac_try) 2>&5 | |
19384 | ac_status=$? | |
19385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19386 | (exit $ac_status); }; } && | |
19387 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19389 | (eval $ac_try) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); }; }; then | |
19393 | ac_cv_member_struct_tm_tm_zone=yes | |
19394 | else | |
19395 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19396 | sed 's/^/| /' conftest.$ac_ext >&5 |
19397 | ||
973a76b1 | 19398 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19399 | /* confdefs.h. */ |
19400 | _ACEOF | |
19401 | cat confdefs.h >>conftest.$ac_ext | |
19402 | cat >>conftest.$ac_ext <<_ACEOF | |
19403 | /* end confdefs.h. */ | |
973a76b1 DL |
19404 | #include <sys/types.h> |
19405 | #include <$ac_cv_struct_tm> | |
19406 | ||
19407 | ||
19408 | int | |
19409 | main () | |
19410 | { | |
19411 | static struct tm ac_aggr; | |
19412 | if (sizeof ac_aggr.tm_zone) | |
19413 | return 0; | |
19414 | ; | |
19415 | return 0; | |
19416 | } | |
19417 | _ACEOF | |
19418 | rm -f conftest.$ac_objext | |
19419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19420 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19421 | ac_status=$? |
35996d22 AS |
19422 | grep -v '^ *+' conftest.er1 >conftest.err |
19423 | rm -f conftest.er1 | |
19424 | cat conftest.err >&5 | |
973a76b1 DL |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19426 | (exit $ac_status); } && | |
35996d22 AS |
19427 | { ac_try='test -z "$ac_c_werror_flag" |
19428 | || test ! -s conftest.err' | |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
19440 | ac_cv_member_struct_tm_tm_zone=yes | |
19441 | else | |
19442 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19443 | sed 's/^/| /' conftest.$ac_ext >&5 |
19444 | ||
973a76b1 DL |
19445 | ac_cv_member_struct_tm_tm_zone=no |
19446 | fi | |
35996d22 | 19447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 | 19448 | fi |
35996d22 | 19449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
19450 | fi |
19451 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
19452 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
19453 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
19454 | ||
19455 | cat >>confdefs.h <<_ACEOF | |
19456 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
19457 | _ACEOF | |
19458 | ||
19459 | ||
19460 | fi | |
19461 | ||
19462 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
19463 | ||
19464 | cat >>confdefs.h <<\_ACEOF | |
19465 | #define HAVE_TM_ZONE 1 | |
19466 | _ACEOF | |
19467 | ||
19468 | else | |
19469 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
19470 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
19471 | if test "${ac_cv_var_tzname+set}" = set; then | |
19472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19473 | else | |
19474 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19475 | /* confdefs.h. */ |
19476 | _ACEOF | |
19477 | cat confdefs.h >>conftest.$ac_ext | |
19478 | cat >>conftest.$ac_ext <<_ACEOF | |
19479 | /* end confdefs.h. */ | |
973a76b1 DL |
19480 | #include <time.h> |
19481 | #ifndef tzname /* For SGI. */ | |
19482 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
19483 | #endif | |
19484 | ||
19485 | int | |
19486 | main () | |
19487 | { | |
19488 | atoi(*tzname); | |
19489 | ; | |
19490 | return 0; | |
19491 | } | |
19492 | _ACEOF | |
19493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 19495 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 19496 | ac_status=$? |
35996d22 AS |
19497 | grep -v '^ *+' conftest.er1 >conftest.err |
19498 | rm -f conftest.er1 | |
19499 | cat conftest.err >&5 | |
973a76b1 DL |
19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19501 | (exit $ac_status); } && | |
35996d22 AS |
19502 | { ac_try='test -z "$ac_c_werror_flag" |
19503 | || test ! -s conftest.err' | |
19504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19505 | (eval $ac_try) 2>&5 | |
19506 | ac_status=$? | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); }; } && | |
19509 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
19510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19511 | (eval $ac_try) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); }; }; then | |
19515 | ac_cv_var_tzname=yes | |
19516 | else | |
19517 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19518 | sed 's/^/| /' conftest.$ac_ext >&5 |
19519 | ||
973a76b1 DL |
19520 | ac_cv_var_tzname=no |
19521 | fi | |
35996d22 AS |
19522 | rm -f conftest.err conftest.$ac_objext \ |
19523 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
19524 | fi |
19525 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
19526 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
19527 | if test $ac_cv_var_tzname = yes; then | |
19528 | ||
19529 | cat >>confdefs.h <<\_ACEOF | |
19530 | #define HAVE_TZNAME 1 | |
19531 | _ACEOF | |
19532 | ||
19533 | fi | |
19534 | fi | |
19535 | ||
19536 | ||
48d4b120 | 19537 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 19538 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
19539 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
19540 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19542 | else |
503d2be0 | 19543 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19544 | /* confdefs.h. */ |
19545 | _ACEOF | |
19546 | cat confdefs.h >>conftest.$ac_ext | |
19547 | cat >>conftest.$ac_ext <<_ACEOF | |
19548 | /* end confdefs.h. */ | |
48d4b120 | 19549 | #include <sys/time.h> |
503d2be0 AS |
19550 | int |
19551 | main () | |
19552 | { | |
48d4b120 | 19553 | struct timezone tz; |
503d2be0 AS |
19554 | ; |
19555 | return 0; | |
19556 | } | |
19557 | _ACEOF | |
19558 | rm -f conftest.$ac_objext | |
c0d27fcc | 19559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19560 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19561 | ac_status=$? |
35996d22 AS |
19562 | grep -v '^ *+' conftest.er1 >conftest.err |
19563 | rm -f conftest.er1 | |
19564 | cat conftest.err >&5 | |
c0d27fcc | 19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19566 | (exit $ac_status); } && |
35996d22 AS |
19567 | { ac_try='test -z "$ac_c_werror_flag" |
19568 | || test ! -s conftest.err' | |
19569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19570 | (eval $ac_try) 2>&5 | |
19571 | ac_status=$? | |
19572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19573 | (exit $ac_status); }; } && | |
19574 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19576 | (eval $ac_try) 2>&5 |
19577 | ac_status=$? | |
c0d27fcc | 19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19579 | (exit $ac_status); }; }; then |
48d4b120 DL |
19580 | if test "$cross_compiling" = yes; then |
19581 | emacs_cv_struct_timezone=yes | |
19582 | else | |
503d2be0 | 19583 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19584 | /* confdefs.h. */ |
19585 | _ACEOF | |
19586 | cat confdefs.h >>conftest.$ac_ext | |
19587 | cat >>conftest.$ac_ext <<_ACEOF | |
19588 | /* end confdefs.h. */ | |
48d4b120 DL |
19589 | |
19590 | #ifdef TIME_WITH_SYS_TIME | |
19591 | #include <sys/time.h> | |
19592 | #include <time.h> | |
19593 | #else | |
19594 | #ifdef HAVE_SYS_TIME_H | |
19595 | #include <sys/time.h> | |
19596 | #else | |
19597 | #include <time.h> | |
19598 | #endif | |
19599 | #endif | |
19600 | main () { | |
19601 | struct timeval time; | |
19602 | struct timezone dummy; | |
19603 | exit (gettimeofday (&time, &dummy)); | |
19604 | } | |
503d2be0 AS |
19605 | _ACEOF |
19606 | rm -f conftest$ac_exeext | |
c0d27fcc | 19607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19608 | (eval $ac_link) 2>&5 |
19609 | ac_status=$? | |
c0d27fcc | 19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19613 | (eval $ac_try) 2>&5 |
19614 | ac_status=$? | |
c0d27fcc | 19615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19616 | (exit $ac_status); }; }; then |
48d4b120 DL |
19617 | emacs_cv_struct_timezone=yes |
19618 | else | |
503d2be0 AS |
19619 | echo "$as_me: program exited with status $ac_status" >&5 |
19620 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19621 | sed 's/^/| /' conftest.$ac_ext >&5 |
19622 | ||
c0d27fcc | 19623 | ( exit $ac_status ) |
503d2be0 | 19624 | emacs_cv_struct_timezone=no |
48d4b120 | 19625 | fi |
35996d22 | 19626 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19627 | fi |
48d4b120 | 19628 | else |
503d2be0 | 19629 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19630 | sed 's/^/| /' conftest.$ac_ext >&5 |
19631 | ||
503d2be0 | 19632 | emacs_cv_struct_timezone=no |
48d4b120 | 19633 | fi |
35996d22 | 19634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19635 | fi |
c0d27fcc | 19636 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 19637 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
19638 | fi |
19639 | ||
ba4481b5 | 19640 | ok_so_far=yes |
c0d27fcc | 19641 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
19642 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
19643 | if test "${ac_cv_func_socket+set}" = set; then | |
19644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19645 | else |
503d2be0 | 19646 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19647 | /* confdefs.h. */ |
19648 | _ACEOF | |
19649 | cat confdefs.h >>conftest.$ac_ext | |
19650 | cat >>conftest.$ac_ext <<_ACEOF | |
19651 | /* end confdefs.h. */ | |
35996d22 AS |
19652 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
19653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19654 | #define socket innocuous_socket | |
19655 | ||
ba4481b5 | 19656 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19657 | which can conflict with char socket (); below. |
19658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19659 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19660 | |
19650fd6 AS |
19661 | #ifdef __STDC__ |
19662 | # include <limits.h> | |
19663 | #else | |
19664 | # include <assert.h> | |
19665 | #endif | |
35996d22 AS |
19666 | |
19667 | #undef socket | |
19668 | ||
ba4481b5 | 19669 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19670 | #ifdef __cplusplus |
19671 | extern "C" | |
19650fd6 | 19672 | { |
503d2be0 | 19673 | #endif |
ba4481b5 | 19674 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19675 | builtin and then its argument prototype would still apply. */ |
19676 | char socket (); | |
ba4481b5 DL |
19677 | /* The GNU C library defines this for functions which it implements |
19678 | to always fail with ENOSYS. Some functions are actually named | |
19679 | something starting with __ and the normal name is an alias. */ | |
19680 | #if defined (__stub_socket) || defined (__stub___socket) | |
19681 | choke me | |
19682 | #else | |
19650fd6 AS |
19683 | char (*f) () = socket; |
19684 | #endif | |
19685 | #ifdef __cplusplus | |
19686 | } | |
cd958eb3 MB |
19687 | #endif |
19688 | ||
19650fd6 AS |
19689 | int |
19690 | main () | |
19691 | { | |
19692 | return f != socket; | |
503d2be0 AS |
19693 | ; |
19694 | return 0; | |
19695 | } | |
19696 | _ACEOF | |
19697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19699 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19700 | ac_status=$? |
35996d22 AS |
19701 | grep -v '^ *+' conftest.er1 >conftest.err |
19702 | rm -f conftest.er1 | |
19703 | cat conftest.err >&5 | |
c0d27fcc | 19704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19705 | (exit $ac_status); } && |
35996d22 AS |
19706 | { ac_try='test -z "$ac_c_werror_flag" |
19707 | || test ! -s conftest.err' | |
19708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19709 | (eval $ac_try) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); }; } && | |
19713 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19715 | (eval $ac_try) 2>&5 |
19716 | ac_status=$? | |
c0d27fcc | 19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19718 | (exit $ac_status); }; }; then |
19719 | ac_cv_func_socket=yes | |
19720 | else | |
19721 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19722 | sed 's/^/| /' conftest.$ac_ext >&5 |
19723 | ||
503d2be0 AS |
19724 | ac_cv_func_socket=no |
19725 | fi | |
35996d22 AS |
19726 | rm -f conftest.err conftest.$ac_objext \ |
19727 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19728 | fi |
c0d27fcc | 19729 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
19730 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
19731 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
19732 | : |
19733 | else | |
503d2be0 | 19734 | ok_so_far=no |
ba4481b5 DL |
19735 | fi |
19736 | ||
19737 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19738 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
19739 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
19740 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
19741 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19743 | fi |
19744 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
19745 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 19746 | else |
c0d27fcc MR |
19747 | # Is the header compilable? |
19748 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
19749 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
19750 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19751 | /* confdefs.h. */ |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
c0d27fcc MR |
19756 | $ac_includes_default |
19757 | #include <netinet/in.h> | |
19758 | _ACEOF | |
19759 | rm -f conftest.$ac_objext | |
19760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19761 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19762 | ac_status=$? |
35996d22 AS |
19763 | grep -v '^ *+' conftest.er1 >conftest.err |
19764 | rm -f conftest.er1 | |
19765 | cat conftest.err >&5 | |
c0d27fcc MR |
19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19767 | (exit $ac_status); } && | |
35996d22 AS |
19768 | { ac_try='test -z "$ac_c_werror_flag" |
19769 | || test ! -s conftest.err' | |
19770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19771 | (eval $ac_try) 2>&5 | |
19772 | ac_status=$? | |
19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19774 | (exit $ac_status); }; } && | |
19775 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19777 | (eval $ac_try) 2>&5 | |
19778 | ac_status=$? | |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19780 | (exit $ac_status); }; }; then | |
19781 | ac_header_compiler=yes | |
19782 | else | |
19783 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19784 | sed 's/^/| /' conftest.$ac_ext >&5 |
19785 | ||
c0d27fcc MR |
19786 | ac_header_compiler=no |
19787 | fi | |
35996d22 | 19788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19789 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19790 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19791 | ||
19792 | # Is the header present? | |
19793 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
19794 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
19795 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19796 | /* confdefs.h. */ |
19797 | _ACEOF | |
19798 | cat confdefs.h >>conftest.$ac_ext | |
19799 | cat >>conftest.$ac_ext <<_ACEOF | |
19800 | /* end confdefs.h. */ | |
ba4481b5 | 19801 | #include <netinet/in.h> |
503d2be0 | 19802 | _ACEOF |
c0d27fcc | 19803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19805 | ac_status=$? | |
6bae0ccf | 19806 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19807 | rm -f conftest.er1 |
19808 | cat conftest.err >&5 | |
c0d27fcc | 19809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19810 | (exit $ac_status); } >/dev/null; then |
19811 | if test -s conftest.err; then | |
19812 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19814 | else |
19815 | ac_cpp_err= | |
19816 | fi | |
19817 | else | |
19818 | ac_cpp_err=yes | |
19819 | fi | |
19820 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19821 | ac_header_preproc=yes |
ba4481b5 | 19822 | else |
503d2be0 | 19823 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19824 | sed 's/^/| /' conftest.$ac_ext >&5 |
19825 | ||
c0d27fcc | 19826 | ac_header_preproc=no |
ba4481b5 | 19827 | fi |
503d2be0 | 19828 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19830 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19831 | ||
19832 | # So? What about this header? | |
35996d22 AS |
19833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19834 | yes:no: ) | |
c0d27fcc MR |
19835 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19836 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19837 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
19838 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
19839 | ac_header_preproc=yes | |
19650fd6 | 19840 | ;; |
35996d22 | 19841 | no:yes:* ) |
c0d27fcc MR |
19842 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
19843 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19844 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
19845 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
19846 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
19847 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
19848 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19849 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19850 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19851 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19852 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
19853 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19854 | ( |
19855 | cat <<\_ASBOX | |
35996d22 AS |
19856 | ## ------------------------------------------ ## |
19857 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19858 | ## ------------------------------------------ ## | |
19650fd6 AS |
19859 | _ASBOX |
19860 | ) | | |
19861 | sed "s/^/$as_me: WARNING: /" >&2 | |
19862 | ;; | |
c0d27fcc MR |
19863 | esac |
19864 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
19865 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
19866 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19868 | else | |
19869 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 19870 | fi |
c0d27fcc | 19871 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 19872 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
19873 | |
19874 | fi | |
503d2be0 | 19875 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
19876 | : |
19877 | else | |
503d2be0 | 19878 | ok_so_far=no |
ba4481b5 DL |
19879 | fi |
19880 | ||
c0d27fcc | 19881 | |
ba4481b5 DL |
19882 | fi |
19883 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19884 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
19885 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
19886 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
19887 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
19888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19889 | fi |
19890 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
19891 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 19892 | else |
c0d27fcc MR |
19893 | # Is the header compilable? |
19894 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
19895 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
19896 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19897 | /* confdefs.h. */ |
19898 | _ACEOF | |
19899 | cat confdefs.h >>conftest.$ac_ext | |
19900 | cat >>conftest.$ac_ext <<_ACEOF | |
19901 | /* end confdefs.h. */ | |
c0d27fcc MR |
19902 | $ac_includes_default |
19903 | #include <arpa/inet.h> | |
19904 | _ACEOF | |
19905 | rm -f conftest.$ac_objext | |
19906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19907 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19908 | ac_status=$? |
35996d22 AS |
19909 | grep -v '^ *+' conftest.er1 >conftest.err |
19910 | rm -f conftest.er1 | |
19911 | cat conftest.err >&5 | |
c0d27fcc MR |
19912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19913 | (exit $ac_status); } && | |
35996d22 AS |
19914 | { ac_try='test -z "$ac_c_werror_flag" |
19915 | || test ! -s conftest.err' | |
19916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19917 | (eval $ac_try) 2>&5 | |
19918 | ac_status=$? | |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19920 | (exit $ac_status); }; } && | |
19921 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19923 | (eval $ac_try) 2>&5 | |
19924 | ac_status=$? | |
19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19926 | (exit $ac_status); }; }; then | |
19927 | ac_header_compiler=yes | |
19928 | else | |
19929 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19930 | sed 's/^/| /' conftest.$ac_ext >&5 |
19931 | ||
c0d27fcc MR |
19932 | ac_header_compiler=no |
19933 | fi | |
35996d22 | 19934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19936 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19937 | ||
19938 | # Is the header present? | |
19939 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
19940 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
19941 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19942 | /* confdefs.h. */ |
19943 | _ACEOF | |
19944 | cat confdefs.h >>conftest.$ac_ext | |
19945 | cat >>conftest.$ac_ext <<_ACEOF | |
19946 | /* end confdefs.h. */ | |
ba4481b5 | 19947 | #include <arpa/inet.h> |
503d2be0 | 19948 | _ACEOF |
c0d27fcc | 19949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19951 | ac_status=$? | |
6bae0ccf | 19952 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19953 | rm -f conftest.er1 |
19954 | cat conftest.err >&5 | |
c0d27fcc | 19955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19956 | (exit $ac_status); } >/dev/null; then |
19957 | if test -s conftest.err; then | |
19958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19960 | else |
19961 | ac_cpp_err= | |
19962 | fi | |
19963 | else | |
19964 | ac_cpp_err=yes | |
19965 | fi | |
19966 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19967 | ac_header_preproc=yes |
ba4481b5 | 19968 | else |
503d2be0 | 19969 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19970 | sed 's/^/| /' conftest.$ac_ext >&5 |
19971 | ||
c0d27fcc | 19972 | ac_header_preproc=no |
ba4481b5 | 19973 | fi |
503d2be0 | 19974 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19976 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19977 | ||
19978 | # So? What about this header? | |
35996d22 AS |
19979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19980 | yes:no: ) | |
c0d27fcc MR |
19981 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19982 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19983 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
19984 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
19985 | ac_header_preproc=yes | |
19650fd6 | 19986 | ;; |
35996d22 | 19987 | no:yes:* ) |
c0d27fcc MR |
19988 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
19989 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19990 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
19991 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
19992 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
19993 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
19994 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19995 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19996 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19997 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19998 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
19999 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20000 | ( |
20001 | cat <<\_ASBOX | |
35996d22 AS |
20002 | ## ------------------------------------------ ## |
20003 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20004 | ## ------------------------------------------ ## | |
19650fd6 AS |
20005 | _ASBOX |
20006 | ) | | |
20007 | sed "s/^/$as_me: WARNING: /" >&2 | |
20008 | ;; | |
c0d27fcc MR |
20009 | esac |
20010 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
20011 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
20012 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
20013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20014 | else | |
20015 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 20016 | fi |
c0d27fcc | 20017 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 20018 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
20019 | |
20020 | fi | |
503d2be0 | 20021 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
20022 | : |
20023 | else | |
503d2be0 | 20024 | ok_so_far=no |
ba4481b5 DL |
20025 | fi |
20026 | ||
c0d27fcc | 20027 | |
ba4481b5 DL |
20028 | fi |
20029 | if test $ok_so_far = yes; then | |
b936fae4 | 20030 | |
c0d27fcc | 20031 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20032 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 20033 | _ACEOF |
ba4481b5 DL |
20034 | |
20035 | fi | |
20036 | ||
2d2b6695 | 20037 | |
7862d3a8 | 20038 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
20039 | do |
20040 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20046 | fi | |
20047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20049 | else | |
20050 | # Is the header compilable? | |
20051 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20052 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20053 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20054 | /* confdefs.h. */ |
20055 | _ACEOF | |
20056 | cat confdefs.h >>conftest.$ac_ext | |
20057 | cat >>conftest.$ac_ext <<_ACEOF | |
20058 | /* end confdefs.h. */ | |
20059 | $ac_includes_default | |
20060 | #include <$ac_header> | |
20061 | _ACEOF | |
20062 | rm -f conftest.$ac_objext | |
20063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20064 | (eval $ac_compile) 2>conftest.er1 |
2d2b6695 | 20065 | ac_status=$? |
35996d22 AS |
20066 | grep -v '^ *+' conftest.er1 >conftest.err |
20067 | rm -f conftest.er1 | |
20068 | cat conftest.err >&5 | |
2d2b6695 KS |
20069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20070 | (exit $ac_status); } && | |
35996d22 AS |
20071 | { ac_try='test -z "$ac_c_werror_flag" |
20072 | || test ! -s conftest.err' | |
20073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20074 | (eval $ac_try) 2>&5 | |
20075 | ac_status=$? | |
20076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20077 | (exit $ac_status); }; } && | |
20078 | { ac_try='test -s conftest.$ac_objext' | |
2d2b6695 KS |
20079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20080 | (eval $ac_try) 2>&5 | |
20081 | ac_status=$? | |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20083 | (exit $ac_status); }; }; then | |
20084 | ac_header_compiler=yes | |
20085 | else | |
20086 | echo "$as_me: failed program was:" >&5 | |
20087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20088 | ||
20089 | ac_header_compiler=no | |
20090 | fi | |
35996d22 | 20091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2d2b6695 KS |
20092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20093 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20094 | ||
20095 | # Is the header present? | |
20096 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20097 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20098 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20099 | /* confdefs.h. */ |
20100 | _ACEOF | |
20101 | cat confdefs.h >>conftest.$ac_ext | |
20102 | cat >>conftest.$ac_ext <<_ACEOF | |
20103 | /* end confdefs.h. */ | |
20104 | #include <$ac_header> | |
20105 | _ACEOF | |
20106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20108 | ac_status=$? | |
20109 | grep -v '^ *+' conftest.er1 >conftest.err | |
20110 | rm -f conftest.er1 | |
20111 | cat conftest.err >&5 | |
20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20113 | (exit $ac_status); } >/dev/null; then | |
20114 | if test -s conftest.err; then | |
20115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2d2b6695 KS |
20117 | else |
20118 | ac_cpp_err= | |
20119 | fi | |
20120 | else | |
20121 | ac_cpp_err=yes | |
20122 | fi | |
20123 | if test -z "$ac_cpp_err"; then | |
20124 | ac_header_preproc=yes | |
20125 | else | |
20126 | echo "$as_me: failed program was:" >&5 | |
20127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20128 | ||
20129 | ac_header_preproc=no | |
20130 | fi | |
20131 | rm -f conftest.err conftest.$ac_ext | |
20132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20133 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20134 | ||
20135 | # So? What about this header? | |
35996d22 AS |
20136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20137 | yes:no: ) | |
2d2b6695 KS |
20138 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20139 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20141 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20142 | ac_header_preproc=yes | |
2d2b6695 | 20143 | ;; |
35996d22 | 20144 | no:yes:* ) |
2d2b6695 KS |
20145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20149 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20150 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20151 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20152 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
20153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
35996d22 AS |
20155 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20156 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2d2b6695 KS |
20157 | ( |
20158 | cat <<\_ASBOX | |
35996d22 AS |
20159 | ## ------------------------------------------ ## |
20160 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20161 | ## ------------------------------------------ ## | |
2d2b6695 KS |
20162 | _ASBOX |
20163 | ) | | |
20164 | sed "s/^/$as_me: WARNING: /" >&2 | |
20165 | ;; | |
20166 | esac | |
20167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20171 | else | |
35996d22 | 20172 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 KS |
20173 | fi |
20174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20176 | ||
20177 | fi | |
20178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20179 | cat >>confdefs.h <<_ACEOF | |
20180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20181 | _ACEOF | |
20182 | ||
20183 | fi | |
20184 | ||
20185 | done | |
20186 | ||
20187 | ||
ba4481b5 | 20188 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 20189 | |
c0d27fcc | 20190 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20191 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 20192 | _ACEOF |
ba4481b5 DL |
20193 | |
20194 | fi | |
20195 | ||
c0d27fcc | 20196 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 20197 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 20198 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 20199 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 20200 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 20201 | |
c0d27fcc | 20202 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 20203 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 20204 | _ACEOF |
3d9fec71 DL |
20205 | |
20206 | else | |
c0d27fcc | 20207 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 20208 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
20209 | fi |
20210 | ||
c0d27fcc | 20211 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
20212 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
20213 | if test "${ac_cv_type_pid_t+set}" = set; then | |
20214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 20215 | else |
503d2be0 | 20216 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20217 | /* confdefs.h. */ |
20218 | _ACEOF | |
20219 | cat confdefs.h >>conftest.$ac_ext | |
20220 | cat >>conftest.$ac_ext <<_ACEOF | |
20221 | /* end confdefs.h. */ | |
503d2be0 AS |
20222 | $ac_includes_default |
20223 | int | |
20224 | main () | |
20225 | { | |
20226 | if ((pid_t *) 0) | |
20227 | return 0; | |
20228 | if (sizeof (pid_t)) | |
20229 | return 0; | |
20230 | ; | |
20231 | return 0; | |
20232 | } | |
20233 | _ACEOF | |
20234 | rm -f conftest.$ac_objext | |
c0d27fcc | 20235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20236 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20237 | ac_status=$? |
35996d22 AS |
20238 | grep -v '^ *+' conftest.er1 >conftest.err |
20239 | rm -f conftest.er1 | |
20240 | cat conftest.err >&5 | |
c0d27fcc | 20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20242 | (exit $ac_status); } && |
35996d22 AS |
20243 | { ac_try='test -z "$ac_c_werror_flag" |
20244 | || test ! -s conftest.err' | |
20245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20246 | (eval $ac_try) 2>&5 | |
20247 | ac_status=$? | |
20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20249 | (exit $ac_status); }; } && | |
20250 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20252 | (eval $ac_try) 2>&5 |
20253 | ac_status=$? | |
c0d27fcc | 20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20255 | (exit $ac_status); }; }; then |
647847ea DL |
20256 | ac_cv_type_pid_t=yes |
20257 | else | |
503d2be0 | 20258 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20259 | sed 's/^/| /' conftest.$ac_ext >&5 |
20260 | ||
503d2be0 | 20261 | ac_cv_type_pid_t=no |
647847ea | 20262 | fi |
35996d22 | 20263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
647847ea | 20264 | fi |
c0d27fcc | 20265 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
20266 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
20267 | if test $ac_cv_type_pid_t = yes; then | |
20268 | : | |
20269 | else | |
20270 | ||
c0d27fcc | 20271 | cat >>confdefs.h <<_ACEOF |
647847ea | 20272 | #define pid_t int |
c0d27fcc | 20273 | _ACEOF |
647847ea DL |
20274 | |
20275 | fi | |
20276 | ||
c0d27fcc MR |
20277 | |
20278 | ||
503d2be0 AS |
20279 | for ac_header in unistd.h vfork.h |
20280 | do | |
20281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
20282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
20284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
20287 | fi |
20288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 20290 | else |
c0d27fcc MR |
20291 | # Is the header compilable? |
20292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20294 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20295 | /* confdefs.h. */ |
20296 | _ACEOF | |
20297 | cat confdefs.h >>conftest.$ac_ext | |
20298 | cat >>conftest.$ac_ext <<_ACEOF | |
20299 | /* end confdefs.h. */ | |
c0d27fcc MR |
20300 | $ac_includes_default |
20301 | #include <$ac_header> | |
20302 | _ACEOF | |
20303 | rm -f conftest.$ac_objext | |
20304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20305 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 20306 | ac_status=$? |
35996d22 AS |
20307 | grep -v '^ *+' conftest.er1 >conftest.err |
20308 | rm -f conftest.er1 | |
20309 | cat conftest.err >&5 | |
c0d27fcc MR |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20311 | (exit $ac_status); } && | |
35996d22 AS |
20312 | { ac_try='test -z "$ac_c_werror_flag" |
20313 | || test ! -s conftest.err' | |
20314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20315 | (eval $ac_try) 2>&5 | |
20316 | ac_status=$? | |
20317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20318 | (exit $ac_status); }; } && | |
20319 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
20320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20321 | (eval $ac_try) 2>&5 | |
20322 | ac_status=$? | |
20323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20324 | (exit $ac_status); }; }; then | |
20325 | ac_header_compiler=yes | |
20326 | else | |
20327 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20328 | sed 's/^/| /' conftest.$ac_ext >&5 |
20329 | ||
c0d27fcc MR |
20330 | ac_header_compiler=no |
20331 | fi | |
35996d22 | 20332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
20333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20335 | ||
20336 | # Is the header present? | |
20337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20339 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20340 | /* confdefs.h. */ |
20341 | _ACEOF | |
20342 | cat confdefs.h >>conftest.$ac_ext | |
20343 | cat >>conftest.$ac_ext <<_ACEOF | |
20344 | /* end confdefs.h. */ | |
503d2be0 AS |
20345 | #include <$ac_header> |
20346 | _ACEOF | |
c0d27fcc | 20347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20349 | ac_status=$? | |
6bae0ccf | 20350 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20351 | rm -f conftest.er1 |
20352 | cat conftest.err >&5 | |
c0d27fcc | 20353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20354 | (exit $ac_status); } >/dev/null; then |
20355 | if test -s conftest.err; then | |
20356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20358 | else |
20359 | ac_cpp_err= | |
20360 | fi | |
647847ea | 20361 | else |
503d2be0 AS |
20362 | ac_cpp_err=yes |
20363 | fi | |
20364 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20365 | ac_header_preproc=yes |
647847ea | 20366 | else |
503d2be0 | 20367 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20368 | sed 's/^/| /' conftest.$ac_ext >&5 |
20369 | ||
c0d27fcc | 20370 | ac_header_preproc=no |
647847ea | 20371 | fi |
503d2be0 | 20372 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20375 | ||
20376 | # So? What about this header? | |
35996d22 AS |
20377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20378 | yes:no: ) | |
c0d27fcc MR |
20379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20383 | ac_header_preproc=yes | |
19650fd6 | 20384 | ;; |
35996d22 | 20385 | no:yes:* ) |
c0d27fcc MR |
20386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20398 | ( |
20399 | cat <<\_ASBOX | |
35996d22 AS |
20400 | ## ------------------------------------------ ## |
20401 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20402 | ## ------------------------------------------ ## | |
19650fd6 AS |
20403 | _ASBOX |
20404 | ) | | |
20405 | sed "s/^/$as_me: WARNING: /" >&2 | |
20406 | ;; | |
c0d27fcc MR |
20407 | esac |
20408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20412 | else | |
35996d22 | 20413 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 20414 | fi |
c0d27fcc | 20415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 20416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
20417 | |
20418 | fi | |
503d2be0 | 20419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20420 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20422 | _ACEOF |
647847ea | 20423 | |
73b77ee5 | 20424 | fi |
c0d27fcc | 20425 | |
503d2be0 | 20426 | done |
73b77ee5 | 20427 | |
c0d27fcc MR |
20428 | |
20429 | ||
503d2be0 AS |
20430 | for ac_func in fork vfork |
20431 | do | |
20432 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 20433 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
20434 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
20435 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20437 | else |
503d2be0 | 20438 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20439 | /* confdefs.h. */ |
20440 | _ACEOF | |
20441 | cat confdefs.h >>conftest.$ac_ext | |
20442 | cat >>conftest.$ac_ext <<_ACEOF | |
20443 | /* end confdefs.h. */ | |
35996d22 AS |
20444 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20445 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20446 | #define $ac_func innocuous_$ac_func | |
20447 | ||
fa0b693c | 20448 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20449 | which can conflict with char $ac_func (); below. |
20450 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20451 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 20452 | |
19650fd6 AS |
20453 | #ifdef __STDC__ |
20454 | # include <limits.h> | |
20455 | #else | |
20456 | # include <assert.h> | |
20457 | #endif | |
35996d22 AS |
20458 | |
20459 | #undef $ac_func | |
20460 | ||
fa0b693c | 20461 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
20462 | #ifdef __cplusplus |
20463 | extern "C" | |
19650fd6 | 20464 | { |
503d2be0 | 20465 | #endif |
fa0b693c | 20466 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
20467 | builtin and then its argument prototype would still apply. */ |
20468 | char $ac_func (); | |
fa0b693c GM |
20469 | /* The GNU C library defines this for functions which it implements |
20470 | to always fail with ENOSYS. Some functions are actually named | |
20471 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 20472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
20473 | choke me |
20474 | #else | |
19650fd6 AS |
20475 | char (*f) () = $ac_func; |
20476 | #endif | |
20477 | #ifdef __cplusplus | |
20478 | } | |
fa0b693c GM |
20479 | #endif |
20480 | ||
19650fd6 AS |
20481 | int |
20482 | main () | |
20483 | { | |
20484 | return f != $ac_func; | |
503d2be0 AS |
20485 | ; |
20486 | return 0; | |
20487 | } | |
20488 | _ACEOF | |
20489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 20490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 20491 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 20492 | ac_status=$? |
35996d22 AS |
20493 | grep -v '^ *+' conftest.er1 >conftest.err |
20494 | rm -f conftest.er1 | |
20495 | cat conftest.err >&5 | |
c0d27fcc | 20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20497 | (exit $ac_status); } && |
35996d22 AS |
20498 | { ac_try='test -z "$ac_c_werror_flag" |
20499 | || test ! -s conftest.err' | |
20500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20501 | (eval $ac_try) 2>&5 | |
20502 | ac_status=$? | |
20503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20504 | (exit $ac_status); }; } && | |
20505 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 20506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20507 | (eval $ac_try) 2>&5 |
20508 | ac_status=$? | |
c0d27fcc | 20509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20510 | (exit $ac_status); }; }; then |
20511 | eval "$as_ac_var=yes" | |
20512 | else | |
20513 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20514 | sed 's/^/| /' conftest.$ac_ext >&5 |
20515 | ||
503d2be0 AS |
20516 | eval "$as_ac_var=no" |
20517 | fi | |
35996d22 AS |
20518 | rm -f conftest.err conftest.$ac_objext \ |
20519 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 20520 | fi |
c0d27fcc | 20521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
20522 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
20523 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 20524 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 20526 | _ACEOF |
503d2be0 | 20527 | |
fa0b693c | 20528 | fi |
503d2be0 | 20529 | done |
fa0b693c | 20530 | |
503d2be0 | 20531 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 20532 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
20533 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
20534 | if test "${ac_cv_func_fork_works+set}" = set; then | |
20535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20536 | else |
503d2be0 AS |
20537 | if test "$cross_compiling" = yes; then |
20538 | ac_cv_func_fork_works=cross | |
20539 | else | |
20540 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 20541 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
20542 | #include <sys/types.h> |
20543 | #if HAVE_UNISTD_H | |
20544 | # include <unistd.h> | |
20545 | #endif | |
20546 | /* Some systems only have a dummy stub for fork() */ | |
20547 | int main () | |
20548 | { | |
35996d22 AS |
20549 | if (fork() < 0) |
20550 | exit (1); | |
20551 | exit (0); | |
503d2be0 AS |
20552 | } |
20553 | _ACEOF | |
20554 | rm -f conftest$ac_exeext | |
c0d27fcc | 20555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20556 | (eval $ac_link) 2>&5 |
20557 | ac_status=$? | |
c0d27fcc | 20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20561 | (eval $ac_try) 2>&5 |
20562 | ac_status=$? | |
c0d27fcc | 20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20564 | (exit $ac_status); }; }; then |
20565 | ac_cv_func_fork_works=yes | |
20566 | else | |
20567 | echo "$as_me: program exited with status $ac_status" >&5 | |
20568 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20569 | sed 's/^/| /' conftest.$ac_ext >&5 |
20570 | ||
c0d27fcc | 20571 | ( exit $ac_status ) |
503d2be0 AS |
20572 | ac_cv_func_fork_works=no |
20573 | fi | |
35996d22 | 20574 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
20575 | fi |
20576 | fi | |
c0d27fcc | 20577 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
20578 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
20579 | ||
6bae0ccf DL |
20580 | else |
20581 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
20582 | fi |
20583 | if test "x$ac_cv_func_fork_works" = xcross; then | |
20584 | case $host in | |
20585 | *-*-amigaos* | *-*-msdosdjgpp*) | |
20586 | # Override, as these systems have only a dummy fork() stub | |
20587 | ac_cv_func_fork_works=no | |
20588 | ;; | |
20589 | *) | |
20590 | ac_cv_func_fork_works=yes | |
20591 | ;; | |
20592 | esac | |
c0d27fcc MR |
20593 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
20594 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 20595 | fi |
73b77ee5 | 20596 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 20597 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 20598 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
20599 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
20600 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
20601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20602 | else | |
20603 | if test "$cross_compiling" = yes; then | |
20604 | ac_cv_func_vfork_works=cross | |
fa0b693c | 20605 | else |
503d2be0 | 20606 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20607 | /* confdefs.h. */ |
20608 | _ACEOF | |
20609 | cat confdefs.h >>conftest.$ac_ext | |
20610 | cat >>conftest.$ac_ext <<_ACEOF | |
20611 | /* end confdefs.h. */ | |
73b77ee5 GM |
20612 | /* Thanks to Paul Eggert for this test. */ |
20613 | #include <stdio.h> | |
19650fd6 | 20614 | #include <stdlib.h> |
fa0b693c | 20615 | #include <sys/types.h> |
73b77ee5 | 20616 | #include <sys/stat.h> |
19650fd6 | 20617 | #include <sys/wait.h> |
503d2be0 AS |
20618 | #if HAVE_UNISTD_H |
20619 | # include <unistd.h> | |
73b77ee5 | 20620 | #endif |
503d2be0 AS |
20621 | #if HAVE_VFORK_H |
20622 | # include <vfork.h> | |
73b77ee5 GM |
20623 | #endif |
20624 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
20625 | argument registers are propagated back to the parent. The compiler |
20626 | is told about this with #include <vfork.h>, but some compilers | |
20627 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
20628 | static variable whose address is put into a register that is | |
20629 | clobbered by the vfork. */ | |
19650fd6 | 20630 | static void |
fa0b693c | 20631 | #ifdef __cplusplus |
73b77ee5 | 20632 | sparc_address_test (int arg) |
503d2be0 | 20633 | # else |
73b77ee5 | 20634 | sparc_address_test (arg) int arg; |
fa0b693c | 20635 | #endif |
fa0b693c | 20636 | { |
73b77ee5 GM |
20637 | static pid_t child; |
20638 | if (!child) { | |
20639 | child = vfork (); | |
20640 | if (child < 0) { | |
20641 | perror ("vfork"); | |
20642 | _exit(2); | |
20643 | } | |
20644 | if (!child) { | |
20645 | arg = getpid(); | |
20646 | write(-1, "", 0); | |
20647 | _exit (arg); | |
20648 | } | |
20649 | } | |
20650 | } | |
503d2be0 AS |
20651 | |
20652 | int | |
20653 | main () | |
20654 | { | |
73b77ee5 GM |
20655 | pid_t parent = getpid (); |
20656 | pid_t child; | |
fa0b693c | 20657 | |
19650fd6 | 20658 | sparc_address_test (0); |
fa0b693c | 20659 | |
73b77ee5 | 20660 | child = vfork (); |
fa0b693c | 20661 | |
73b77ee5 | 20662 | if (child == 0) { |
503d2be0 AS |
20663 | /* Here is another test for sparc vfork register problems. This |
20664 | test uses lots of local variables, at least as many local | |
20665 | variables as main has allocated so far including compiler | |
20666 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
20667 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
20668 | reuse the register of parent for one of the local variables, | |
20669 | since it will think that parent can't possibly be used any more | |
20670 | in this routine. Assigning to the local variable will thus | |
20671 | munge parent in the parent process. */ | |
73b77ee5 GM |
20672 | pid_t |
20673 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
20674 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
20675 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
20676 | use the same hardware register for all 8 local variables. */ | |
20677 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
20678 | || p != p5 || p != p6 || p != p7) | |
20679 | _exit(1); | |
fa0b693c | 20680 | |
503d2be0 AS |
20681 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
20682 | from child file descriptors. If the child closes a descriptor | |
20683 | before it execs or exits, this munges the parent's descriptor | |
20684 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
20685 | _exit(close(fileno(stdout)) != 0); |
20686 | } else { | |
20687 | int status; | |
20688 | struct stat st; | |
20689 | ||
20690 | while (wait(&status) != child) | |
20691 | ; | |
20692 | exit( | |
20693 | /* Was there some problem with vforking? */ | |
20694 | child < 0 | |
20695 | ||
20696 | /* Did the child fail? (This shouldn't happen.) */ | |
20697 | || status | |
20698 | ||
20699 | /* Did the vfork/compiler bug occur? */ | |
20700 | || parent != getpid() | |
fa0b693c | 20701 | |
73b77ee5 GM |
20702 | /* Did the file descriptor bug occur? */ |
20703 | || fstat(fileno(stdout), &st) != 0 | |
20704 | ); | |
20705 | } | |
20706 | } | |
503d2be0 AS |
20707 | _ACEOF |
20708 | rm -f conftest$ac_exeext | |
c0d27fcc | 20709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20710 | (eval $ac_link) 2>&5 |
20711 | ac_status=$? | |
c0d27fcc | 20712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20713 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20715 | (eval $ac_try) 2>&5 |
20716 | ac_status=$? | |
c0d27fcc | 20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20718 | (exit $ac_status); }; }; then |
73b77ee5 | 20719 | ac_cv_func_vfork_works=yes |
fa0b693c | 20720 | else |
503d2be0 AS |
20721 | echo "$as_me: program exited with status $ac_status" >&5 |
20722 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20723 | sed 's/^/| /' conftest.$ac_ext >&5 |
20724 | ||
c0d27fcc | 20725 | ( exit $ac_status ) |
503d2be0 AS |
20726 | ac_cv_func_vfork_works=no |
20727 | fi | |
35996d22 | 20728 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 20729 | fi |
fa0b693c | 20730 | fi |
c0d27fcc | 20731 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 20732 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 20733 | |
503d2be0 AS |
20734 | fi; |
20735 | if test "x$ac_cv_func_fork_works" = xcross; then | |
35996d22 | 20736 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
20737 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
20738 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
20739 | fi |
20740 | ||
503d2be0 AS |
20741 | if test "x$ac_cv_func_vfork_works" = xyes; then |
20742 | ||
c0d27fcc | 20743 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20744 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 20745 | _ACEOF |
503d2be0 AS |
20746 | |
20747 | else | |
20748 | ||
c0d27fcc | 20749 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 20750 | #define vfork fork |
c0d27fcc | 20751 | _ACEOF |
fa0b693c GM |
20752 | |
20753 | fi | |
503d2be0 AS |
20754 | if test "x$ac_cv_func_fork_works" = xyes; then |
20755 | ||
c0d27fcc | 20756 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20757 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 20758 | _ACEOF |
fa0b693c | 20759 | |
503d2be0 | 20760 | fi |
647847ea | 20761 | |
c0d27fcc | 20762 | |
6a3a24fa JD |
20763 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
20764 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
20765 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
20766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20767 | else | |
20768 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20769 | /* confdefs.h. */ |
20770 | _ACEOF | |
20771 | cat confdefs.h >>conftest.$ac_ext | |
20772 | cat >>conftest.$ac_ext <<_ACEOF | |
20773 | /* end confdefs.h. */ | |
6a3a24fa JD |
20774 | #include <langinfo.h> |
20775 | int | |
20776 | main () | |
20777 | { | |
20778 | char* cs = nl_langinfo(CODESET); | |
20779 | ; | |
20780 | return 0; | |
20781 | } | |
20782 | _ACEOF | |
20783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 20785 | (eval $ac_link) 2>conftest.er1 |
6a3a24fa | 20786 | ac_status=$? |
35996d22 AS |
20787 | grep -v '^ *+' conftest.er1 >conftest.err |
20788 | rm -f conftest.er1 | |
20789 | cat conftest.err >&5 | |
6a3a24fa JD |
20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20791 | (exit $ac_status); } && | |
35996d22 AS |
20792 | { ac_try='test -z "$ac_c_werror_flag" |
20793 | || test ! -s conftest.err' | |
20794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20795 | (eval $ac_try) 2>&5 | |
20796 | ac_status=$? | |
20797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20798 | (exit $ac_status); }; } && | |
20799 | { ac_try='test -s conftest$ac_exeext' | |
6a3a24fa JD |
20800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20801 | (eval $ac_try) 2>&5 | |
20802 | ac_status=$? | |
20803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20804 | (exit $ac_status); }; }; then | |
20805 | emacs_cv_langinfo_codeset=yes | |
20806 | else | |
20807 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20808 | sed 's/^/| /' conftest.$ac_ext >&5 |
20809 | ||
6a3a24fa JD |
20810 | emacs_cv_langinfo_codeset=no |
20811 | fi | |
35996d22 AS |
20812 | rm -f conftest.err conftest.$ac_objext \ |
20813 | conftest$ac_exeext conftest.$ac_ext | |
6a3a24fa JD |
20814 | |
20815 | fi | |
20816 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
20817 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
20818 | if test $emacs_cv_langinfo_codeset = yes; then | |
20819 | ||
20820 | cat >>confdefs.h <<\_ACEOF | |
20821 | #define HAVE_LANGINFO_CODESET 1 | |
20822 | _ACEOF | |
20823 | ||
20824 | fi | |
20825 | ||
c0d27fcc | 20826 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
20827 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
20828 | if test "${ac_cv_type_size_t+set}" = set; then | |
20829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 20830 | else |
503d2be0 | 20831 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20832 | /* confdefs.h. */ |
20833 | _ACEOF | |
20834 | cat confdefs.h >>conftest.$ac_ext | |
20835 | cat >>conftest.$ac_ext <<_ACEOF | |
20836 | /* end confdefs.h. */ | |
503d2be0 AS |
20837 | $ac_includes_default |
20838 | int | |
20839 | main () | |
20840 | { | |
20841 | if ((size_t *) 0) | |
20842 | return 0; | |
20843 | if (sizeof (size_t)) | |
20844 | return 0; | |
20845 | ; | |
20846 | return 0; | |
20847 | } | |
20848 | _ACEOF | |
20849 | rm -f conftest.$ac_objext | |
c0d27fcc | 20850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20851 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20852 | ac_status=$? |
35996d22 AS |
20853 | grep -v '^ *+' conftest.er1 >conftest.err |
20854 | rm -f conftest.er1 | |
20855 | cat conftest.err >&5 | |
c0d27fcc | 20856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20857 | (exit $ac_status); } && |
35996d22 AS |
20858 | { ac_try='test -z "$ac_c_werror_flag" |
20859 | || test ! -s conftest.err' | |
20860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20861 | (eval $ac_try) 2>&5 | |
20862 | ac_status=$? | |
20863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20864 | (exit $ac_status); }; } && | |
20865 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20867 | (eval $ac_try) 2>&5 |
20868 | ac_status=$? | |
c0d27fcc | 20869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20870 | (exit $ac_status); }; }; then |
8730a8da DL |
20871 | ac_cv_type_size_t=yes |
20872 | else | |
503d2be0 | 20873 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20874 | sed 's/^/| /' conftest.$ac_ext >&5 |
20875 | ||
503d2be0 | 20876 | ac_cv_type_size_t=no |
8730a8da | 20877 | fi |
35996d22 | 20878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8730a8da | 20879 | fi |
c0d27fcc | 20880 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
20881 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
20882 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 20883 | |
c0d27fcc MR |
20884 | cat >>confdefs.h <<_ACEOF |
20885 | #define HAVE_SIZE_T 1 | |
20886 | _ACEOF | |
20887 | ||
8730a8da DL |
20888 | |
20889 | fi | |
20890 | ||
c0d27fcc | 20891 | |
973a76b1 DL |
20892 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
20893 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
20894 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
20895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20896 | else | |
20897 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20898 | /* confdefs.h. */ |
20899 | _ACEOF | |
20900 | cat confdefs.h >>conftest.$ac_ext | |
20901 | cat >>conftest.$ac_ext <<_ACEOF | |
20902 | /* end confdefs.h. */ | |
973a76b1 DL |
20903 | $ac_includes_default |
20904 | # include <wchar.h> | |
20905 | int | |
20906 | main () | |
20907 | { | |
20908 | mbstate_t x; return sizeof x; | |
20909 | ; | |
20910 | return 0; | |
20911 | } | |
20912 | _ACEOF | |
20913 | rm -f conftest.$ac_objext | |
20914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20915 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 20916 | ac_status=$? |
35996d22 AS |
20917 | grep -v '^ *+' conftest.er1 >conftest.err |
20918 | rm -f conftest.er1 | |
20919 | cat conftest.err >&5 | |
973a76b1 DL |
20920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20921 | (exit $ac_status); } && | |
35996d22 AS |
20922 | { ac_try='test -z "$ac_c_werror_flag" |
20923 | || test ! -s conftest.err' | |
20924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20925 | (eval $ac_try) 2>&5 | |
20926 | ac_status=$? | |
20927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20928 | (exit $ac_status); }; } && | |
20929 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
20930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20931 | (eval $ac_try) 2>&5 | |
20932 | ac_status=$? | |
20933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20934 | (exit $ac_status); }; }; then | |
20935 | ac_cv_type_mbstate_t=yes | |
20936 | else | |
20937 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20938 | sed 's/^/| /' conftest.$ac_ext >&5 |
20939 | ||
973a76b1 DL |
20940 | ac_cv_type_mbstate_t=no |
20941 | fi | |
35996d22 | 20942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
20943 | fi |
20944 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
20945 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
20946 | if test $ac_cv_type_mbstate_t = yes; then | |
20947 | ||
20948 | cat >>confdefs.h <<\_ACEOF | |
20949 | #define HAVE_MBSTATE_T 1 | |
20950 | _ACEOF | |
20951 | ||
20952 | else | |
20953 | ||
20954 | cat >>confdefs.h <<\_ACEOF | |
20955 | #define mbstate_t int | |
20956 | _ACEOF | |
20957 | ||
20958 | fi | |
20959 | ||
22044edf DL |
20960 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
20961 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
20962 | if test "${emacs_cv_c_restrict+set}" = set; then | |
20963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20964 | else | |
20965 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20966 | /* confdefs.h. */ |
20967 | _ACEOF | |
20968 | cat confdefs.h >>conftest.$ac_ext | |
20969 | cat >>conftest.$ac_ext <<_ACEOF | |
20970 | /* end confdefs.h. */ | |
22044edf DL |
20971 | void fred (int *restrict x); |
20972 | int | |
20973 | main () | |
20974 | { | |
b936fae4 | 20975 | |
22044edf DL |
20976 | ; |
20977 | return 0; | |
20978 | } | |
c0d27fcc | 20979 | _ACEOF |
22044edf DL |
20980 | rm -f conftest.$ac_objext |
20981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20982 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 20983 | ac_status=$? |
35996d22 AS |
20984 | grep -v '^ *+' conftest.er1 >conftest.err |
20985 | rm -f conftest.er1 | |
20986 | cat conftest.err >&5 | |
22044edf DL |
20987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20988 | (exit $ac_status); } && | |
35996d22 AS |
20989 | { ac_try='test -z "$ac_c_werror_flag" |
20990 | || test ! -s conftest.err' | |
20991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20992 | (eval $ac_try) 2>&5 | |
20993 | ac_status=$? | |
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20995 | (exit $ac_status); }; } && | |
20996 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
20997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20998 | (eval $ac_try) 2>&5 | |
20999 | ac_status=$? | |
21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21001 | (exit $ac_status); }; }; then | |
21002 | emacs_cv_c_restrict=yes | |
21003 | else | |
21004 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21005 | sed 's/^/| /' conftest.$ac_ext >&5 |
21006 | ||
22044edf | 21007 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21008 | /* confdefs.h. */ |
21009 | _ACEOF | |
21010 | cat confdefs.h >>conftest.$ac_ext | |
21011 | cat >>conftest.$ac_ext <<_ACEOF | |
21012 | /* end confdefs.h. */ | |
22044edf DL |
21013 | void fred (int *__restrict x); |
21014 | int | |
21015 | main () | |
21016 | { | |
c0d27fcc | 21017 | |
22044edf DL |
21018 | ; |
21019 | return 0; | |
21020 | } | |
c0d27fcc | 21021 | _ACEOF |
22044edf DL |
21022 | rm -f conftest.$ac_objext |
21023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21024 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21025 | ac_status=$? |
35996d22 AS |
21026 | grep -v '^ *+' conftest.er1 >conftest.err |
21027 | rm -f conftest.er1 | |
21028 | cat conftest.err >&5 | |
22044edf DL |
21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21030 | (exit $ac_status); } && | |
35996d22 AS |
21031 | { ac_try='test -z "$ac_c_werror_flag" |
21032 | || test ! -s conftest.err' | |
21033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21034 | (eval $ac_try) 2>&5 | |
21035 | ac_status=$? | |
21036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21037 | (exit $ac_status); }; } && | |
21038 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21040 | (eval $ac_try) 2>&5 | |
21041 | ac_status=$? | |
21042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21043 | (exit $ac_status); }; }; then | |
21044 | emacs_cv_c_restrict=__restrict | |
21045 | else | |
21046 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21047 | sed 's/^/| /' conftest.$ac_ext >&5 |
21048 | ||
22044edf | 21049 | emacs_cv_c_restrict=no |
ba4481b5 | 21050 | fi |
35996d22 | 21051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21052 | fi |
35996d22 | 21053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21054 | fi |
22044edf DL |
21055 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
21056 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
21057 | case "$emacs_cv_c_restrict" in | |
21058 | yes) emacs_restrict=restrict;; | |
21059 | no) emacs_restrict="";; | |
21060 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
21061 | esac | |
21062 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 21063 | |
22044edf DL |
21064 | cat >>confdefs.h <<_ACEOF |
21065 | #define __restrict $emacs_restrict | |
c0d27fcc | 21066 | _ACEOF |
ba4481b5 DL |
21067 | |
21068 | fi | |
ba4481b5 | 21069 | |
22044edf DL |
21070 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
21071 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
21072 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
21073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21074 | else | |
21075 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21076 | /* confdefs.h. */ |
21077 | _ACEOF | |
21078 | cat confdefs.h >>conftest.$ac_ext | |
21079 | cat >>conftest.$ac_ext <<_ACEOF | |
21080 | /* end confdefs.h. */ | |
22044edf DL |
21081 | void fred (int x[__restrict]); |
21082 | int | |
21083 | main () | |
21084 | { | |
b936fae4 | 21085 | |
22044edf DL |
21086 | ; |
21087 | return 0; | |
21088 | } | |
c0d27fcc | 21089 | _ACEOF |
22044edf DL |
21090 | rm -f conftest.$ac_objext |
21091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21092 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21093 | ac_status=$? |
35996d22 AS |
21094 | grep -v '^ *+' conftest.er1 >conftest.err |
21095 | rm -f conftest.er1 | |
21096 | cat conftest.err >&5 | |
22044edf DL |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21098 | (exit $ac_status); } && | |
35996d22 AS |
21099 | { ac_try='test -z "$ac_c_werror_flag" |
21100 | || test ! -s conftest.err' | |
21101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21102 | (eval $ac_try) 2>&5 | |
21103 | ac_status=$? | |
21104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21105 | (exit $ac_status); }; } && | |
21106 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21108 | (eval $ac_try) 2>&5 | |
21109 | ac_status=$? | |
21110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21111 | (exit $ac_status); }; }; then | |
21112 | emacs_cv_c_restrict_arr=yes | |
21113 | else | |
21114 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21115 | sed 's/^/| /' conftest.$ac_ext >&5 |
21116 | ||
22044edf | 21117 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 21118 | fi |
35996d22 | 21119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22044edf DL |
21120 | fi |
21121 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
21122 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
21123 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 21124 | |
c0d27fcc | 21125 | cat >>confdefs.h <<\_ACEOF |
22044edf | 21126 | #define __restrict_arr __restrict |
c0d27fcc | 21127 | _ACEOF |
ba4481b5 | 21128 | |
ba4481b5 DL |
21129 | fi |
21130 | ||
c0d27fcc | 21131 | |
c0d27fcc | 21132 | |
22044edf DL |
21133 | # Set up the CFLAGS for real compilation, so we can substitute it. |
21134 | CFLAGS="$REAL_CFLAGS" | |
21135 | CPPFLAGS="$REAL_CPPFLAGS" | |
21136 | ||
21137 | #### Find out which version of Emacs this is. | |
21138 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
21139 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
21140 | if test x"${version}" = x; then | |
21141 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
21142 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
21143 | { (exit 1); exit 1; }; } | |
21144 | fi | |
21145 | ||
21146 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
21147 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
21148 | ||
21149 | ||
21150 | ||
21151 | ||
21152 | ||
21153 | ||
21154 | ||
21155 | ||
21156 | ||
21157 | ||
21158 | ||
21159 | ||
21160 | ||
21161 | ||
21162 | ||
21163 | ||
21164 | ||
21165 | ||
21166 | ||
21167 | ||
21168 | ||
21169 | ||
21170 | ||
21171 | ||
21172 | ||
21173 | ||
21174 | ||
21175 | ||
21176 | ||
21177 | ||
21178 | ||
21179 | ||
6a3a24fa | 21180 | |
22044edf DL |
21181 | |
21182 | ||
21183 | cat >>confdefs.h <<_ACEOF | |
21184 | #define EMACS_CONFIGURATION "${canonical}" | |
21185 | _ACEOF | |
21186 | ||
21187 | ||
21188 | cat >>confdefs.h <<_ACEOF | |
21189 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
21190 | _ACEOF | |
21191 | ||
21192 | ||
21193 | cat >>confdefs.h <<_ACEOF | |
21194 | #define config_machfile "${machfile}" | |
21195 | _ACEOF | |
21196 | ||
21197 | ||
21198 | cat >>confdefs.h <<_ACEOF | |
21199 | #define config_opsysfile "${opsysfile}" | |
21200 | _ACEOF | |
21201 | ||
21202 | ||
21203 | cat >>confdefs.h <<_ACEOF | |
21204 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
21205 | _ACEOF | |
21206 | ||
21207 | ||
21208 | cat >>confdefs.h <<_ACEOF | |
21209 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
21210 | _ACEOF | |
21211 | ||
21212 | ||
21213 | cat >>confdefs.h <<_ACEOF | |
21214 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
21215 | _ACEOF | |
21216 | ||
21217 | ||
21218 | cat >>confdefs.h <<_ACEOF | |
21219 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
21220 | _ACEOF | |
21221 | ||
21222 | ||
21223 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
21224 | ||
21225 | cat >>confdefs.h <<\_ACEOF | |
21226 | #define HAVE_X_WINDOWS 1 | |
21227 | _ACEOF | |
21228 | ||
21229 | fi | |
21230 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
21231 | ||
21232 | cat >>confdefs.h <<\_ACEOF | |
21233 | #define USE_X_TOOLKIT 1 | |
21234 | _ACEOF | |
21235 | ||
21236 | fi | |
21237 | if test "${HAVE_X11}" = "yes" ; then | |
21238 | ||
21239 | cat >>confdefs.h <<\_ACEOF | |
21240 | #define HAVE_X11 1 | |
21241 | _ACEOF | |
21242 | ||
21243 | fi | |
21244 | if test "${HAVE_XFREE386}" = "yes" ; then | |
21245 | ||
21246 | cat >>confdefs.h <<\_ACEOF | |
21247 | #define HAVE_XFREE386 1 | |
21248 | _ACEOF | |
21249 | ||
21250 | fi | |
21251 | if test "${HAVE_MENUS}" = "yes" ; then | |
21252 | ||
21253 | cat >>confdefs.h <<\_ACEOF | |
21254 | #define HAVE_MENUS 1 | |
21255 | _ACEOF | |
21256 | ||
21257 | fi | |
21258 | if test "${GNU_MALLOC}" = "yes" ; then | |
21259 | ||
21260 | cat >>confdefs.h <<\_ACEOF | |
21261 | #define GNU_MALLOC 1 | |
21262 | _ACEOF | |
21263 | ||
21264 | fi | |
21265 | if test "${REL_ALLOC}" = "yes" ; then | |
21266 | ||
21267 | cat >>confdefs.h <<\_ACEOF | |
21268 | #define REL_ALLOC 1 | |
21269 | _ACEOF | |
21270 | ||
21271 | fi | |
21272 | ||
21273 | ||
21274 | ||
c0d27fcc MR |
21275 | |
21276 | ||
ba4481b5 | 21277 | #### Report on what we decided to do. |
488dd4c4 JD |
21278 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
21279 | #### It makes printing result more understandable as using GTK sets | |
21280 | #### toolkit_scroll_bars to yes by default. | |
21281 | if test "${HAVE_GTK}" = "yes"; then | |
21282 | USE_X_TOOLKIT=GTK | |
21283 | fi | |
21284 | ||
ba4481b5 DL |
21285 | echo " |
21286 | Configured for \`${canonical}'. | |
21287 | ||
21288 | Where should the build process find the source code? ${srcdir} | |
21289 | What operating system and machine description files should Emacs use? | |
21290 | \`${opsysfile}' and \`${machfile}' | |
21291 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
21292 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 21293 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 21294 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 21295 | What window system should Emacs use? ${window_system} |
8e967cf7 | 21296 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
21297 | |
21298 | if test -n "${x_includes}"; then | |
21299 | echo " Where do we find X Windows header files? ${x_includes}" | |
21300 | else | |
21301 | echo " Where do we find X Windows header files? Standard dirs" | |
21302 | fi | |
21303 | if test -n "${x_libraries}"; then | |
21304 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
21305 | else | |
21306 | echo " Where do we find X Windows libraries? Standard dirs" | |
21307 | fi | |
21308 | ||
21309 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
21310 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
21311 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
21312 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
21313 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
21314 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
21315 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
21316 | echo | |
21317 | ||
21318 | # Remove any trailing slashes in these variables. | |
21319 | test "${prefix}" != NONE && | |
21320 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21321 | test "${exec_prefix}" != NONE && | |
21322 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21323 | ||
d0e9bfd2 GM |
21324 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
21325 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
21326 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
21327 | ## C preprocessor. | |
21328 | ||
503d2be0 | 21329 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21330 | /* confdefs.h. */ |
21331 | _ACEOF | |
21332 | cat confdefs.h >>conftest.$ac_ext | |
21333 | cat >>conftest.$ac_ext <<_ACEOF | |
21334 | /* end confdefs.h. */ | |
d0e9bfd2 | 21335 | yes..yes |
503d2be0 | 21336 | _ACEOF |
d0e9bfd2 | 21337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 21338 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
21339 | CPP_NEED_TRADITIONAL=no |
21340 | else | |
d0e9bfd2 GM |
21341 | CPP_NEED_TRADITIONAL=yes |
21342 | fi | |
21343 | rm -f conftest* | |
21344 | ||
c0d27fcc | 21345 | |
6bae0ccf DL |
21346 | 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" |
21347 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 21348 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
21349 | # This file is a shell script that caches the results of configure |
21350 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
21351 | # scripts and configure runs, see configure's option --config-cache. |
21352 | # It is not useful on other systems. If it contains results you don't | |
21353 | # want to keep, you may remove or edit it. | |
ba4481b5 | 21354 | # |
503d2be0 AS |
21355 | # config.status only pays attention to the cache file if you give it |
21356 | # the --recheck option to rerun configure. | |
ba4481b5 | 21357 | # |
6bae0ccf | 21358 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
21359 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21360 | # following values. | |
21361 | ||
21362 | _ACEOF | |
21363 | ||
ba4481b5 DL |
21364 | # The following way of writing the cache mishandles newlines in values, |
21365 | # but we know of no workaround that is simple, portable, and efficient. | |
21366 | # So, don't put newlines in cache variables' values. | |
21367 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21368 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
21369 | { |
21370 | (set) 2>&1 | | |
21371 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21372 | *ac_space=\ *) | |
21373 | # `set' does not quote correctly, so add quotes (double-quote | |
21374 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21375 | sed -n \ | |
35996d22 AS |
21376 | "s/'/'\\\\''/g; |
21377 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
503d2be0 AS |
21378 | ;; |
21379 | *) | |
21380 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21381 | sed -n \ | |
35996d22 | 21382 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
21383 | ;; |
21384 | esac; | |
21385 | } | | |
21386 | sed ' | |
21387 | t clear | |
21388 | : clear | |
21389 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21390 | t end | |
21391 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21392 | : end' >>confcache | |
19650fd6 | 21393 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 21394 | if test -w $cache_file; then |
503d2be0 AS |
21395 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
21396 | cat confcache >$cache_file | |
ba4481b5 DL |
21397 | else |
21398 | echo "not updating unwritable cache $cache_file" | |
21399 | fi | |
21400 | fi | |
21401 | rm -f confcache | |
21402 | ||
ba4481b5 DL |
21403 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21404 | # Let make expand exec_prefix. | |
21405 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21406 | ||
503d2be0 AS |
21407 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21408 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21409 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21410 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 21411 | if test "x$srcdir" = x.; then |
35996d22 | 21412 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
503d2be0 AS |
21413 | s/:*\$(srcdir):*/:/; |
21414 | s/:*\${srcdir}:*/:/; | |
21415 | s/:*@srcdir@:*/:/; | |
35996d22 | 21416 | s/^\([^=]*=[ ]*\):*/\1/; |
503d2be0 | 21417 | s/:*$//; |
35996d22 | 21418 | s/^[^=]*=[ ]*$//; |
503d2be0 | 21419 | }' |
ba4481b5 DL |
21420 | fi |
21421 | ||
ba4481b5 DL |
21422 | DEFS=-DHAVE_CONFIG_H |
21423 | ||
6bae0ccf DL |
21424 | ac_libobjs= |
21425 | ac_ltlibobjs= | |
21426 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21427 | # 1. Remove the extension, and $U if already installed. | |
21428 | ac_i=`echo "$ac_i" | | |
35996d22 | 21429 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6bae0ccf DL |
21430 | # 2. Add them. |
21431 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21432 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21433 | done | |
21434 | LIBOBJS=$ac_libobjs | |
21435 | ||
21436 | LTLIBOBJS=$ac_ltlibobjs | |
21437 | ||
21438 | ||
c0d27fcc | 21439 | |
ba4481b5 | 21440 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
21441 | ac_clean_files_save=$ac_clean_files |
21442 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 21443 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
21444 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21445 | cat >$CONFIG_STATUS <<_ACEOF | |
21446 | #! $SHELL | |
c0d27fcc | 21447 | # Generated by $as_me. |
ba4481b5 | 21448 | # Run this file to recreate the current configuration. |
ba4481b5 | 21449 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 21450 | # configure, is in config.log if it exists. |
ba4481b5 | 21451 | |
503d2be0 | 21452 | debug=false |
19650fd6 AS |
21453 | ac_cs_recheck=false |
21454 | ac_cs_silent=false | |
503d2be0 | 21455 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
21456 | _ACEOF |
21457 | ||
21458 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
21459 | ## --------------------- ## |
21460 | ## M4sh Initialization. ## | |
21461 | ## --------------------- ## | |
21462 | ||
503d2be0 AS |
21463 | # Be Bourne compatible |
21464 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21465 | emulate sh | |
21466 | NULLCMD=: | |
6bae0ccf DL |
21467 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21468 | # is contrary to our usage. Disable this feature. | |
21469 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
21470 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21471 | set -o posix | |
21472 | fi | |
35996d22 | 21473 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 21474 | |
c0d27fcc | 21475 | # Support unset when possible. |
35996d22 | 21476 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
21477 | as_unset=unset |
21478 | else | |
21479 | as_unset=false | |
21480 | fi | |
21481 | ||
6bae0ccf DL |
21482 | |
21483 | # Work around bugs in pre-3.0 UWIN ksh. | |
21484 | $as_unset ENV MAIL MAILPATH | |
21485 | PS1='$ ' | |
21486 | PS2='> ' | |
21487 | PS4='+ ' | |
21488 | ||
21489 | # NLS nuisances. | |
19650fd6 AS |
21490 | for as_var in \ |
21491 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21492 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21493 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 21494 | do |
35996d22 | 21495 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
21496 | eval $as_var=C; export $as_var |
21497 | else | |
21498 | $as_unset $as_var | |
21499 | fi | |
21500 | done | |
21501 | ||
21502 | # Required to use basename. | |
21503 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21504 | as_expr=expr | |
21505 | else | |
21506 | as_expr=false | |
21507 | fi | |
21508 | ||
21509 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21510 | as_basename=basename | |
21511 | else | |
21512 | as_basename=false | |
21513 | fi | |
c0d27fcc MR |
21514 | |
21515 | ||
503d2be0 | 21516 | # Name of the executable. |
6bae0ccf | 21517 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
21518 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21519 | X"$0" : 'X\(//\)$' \| \ | |
21520 | X"$0" : 'X\(/\)$' \| \ | |
21521 | . : '\(.\)' 2>/dev/null || | |
21522 | echo X/"$0" | | |
21523 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21524 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21525 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21526 | s/.*/./; q'` | |
21527 | ||
6bae0ccf | 21528 | |
c0d27fcc MR |
21529 | # PATH needs CR, and LINENO needs CR and PATH. |
21530 | # Avoid depending upon Character Ranges. | |
21531 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21532 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21533 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21534 | as_cr_digits='0123456789' | |
21535 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21536 | ||
21537 | # The user is always right. | |
21538 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
21539 | echo "#! /bin/sh" >conf$$.sh |
21540 | echo "exit 0" >>conf$$.sh | |
21541 | chmod +x conf$$.sh | |
21542 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
21543 | PATH_SEPARATOR=';' |
21544 | else | |
21545 | PATH_SEPARATOR=: | |
21546 | fi | |
19650fd6 | 21547 | rm -f conf$$.sh |
c0d27fcc MR |
21548 | fi |
21549 | ||
21550 | ||
21551 | as_lineno_1=$LINENO | |
21552 | as_lineno_2=$LINENO | |
21553 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21554 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21555 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21556 | # Find who we are. Look in the path if we contain no path at all | |
21557 | # relative or not. | |
21558 | case $0 in | |
21559 | *[\\/]* ) as_myself=$0 ;; | |
21560 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21561 | for as_dir in $PATH | |
21562 | do | |
21563 | IFS=$as_save_IFS | |
21564 | test -z "$as_dir" && as_dir=. | |
21565 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21566 | done | |
21567 | ||
21568 | ;; | |
21569 | esac | |
21570 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21571 | # in which case we are not to be found in the path. | |
21572 | if test "x$as_myself" = x; then | |
21573 | as_myself=$0 | |
21574 | fi | |
21575 | if test ! -f "$as_myself"; then | |
21576 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21577 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21578 | { (exit 1); exit 1; }; } | |
21579 | fi | |
21580 | case $CONFIG_SHELL in | |
21581 | '') | |
21582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21583 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21584 | do | |
21585 | IFS=$as_save_IFS | |
21586 | test -z "$as_dir" && as_dir=. | |
21587 | for as_base in sh bash ksh sh5; do | |
21588 | case $as_dir in | |
21589 | /*) | |
21590 | if ("$as_dir/$as_base" -c ' | |
21591 | as_lineno_1=$LINENO | |
21592 | as_lineno_2=$LINENO | |
21593 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21594 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21595 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
21596 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
21597 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
21598 | CONFIG_SHELL=$as_dir/$as_base |
21599 | export CONFIG_SHELL | |
21600 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21601 | fi;; | |
21602 | esac | |
21603 | done | |
21604 | done | |
21605 | ;; | |
21606 | esac | |
21607 | ||
21608 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21609 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21610 | # line-number line before each line; the second 'sed' does the real | |
21611 | # work. The second script uses 'N' to pair each line-number line | |
21612 | # with the numbered line, and appends trailing '-' during | |
21613 | # substitution so that $LINENO is not a special case at line end. | |
21614 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21615 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21616 | sed '=' <$as_myself | | |
21617 | sed ' | |
21618 | N | |
21619 | s,$,-, | |
21620 | : loop | |
21621 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21622 | t loop | |
21623 | s,-$,, | |
21624 | s,^['$as_cr_digits']*\n,, | |
21625 | ' >$as_me.lineno && | |
21626 | chmod +x $as_me.lineno || | |
21627 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21628 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21629 | { (exit 1); exit 1; }; } | |
21630 | ||
21631 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21632 | # (the dirname of $[0] is not the place where we might find the | |
21633 | # original and so on. Autoconf is especially sensible to this). | |
21634 | . ./$as_me.lineno | |
21635 | # Exit status is that of the last command. | |
21636 | exit | |
21637 | } | |
21638 | ||
21639 | ||
21640 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21641 | *c*,-n*) ECHO_N= ECHO_C=' | |
21642 | ' ECHO_T=' ' ;; | |
21643 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21644 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21645 | esac | |
503d2be0 AS |
21646 | |
21647 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21648 | as_expr=expr | |
21649 | else | |
21650 | as_expr=false | |
21651 | fi | |
21652 | ||
21653 | rm -f conf$$ conf$$.exe conf$$.file | |
21654 | echo >conf$$.file | |
21655 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21656 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21657 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21658 | if test -f conf$$.exe; then | |
21659 | # Don't use ln at all; we don't have any links | |
21660 | as_ln_s='cp -p' | |
21661 | else | |
21662 | as_ln_s='ln -s' | |
21663 | fi | |
21664 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21665 | as_ln_s=ln | |
21666 | else | |
21667 | as_ln_s='cp -p' | |
21668 | fi | |
21669 | rm -f conf$$ conf$$.exe conf$$.file | |
21670 | ||
6bae0ccf DL |
21671 | if mkdir -p . 2>/dev/null; then |
21672 | as_mkdir_p=: | |
21673 | else | |
35996d22 | 21674 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
21675 | as_mkdir_p=false |
21676 | fi | |
21677 | ||
503d2be0 AS |
21678 | as_executable_p="test -f" |
21679 | ||
c0d27fcc | 21680 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 21681 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
21682 | |
21683 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 21684 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 21685 | |
503d2be0 AS |
21686 | |
21687 | # IFS | |
21688 | # We need space, tab and new line, in precisely that order. | |
21689 | as_nl=' | |
21690 | ' | |
21691 | IFS=" $as_nl" | |
21692 | ||
21693 | # CDPATH. | |
6bae0ccf | 21694 | $as_unset CDPATH |
503d2be0 AS |
21695 | |
21696 | exec 6>&1 | |
21697 | ||
c0d27fcc MR |
21698 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
21699 | # report actual input values of CONFIG_FILES etc. instead of their | |
21700 | # values after options handling. Logging --version etc. is OK. | |
21701 | exec 5>>config.log | |
21702 | { | |
21703 | echo | |
21704 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21705 | ## Running $as_me. ## | |
21706 | _ASBOX | |
21707 | } >&5 | |
21708 | cat >&5 <<_CSEOF | |
21709 | ||
21710 | This file was extended by $as_me, which was | |
35996d22 | 21711 | generated by GNU Autoconf 2.59. Invocation command line was |
c0d27fcc MR |
21712 | |
21713 | CONFIG_FILES = $CONFIG_FILES | |
21714 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21715 | CONFIG_LINKS = $CONFIG_LINKS | |
21716 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21717 | $ $0 $@ | |
21718 | ||
21719 | _CSEOF | |
21720 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21721 | echo >&5 | |
503d2be0 AS |
21722 | _ACEOF |
21723 | ||
21724 | # Files that config.status was made for. | |
21725 | if test -n "$ac_config_files"; then | |
21726 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21727 | fi | |
21728 | ||
21729 | if test -n "$ac_config_headers"; then | |
21730 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21731 | fi | |
21732 | ||
21733 | if test -n "$ac_config_links"; then | |
21734 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21735 | fi | |
21736 | ||
21737 | if test -n "$ac_config_commands"; then | |
21738 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21739 | fi | |
21740 | ||
c0d27fcc | 21741 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21742 | |
21743 | ac_cs_usage="\ | |
21744 | \`$as_me' instantiates files from templates according to the | |
21745 | current configuration. | |
21746 | ||
21747 | Usage: $0 [OPTIONS] [FILE]... | |
21748 | ||
21749 | -h, --help print this help, then exit | |
21750 | -V, --version print version number, then exit | |
19650fd6 | 21751 | -q, --quiet do not print progress messages |
503d2be0 AS |
21752 | -d, --debug don't remove temporary files |
21753 | --recheck update $as_me by reconfiguring in the same conditions | |
21754 | --file=FILE[:TEMPLATE] | |
35996d22 | 21755 | instantiate the configuration file FILE |
503d2be0 | 21756 | --header=FILE[:TEMPLATE] |
35996d22 | 21757 | instantiate the configuration header FILE |
503d2be0 AS |
21758 | |
21759 | Configuration files: | |
21760 | $config_files | |
21761 | ||
21762 | Configuration headers: | |
21763 | $config_headers | |
21764 | ||
21765 | Configuration commands: | |
21766 | $config_commands | |
21767 | ||
21768 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 21769 | _ACEOF |
503d2be0 | 21770 | |
c0d27fcc | 21771 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21772 | ac_cs_version="\\ |
21773 | config.status | |
35996d22 | 21774 | configured by $0, generated by GNU Autoconf 2.59, |
503d2be0 AS |
21775 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
21776 | ||
35996d22 | 21777 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
21778 | This config.status script is free software; the Free Software Foundation |
21779 | gives unlimited permission to copy, distribute and modify it." | |
21780 | srcdir=$srcdir | |
21781 | INSTALL="$INSTALL" | |
c0d27fcc | 21782 | _ACEOF |
503d2be0 | 21783 | |
c0d27fcc | 21784 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21785 | # If no file are specified by the user, then we need to provide default |
21786 | # value. By we need to know if files were specified by the user. | |
21787 | ac_need_defaults=: | |
21788 | while test $# != 0 | |
ba4481b5 | 21789 | do |
503d2be0 AS |
21790 | case $1 in |
21791 | --*=*) | |
21792 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21793 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
21794 | ac_shift=: |
21795 | ;; | |
21796 | -*) | |
21797 | ac_option=$1 | |
21798 | ac_optarg=$2 | |
21799 | ac_shift=shift | |
503d2be0 | 21800 | ;; |
503d2be0 AS |
21801 | *) # This is not an option, so the user has probably given explicit |
21802 | # arguments. | |
6bae0ccf | 21803 | ac_option=$1 |
503d2be0 AS |
21804 | ac_need_defaults=false;; |
21805 | esac | |
21806 | ||
6bae0ccf | 21807 | case $ac_option in |
503d2be0 | 21808 | # Handling of the options. |
c0d27fcc | 21809 | _ACEOF |
f57bd967 | 21810 | cat >>$CONFIG_STATUS <<\_ACEOF |
19650fd6 AS |
21811 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21812 | ac_cs_recheck=: ;; | |
503d2be0 AS |
21813 | --version | --vers* | -V ) |
21814 | echo "$ac_cs_version"; exit 0 ;; | |
21815 | --he | --h) | |
21816 | # Conflict between --help and --header | |
c0d27fcc | 21817 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
21818 | Try \`$0 --help' for more information." >&5 |
21819 | echo "$as_me: error: ambiguous option: $1 | |
21820 | Try \`$0 --help' for more information." >&2;} | |
21821 | { (exit 1); exit 1; }; };; | |
21822 | --help | --hel | -h ) | |
21823 | echo "$ac_cs_usage"; exit 0 ;; | |
21824 | --debug | --d* | -d ) | |
21825 | debug=: ;; | |
21826 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
21827 | $ac_shift |
21828 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
21829 | ac_need_defaults=false;; |
21830 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
21831 | $ac_shift |
21832 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 21833 | ac_need_defaults=false;; |
19650fd6 AS |
21834 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21835 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21836 | ac_cs_silent=: ;; | |
503d2be0 AS |
21837 | |
21838 | # This is an error. | |
c0d27fcc | 21839 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
21840 | Try \`$0 --help' for more information." >&5 |
21841 | echo "$as_me: error: unrecognized option: $1 | |
21842 | Try \`$0 --help' for more information." >&2;} | |
21843 | { (exit 1); exit 1; }; } ;; | |
21844 | ||
21845 | *) ac_config_targets="$ac_config_targets $1" ;; | |
21846 | ||
ba4481b5 | 21847 | esac |
503d2be0 | 21848 | shift |
ba4481b5 DL |
21849 | done |
21850 | ||
19650fd6 AS |
21851 | ac_configure_extra_args= |
21852 | ||
21853 | if $ac_cs_silent; then | |
21854 | exec 6>/dev/null | |
21855 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21856 | fi | |
21857 | ||
21858 | _ACEOF | |
21859 | cat >>$CONFIG_STATUS <<_ACEOF | |
21860 | if \$ac_cs_recheck; then | |
21861 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21862 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21863 | fi | |
21864 | ||
503d2be0 | 21865 | _ACEOF |
ba4481b5 | 21866 | |
c0d27fcc | 21867 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21868 | # |
21869 | # INIT-COMMANDS section. | |
21870 | # | |
ba4481b5 | 21871 | |
503d2be0 AS |
21872 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
21873 | ||
c0d27fcc MR |
21874 | _ACEOF |
21875 | ||
503d2be0 | 21876 | |
c0d27fcc MR |
21877 | |
21878 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
21879 | for ac_config_target in $ac_config_targets |
21880 | do | |
21881 | case "$ac_config_target" in | |
21882 | # Handling of arguments. | |
21883 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21884 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
21885 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
21886 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
21887 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
21888 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
21889 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 21890 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 21891 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
21892 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
21893 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
21894 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 21895 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
21896 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21897 | { (exit 1); exit 1; }; };; | |
21898 | esac | |
ba4481b5 | 21899 | done |
503d2be0 AS |
21900 | |
21901 | # If the user did not use the arguments to specify the items to instantiate, | |
21902 | # then the envvar interface is used. Set only those that are not. | |
21903 | # We use the long form for the default assignment because of an extremely | |
21904 | # bizarre bug on SunOS 4.1.3. | |
21905 | if $ac_need_defaults; then | |
21906 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21907 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21908 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 21909 | fi |
503d2be0 | 21910 | |
19650fd6 AS |
21911 | # Have a temporary directory for convenience. Make it in the build tree |
21912 | # simply because there is no reason to put it here, and in addition, | |
21913 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
21914 | # Create a temporary directory, and hook for its removal unless debugging. |
21915 | $debug || | |
21916 | { | |
21917 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21918 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21919 | } | |
21920 | ||
21921 | # Create a (secure) tmp directory for tmp files. | |
19650fd6 | 21922 | |
503d2be0 | 21923 | { |
19650fd6 | 21924 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
21925 | test -n "$tmp" && test -d "$tmp" |
21926 | } || | |
21927 | { | |
19650fd6 | 21928 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
21929 | (umask 077 && mkdir $tmp) |
21930 | } || | |
21931 | { | |
19650fd6 | 21932 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
21933 | { (exit 1); exit 1; } |
21934 | } | |
21935 | ||
c0d27fcc | 21936 | _ACEOF |
503d2be0 | 21937 | |
c0d27fcc | 21938 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21939 | |
21940 | # | |
21941 | # CONFIG_FILES section. | |
21942 | # | |
21943 | ||
21944 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21945 | # This happens for instance when ./config.status config.h | |
21946 | if test -n "\$CONFIG_FILES"; then | |
21947 | # Protect against being on the right side of a sed subst in config.status. | |
21948 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21949 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21950 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
21951 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
21952 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21953 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21954 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21955 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21956 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
21957 | s,@exec_prefix@,$exec_prefix,;t t |
21958 | s,@prefix@,$prefix,;t t | |
21959 | s,@program_transform_name@,$program_transform_name,;t t | |
21960 | s,@bindir@,$bindir,;t t | |
21961 | s,@sbindir@,$sbindir,;t t | |
21962 | s,@libexecdir@,$libexecdir,;t t | |
21963 | s,@datadir@,$datadir,;t t | |
21964 | s,@sysconfdir@,$sysconfdir,;t t | |
21965 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21966 | s,@localstatedir@,$localstatedir,;t t | |
21967 | s,@libdir@,$libdir,;t t | |
21968 | s,@includedir@,$includedir,;t t | |
21969 | s,@oldincludedir@,$oldincludedir,;t t | |
21970 | s,@infodir@,$infodir,;t t | |
21971 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
21972 | s,@build_alias@,$build_alias,;t t |
21973 | s,@host_alias@,$host_alias,;t t | |
21974 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 21975 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
21976 | s,@ECHO_C@,$ECHO_C,;t t |
21977 | s,@ECHO_N@,$ECHO_N,;t t | |
21978 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 | 21979 | s,@LIBS@,$LIBS,;t t |
19650fd6 | 21980 | s,@MAINT@,$MAINT,;t t |
503d2be0 AS |
21981 | s,@build@,$build,;t t |
21982 | s,@build_cpu@,$build_cpu,;t t | |
21983 | s,@build_vendor@,$build_vendor,;t t | |
21984 | s,@build_os@,$build_os,;t t | |
21985 | s,@host@,$host,;t t | |
21986 | s,@host_cpu@,$host_cpu,;t t | |
21987 | s,@host_vendor@,$host_vendor,;t t | |
21988 | s,@host_os@,$host_os,;t t | |
21989 | s,@CC@,$CC,;t t | |
21990 | s,@CFLAGS@,$CFLAGS,;t t | |
21991 | s,@LDFLAGS@,$LDFLAGS,;t t | |
21992 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
21993 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
21994 | s,@EXEEXT@,$EXEEXT,;t t | |
21995 | s,@OBJEXT@,$OBJEXT,;t t | |
21996 | s,@LN_S@,$LN_S,;t t | |
21997 | s,@CPP@,$CPP,;t t | |
21998 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
21999 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22000 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
22001 | s,@RANLIB@,$RANLIB,;t t |
22002 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 22003 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 22004 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
22005 | s,@LIBSOUND@,$LIBSOUND,;t t |
22006 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
22007 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
22008 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
22009 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
22010 | s,@ALLOCA@,$ALLOCA,;t t |
22011 | s,@liblockfile@,$liblockfile,;t t | |
22012 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22013 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
22014 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
22015 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
22016 | s,@version@,$version,;t t | |
22017 | s,@configuration@,$configuration,;t t | |
22018 | s,@canonical@,$canonical,;t t | |
22019 | s,@srcdir@,$srcdir,;t t | |
22020 | s,@lispdir@,$lispdir,;t t | |
22021 | s,@locallisppath@,$locallisppath,;t t | |
22022 | s,@lisppath@,$lisppath,;t t | |
22023 | s,@x_default_search_path@,$x_default_search_path,;t t | |
22024 | s,@etcdir@,$etcdir,;t t | |
22025 | s,@archlibdir@,$archlibdir,;t t | |
22026 | s,@docdir@,$docdir,;t t | |
22027 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
22028 | s,@gamedir@,$gamedir,;t t |
22029 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
22030 | s,@c_switch_system@,$c_switch_system,;t t |
22031 | s,@c_switch_machine@,$c_switch_machine,;t t | |
22032 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
22033 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
22034 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
22035 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
22036 | s,@machfile@,$machfile,;t t | |
22037 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 22038 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 22039 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
22040 | CEOF |
22041 | ||
c0d27fcc | 22042 | _ACEOF |
ba4481b5 | 22043 | |
c0d27fcc | 22044 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22045 | # Split the substitutions into bite-sized pieces for seds with |
22046 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22047 | ac_max_sed_lines=48 | |
22048 | ac_sed_frag=1 # Number of current file. | |
22049 | ac_beg=1 # First line for current file. | |
22050 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22051 | ac_more_lines=: | |
22052 | ac_sed_cmds= | |
22053 | while $ac_more_lines; do | |
22054 | if test $ac_beg -gt 1; then | |
22055 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22056 | else | |
22057 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22058 | fi | |
22059 | if test ! -s $tmp/subs.frag; then | |
22060 | ac_more_lines=false | |
22061 | else | |
22062 | # The purpose of the label and of the branching condition is to | |
22063 | # speed up the sed processing (if there are no `@' at all, there | |
22064 | # is no need to browse any of the substitutions). | |
22065 | # These are the two extra sed commands mentioned above. | |
22066 | (echo ':t | |
22067 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22068 | if test -z "$ac_sed_cmds"; then | |
35996d22 | 22069 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 | 22070 | else |
35996d22 | 22071 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 AS |
22072 | fi |
22073 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22074 | ac_beg=$ac_end | |
22075 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22076 | fi | |
22077 | done | |
22078 | if test -z "$ac_sed_cmds"; then | |
22079 | ac_sed_cmds=cat | |
22080 | fi | |
22081 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 22082 | |
c0d27fcc MR |
22083 | _ACEOF |
22084 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 22085 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 22086 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22087 | case $ac_file in |
22088 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22089 | cat >$tmp/stdin |
22090 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22091 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22092 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22093 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22094 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22095 | esac |
22096 | ||
503d2be0 | 22097 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
22098 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22099 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22100 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22101 | X"$ac_file" : 'X\(//\)$' \| \ | |
22102 | X"$ac_file" : 'X\(/\)' \| \ | |
22103 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22104 | echo X"$ac_file" | |
22105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22106 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22107 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22108 | /^X\(\/\).*/{ s//\1/; q; } | |
22109 | s/.*/./; q'` | |
6bae0ccf DL |
22110 | { if $as_mkdir_p; then |
22111 | mkdir -p "$ac_dir" | |
22112 | else | |
22113 | as_dir="$ac_dir" | |
22114 | as_dirs= | |
22115 | while test ! -d "$as_dir"; do | |
22116 | as_dirs="$as_dir $as_dirs" | |
22117 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22118 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22119 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22120 | X"$as_dir" : 'X\(//\)$' \| \ | |
22121 | X"$as_dir" : 'X\(/\)' \| \ | |
22122 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22123 | echo X"$as_dir" | |
22124 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22125 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22126 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22127 | /^X\(\/\).*/{ s//\1/; q; } | |
22128 | s/.*/./; q'` | |
22129 | done | |
22130 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22131 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22132 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22133 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22134 | |
c0d27fcc | 22135 | ac_builddir=. |
98418dba | 22136 | |
c0d27fcc MR |
22137 | if test "$ac_dir" != .; then |
22138 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22139 | # A "../" for each directory in $ac_dir_suffix. | |
22140 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22141 | else | |
22142 | ac_dir_suffix= ac_top_builddir= | |
22143 | fi | |
22144 | ||
22145 | case $srcdir in | |
22146 | .) # No --srcdir option. We are building in place. | |
22147 | ac_srcdir=. | |
22148 | if test -z "$ac_top_builddir"; then | |
22149 | ac_top_srcdir=. | |
22150 | else | |
22151 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22152 | fi ;; | |
22153 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22154 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22155 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 22156 | *) # Relative path. |
c0d27fcc MR |
22157 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22158 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22159 | esac | |
35996d22 AS |
22160 | |
22161 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22162 | # the directories may not exist. | |
22163 | case `pwd` in | |
22164 | .) ac_abs_builddir="$ac_dir";; | |
22165 | *) | |
22166 | case "$ac_dir" in | |
22167 | .) ac_abs_builddir=`pwd`;; | |
22168 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22169 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22170 | esac;; | |
22171 | esac | |
22172 | case $ac_abs_builddir in | |
22173 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22174 | *) | |
22175 | case ${ac_top_builddir}. in | |
22176 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22177 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22178 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22179 | esac;; | |
22180 | esac | |
22181 | case $ac_abs_builddir in | |
22182 | .) ac_abs_srcdir=$ac_srcdir;; | |
22183 | *) | |
22184 | case $ac_srcdir in | |
22185 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22186 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22187 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22188 | esac;; | |
22189 | esac | |
22190 | case $ac_abs_builddir in | |
22191 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22192 | *) | |
22193 | case $ac_top_srcdir in | |
22194 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22195 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22196 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22197 | esac;; | |
22198 | esac | |
c0d27fcc | 22199 | |
ba4481b5 | 22200 | |
503d2be0 AS |
22201 | case $INSTALL in |
22202 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 22203 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
22204 | esac |
22205 | ||
503d2be0 | 22206 | if test x"$ac_file" != x-; then |
c0d27fcc | 22207 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22208 | echo "$as_me: creating $ac_file" >&6;} |
22209 | rm -f "$ac_file" | |
22210 | fi | |
22211 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22212 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
22213 | # /* config.h. Generated by config.status. */ |
22214 | if test x"$ac_file" = x-; then | |
22215 | configure_input= | |
22216 | else | |
22217 | configure_input="$ac_file. " | |
22218 | fi | |
22219 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35996d22 | 22220 | sed 's,.*/,,'` by configure." |
503d2be0 AS |
22221 | |
22222 | # First look for the input files in the build tree, otherwise in the | |
22223 | # src tree. | |
22224 | ac_file_inputs=`IFS=: | |
22225 | for f in $ac_file_in; do | |
22226 | case $f in | |
22227 | -) echo $tmp/stdin ;; | |
22228 | [\\/$]*) | |
35996d22 AS |
22229 | # Absolute (can't be DOS-style, as IFS=:) |
22230 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22231 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22232 | { (exit 1); exit 1; }; } | |
35996d22 | 22233 | echo "$f";; |
503d2be0 | 22234 | *) # Relative |
35996d22 AS |
22235 | if test -f "$f"; then |
22236 | # Build tree | |
22237 | echo "$f" | |
22238 | elif test -f "$srcdir/$f"; then | |
22239 | # Source tree | |
22240 | echo "$srcdir/$f" | |
22241 | else | |
22242 | # /dev/null tree | |
22243 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22244 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22245 | { (exit 1); exit 1; }; } | |
35996d22 | 22246 | fi;; |
503d2be0 AS |
22247 | esac |
22248 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
22249 | _ACEOF |
22250 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
22251 | sed "$ac_vpsub |
22252 | $extrasub | |
c0d27fcc MR |
22253 | _ACEOF |
22254 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22255 | :t |
22256 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22257 | s,@configure_input@,$configure_input,;t t | |
22258 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 22259 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 22260 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
22261 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
22262 | s,@builddir@,$ac_builddir,;t t | |
22263 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22264 | s,@top_builddir@,$ac_top_builddir,;t t | |
22265 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
22266 | s,@INSTALL@,$ac_INSTALL,;t t |
22267 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22268 | rm -f $tmp/stdin | |
22269 | if test x"$ac_file" != x-; then | |
22270 | mv $tmp/out $ac_file | |
22271 | else | |
22272 | cat $tmp/out | |
22273 | rm -f $tmp/out | |
22274 | fi | |
22275 | ||
22276 | done | |
c0d27fcc MR |
22277 | _ACEOF |
22278 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 22279 | |
503d2be0 AS |
22280 | # |
22281 | # CONFIG_HEADER section. | |
22282 | # | |
ba4481b5 DL |
22283 | |
22284 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22285 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22286 | # | |
22287 | # ac_d sets the value in "#define NAME VALUE" lines. | |
35996d22 AS |
22288 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22289 | ac_dB='[ ].*$,\1#\2' | |
503d2be0 AS |
22290 | ac_dC=' ' |
22291 | ac_dD=',;t' | |
22292 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35996d22 | 22293 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
503d2be0 | 22294 | ac_uB='$,\1#\2define\3' |
ba4481b5 | 22295 | ac_uC=' ' |
503d2be0 | 22296 | ac_uD=',;t' |
ba4481b5 | 22297 | |
503d2be0 | 22298 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 22299 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22300 | case $ac_file in |
22301 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22302 | cat >$tmp/stdin |
22303 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22304 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22305 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22306 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22307 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22308 | esac |
22309 | ||
c0d27fcc | 22310 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22311 | echo "$as_me: creating $ac_file" >&6;} |
22312 | ||
22313 | # First look for the input files in the build tree, otherwise in the | |
22314 | # src tree. | |
22315 | ac_file_inputs=`IFS=: | |
22316 | for f in $ac_file_in; do | |
22317 | case $f in | |
22318 | -) echo $tmp/stdin ;; | |
22319 | [\\/$]*) | |
35996d22 AS |
22320 | # Absolute (can't be DOS-style, as IFS=:) |
22321 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22322 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22323 | { (exit 1); exit 1; }; } | |
35996d22 AS |
22324 | # Do quote $f, to prevent DOS paths from being IFS'd. |
22325 | echo "$f";; | |
503d2be0 | 22326 | *) # Relative |
35996d22 AS |
22327 | if test -f "$f"; then |
22328 | # Build tree | |
22329 | echo "$f" | |
22330 | elif test -f "$srcdir/$f"; then | |
22331 | # Source tree | |
22332 | echo "$srcdir/$f" | |
22333 | else | |
22334 | # /dev/null tree | |
22335 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22336 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22337 | { (exit 1); exit 1; }; } | |
35996d22 | 22338 | fi;; |
503d2be0 AS |
22339 | esac |
22340 | done` || { (exit 1); exit 1; } | |
22341 | # Remove the trailing spaces. | |
35996d22 | 22342 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
503d2be0 | 22343 | |
c0d27fcc | 22344 | _ACEOF |
503d2be0 AS |
22345 | |
22346 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22347 | # `conftest.undefs', that substitutes the proper values into | |
22348 | # config.h.in to produce config.h. The first handles `#define' | |
22349 | # templates, and the second `#undef' templates. | |
22350 | # And first: Protect against being on the right side of a sed subst in | |
22351 | # config.status. Protect against being in an unquoted here document | |
22352 | # in config.status. | |
22353 | rm -f conftest.defines conftest.undefs | |
22354 | # Using a here document instead of a string reduces the quoting nightmare. | |
22355 | # Putting comments in sed scripts is not portable. | |
22356 | # | |
22357 | # `end' is used to avoid that the second main sed command (meant for | |
22358 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22359 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 22360 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
22361 | s/[\\&,]/\\&/g |
22362 | s,[\\$`],\\&,g | |
22363 | t clear | |
22364 | : clear | |
35996d22 | 22365 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 | 22366 | t end |
35996d22 | 22367 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
503d2be0 | 22368 | : end |
c0d27fcc | 22369 | _ACEOF |
503d2be0 AS |
22370 | # If some macros were called several times there might be several times |
22371 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22372 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22373 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22374 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22375 | rm -f confdef2sed.sed | |
ba4481b5 DL |
22376 | |
22377 | # This sed command replaces #undef with comments. This is necessary, for | |
22378 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22379 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 22380 | cat >>conftest.undefs <<\_ACEOF |
35996d22 | 22381 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 22382 | _ACEOF |
ba4481b5 | 22383 | |
503d2be0 AS |
22384 | # Break up conftest.defines because some shells have a limit on the size |
22385 | # of here documents, and old seds have small limits too (100 cmds). | |
22386 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35996d22 | 22387 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
22388 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
22389 | echo ' :' >>$CONFIG_STATUS | |
22390 | rm -f conftest.tail | |
22391 | while grep . conftest.defines >/dev/null | |
22392 | do | |
22393 | # Write a limited-size here document to $tmp/defines.sed. | |
22394 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22395 | # Speed up: don't consider the non `#define' lines. | |
35996d22 | 22396 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22397 | # Work around the forget-to-reset-the-flag bug. |
22398 | echo 't clr' >>$CONFIG_STATUS | |
22399 | echo ': clr' >>$CONFIG_STATUS | |
22400 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22401 | echo 'CEOF | |
22402 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22403 | rm -f $tmp/in | |
22404 | mv $tmp/out $tmp/in | |
22405 | ' >>$CONFIG_STATUS | |
22406 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22407 | rm -f conftest.defines | |
22408 | mv conftest.tail conftest.defines | |
22409 | done | |
22410 | rm -f conftest.defines | |
6bae0ccf | 22411 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 22412 | echo >>$CONFIG_STATUS |
ba4481b5 | 22413 | |
503d2be0 AS |
22414 | # Break up conftest.undefs because some shells have a limit on the size |
22415 | # of here documents, and old seds have small limits too (100 cmds). | |
22416 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 22417 | rm -f conftest.tail |
503d2be0 | 22418 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 22419 | do |
503d2be0 AS |
22420 | # Write a limited-size here document to $tmp/undefs.sed. |
22421 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22422 | # Speed up: don't consider the non `#undef' | |
35996d22 | 22423 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22424 | # Work around the forget-to-reset-the-flag bug. |
22425 | echo 't clr' >>$CONFIG_STATUS | |
22426 | echo ': clr' >>$CONFIG_STATUS | |
22427 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 22428 | echo 'CEOF |
503d2be0 AS |
22429 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22430 | rm -f $tmp/in | |
22431 | mv $tmp/out $tmp/in | |
22432 | ' >>$CONFIG_STATUS | |
22433 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22434 | rm -f conftest.undefs | |
22435 | mv conftest.tail conftest.undefs | |
ba4481b5 | 22436 | done |
503d2be0 AS |
22437 | rm -f conftest.undefs |
22438 | ||
c0d27fcc | 22439 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22440 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22441 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 22442 | # /* config.h. Generated by config.status. */ |
503d2be0 | 22443 | if test x"$ac_file" = x-; then |
c0d27fcc | 22444 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 22445 | else |
c0d27fcc | 22446 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
22447 | fi |
22448 | cat $tmp/in >>$tmp/config.h | |
22449 | rm -f $tmp/in | |
22450 | if test x"$ac_file" != x-; then | |
19650fd6 | 22451 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 22452 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
22453 | echo "$as_me: $ac_file is unchanged" >&6;} |
22454 | else | |
c0d27fcc MR |
22455 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22456 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22457 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22458 | X"$ac_file" : 'X\(//\)$' \| \ | |
22459 | X"$ac_file" : 'X\(/\)' \| \ | |
22460 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22461 | echo X"$ac_file" | |
22462 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22463 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22464 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22465 | /^X\(\/\).*/{ s//\1/; q; } | |
22466 | s/.*/./; q'` | |
6bae0ccf DL |
22467 | { if $as_mkdir_p; then |
22468 | mkdir -p "$ac_dir" | |
22469 | else | |
22470 | as_dir="$ac_dir" | |
22471 | as_dirs= | |
22472 | while test ! -d "$as_dir"; do | |
22473 | as_dirs="$as_dir $as_dirs" | |
22474 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22475 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22476 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22477 | X"$as_dir" : 'X\(//\)$' \| \ | |
22478 | X"$as_dir" : 'X\(/\)' \| \ | |
22479 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22480 | echo X"$as_dir" | |
22481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22482 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22483 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22484 | /^X\(\/\).*/{ s//\1/; q; } | |
22485 | s/.*/./; q'` | |
22486 | done | |
22487 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22488 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22489 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22490 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22491 | |
503d2be0 AS |
22492 | rm -f $ac_file |
22493 | mv $tmp/config.h $ac_file | |
ba4481b5 | 22494 | fi |
503d2be0 AS |
22495 | else |
22496 | cat $tmp/config.h | |
22497 | rm -f $tmp/config.h | |
ba4481b5 | 22498 | fi |
503d2be0 | 22499 | done |
c0d27fcc MR |
22500 | _ACEOF |
22501 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22502 | |
22503 | # | |
22504 | # CONFIG_COMMANDS section. | |
22505 | # | |
22506 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22507 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22508 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
22509 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
22510 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22511 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
22512 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22513 | X"$ac_dest" : 'X\(/\)' \| \ | |
22514 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
22515 | echo X"$ac_dest" | |
22516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22517 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22518 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22519 | /^X\(\/\).*/{ s//\1/; q; } | |
22520 | s/.*/./; q'` | |
35996d22 AS |
22521 | { if $as_mkdir_p; then |
22522 | mkdir -p "$ac_dir" | |
22523 | else | |
22524 | as_dir="$ac_dir" | |
22525 | as_dirs= | |
22526 | while test ! -d "$as_dir"; do | |
22527 | as_dirs="$as_dir $as_dirs" | |
22528 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22529 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22530 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22531 | X"$as_dir" : 'X\(//\)$' \| \ | |
22532 | X"$as_dir" : 'X\(/\)' \| \ | |
22533 | . : '\(.\)' 2>/dev/null || | |
22534 | echo X"$as_dir" | | |
22535 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22536 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22537 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22538 | /^X\(\/\).*/{ s//\1/; q; } | |
22539 | s/.*/./; q'` | |
22540 | done | |
22541 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22542 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22543 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22544 | { (exit 1); exit 1; }; }; } | |
22545 | ||
c0d27fcc MR |
22546 | ac_builddir=. |
22547 | ||
22548 | if test "$ac_dir" != .; then | |
22549 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22550 | # A "../" for each directory in $ac_dir_suffix. | |
22551 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22552 | else | |
22553 | ac_dir_suffix= ac_top_builddir= | |
22554 | fi | |
22555 | ||
22556 | case $srcdir in | |
22557 | .) # No --srcdir option. We are building in place. | |
22558 | ac_srcdir=. | |
22559 | if test -z "$ac_top_builddir"; then | |
22560 | ac_top_srcdir=. | |
22561 | else | |
22562 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22563 | fi ;; | |
22564 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22565 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22566 | ac_top_srcdir=$srcdir ;; | |
22567 | *) # Relative path. | |
22568 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22569 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22570 | esac | |
35996d22 AS |
22571 | |
22572 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22573 | # the directories may not exist. | |
22574 | case `pwd` in | |
22575 | .) ac_abs_builddir="$ac_dir";; | |
22576 | *) | |
22577 | case "$ac_dir" in | |
22578 | .) ac_abs_builddir=`pwd`;; | |
22579 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22580 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22581 | esac;; | |
22582 | esac | |
22583 | case $ac_abs_builddir in | |
22584 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22585 | *) | |
22586 | case ${ac_top_builddir}. in | |
22587 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22588 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22589 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22590 | esac;; | |
22591 | esac | |
22592 | case $ac_abs_builddir in | |
22593 | .) ac_abs_srcdir=$ac_srcdir;; | |
22594 | *) | |
22595 | case $ac_srcdir in | |
22596 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22597 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22598 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22599 | esac;; | |
22600 | esac | |
22601 | case $ac_abs_builddir in | |
22602 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22603 | *) | |
22604 | case $ac_top_srcdir in | |
22605 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22606 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22607 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22608 | esac;; | |
22609 | esac | |
ba4481b5 | 22610 | |
c0d27fcc MR |
22611 | |
22612 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22613 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
22614 | case $ac_dest in |
22615 | default ) | |
ba4481b5 DL |
22616 | |
22617 | ### Make the necessary directories, if they don't exist. | |
22618 | for dir in etc lisp ; do | |
22619 | test -d ${dir} || mkdir ${dir} | |
22620 | done | |
22621 | ||
22622 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
22623 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
22624 | # This must be done after src/config.h is built, since we rely on that file. | |
22625 | ||
22626 | # Now get this: Some word that is part of the ${srcdir} directory name | |
22627 | # or the ${configuration} value might, just might, happen to be an | |
22628 | # identifier like `sun4' or `i386' or something, and be predefined by | |
22629 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
22630 | # string. Needless to say consequent macro substitutions are less | |
22631 | # than conducive to the makefile finding the correct directory. | |
22632 | undefs="`echo $top_srcdir $configuration $canonical | | |
22633 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
22634 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
22635 | `" | |
22636 | ||
22637 | echo creating src/epaths.h | |
4aa6b955 | 22638 | ${MAKE-make} epaths-force |
ba4481b5 | 22639 | |
1c203d4c DL |
22640 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
22641 | # `..' to `. .' unless invoked with -traditional | |
22642 | ||
d0e9bfd2 | 22643 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
22644 | CPPFLAGS="$CPPFLAGS -traditional" |
22645 | fi | |
22646 | ||
ba4481b5 DL |
22647 | echo creating lib-src/Makefile |
22648 | ( cd lib-src | |
22649 | rm -f junk.c junk1.c junk2.c | |
22650 | sed -e '/start of cpp stuff/q' \ | |
22651 | < Makefile.c > junk1.c | |
22652 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22653 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22654 | < Makefile.c > junk.c |
503d2be0 | 22655 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22656 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22657 | cat junk1.c junk2.c > Makefile.new | |
22658 | rm -f junk.c junk1.c junk2.c | |
22659 | chmod 444 Makefile.new | |
22660 | mv -f Makefile.new Makefile | |
22661 | ) | |
22662 | ||
22663 | echo creating src/Makefile | |
22664 | ( cd src | |
22665 | rm -f junk.c junk1.c junk2.c | |
22666 | sed -e '/start of cpp stuff/q' \ | |
22667 | < Makefile.c > junk1.c | |
22668 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22669 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22670 | < Makefile.c > junk.c |
503d2be0 | 22671 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22672 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22673 | cat junk1.c junk2.c > Makefile.new | |
22674 | rm -f junk.c junk1.c junk2.c | |
22675 | chmod 444 Makefile.new | |
22676 | mv -f Makefile.new Makefile | |
22677 | ) | |
22678 | ||
503d2be0 | 22679 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 22680 | echo creating src/.gdbinit |
503d2be0 | 22681 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
22682 | fi |
22683 | ||
22684 | # This is how we know whether to re-run configure in certain cases. | |
22685 | touch src/config.stamp | |
22686 | ||
503d2be0 AS |
22687 | ;; |
22688 | esac | |
22689 | done | |
c0d27fcc | 22690 | _ACEOF |
503d2be0 | 22691 | |
c0d27fcc | 22692 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 22693 | |
503d2be0 | 22694 | { (exit 0); exit 0; } |
c0d27fcc | 22695 | _ACEOF |
ba4481b5 | 22696 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
22697 | ac_clean_files=$ac_clean_files_save |
22698 | ||
c0d27fcc | 22699 | |
503d2be0 AS |
22700 | # configure is writing to config.log, and then calls config.status. |
22701 | # config.status does its own redirection, appending to config.log. | |
22702 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22703 | # by configure, so config.status won't be able to write to it; its | |
22704 | # output is simply discarded. So we exec the FD to /dev/null, | |
22705 | # effectively closing config.log, so it can be properly (re)opened and | |
22706 | # appended to by config.status. When coming back to configure, we | |
22707 | # need to make the FD available again. | |
22708 | if test "$no_create" != yes; then | |
22709 | ac_cs_success=: | |
19650fd6 AS |
22710 | ac_config_status_args= |
22711 | test "$silent" = yes && | |
22712 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 22713 | exec 5>/dev/null |
19650fd6 | 22714 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
22715 | exec 5>>config.log |
22716 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22717 | # would make configure fail if this is the last instruction. | |
22718 | $ac_cs_success || { (exit 1); exit 1; } | |
22719 | fi | |
f5f47add | 22720 | |
c0d27fcc | 22721 |