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 | 1576 | |
22044edf | 1577 | extrasub='/^VPATH[ ]*=/c\ |
ba4481b5 DL |
1578 | vpath %.c $(srcdir)\ |
1579 | vpath %.h $(srcdir)\ | |
1580 | vpath %.y $(srcdir)\ | |
1581 | vpath %.l $(srcdir)\ | |
1582 | vpath %.s $(srcdir)\ | |
1583 | vpath %.in $(srcdir)\ | |
1584 | vpath %.texi $(srcdir)' | |
1585 | fi | |
1586 | ||
1587 | #### Given the configuration name, set machfile and opsysfile to the | |
1588 | #### names of the m/*.h and s/*.h files we should use. | |
1589 | ||
1590 | ### Canonicalize the configuration name. | |
1591 | ||
1592 | ac_aux_dir= | |
1593 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1594 | if test -f $ac_dir/install-sh; then | |
1595 | ac_aux_dir=$ac_dir | |
1596 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1597 | break | |
1598 | elif test -f $ac_dir/install.sh; then | |
1599 | ac_aux_dir=$ac_dir | |
1600 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1601 | break | |
503d2be0 AS |
1602 | elif test -f $ac_dir/shtool; then |
1603 | ac_aux_dir=$ac_dir | |
1604 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1605 | break | |
ba4481b5 DL |
1606 | fi |
1607 | done | |
1608 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1609 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1610 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1611 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1612 | fi |
503d2be0 AS |
1613 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1614 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1615 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1616 | |
1617 | # Make sure we can run config.sub. | |
503d2be0 | 1618 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1619 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1620 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1621 | { (exit 1); exit 1; }; } | |
1622 | ||
c0d27fcc | 1623 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1624 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1625 | if test "${ac_cv_build+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_build_alias=$build_alias | |
1629 | test -z "$ac_cv_build_alias" && | |
1630 | ac_cv_build_alias=`$ac_config_guess` | |
1631 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1632 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1633 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1634 | { (exit 1); exit 1; }; } | |
1635 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1636 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1637 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1638 | { (exit 1); exit 1; }; } |
1639 | ||
1640 | fi | |
c0d27fcc | 1641 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1642 | echo "${ECHO_T}$ac_cv_build" >&6 |
1643 | build=$ac_cv_build | |
1644 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1645 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1646 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1647 | ||
c0d27fcc MR |
1648 | |
1649 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1650 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1651 | if test "${ac_cv_host+set}" = set; then | |
1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1653 | else | |
1654 | ac_cv_host_alias=$host_alias | |
1655 | test -z "$ac_cv_host_alias" && | |
1656 | ac_cv_host_alias=$ac_cv_build_alias | |
1657 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1658 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1659 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1660 | { (exit 1); exit 1; }; } | |
1661 | ||
1662 | fi | |
c0d27fcc | 1663 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1664 | echo "${ECHO_T}$ac_cv_host" >&6 |
1665 | host=$ac_cv_host | |
1666 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1667 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1668 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1669 | |
c0d27fcc | 1670 | |
ba4481b5 | 1671 | canonical=$host |
531a3336 | 1672 | configuration=${host_alias-$host} |
ba4481b5 | 1673 | |
c0d27fcc | 1674 | |
22044edf | 1675 | |
ba4481b5 DL |
1676 | ### If you add support for a new configuration, add code to this |
1677 | ### switch statement to recognize your configuration name and select | |
1678 | ### the appropriate operating system and machine description files. | |
1679 | ||
1680 | ### You would hope that you could choose an m/*.h file pretty much | |
1681 | ### based on the machine portion of the configuration name, and an s- | |
1682 | ### file based on the operating system portion. However, it turns out | |
1683 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1684 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1685 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1686 | ### machines. So we basically have to have a special case for each | |
1687 | ### configuration name. | |
1688 | ### | |
1689 | ### As far as handling version numbers on operating systems is | |
1690 | ### concerned, make sure things will fail in a fixable way. If | |
1691 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1692 | ### prepared to handle anything reasonably. If version numbers | |
1693 | ### matter, be sure /etc/MACHINES says something about it. | |
1694 | ### | |
1695 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1696 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1697 | ### confusion between `system' and `release' levels'." | |
1698 | ||
1699 | machine='' opsys='' unported=no | |
1700 | case "${canonical}" in | |
1701 | ||
1096bcc0 GM |
1702 | ## FreeBSD ports |
1703 | *-*-freebsd* ) | |
1704 | opsys=freebsd | |
1705 | case "${canonical}" in | |
1706 | alpha*-*-freebsd*) machine=alpha ;; | |
1707 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1708 | esac | |
1709 | ;; | |
1710 | ||
ba4481b5 DL |
1711 | ## NetBSD ports |
1712 | *-*-netbsd* ) | |
1713 | opsys=netbsd | |
dd038e26 | 1714 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
1715 | |
1716 | cat >>confdefs.h <<\_ACEOF | |
1717 | #define HAVE_CRTIN | |
dd038e26 AS |
1718 | _ACEOF |
1719 | ||
1720 | fi | |
1721 | ||
ba4481b5 DL |
1722 | case "${canonical}" in |
1723 | alpha*-*-netbsd*) machine=alpha ;; | |
1724 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1725 | m68k-*-netbsd*) | |
1726 | # This is somewhat bogus. | |
1727 | machine=hp9000s300 ;; | |
1728 | powerpc-apple-netbsd*) machine=macppc ;; | |
1729 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1730 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1731 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1732 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1733 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1734 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1735 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1736 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1737 | esac |
1738 | ;; | |
1739 | ||
1740 | ## OpenBSD ports | |
1741 | *-*-openbsd* ) | |
1742 | opsys=openbsd | |
1743 | case "${canonical}" in | |
1744 | alpha*-*-openbsd*) machine=alpha ;; | |
1745 | i386-*-openbsd*) machine=intel386 ;; | |
1746 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1747 | mipsel-*-openbsd*) machine=pmax ;; | |
1748 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1749 | sparc-*-openbsd*) machine=sparc ;; | |
1750 | vax-*-openbsd*) machine=vax ;; | |
1751 | esac | |
1752 | ;; | |
1753 | ||
1754 | ## Acorn RISCiX: | |
1755 | arm-acorn-riscix1.1* ) | |
1756 | machine=acorn opsys=riscix1-1 | |
1757 | ;; | |
1758 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1759 | ## This name is riscix12 instead of riscix1.2 | |
1760 | ## to avoid a file name conflict on MSDOS. | |
1761 | machine=acorn opsys=riscix12 | |
1762 | ;; | |
1763 | ||
1764 | ## BSDI ports | |
1765 | *-*-bsdi* ) | |
1766 | opsys=bsdi | |
1767 | case "${canonical}" in | |
1768 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1769 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1770 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1771 | esac |
1772 | case "${canonical}" in | |
1773 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1774 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1775 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1776 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1777 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1778 | esac |
1779 | ;; | |
1780 | ||
1781 | ## Alliant machines | |
1782 | ## Strictly speaking, we need the version of the alliant operating | |
1783 | ## system to choose the right machine file, but currently the | |
1784 | ## configuration name doesn't tell us enough to choose the right | |
1785 | ## one; we need to give alliants their own operating system name to | |
1786 | ## do this right. When someone cares, they can help us. | |
1787 | fx80-alliant-* ) | |
1788 | machine=alliant4 opsys=bsd4-2 | |
1789 | ;; | |
1790 | i860-alliant-* ) | |
1791 | machine=alliant-2800 opsys=bsd4-3 | |
1792 | ;; | |
1793 | ||
1794 | ## Alpha (DEC) machines. | |
1795 | alpha*-dec-osf* ) | |
1796 | machine=alpha opsys=osf1 | |
1797 | # This is needed to find X11R6.1 libraries for certain tests. | |
1798 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1799 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1800 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1801 | # due to non-traditional preprocessing with the current compiler | |
1802 | # defaults. OSF 4 can also have that compiler version, and there | |
1803 | # seems always to have been a usable /usr/bin/cpp. | |
1804 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1805 | case "${canonical}" in |
a55b799a | 1806 | alpha*-dec-osf[5-9]*) |
bb17930d | 1807 | opsys=osf5-0 ;; |
ca512671 | 1808 | esac |
ba4481b5 DL |
1809 | ;; |
1810 | ||
1811 | alpha*-*-linux-gnu* ) | |
1812 | machine=alpha opsys=gnu-linux | |
1813 | ;; | |
1814 | ||
c4bb2108 DL |
1815 | arm*-*-linux-gnu* ) |
1816 | machine=arm opsys=gnu-linux | |
1817 | ;; | |
1818 | ||
1819 | ppc-*-linux | \ | |
1820 | powerpc-*-linux* ) | |
3aeecf97 | 1821 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1822 | ;; |
1823 | ||
ba4481b5 DL |
1824 | ## Altos 3068 |
1825 | m68*-altos-sysv* ) | |
1826 | machine=altos opsys=usg5-2 | |
1827 | ;; | |
1828 | ||
1829 | ## Amdahl UTS | |
1830 | 580-amdahl-sysv* ) | |
1831 | machine=amdahl opsys=usg5-2-2 | |
1832 | ;; | |
1833 | ||
1834 | ## Apollo, Domain/OS | |
1835 | m68*-apollo-* ) | |
1836 | machine=apollo opsys=bsd4-3 | |
1837 | ;; | |
1838 | ||
1839 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1840 | we32k-att-sysv* ) | |
1841 | machine=att3b opsys=usg5-2-2 | |
1842 | ;; | |
1843 | ||
1844 | ## AT&T 3b1 - The Mighty Unix PC! | |
1845 | m68*-att-sysv* ) | |
1846 | machine=7300 opsys=usg5-2-2 | |
1847 | ;; | |
1848 | ||
1849 | ## Bull dpx20 | |
1850 | rs6000-bull-bosx* ) | |
1851 | machine=ibmrs6000 opsys=aix3-2 | |
1852 | ;; | |
1853 | ||
1854 | ## Bull dpx2 | |
1855 | m68*-bull-sysv3* ) | |
1856 | machine=dpx2 opsys=usg5-3 | |
1857 | ;; | |
1858 | ||
1859 | ## Bull sps7 | |
1860 | m68*-bull-sysv2* ) | |
1861 | machine=sps7 opsys=usg5-2 | |
1862 | ;; | |
1863 | ||
1864 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1865 | ||
1866 | ## Celerity | |
1867 | ## I don't know what configuration name to use for this; config.sub | |
1868 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1869 | ## in touch with us! | |
1870 | celerity-celerity-bsd* ) | |
1871 | machine=celerity opsys=bsd4-2 | |
1872 | ;; | |
1873 | ||
1874 | ## Clipper | |
1875 | ## What operating systems does this chip run that Emacs has been | |
1876 | ## tested on? | |
1877 | clipper-* ) | |
1878 | machine=clipper | |
1879 | ## We'll use the catch-all code at the bottom to guess the | |
1880 | ## operating system. | |
1881 | ;; | |
1882 | ||
df645f7c AS |
1883 | ## Compaq Nonstop |
1884 | mips-compaq-nonstopux* ) | |
1885 | machine=nonstopux opsys=nonstopux | |
1886 | ;; | |
1887 | ||
ba4481b5 DL |
1888 | ## Convex |
1889 | *-convex-bsd* | *-convex-convexos* ) | |
1890 | machine=convex opsys=bsd4-3 | |
1891 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1892 | NON_GNU_CPP="cc -E -P" | |
1893 | ;; | |
1894 | ||
1895 | ## Cubix QBx/386 | |
1896 | i[3456]86-cubix-sysv* ) | |
1897 | machine=intel386 opsys=usg5-3 | |
1898 | ;; | |
1899 | ||
1900 | ## Cydra 5 | |
1901 | cydra*-cydrome-sysv* ) | |
1902 | machine=cydra5 opsys=usg5-3 | |
1903 | ;; | |
1904 | ||
1905 | ## Data General AViiON Machines | |
1906 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1907 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1908 | ## R this shouldn't conflict with older versions of the OS (which I | |
1909 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1910 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1911 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1912 | machine=aviion opsys=dgux4 | |
1913 | ;; | |
1914 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1915 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1916 | ## to avoid a file name conflict on MSDOS. | |
1917 | machine=aviion opsys=dgux5-4-3 | |
1918 | ;; | |
1919 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1920 | machine=aviion opsys=dgux5-4r2 | |
1921 | ;; | |
1922 | m88k-dg-dgux* ) | |
1923 | machine=aviion opsys=dgux | |
1924 | ;; | |
1925 | ||
1926 | ## Data General AViiON Intel (x86) Machines | |
1927 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1928 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1929 | i[345]86-dg-dguxR4* ) | |
1930 | machine=aviion-intel opsys=dgux4 | |
1931 | ;; | |
1932 | ||
1933 | ## DECstations | |
1934 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1935 | machine=pmax opsys=bsd4-2 | |
1936 | ;; | |
1937 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1938 | machine=pmax opsys=bsd4-3 | |
1939 | ;; | |
1940 | mips-dec-ultrix* ) | |
1941 | machine=pmax opsys=ultrix4-3 | |
1942 | ;; | |
1943 | mips-dec-osf* ) | |
1944 | machine=pmax opsys=osf1 | |
1945 | ;; | |
1946 | mips-dec-mach_bsd4.3* ) | |
1947 | machine=pmax opsys=mach-bsd4-3 | |
1948 | ;; | |
1949 | ||
cd890796 JD |
1950 | ## Motorola Delta machines |
1951 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1952 | machine=delta opsys=usg5-3 | |
1953 | if test -z "`type gnucc | grep 'not found'`" | |
1954 | then | |
1955 | if test -s /etc/167config | |
1956 | then CC="gnucc -m68040" | |
1957 | else CC="gnucc -m68881" | |
1958 | fi | |
1959 | else | |
1960 | if test -z "`type gcc | grep 'not found'`" | |
1961 | then CC=gcc | |
1962 | else CC=cc | |
1963 | fi | |
1964 | fi | |
1965 | ;; | |
ba4481b5 DL |
1966 | m88k-motorola-sysv4* ) |
1967 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1968 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1969 | # I hope there are not other 4.0 versions for this machine | |
1970 | # which really need usg5-4 instead. | |
1971 | machine=delta88k opsys=usg5-4-2 | |
1972 | ;; | |
1973 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1974 | machine=delta88k opsys=usg5-3 | |
1975 | ;; | |
1976 | ||
1977 | ## Dual machines | |
1978 | m68*-dual-sysv* ) | |
1979 | machine=dual opsys=usg5-2 | |
1980 | ;; | |
1981 | m68*-dual-uniplus* ) | |
1982 | machine=dual opsys=unipl5-2 | |
1983 | ;; | |
1984 | ||
1985 | ## Elxsi 6400 | |
1986 | elxsi-elxsi-sysv* ) | |
1987 | machine=elxsi opsys=usg5-2 | |
1988 | ;; | |
1989 | ||
1990 | ## Encore machines | |
1991 | ns16k-encore-bsd* ) | |
1992 | machine=ns16000 opsys=umax | |
1993 | ;; | |
1994 | ||
65171e3a DL |
1995 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1996 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1997 | |
1998 | ## Gould Power Node and NP1 | |
1999 | pn-gould-bsd4.2* ) | |
2000 | machine=gould opsys=bsd4-2 | |
2001 | ;; | |
2002 | pn-gould-bsd4.3* ) | |
2003 | machine=gould opsys=bsd4-3 | |
2004 | ;; | |
2005 | np1-gould-bsd* ) | |
2006 | machine=gould-np1 opsys=bsd4-3 | |
2007 | ;; | |
2008 | ||
2009 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2010 | ## as far as Emacs is concerned). | |
2011 | m88k-harris-cxux* ) | |
2012 | # Build needs to be different on 7.0 and later releases | |
2013 | case "`uname -r`" in | |
2014 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2015 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2016 | esac | |
2017 | NON_GNU_CPP="/lib/cpp" | |
2018 | ;; | |
2019 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2020 | m68k-harris-cxux* ) | |
2021 | machine=nh3000 opsys=cxux | |
2022 | ;; | |
2023 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2024 | powerpc-harris-powerunix ) | |
2025 | machine=nh6000 opsys=powerunix | |
2026 | NON_GNU_CPP="cc -Xo -E -P" | |
2027 | ;; | |
2028 | ## SR2001/SR2201 running HI-UX/MPP | |
2029 | hppa1.1-hitachi-hiuxmpp* ) | |
2030 | machine=sr2k opsys=hiuxmpp | |
2031 | ;; | |
89a336fa GM |
2032 | hppa1.1-hitachi-hiuxwe2* ) |
2033 | machine=sr2k opsys=hiuxwe2 | |
2034 | ;; | |
ba4481b5 DL |
2035 | ## Honeywell XPS100 |
2036 | xps*-honeywell-sysv* ) | |
2037 | machine=xps100 opsys=usg5-2 | |
2038 | ;; | |
2039 | ||
2040 | ## HP 9000 series 200 or 300 | |
2041 | m68*-hp-bsd* ) | |
2042 | machine=hp9000s300 opsys=bsd4-3 | |
2043 | ;; | |
2044 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2045 | m68*-hp-hpux* ) | |
2046 | case "`uname -r`" in | |
2047 | ## Someone's system reports A.B8.05 for this. | |
2048 | ## I wonder what other possibilities there are. | |
2049 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2050 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2051 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2052 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2053 | *) machine=hp9000s300 opsys=hpux ;; | |
2054 | esac | |
2055 | ;; | |
2056 | ||
2057 | ## HP 9000 series 700 and 800, running HP/UX | |
2058 | hppa*-hp-hpux7* ) | |
2059 | machine=hp800 opsys=hpux | |
2060 | ;; | |
2061 | hppa*-hp-hpux8* ) | |
2062 | machine=hp800 opsys=hpux8 | |
2063 | ;; | |
2064 | hppa*-hp-hpux9shr* ) | |
2065 | machine=hp800 opsys=hpux9shr | |
2066 | ;; | |
2067 | hppa*-hp-hpux9* ) | |
2068 | machine=hp800 opsys=hpux9 | |
2069 | ;; | |
b0e44248 RB |
2070 | hppa*-hp-hpux10.2* ) |
2071 | machine=hp800 opsys=hpux10-20 | |
2072 | ;; | |
cc227489 | 2073 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2074 | machine=hp800 opsys=hpux10 |
2075 | ;; | |
cc227489 MB |
2076 | hppa*-hp-hpux1[1-9]* ) |
2077 | machine=hp800 opsys=hpux11 | |
2078 | ;; | |
ba4481b5 | 2079 | |
409d9577 GM |
2080 | hppa*-*-linux-gnu* ) |
2081 | machine=hp800 opsys=gnu-linux | |
2082 | ;; | |
2083 | ||
ba4481b5 DL |
2084 | ## HP 9000 series 700 and 800, running HP/UX |
2085 | hppa*-hp-hpux* ) | |
2086 | ## Cross-compilation? Nah! | |
2087 | case "`uname -r`" in | |
2088 | ## Someone's system reports A.B8.05 for this. | |
2089 | ## I wonder what other possibilities there are. | |
2090 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2091 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2092 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2093 | *) machine=hp800 opsys=hpux10 ;; | |
2094 | esac | |
2095 | ;; | |
2096 | hppa*-*-nextstep* ) | |
2097 | machine=hp800 opsys=nextstep | |
2098 | ;; | |
2099 | ||
2100 | ## Orion machines | |
2101 | orion-orion-bsd* ) | |
2102 | machine=orion opsys=bsd4-2 | |
2103 | ;; | |
2104 | clipper-orion-bsd* ) | |
2105 | machine=orion105 opsys=bsd4-2 | |
2106 | ;; | |
2107 | ||
2108 | ## IBM machines | |
2109 | i[3456]86-ibm-aix1.1* ) | |
2110 | machine=ibmps2-aix opsys=usg5-2-2 | |
2111 | ;; | |
2112 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2113 | machine=ibmps2-aix opsys=usg5-3 | |
2114 | ;; | |
2115 | i370-ibm-aix*) | |
2116 | machine=ibm370aix opsys=usg5-3 | |
2117 | ;; | |
55597d70 | 2118 | s390-*-linux-gnu* ) |
138f0859 GM |
2119 | machine=ibms390 opsys=gnu-linux |
2120 | ;; | |
ba4481b5 DL |
2121 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2122 | machine=ibmrs6000 opsys=aix3-1 | |
2123 | ;; | |
2124 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2125 | machine=ibmrs6000 opsys=aix3-2-5 | |
2126 | ;; | |
2127 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2128 | machine=ibmrs6000 opsys=aix4-1 | |
2129 | ;; | |
2130 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2131 | machine=ibmrs6000 opsys=aix4-2 | |
2132 | ;; | |
55597d70 | 2133 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2134 | machine=ibmrs6000 opsys=aix4-2 |
2135 | ;; | |
ba4481b5 DL |
2136 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2137 | machine=ibmrs6000 opsys=aix4 | |
2138 | ;; | |
2139 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2140 | machine=ibmrs6000 opsys=aix4-1 | |
2141 | ;; | |
2142 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2143 | machine=ibmrs6000 opsys=aix3-2 | |
2144 | ;; | |
2145 | romp-ibm-bsd4.3* ) | |
2146 | machine=ibmrt opsys=bsd4-3 | |
2147 | ;; | |
2148 | romp-ibm-bsd4.2* ) | |
2149 | machine=ibmrt opsys=bsd4-2 | |
2150 | ;; | |
2151 | romp-ibm-aos4.3* ) | |
2152 | machine=ibmrt opsys=bsd4-3 | |
2153 | ;; | |
2154 | romp-ibm-aos4.2* ) | |
2155 | machine=ibmrt opsys=bsd4-2 | |
2156 | ;; | |
2157 | romp-ibm-aos* ) | |
2158 | machine=ibmrt opsys=bsd4-3 | |
2159 | ;; | |
2160 | romp-ibm-bsd* ) | |
2161 | machine=ibmrt opsys=bsd4-3 | |
2162 | ;; | |
2163 | romp-ibm-aix* ) | |
2164 | machine=ibmrt-aix opsys=usg5-2-2 | |
2165 | ;; | |
2166 | ||
2167 | ## Integrated Solutions `Optimum V' | |
2168 | m68*-isi-bsd4.2* ) | |
2169 | machine=isi-ov opsys=bsd4-2 | |
2170 | ;; | |
2171 | m68*-isi-bsd4.3* ) | |
2172 | machine=isi-ov opsys=bsd4-3 | |
2173 | ;; | |
2174 | ||
2175 | ## Intel 386 machines where we do care about the manufacturer | |
2176 | i[3456]86-intsys-sysv* ) | |
2177 | machine=is386 opsys=usg5-2-2 | |
2178 | ;; | |
2179 | ||
2180 | ## Prime EXL | |
2181 | i[3456]86-prime-sysv* ) | |
2182 | machine=i386 opsys=usg5-3 | |
2183 | ;; | |
2184 | ||
2185 | ## Sequent Symmetry running Dynix | |
2186 | i[3456]86-sequent-bsd* ) | |
2187 | machine=symmetry opsys=bsd4-3 | |
2188 | ;; | |
2189 | ||
2190 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2191 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2192 | machine=sequent-ptx opsys=ptx4 | |
2193 | NON_GNU_CPP=/lib/cpp | |
2194 | ;; | |
2195 | ||
2196 | ## Sequent Symmetry running DYNIX/ptx | |
2197 | ## Use the old cpp rather than the newer ANSI one. | |
2198 | i[3456]86-sequent-ptx* ) | |
2199 | machine=sequent-ptx opsys=ptx | |
2200 | NON_GNU_CPP="/lib/cpp" | |
2201 | ;; | |
2202 | ||
2203 | ## ncr machine running svr4.3. | |
2204 | i[3456]86-ncr-sysv4.3 ) | |
2205 | machine=ncr386 opsys=usg5-4-3 | |
2206 | ;; | |
2207 | ||
2208 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2209 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2210 | i[3456]86-ncr-sysv* ) | |
2211 | machine=ncr386 opsys=usg5-4-2 | |
2212 | ;; | |
2213 | ||
2214 | ## Intel Paragon OSF/1 | |
2215 | i860-intel-osf1* ) | |
2216 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2217 | ;; | |
2218 | ||
2219 | ## Intel 860 | |
2220 | i860-*-sysv4* ) | |
2221 | machine=i860 opsys=usg5-4 | |
2222 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2223 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2224 | ;; | |
2225 | ||
c76e04a8 GM |
2226 | ## Macintosh PowerPC |
2227 | powerpc*-*-linux-gnu* ) | |
2228 | machine=macppc opsys=gnu-linux | |
2229 | ;; | |
2230 | ||
ba4481b5 DL |
2231 | ## Masscomp machines |
2232 | m68*-masscomp-rtu* ) | |
2233 | machine=masscomp opsys=rtu | |
2234 | ;; | |
2235 | ||
2236 | ## Megatest machines | |
2237 | m68*-megatest-bsd* ) | |
2238 | machine=mega68 opsys=bsd4-2 | |
2239 | ;; | |
2240 | ||
2241 | ## Workstations sold by MIPS | |
2242 | ## This is not necessarily all workstations using the MIPS processor - | |
2243 | ## Irises are produced by SGI, and DECstations by DEC. | |
2244 | ||
2245 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2246 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2247 | ## it gives for choosing between the alternatives seems to be "Use | |
2248 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2249 | ## the BSD world." I'll assume that these are instructions for | |
2250 | ## handling two odd situations, and that every other situation | |
2251 | ## should use mips.h and usg5-2-2, they being listed first. | |
2252 | mips-mips-usg* ) | |
2253 | machine=mips4 | |
2254 | ## Fall through to the general code at the bottom to decide on the OS. | |
2255 | ;; | |
2256 | mips-mips-riscos4* ) | |
2257 | machine=mips4 opsys=bsd4-3 | |
2258 | NON_GNU_CC="cc -systype bsd43" | |
2259 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2260 | ;; | |
2261 | mips-mips-riscos5* ) | |
2262 | machine=mips4 opsys=riscos5 | |
2263 | NON_GNU_CC="cc -systype bsd43" | |
2264 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2265 | ;; | |
2266 | mips-mips-bsd* ) | |
2267 | machine=mips opsys=bsd4-3 | |
2268 | ;; | |
2269 | mips-mips-* ) | |
2270 | machine=mips opsys=usg5-2-2 | |
2271 | ;; | |
2272 | ||
2273 | ## NeXT | |
2274 | m68*-next-* | m68k-*-nextstep* ) | |
2275 | machine=m68k opsys=nextstep | |
2276 | ;; | |
2277 | ||
2278 | ## The complete machine from National Semiconductor | |
2279 | ns32k-ns-genix* ) | |
2280 | machine=ns32000 opsys=usg5-2 | |
2281 | ;; | |
2282 | ||
2283 | ## NCR machines | |
2284 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2285 | machine=tower32 opsys=usg5-2-2 | |
2286 | ;; | |
2287 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2288 | machine=tower32v3 opsys=usg5-3 | |
2289 | ;; | |
2290 | ||
2291 | ## NEC EWS4800 | |
2292 | mips-nec-sysv4*) | |
2293 | machine=ews4800 opsys=ux4800 | |
2294 | ;; | |
2295 | ||
2296 | ## Nixdorf Targon 31 | |
2297 | m68*-nixdorf-sysv* ) | |
2298 | machine=targon31 opsys=usg5-2-2 | |
2299 | ;; | |
2300 | ||
2301 | ## Nu (TI or LMI) | |
2302 | m68*-nu-sysv* ) | |
2303 | machine=nu opsys=usg5-2 | |
2304 | ;; | |
2305 | ||
2306 | ## Plexus | |
2307 | m68*-plexus-sysv* ) | |
2308 | machine=plexus opsys=usg5-2 | |
2309 | ;; | |
2310 | ||
ba4481b5 DL |
2311 | ## Pyramid machines |
2312 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2313 | ## so I'm assuming it is its own architecture. | |
2314 | pyramid-pyramid-bsd* ) | |
2315 | machine=pyramid opsys=bsd4-2 | |
2316 | ;; | |
2317 | ||
2318 | ## Sequent Balance | |
2319 | ns32k-sequent-bsd4.2* ) | |
2320 | machine=sequent opsys=bsd4-2 | |
2321 | ;; | |
2322 | ns32k-sequent-bsd4.3* ) | |
2323 | machine=sequent opsys=bsd4-3 | |
2324 | ;; | |
2325 | ||
2326 | ## Siemens Nixdorf | |
2327 | mips-siemens-sysv* | mips-sni-sysv*) | |
2328 | machine=mips-siemens opsys=usg5-4 | |
2329 | NON_GNU_CC=/usr/ccs/bin/cc | |
2330 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2331 | ;; | |
2332 | ||
2333 | ## Silicon Graphics machines | |
2334 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2335 | m68*-sgi-iris3.5* ) | |
2336 | machine=irist opsys=iris3-5 | |
2337 | ;; | |
2338 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2339 | machine=irist opsys=iris3-6 | |
2340 | ;; | |
2341 | ## Iris 4D | |
2342 | mips-sgi-irix3* ) | |
2343 | machine=iris4d opsys=irix3-3 | |
2344 | ;; | |
2345 | mips-sgi-irix4* ) | |
2346 | machine=iris4d opsys=irix4-0 | |
2347 | ;; | |
2348 | mips-sgi-irix6.5 ) | |
2349 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2350 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2351 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2352 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2353 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2354 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2355 | ;; |
2356 | mips-sgi-irix6* ) | |
2357 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2358 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2359 | # but presumably it does no harm. |
2360 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2361 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2362 | NON_GCC_TEST_OPTIONS=-32 |
2363 | ;; | |
2364 | mips-sgi-irix5.[01]* ) | |
2365 | machine=iris4d opsys=irix5-0 | |
2366 | ;; | |
2367 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2368 | machine=iris4d opsys=irix5-2 | |
2369 | ;; | |
2370 | ||
2371 | ## SONY machines | |
2372 | m68*-sony-bsd4.2* ) | |
2373 | machine=news opsys=bsd4-2 | |
2374 | ;; | |
2375 | m68*-sony-bsd4.3* ) | |
2376 | machine=news opsys=bsd4-3 | |
2377 | ;; | |
2378 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2379 | machine=news opsys=bsd4-3 | |
2380 | ;; | |
2381 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2382 | machine=news-risc opsys=bsd4-3 | |
2383 | ;; | |
2384 | mips-sony-newsos6* ) | |
2385 | machine=news-r6 opsys=newsos6 | |
2386 | ;; | |
2387 | mips-sony-news* ) | |
2388 | machine=news-risc opsys=newsos5 | |
2389 | ;; | |
2390 | ||
2391 | ## Stride | |
2392 | m68*-stride-sysv* ) | |
2393 | machine=stride opsys=usg5-2 | |
2394 | ;; | |
2395 | ||
2396 | ## Suns | |
2397 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2398 | machine=sparc opsys=gnu-linux | |
2399 | ;; | |
2400 | ||
d054101f | 2401 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2402 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2403 | | rs6000-*-solaris2*) | |
2404 | case "${canonical}" in | |
2405 | m68*-sunos1* ) machine=sun1 ;; | |
2406 | m68*-sunos2* ) machine=sun2 ;; | |
2407 | m68* ) machine=sun3 ;; | |
2408 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2409 | i[3456]86-*-* ) machine=intel386 ;; | |
2410 | powerpcle* ) machine=powerpcle ;; | |
2411 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2412 | sparc* ) machine=sparc ;; | |
2413 | * ) unported=yes ;; | |
2414 | esac | |
2415 | case "${canonical}" in | |
2416 | ## The Sun386 didn't get past 4.0. | |
2417 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2418 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2419 | *-sunos4.1.[3-9]*noshare ) | |
2420 | ## This name is sunos413 instead of sunos4-1-3 | |
2421 | ## to avoid a file name conflict on MSDOS. | |
2422 | opsys=sunos413 | |
2423 | NON_GNU_CPP=/usr/lib/cpp | |
2424 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2425 | GCC_TEST_OPTIONS=-static | |
2426 | ;; | |
2427 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2428 | opsys=sunos4shr | |
2429 | NON_GNU_CPP=/usr/lib/cpp | |
2430 | ;; | |
2431 | *-sunos4* | *-sunos ) | |
2432 | opsys=sunos4-1 | |
2433 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2434 | GCC_TEST_OPTIONS=-static | |
2435 | ;; | |
2436 | *-sunos5.3* | *-solaris2.3* ) | |
2437 | opsys=sol2-3 | |
2438 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2439 | ;; | |
2440 | *-sunos5.4* | *-solaris2.4* ) | |
2441 | opsys=sol2-4 | |
2442 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2443 | RANLIB="ar -ts" | |
2444 | ;; | |
2445 | *-sunos5.5* | *-solaris2.5* ) | |
2446 | opsys=sol2-5 | |
2447 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2448 | RANLIB="ar -ts" | |
2449 | ;; | |
8e967cf7 MR |
2450 | *-sunos5.6* | *-solaris2.6* ) |
2451 | opsys=sol2-6 | |
2452 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2453 | RANLIB="ar -ts" | |
2454 | ;; | |
ba4481b5 | 2455 | *-sunos5* | *-solaris* ) |
9e71690e | 2456 | opsys=sol2-6 |
ba4481b5 DL |
2457 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2458 | ;; | |
2459 | * ) opsys=bsd4-2 ;; | |
2460 | esac | |
2461 | ## Watch out for a compiler that we know will not work. | |
2462 | case "${canonical}" in | |
2463 | *-solaris* | *-sunos5* ) | |
2464 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2465 | ## /usr/ucb/cc doesn't work; | |
2466 | ## we should find some other compiler that does work. | |
2467 | unset CC | |
2468 | fi | |
2469 | ;; | |
2470 | *) ;; | |
2471 | esac | |
2472 | ;; | |
2473 | sparc-*-nextstep* ) | |
2474 | machine=sparc opsys=nextstep | |
2475 | ;; | |
2476 | ||
2477 | ## Tadpole 68k | |
2478 | m68*-tadpole-sysv* ) | |
2479 | machine=tad68k opsys=usg5-3 | |
2480 | ;; | |
2481 | ||
2482 | ## Tahoe machines | |
2483 | tahoe-tahoe-bsd4.2* ) | |
2484 | machine=tahoe opsys=bsd4-2 | |
2485 | ;; | |
2486 | tahoe-tahoe-bsd4.3* ) | |
2487 | machine=tahoe opsys=bsd4-3 | |
2488 | ;; | |
2489 | ||
2490 | ## Tandem Integrity S2 | |
2491 | mips-tandem-sysv* ) | |
2492 | machine=tandem-s2 opsys=usg5-3 | |
2493 | ;; | |
2494 | ||
2495 | ## Tektronix XD88 | |
2496 | m88k-tektronix-sysv3* ) | |
2497 | machine=tekxd88 opsys=usg5-3 | |
2498 | ;; | |
2499 | ||
2500 | ## Tektronix 16000 box (6130?) | |
2501 | ns16k-tektronix-bsd* ) | |
2502 | machine=ns16000 opsys=bsd4-2 | |
2503 | ;; | |
2504 | ## Tektronix 4300 | |
2505 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2506 | m68*-tektronix-bsd* ) | |
2507 | machine=tek4300 opsys=bsd4-3 | |
2508 | ;; | |
2509 | ||
2510 | ## Titan P2 or P3 | |
2511 | ## We seem to have lost the machine-description file titan.h! | |
2512 | titan-titan-sysv* ) | |
2513 | machine=titan opsys=usg5-3 | |
2514 | ;; | |
2515 | ||
2516 | ## Ustation E30 (SS5E) | |
2517 | m68*-unisys-uniplus* ) | |
2518 | machine=ustation opsystem=unipl5-2 | |
2519 | ;; | |
2520 | ||
2521 | ## Vaxen. | |
2522 | vax-dec-* ) | |
2523 | machine=vax | |
2524 | case "${canonical}" in | |
2525 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2526 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2527 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2528 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2529 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2530 | *-vms* ) opsys=vms ;; | |
2531 | * ) unported=yes | |
2532 | esac | |
2533 | ;; | |
2534 | ||
2535 | ## Whitechapel MG1 | |
2536 | ns16k-whitechapel-* ) | |
2537 | machine=mg1 | |
2538 | ## We don't know what sort of OS runs on these; we'll let the | |
2539 | ## operating system guessing code below try. | |
2540 | ;; | |
2541 | ||
2542 | ## Wicat | |
2543 | m68*-wicat-sysv* ) | |
2544 | machine=wicat opsys=usg5-2 | |
2545 | ;; | |
2546 | ||
f4988be7 GM |
2547 | ## IA-64 |
2548 | ia64*-*-linux* ) | |
2549 | machine=ia64 opsys=gnu-linux | |
2550 | ;; | |
2551 | ||
ba4481b5 DL |
2552 | ## Intel 386 machines where we don't care about the manufacturer |
2553 | i[3456]86-*-* ) | |
2554 | machine=intel386 | |
2555 | case "${canonical}" in | |
c60ee5e7 | 2556 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2557 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2558 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2559 | *-isc2.2* ) opsys=isc2-2 ;; | |
2560 | *-isc4.0* ) opsys=isc4-0 ;; | |
2561 | *-isc4.* ) opsys=isc4-1 | |
2562 | GCC_TEST_OPTIONS=-posix | |
2563 | NON_GCC_TEST_OPTIONS=-Xp | |
2564 | ;; | |
2565 | *-isc* ) opsys=isc3-0 ;; | |
2566 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2567 | *-esix* ) opsys=esix ;; | |
2568 | *-xenix* ) opsys=xenix ;; | |
2569 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2570 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2571 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2572 | NON_GNU_CPP=/lib/cpp |
2573 | # Prevent -belf from being passed to $CPP. | |
2574 | # /lib/cpp does not accept it. | |
2575 | OVERRIDE_CPPFLAGS=" " | |
2576 | ;; | |
2577 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
2578 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2579 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2580 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2581 | *-nextstep* ) opsys=nextstep ;; |
2582 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2583 | esac | |
2584 | ;; | |
2585 | ||
2586 | ## m68k Linux-based GNU system | |
2587 | m68k-*-linux-gnu* ) | |
2588 | machine=m68k opsys=gnu-linux | |
2589 | ;; | |
2590 | ||
2591 | ## Mips Linux-based GNU system | |
cd958eb3 | 2592 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2593 | machine=mips opsys=gnu-linux |
2594 | ;; | |
2595 | ||
2596 | ## UXP/DS | |
2597 | sparc-fujitsu-sysv4* ) | |
2598 | machine=sparc opsys=uxpds | |
2599 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2600 | RANLIB="ar -ts" | |
2601 | ;; | |
2602 | ||
2603 | ## UXP/V | |
2604 | f301-fujitsu-uxpv4.1) | |
2605 | machine=f301 opsys=uxpv | |
2606 | ;; | |
2607 | ||
e0f712ba AC |
2608 | ## Darwin / Mac OS X |
2609 | powerpc-apple-darwin* ) | |
2610 | machine=powermac opsys=darwin | |
2611 | # Define CPP as follows to make autoconf work correctly. | |
2a75d75d | 2612 | CPP="${CC-cc} -E -no-cpp-precomp" |
c14dc0ed AS |
2613 | # Use fink packages if available. |
2614 | if test -d /sw/include && test -d /sw/lib; then | |
2615 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2616 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2617 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2618 | fi | |
e0f712ba AC |
2619 | ;; |
2620 | ||
598a2813 AS |
2621 | ## AMD x86-64 Linux-based GNU system |
2622 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2623 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2624 | ;; |
2625 | ||
ba4481b5 DL |
2626 | * ) |
2627 | unported=yes | |
2628 | ;; | |
2629 | esac | |
2630 | ||
2631 | ### If the code above didn't choose an operating system, just choose | |
2632 | ### an operating system based on the configuration name. You really | |
2633 | ### only want to use this when you have no idea what the right | |
2634 | ### operating system is; if you know what operating systems a machine | |
2635 | ### runs, it's cleaner to make it explicit in the case statement | |
2636 | ### above. | |
2637 | if test x"${opsys}" = x; then | |
2638 | case "${canonical}" in | |
2639 | *-gnu* ) opsys=gnu ;; | |
2640 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2641 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2642 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2643 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2644 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2645 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2646 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2647 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2648 | *-sysv5uw* ) opsys=unixware ;; |
2649 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2650 | *-sysv4.1* | *-sysvr4.1* ) |
2651 | NON_GNU_CPP=/usr/lib/cpp | |
2652 | opsys=usg5-4 ;; | |
2653 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2654 | if [ x$NON_GNU_CPP = x ]; then | |
2655 | if [ -f /usr/ccs/lib/cpp ]; then | |
2656 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2657 | else | |
2658 | NON_GNU_CPP=/lib/cpp | |
2659 | fi | |
2660 | fi | |
2661 | opsys=usg5-4-2 ;; | |
2662 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2663 | * ) | |
2664 | unported=yes | |
2665 | ;; | |
2666 | esac | |
2667 | fi | |
2668 | ||
c0d27fcc | 2669 | |
22044edf | 2670 | |
ba4481b5 | 2671 | if test $unported = yes; then |
c0d27fcc | 2672 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2673 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2674 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2675 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2676 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2677 | fi |
2678 | ||
2679 | machfile="m/${machine}.h" | |
2680 | opsysfile="s/${opsys}.h" | |
2681 | ||
c0d27fcc | 2682 | |
ba4481b5 DL |
2683 | #### Choose a compiler. |
2684 | test -n "$CC" && cc_specified=yes | |
2685 | ||
2686 | # Save the value of CFLAGS that the user specified. | |
2687 | SPECIFIED_CFLAGS="$CFLAGS" | |
2688 | ||
2689 | case ${with_gcc} in | |
2690 | "yes" ) CC="gcc" GCC=yes ;; | |
2691 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2692 | * ) |
2693 | esac | |
2694 | ac_ext=c | |
2695 | ac_cpp='$CPP $CPPFLAGS' | |
2696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2699 | if test -n "$ac_tool_prefix"; then | |
2700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2704 | if test "${ac_cv_prog_CC+set}" = set; then | |
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2706 | else |
2707 | if test -n "$CC"; then | |
2708 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2709 | else | |
c0d27fcc MR |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2719 | break 2 | |
2720 | fi | |
2721 | done | |
503d2be0 AS |
2722 | done |
2723 | ||
ba4481b5 DL |
2724 | fi |
2725 | fi | |
503d2be0 | 2726 | CC=$ac_cv_prog_CC |
ba4481b5 | 2727 | if test -n "$CC"; then |
c0d27fcc | 2728 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2729 | echo "${ECHO_T}$CC" >&6 |
2730 | else | |
c0d27fcc | 2731 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2732 | echo "${ECHO_T}no" >&6 |
2733 | fi | |
2734 | ||
2735 | fi | |
2736 | if test -z "$ac_cv_prog_CC"; then | |
2737 | ac_ct_CC=$CC | |
2738 | # Extract the first word of "gcc", so it can be a program name with args. | |
2739 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2744 | else | |
2745 | if test -n "$ac_ct_CC"; then | |
2746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2747 | else | |
c0d27fcc MR |
2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2749 | for as_dir in $PATH | |
2750 | do | |
2751 | IFS=$as_save_IFS | |
2752 | test -z "$as_dir" && as_dir=. | |
2753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2755 | ac_cv_prog_ac_ct_CC="gcc" | |
2756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2757 | break 2 | |
2758 | fi | |
2759 | done | |
503d2be0 AS |
2760 | done |
2761 | ||
2762 | fi | |
2763 | fi | |
2764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2765 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2767 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2768 | else |
c0d27fcc | 2769 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2770 | echo "${ECHO_T}no" >&6 |
2771 | fi | |
2772 | ||
2773 | CC=$ac_ct_CC | |
2774 | else | |
2775 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2776 | fi |
2777 | ||
2778 | if test -z "$CC"; then | |
503d2be0 AS |
2779 | if test -n "$ac_tool_prefix"; then |
2780 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2781 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2784 | if test "${ac_cv_prog_CC+set}" = set; then | |
2785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2786 | else |
2787 | if test -n "$CC"; then | |
2788 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2789 | else | |
c0d27fcc MR |
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2791 | for as_dir in $PATH | |
2792 | do | |
2793 | IFS=$as_save_IFS | |
2794 | test -z "$as_dir" && as_dir=. | |
2795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2797 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2799 | break 2 | |
2800 | fi | |
2801 | done | |
503d2be0 AS |
2802 | done |
2803 | ||
2804 | fi | |
2805 | fi | |
2806 | CC=$ac_cv_prog_CC | |
2807 | if test -n "$CC"; then | |
c0d27fcc | 2808 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2809 | echo "${ECHO_T}$CC" >&6 |
2810 | else | |
c0d27fcc | 2811 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2812 | echo "${ECHO_T}no" >&6 |
2813 | fi | |
2814 | ||
2815 | fi | |
2816 | if test -z "$ac_cv_prog_CC"; then | |
2817 | ac_ct_CC=$CC | |
2818 | # Extract the first word of "cc", so it can be a program name with args. | |
2819 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2824 | else | |
2825 | if test -n "$ac_ct_CC"; then | |
2826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2827 | else | |
c0d27fcc MR |
2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2829 | for as_dir in $PATH | |
2830 | do | |
2831 | IFS=$as_save_IFS | |
2832 | test -z "$as_dir" && as_dir=. | |
2833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2835 | ac_cv_prog_ac_ct_CC="cc" | |
2836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2837 | break 2 | |
2838 | fi | |
2839 | done | |
503d2be0 AS |
2840 | done |
2841 | ||
2842 | fi | |
2843 | fi | |
2844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2845 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2846 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2847 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2848 | else | |
c0d27fcc | 2849 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2850 | echo "${ECHO_T}no" >&6 |
2851 | fi | |
2852 | ||
2853 | CC=$ac_ct_CC | |
2854 | else | |
2855 | CC="$ac_cv_prog_CC" | |
2856 | fi | |
2857 | ||
2858 | fi | |
2859 | if test -z "$CC"; then | |
2860 | # Extract the first word of "cc", so it can be a program name with args. | |
2861 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2864 | if test "${ac_cv_prog_CC+set}" = set; then | |
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2866 | else | |
2867 | if test -n "$CC"; then | |
2868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2869 | else | |
2870 | ac_prog_rejected=no | |
c0d27fcc MR |
2871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2872 | for as_dir in $PATH | |
2873 | do | |
2874 | IFS=$as_save_IFS | |
2875 | test -z "$as_dir" && as_dir=. | |
2876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2878 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2879 | ac_prog_rejected=yes | |
2880 | continue | |
2881 | fi | |
2882 | ac_cv_prog_CC="cc" | |
2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2884 | break 2 | |
2885 | fi | |
2886 | done | |
503d2be0 AS |
2887 | done |
2888 | ||
ba4481b5 DL |
2889 | if test $ac_prog_rejected = yes; then |
2890 | # We found a bogon in the path, so make sure we never use it. | |
2891 | set dummy $ac_cv_prog_CC | |
2892 | shift | |
503d2be0 | 2893 | if test $# != 0; then |
ba4481b5 DL |
2894 | # We chose a different compiler from the bogus one. |
2895 | # However, it has the same basename, so the bogon will be chosen | |
2896 | # first if we set CC to just the basename; use the full file name. | |
2897 | shift | |
6bae0ccf | 2898 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2899 | fi |
2900 | fi | |
2901 | fi | |
2902 | fi | |
503d2be0 | 2903 | CC=$ac_cv_prog_CC |
ba4481b5 | 2904 | if test -n "$CC"; then |
c0d27fcc | 2905 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2906 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2907 | else |
c0d27fcc | 2908 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2909 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2910 | fi |
2911 | ||
503d2be0 AS |
2912 | fi |
2913 | if test -z "$CC"; then | |
2914 | if test -n "$ac_tool_prefix"; then | |
2915 | for ac_prog in cl | |
2916 | do | |
2917 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2918 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2921 | if test "${ac_cv_prog_CC+set}" = set; then | |
2922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2923 | else |
2924 | if test -n "$CC"; then | |
2925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2926 | else | |
c0d27fcc MR |
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2928 | for as_dir in $PATH | |
2929 | do | |
2930 | IFS=$as_save_IFS | |
2931 | test -z "$as_dir" && as_dir=. | |
2932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2936 | break 2 | |
2937 | fi | |
2938 | done | |
503d2be0 AS |
2939 | done |
2940 | ||
c4bb2108 DL |
2941 | fi |
2942 | fi | |
503d2be0 | 2943 | CC=$ac_cv_prog_CC |
c4bb2108 | 2944 | if test -n "$CC"; then |
c0d27fcc | 2945 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2946 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2947 | else |
c0d27fcc | 2948 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2949 | echo "${ECHO_T}no" >&6 |
2950 | fi | |
2951 | ||
2952 | test -n "$CC" && break | |
2953 | done | |
2954 | fi | |
2955 | if test -z "$CC"; then | |
2956 | ac_ct_CC=$CC | |
2957 | for ac_prog in cl | |
2958 | do | |
2959 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2960 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2963 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2965 | else | |
2966 | if test -n "$ac_ct_CC"; then | |
2967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2968 | else | |
c0d27fcc MR |
2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2970 | for as_dir in $PATH | |
2971 | do | |
2972 | IFS=$as_save_IFS | |
2973 | test -z "$as_dir" && as_dir=. | |
2974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2976 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2978 | break 2 | |
2979 | fi | |
2980 | done | |
503d2be0 AS |
2981 | done |
2982 | ||
c4bb2108 | 2983 | fi |
503d2be0 AS |
2984 | fi |
2985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2986 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2987 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2988 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2989 | else | |
c0d27fcc | 2990 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2991 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2992 | fi |
2993 | ||
503d2be0 AS |
2994 | test -n "$ac_ct_CC" && break |
2995 | done | |
ba4481b5 | 2996 | |
503d2be0 AS |
2997 | CC=$ac_ct_CC |
2998 | fi | |
2999 | ||
3000 | fi | |
ba4481b5 | 3001 | |
c0d27fcc | 3002 | |
19650fd6 AS |
3003 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3004 | See \`config.log' for more details." >&5 | |
3005 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3006 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3007 | { (exit 1); exit 1; }; } |
c4bb2108 | 3008 | |
503d2be0 | 3009 | # Provide some information about the compiler. |
c0d27fcc | 3010 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
3011 | "checking for C compiler version" >&5 |
3012 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 3013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
3014 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3015 | ac_status=$? | |
c0d27fcc | 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3017 | (exit $ac_status); } |
c0d27fcc | 3018 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
3019 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3020 | ac_status=$? | |
c0d27fcc | 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3022 | (exit $ac_status); } |
c0d27fcc | 3023 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
3024 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3025 | ac_status=$? | |
c0d27fcc | 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3027 | (exit $ac_status); } |
3028 | ||
3029 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3030 | /* confdefs.h. */ |
3031 | _ACEOF | |
3032 | cat confdefs.h >>conftest.$ac_ext | |
3033 | cat >>conftest.$ac_ext <<_ACEOF | |
3034 | /* end confdefs.h. */ | |
c4bb2108 | 3035 | |
503d2be0 AS |
3036 | int |
3037 | main () | |
3038 | { | |
3039 | ||
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3045 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3046 | # Try to create an executable without -o first, disregard a.out. |
3047 | # It will help us diagnose broken compilers, and finding out an intuition | |
3048 | # of exeext. | |
35996d22 AS |
3049 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3050 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
503d2be0 | 3051 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
c0d27fcc | 3052 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
3053 | (eval $ac_link_default) 2>&5 |
3054 | ac_status=$? | |
c0d27fcc | 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3056 | (exit $ac_status); }; then |
3057 | # Find the output, starting from the most likely. This scheme is | |
3058 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3059 | # resort. | |
c0d27fcc MR |
3060 | |
3061 | # Be careful to initialize this variable, since it used to be cached. | |
3062 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3063 | ac_cv_exeext= | |
19650fd6 AS |
3064 | # b.out is created by i960 compilers. |
3065 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3066 | do | |
6bae0ccf | 3067 | test -f "$ac_file" || continue |
503d2be0 | 3068 | case $ac_file in |
19650fd6 | 3069 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
35996d22 | 3070 | ;; |
19650fd6 | 3071 | conftest.$ac_ext ) |
35996d22 AS |
3072 | # This is the source file. |
3073 | ;; | |
19650fd6 | 3074 | [ab].out ) |
35996d22 AS |
3075 | # We found the default executable, but exeext='' is most |
3076 | # certainly right. | |
3077 | break;; | |
19650fd6 | 3078 | *.* ) |
35996d22 AS |
3079 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3080 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3081 | # but it would be cool to find out if it's true. Does anybody | |
3082 | # maintain Libtool? --akim. | |
3083 | export ac_cv_exeext | |
3084 | break;; | |
19650fd6 | 3085 | * ) |
35996d22 | 3086 | break;; |
503d2be0 AS |
3087 | esac |
3088 | done | |
3089 | else | |
3090 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3091 | sed 's/^/| /' conftest.$ac_ext >&5 |
3092 | ||
6bae0ccf | 3093 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3094 | See \`config.log' for more details." >&5 |
6bae0ccf | 3095 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3096 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3097 | { (exit 77); exit 77; }; } |
3098 | fi | |
3099 | ||
3100 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3101 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3102 | echo "${ECHO_T}$ac_file" >&6 |
3103 | ||
3104 | # Check the compiler produces executables we can run. If not, either | |
3105 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3106 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3107 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3108 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3109 | # If not cross compiling, check that we can run a simple program. | |
3110 | if test "$cross_compiling" != yes; then | |
3111 | if { ac_try='./$ac_file' | |
c0d27fcc | 3112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3113 | (eval $ac_try) 2>&5 |
3114 | ac_status=$? | |
c0d27fcc | 3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3116 | (exit $ac_status); }; }; then |
3117 | cross_compiling=no | |
ba4481b5 | 3118 | else |
503d2be0 AS |
3119 | if test "$cross_compiling" = maybe; then |
3120 | cross_compiling=yes | |
3121 | else | |
c0d27fcc | 3122 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3123 | If you meant to cross compile, use \`--host'. |
3124 | See \`config.log' for more details." >&5 | |
503d2be0 | 3125 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3126 | If you meant to cross compile, use \`--host'. |
3127 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3128 | { (exit 1); exit 1; }; } |
3129 | fi | |
ba4481b5 | 3130 | fi |
503d2be0 | 3131 | fi |
c0d27fcc | 3132 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3133 | echo "${ECHO_T}yes" >&6 |
3134 | ||
19650fd6 | 3135 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3136 | ac_clean_files=$ac_clean_files_save |
3137 | # Check the compiler produces executables we can run. If not, either | |
3138 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3139 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3140 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3141 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3142 | echo "${ECHO_T}$cross_compiling" >&6 |
3143 | ||
c0d27fcc MR |
3144 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3145 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3147 | (eval $ac_link) 2>&5 |
3148 | ac_status=$? | |
c0d27fcc | 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3150 | (exit $ac_status); }; then |
3151 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3152 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3153 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3154 | # `rm'. | |
6bae0ccf DL |
3155 | for ac_file in conftest.exe conftest conftest.*; do |
3156 | test -f "$ac_file" || continue | |
503d2be0 | 3157 | case $ac_file in |
6bae0ccf | 3158 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 | 3159 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
35996d22 AS |
3160 | export ac_cv_exeext |
3161 | break;; | |
503d2be0 AS |
3162 | * ) break;; |
3163 | esac | |
3164 | done | |
ba4481b5 | 3165 | else |
19650fd6 AS |
3166 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3167 | See \`config.log' for more details." >&5 | |
3168 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3169 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3170 | { (exit 1); exit 1; }; } |
ba4481b5 | 3171 | fi |
ba4481b5 | 3172 | |
503d2be0 | 3173 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3174 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3175 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3176 | |
503d2be0 AS |
3177 | rm -f conftest.$ac_ext |
3178 | EXEEXT=$ac_cv_exeext | |
3179 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3180 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3181 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3182 | if test "${ac_cv_objext+set}" = set; then |
3183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3184 | else |
503d2be0 | 3185 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3186 | /* confdefs.h. */ |
3187 | _ACEOF | |
3188 | cat confdefs.h >>conftest.$ac_ext | |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
ba4481b5 | 3191 | |
503d2be0 AS |
3192 | int |
3193 | main () | |
3194 | { | |
ba4481b5 | 3195 | |
503d2be0 AS |
3196 | ; |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
3200 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3202 | (eval $ac_compile) 2>&5 |
3203 | ac_status=$? | |
c0d27fcc | 3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3205 | (exit $ac_status); }; then |
3206 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3207 | case $ac_file in | |
6bae0ccf | 3208 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3209 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3210 | break;; | |
3211 | esac | |
3212 | done | |
c4bb2108 | 3213 | else |
503d2be0 | 3214 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3215 | sed 's/^/| /' conftest.$ac_ext >&5 |
3216 | ||
3217 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3218 | See \`config.log' for more details." >&5 | |
3219 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3220 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3221 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3222 | fi |
3223 | ||
503d2be0 AS |
3224 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3225 | fi | |
c0d27fcc | 3226 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3227 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3228 | OBJEXT=$ac_cv_objext | |
3229 | ac_objext=$OBJEXT | |
c0d27fcc | 3230 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3231 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3232 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3234 | else |
503d2be0 | 3235 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3236 | /* confdefs.h. */ |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
503d2be0 AS |
3241 | |
3242 | int | |
3243 | main () | |
3244 | { | |
3245 | #ifndef __GNUC__ | |
3246 | choke me | |
3247 | #endif | |
3248 | ||
3249 | ; | |
3250 | return 0; | |
3251 | } | |
3252 | _ACEOF | |
3253 | rm -f conftest.$ac_objext | |
c0d27fcc | 3254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3255 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3256 | ac_status=$? |
35996d22 AS |
3257 | grep -v '^ *+' conftest.er1 >conftest.err |
3258 | rm -f conftest.er1 | |
3259 | cat conftest.err >&5 | |
c0d27fcc | 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3261 | (exit $ac_status); } && |
35996d22 AS |
3262 | { ac_try='test -z "$ac_c_werror_flag" |
3263 | || test ! -s conftest.err' | |
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3265 | (eval $ac_try) 2>&5 | |
3266 | ac_status=$? | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3268 | (exit $ac_status); }; } && | |
3269 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3271 | (eval $ac_try) 2>&5 |
3272 | ac_status=$? | |
c0d27fcc | 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3274 | (exit $ac_status); }; }; then |
3275 | ac_compiler_gnu=yes | |
3276 | else | |
3277 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
3279 | ||
503d2be0 AS |
3280 | ac_compiler_gnu=no |
3281 | fi | |
35996d22 | 3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3283 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3284 | ||
3285 | fi | |
c0d27fcc | 3286 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3287 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3288 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3289 | ac_test_CFLAGS=${CFLAGS+set} | |
3290 | ac_save_CFLAGS=$CFLAGS | |
3291 | CFLAGS="-g" | |
c0d27fcc | 3292 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3293 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3294 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3296 | else | |
3297 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3298 | /* confdefs.h. */ |
3299 | _ACEOF | |
3300 | cat confdefs.h >>conftest.$ac_ext | |
3301 | cat >>conftest.$ac_ext <<_ACEOF | |
3302 | /* end confdefs.h. */ | |
503d2be0 AS |
3303 | |
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | ||
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
3312 | rm -f conftest.$ac_objext | |
c0d27fcc | 3313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3314 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3315 | ac_status=$? |
35996d22 AS |
3316 | grep -v '^ *+' conftest.er1 >conftest.err |
3317 | rm -f conftest.er1 | |
3318 | cat conftest.err >&5 | |
c0d27fcc | 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3320 | (exit $ac_status); } && |
35996d22 AS |
3321 | { ac_try='test -z "$ac_c_werror_flag" |
3322 | || test ! -s conftest.err' | |
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3324 | (eval $ac_try) 2>&5 | |
3325 | ac_status=$? | |
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3327 | (exit $ac_status); }; } && | |
3328 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3330 | (eval $ac_try) 2>&5 |
3331 | ac_status=$? | |
c0d27fcc | 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3333 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3334 | ac_cv_prog_cc_g=yes |
3335 | else | |
503d2be0 | 3336 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
3338 | ||
503d2be0 | 3339 | ac_cv_prog_cc_g=no |
ba4481b5 | 3340 | fi |
35996d22 | 3341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3342 | fi |
c0d27fcc | 3343 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3344 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3345 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3346 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3347 | elif test $ac_cv_prog_cc_g = yes; then |
3348 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3349 | CFLAGS="-g -O2" |
3350 | else | |
c4bb2108 | 3351 | CFLAGS="-g" |
ba4481b5 | 3352 | fi |
22afa6e8 | 3353 | else |
c4bb2108 DL |
3354 | if test "$GCC" = yes; then |
3355 | CFLAGS="-O2" | |
3356 | else | |
3357 | CFLAGS= | |
3358 | fi | |
ba4481b5 | 3359 | fi |
6bae0ccf DL |
3360 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3361 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3362 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3364 | else | |
3365 | ac_cv_prog_cc_stdc=no | |
3366 | ac_save_CC=$CC | |
3367 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3368 | /* confdefs.h. */ |
3369 | _ACEOF | |
3370 | cat confdefs.h >>conftest.$ac_ext | |
3371 | cat >>conftest.$ac_ext <<_ACEOF | |
3372 | /* end confdefs.h. */ | |
6bae0ccf DL |
3373 | #include <stdarg.h> |
3374 | #include <stdio.h> | |
3375 | #include <sys/types.h> | |
3376 | #include <sys/stat.h> | |
3377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3378 | struct buf { int x; }; | |
3379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3380 | static char *e (p, i) | |
3381 | char **p; | |
3382 | int i; | |
3383 | { | |
3384 | return p[i]; | |
3385 | } | |
3386 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3387 | { | |
3388 | char *s; | |
3389 | va_list v; | |
3390 | va_start (v,p); | |
3391 | s = g (p, va_arg (v,int)); | |
3392 | va_end (v); | |
3393 | return s; | |
3394 | } | |
35996d22 AS |
3395 | |
3396 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3397 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3398 | These don't provoke an error unfortunately, instead are silently treated | |
3399 | as 'x'. The following induces an error, until -std1 is added to get | |
3400 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3401 | array size at least. It's necessary to write '\x00'==0 to get something | |
3402 | that's true only with -std1. */ | |
3403 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3404 | ||
6bae0ccf DL |
3405 | int test (int i, double x); |
3406 | struct s1 {int (*f) (int a);}; | |
3407 | struct s2 {int (*f) (double a);}; | |
3408 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3409 | int argc; | |
3410 | char **argv; | |
3411 | int | |
3412 | main () | |
3413 | { | |
3414 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3415 | ; | |
3416 | return 0; | |
3417 | } | |
3418 | _ACEOF | |
3419 | # Don't try gcc -ansi; that turns off useful extensions and | |
3420 | # breaks some systems' header files. | |
3421 | # AIX -qlanglvl=ansi | |
3422 | # Ultrix and OSF/1 -std1 | |
3423 | # HP-UX 10.20 and later -Ae | |
3424 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3425 | # SVR4 -Xc -D__EXTENSIONS__ | |
3426 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3427 | do | |
3428 | CC="$ac_save_CC $ac_arg" | |
3429 | rm -f conftest.$ac_objext | |
3430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 3431 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 3432 | ac_status=$? |
35996d22 AS |
3433 | grep -v '^ *+' conftest.er1 >conftest.err |
3434 | rm -f conftest.er1 | |
3435 | cat conftest.err >&5 | |
6bae0ccf DL |
3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3437 | (exit $ac_status); } && | |
35996d22 AS |
3438 | { ac_try='test -z "$ac_c_werror_flag" |
3439 | || test ! -s conftest.err' | |
3440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3441 | (eval $ac_try) 2>&5 | |
3442 | ac_status=$? | |
3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3444 | (exit $ac_status); }; } && | |
3445 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3447 | (eval $ac_try) 2>&5 | |
3448 | ac_status=$? | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3450 | (exit $ac_status); }; }; then | |
3451 | ac_cv_prog_cc_stdc=$ac_arg | |
3452 | break | |
3453 | else | |
3454 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
3456 | ||
6bae0ccf | 3457 | fi |
35996d22 | 3458 | rm -f conftest.err conftest.$ac_objext |
6bae0ccf DL |
3459 | done |
3460 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3461 | CC=$ac_save_CC | |
3462 | ||
3463 | fi | |
3464 | ||
3465 | case "x$ac_cv_prog_cc_stdc" in | |
3466 | x|xno) | |
3467 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3468 | echo "${ECHO_T}none needed" >&6 ;; | |
3469 | *) | |
3470 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3471 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3472 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3473 | esac | |
3474 | ||
503d2be0 AS |
3475 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3476 | # in C++ we need to declare it. In case someone uses the same compiler | |
3477 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3478 | # the declaration of exit, since it's the most demanding environment. | |
3479 | cat >conftest.$ac_ext <<_ACEOF | |
3480 | #ifndef __cplusplus | |
3481 | choke me | |
3482 | #endif | |
3483 | _ACEOF | |
3484 | rm -f conftest.$ac_objext | |
c0d27fcc | 3485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3486 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3487 | ac_status=$? |
35996d22 AS |
3488 | grep -v '^ *+' conftest.er1 >conftest.err |
3489 | rm -f conftest.er1 | |
3490 | cat conftest.err >&5 | |
c0d27fcc | 3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3492 | (exit $ac_status); } && |
35996d22 AS |
3493 | { ac_try='test -z "$ac_c_werror_flag" |
3494 | || test ! -s conftest.err' | |
3495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3496 | (eval $ac_try) 2>&5 | |
3497 | ac_status=$? | |
3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3499 | (exit $ac_status); }; } && | |
3500 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3502 | (eval $ac_try) 2>&5 |
3503 | ac_status=$? | |
c0d27fcc | 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3505 | (exit $ac_status); }; }; then |
3506 | for ac_declaration in \ | |
35996d22 | 3507 | '' \ |
503d2be0 AS |
3508 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3509 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3510 | 'extern "C" void exit (int) throw ();' \ | |
3511 | 'extern "C" void exit (int);' \ | |
cffcede7 | 3512 | 'void exit (int);' |
503d2be0 AS |
3513 | do |
3514 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3515 | /* confdefs.h. */ |
3516 | _ACEOF | |
3517 | cat confdefs.h >>conftest.$ac_ext | |
3518 | cat >>conftest.$ac_ext <<_ACEOF | |
3519 | /* end confdefs.h. */ | |
57669b57 | 3520 | $ac_declaration |
35996d22 | 3521 | #include <stdlib.h> |
503d2be0 AS |
3522 | int |
3523 | main () | |
3524 | { | |
3525 | exit (42); | |
3526 | ; | |
3527 | return 0; | |
3528 | } | |
3529 | _ACEOF | |
3530 | rm -f conftest.$ac_objext | |
c0d27fcc | 3531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3532 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3533 | ac_status=$? |
35996d22 AS |
3534 | grep -v '^ *+' conftest.er1 >conftest.err |
3535 | rm -f conftest.er1 | |
3536 | cat conftest.err >&5 | |
c0d27fcc | 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3538 | (exit $ac_status); } && |
35996d22 AS |
3539 | { ac_try='test -z "$ac_c_werror_flag" |
3540 | || test ! -s conftest.err' | |
3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3542 | (eval $ac_try) 2>&5 | |
3543 | ac_status=$? | |
3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3545 | (exit $ac_status); }; } && | |
3546 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3548 | (eval $ac_try) 2>&5 |
3549 | ac_status=$? | |
c0d27fcc | 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3551 | (exit $ac_status); }; }; then |
3552 | : | |
3553 | else | |
3554 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
3556 | ||
503d2be0 AS |
3557 | continue |
3558 | fi | |
35996d22 | 3559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 3560 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3561 | /* confdefs.h. */ |
3562 | _ACEOF | |
3563 | cat confdefs.h >>conftest.$ac_ext | |
3564 | cat >>conftest.$ac_ext <<_ACEOF | |
3565 | /* end confdefs.h. */ | |
503d2be0 AS |
3566 | $ac_declaration |
3567 | int | |
3568 | main () | |
3569 | { | |
3570 | exit (42); | |
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
c0d27fcc | 3576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3577 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3578 | ac_status=$? |
35996d22 AS |
3579 | grep -v '^ *+' conftest.er1 >conftest.err |
3580 | rm -f conftest.er1 | |
3581 | cat conftest.err >&5 | |
c0d27fcc | 3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3583 | (exit $ac_status); } && |
35996d22 AS |
3584 | { ac_try='test -z "$ac_c_werror_flag" |
3585 | || test ! -s conftest.err' | |
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3587 | (eval $ac_try) 2>&5 | |
3588 | ac_status=$? | |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3590 | (exit $ac_status); }; } && | |
3591 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3593 | (eval $ac_try) 2>&5 |
3594 | ac_status=$? | |
c0d27fcc | 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3596 | (exit $ac_status); }; }; then |
3597 | break | |
3598 | else | |
3599 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
3601 | ||
503d2be0 | 3602 | fi |
35996d22 | 3603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3604 | done |
3605 | rm -f conftest* | |
3606 | if test -n "$ac_declaration"; then | |
3607 | echo '#ifdef __cplusplus' >>confdefs.h | |
3608 | echo $ac_declaration >>confdefs.h | |
3609 | echo '#endif' >>confdefs.h | |
3610 | fi | |
ba4481b5 | 3611 | |
503d2be0 AS |
3612 | else |
3613 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3614 | sed 's/^/| /' conftest.$ac_ext >&5 |
3615 | ||
503d2be0 | 3616 | fi |
35996d22 | 3617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3618 | ac_ext=c |
3619 | ac_cpp='$CPP $CPPFLAGS' | |
3620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3623 | |
c0d27fcc | 3624 | |
ba4481b5 DL |
3625 | # On Suns, sometimes $CPP names a directory. |
3626 | if test -n "$CPP" && test -d "$CPP"; then | |
3627 | CPP= | |
3628 | fi | |
3629 | ||
3630 | #### Some systems specify a CPP to use unless we are using GCC. | |
3631 | #### Now that we know whether we are using GCC, we can decide whether | |
3632 | #### to use that one. | |
3633 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3634 | then | |
3635 | CPP="$NON_GNU_CPP" | |
3636 | fi | |
3637 | ||
3638 | #### Some systems specify a CC to use unless we are using GCC. | |
3639 | #### Now that we know whether we are using GCC, we can decide whether | |
3640 | #### to use that one. | |
3641 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3642 | test x$cc_specified != xyes | |
3643 | then | |
3644 | CC="$NON_GNU_CC" | |
3645 | fi | |
3646 | ||
3647 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3648 | then | |
3649 | CC="$CC $GCC_TEST_OPTIONS" | |
3650 | fi | |
3651 | ||
3652 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3653 | then | |
3654 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3655 | fi | |
3656 | ||
6a3a24fa | 3657 | #### Some other nice autoconf tests. |
ba4481b5 | 3658 | |
c0d27fcc | 3659 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3660 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3661 | LN_S=$as_ln_s | |
3662 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3663 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3664 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3665 | else |
c0d27fcc | 3666 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3667 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3668 | fi |
3669 | ||
503d2be0 AS |
3670 | ac_ext=c |
3671 | ac_cpp='$CPP $CPPFLAGS' | |
3672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3675 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3676 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3677 | # On Suns, sometimes $CPP names a directory. |
3678 | if test -n "$CPP" && test -d "$CPP"; then | |
3679 | CPP= | |
3680 | fi | |
3681 | if test -z "$CPP"; then | |
503d2be0 AS |
3682 | if test "${ac_cv_prog_CPP+set}" = set; then |
3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3684 | else | |
3685 | # Double quotes because CPP needs to be expanded | |
3686 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3687 | do | |
3688 | ac_preproc_ok=false | |
3689 | for ac_c_preproc_warn_flag in '' yes | |
3690 | do | |
3691 | # Use a header file that comes with gcc, so configuring glibc | |
3692 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3693 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3694 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3695 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3696 | # not just through cpp. "Syntax error" is here to catch this case. |
3697 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3698 | /* confdefs.h. */ |
3699 | _ACEOF | |
3700 | cat confdefs.h >>conftest.$ac_ext | |
3701 | cat >>conftest.$ac_ext <<_ACEOF | |
3702 | /* end confdefs.h. */ | |
3703 | #ifdef __STDC__ | |
3704 | # include <limits.h> | |
3705 | #else | |
3706 | # include <assert.h> | |
3707 | #endif | |
35996d22 | 3708 | Syntax error |
503d2be0 | 3709 | _ACEOF |
c0d27fcc | 3710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3712 | ac_status=$? | |
6bae0ccf | 3713 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3714 | rm -f conftest.er1 |
3715 | cat conftest.err >&5 | |
c0d27fcc | 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3717 | (exit $ac_status); } >/dev/null; then |
3718 | if test -s conftest.err; then | |
3719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3721 | else |
3722 | ac_cpp_err= | |
3723 | fi | |
3724 | else | |
3725 | ac_cpp_err=yes | |
3726 | fi | |
3727 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3728 | : |
3729 | else | |
503d2be0 | 3730 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3731 | sed 's/^/| /' conftest.$ac_ext >&5 |
3732 | ||
503d2be0 AS |
3733 | # Broken: fails on valid input. |
3734 | continue | |
3735 | fi | |
3736 | rm -f conftest.err conftest.$ac_ext | |
3737 | ||
3738 | # OK, works on sane cases. Now check whether non-existent headers | |
3739 | # can be detected and how. | |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3741 | /* confdefs.h. */ |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
503d2be0 AS |
3746 | #include <ac_nonexistent.h> |
3747 | _ACEOF | |
c0d27fcc | 3748 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3749 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3750 | ac_status=$? | |
6bae0ccf | 3751 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3752 | rm -f conftest.er1 |
3753 | cat conftest.err >&5 | |
c0d27fcc | 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3755 | (exit $ac_status); } >/dev/null; then |
3756 | if test -s conftest.err; then | |
3757 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3758 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3759 | else |
3760 | ac_cpp_err= | |
3761 | fi | |
3762 | else | |
3763 | ac_cpp_err=yes | |
3764 | fi | |
3765 | if test -z "$ac_cpp_err"; then | |
3766 | # Broken: success on invalid input. | |
3767 | continue | |
c4bb2108 | 3768 | else |
503d2be0 | 3769 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3770 | sed 's/^/| /' conftest.$ac_ext >&5 |
3771 | ||
503d2be0 AS |
3772 | # Passes both tests. |
3773 | ac_preproc_ok=: | |
3774 | break | |
3775 | fi | |
3776 | rm -f conftest.err conftest.$ac_ext | |
3777 | ||
3778 | done | |
3779 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3780 | rm -f conftest.err conftest.$ac_ext | |
3781 | if $ac_preproc_ok; then | |
3782 | break | |
3783 | fi | |
3784 | ||
3785 | done | |
3786 | ac_cv_prog_CPP=$CPP | |
3787 | ||
3788 | fi | |
3789 | CPP=$ac_cv_prog_CPP | |
3790 | else | |
3791 | ac_cv_prog_CPP=$CPP | |
3792 | fi | |
c0d27fcc | 3793 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3794 | echo "${ECHO_T}$CPP" >&6 |
3795 | ac_preproc_ok=false | |
3796 | for ac_c_preproc_warn_flag in '' yes | |
3797 | do | |
3798 | # Use a header file that comes with gcc, so configuring glibc | |
3799 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3800 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3801 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3802 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3803 | # not just through cpp. "Syntax error" is here to catch this case. | |
3804 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3805 | /* confdefs.h. */ |
3806 | _ACEOF | |
3807 | cat confdefs.h >>conftest.$ac_ext | |
3808 | cat >>conftest.$ac_ext <<_ACEOF | |
3809 | /* end confdefs.h. */ | |
3810 | #ifdef __STDC__ | |
3811 | # include <limits.h> | |
3812 | #else | |
3813 | # include <assert.h> | |
3814 | #endif | |
35996d22 | 3815 | Syntax error |
503d2be0 | 3816 | _ACEOF |
c0d27fcc | 3817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3819 | ac_status=$? | |
6bae0ccf | 3820 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3821 | rm -f conftest.er1 |
3822 | cat conftest.err >&5 | |
c0d27fcc | 3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3824 | (exit $ac_status); } >/dev/null; then |
3825 | if test -s conftest.err; then | |
3826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3828 | else |
3829 | ac_cpp_err= | |
3830 | fi | |
3831 | else | |
3832 | ac_cpp_err=yes | |
3833 | fi | |
3834 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3835 | : |
3836 | else | |
503d2be0 | 3837 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3838 | sed 's/^/| /' conftest.$ac_ext >&5 |
3839 | ||
503d2be0 AS |
3840 | # Broken: fails on valid input. |
3841 | continue | |
3842 | fi | |
3843 | rm -f conftest.err conftest.$ac_ext | |
3844 | ||
3845 | # OK, works on sane cases. Now check whether non-existent headers | |
3846 | # can be detected and how. | |
3847 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3848 | /* confdefs.h. */ |
3849 | _ACEOF | |
3850 | cat confdefs.h >>conftest.$ac_ext | |
3851 | cat >>conftest.$ac_ext <<_ACEOF | |
3852 | /* end confdefs.h. */ | |
503d2be0 AS |
3853 | #include <ac_nonexistent.h> |
3854 | _ACEOF | |
c0d27fcc | 3855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3857 | ac_status=$? | |
6bae0ccf | 3858 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3859 | rm -f conftest.er1 |
3860 | cat conftest.err >&5 | |
c0d27fcc | 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3862 | (exit $ac_status); } >/dev/null; then |
3863 | if test -s conftest.err; then | |
3864 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3866 | else |
3867 | ac_cpp_err= | |
3868 | fi | |
3869 | else | |
3870 | ac_cpp_err=yes | |
c4bb2108 | 3871 | fi |
503d2be0 AS |
3872 | if test -z "$ac_cpp_err"; then |
3873 | # Broken: success on invalid input. | |
3874 | continue | |
3875 | else | |
3876 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3877 | sed 's/^/| /' conftest.$ac_ext >&5 |
3878 | ||
503d2be0 AS |
3879 | # Passes both tests. |
3880 | ac_preproc_ok=: | |
3881 | break | |
ba4481b5 | 3882 | fi |
503d2be0 AS |
3883 | rm -f conftest.err conftest.$ac_ext |
3884 | ||
3885 | done | |
3886 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3887 | rm -f conftest.err conftest.$ac_ext | |
3888 | if $ac_preproc_ok; then | |
3889 | : | |
ba4481b5 | 3890 | else |
19650fd6 AS |
3891 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3892 | See \`config.log' for more details." >&5 | |
3893 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3894 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3895 | { (exit 1); exit 1; }; } |
ba4481b5 | 3896 | fi |
503d2be0 AS |
3897 | |
3898 | ac_ext=c | |
3899 | ac_cpp='$CPP $CPPFLAGS' | |
3900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3903 | |
3904 | # Find a good install program. We prefer a C program (faster), | |
3905 | # so one script is as good as another. But avoid the broken or | |
3906 | # incompatible versions: | |
3907 | # SysV /etc/install, /usr/sbin/install | |
3908 | # SunOS /usr/etc/install | |
3909 | # IRIX /sbin/install | |
3910 | # AIX /bin/install | |
503d2be0 | 3911 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3912 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3913 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3914 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
35996d22 | 3915 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 3916 | # ./install, which can be erroneously created by make from ./install.sh. |
c0d27fcc MR |
3917 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3918 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3919 | if test -z "$INSTALL"; then |
503d2be0 AS |
3920 | if test "${ac_cv_path_install+set}" = set; then |
3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3922 | else |
c0d27fcc MR |
3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3924 | for as_dir in $PATH | |
3925 | do | |
3926 | IFS=$as_save_IFS | |
3927 | test -z "$as_dir" && as_dir=. | |
3928 | # Account for people who put trailing slashes in PATH elements. | |
3929 | case $as_dir/ in | |
3930 | ./ | .// | /cC/* | \ | |
3931 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
35996d22 | 3932 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
3933 | /usr/ucb/* ) ;; |
3934 | *) | |
3935 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3936 | # Don't use installbsd from OSF since it installs stuff as root | |
3937 | # by default. | |
3938 | for ac_prog in ginstall scoinst install; do | |
3939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35996d22 AS |
3940 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3941 | if test $ac_prog = install && | |
3942 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3943 | # AIX install. It has an incompatible calling convention. | |
3944 | : | |
3945 | elif test $ac_prog = install && | |
3946 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3947 | # program-specific install script used by HP pwplus--don't use. | |
3948 | : | |
3949 | else | |
3950 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3951 | break 3 | |
3952 | fi | |
3953 | fi | |
ba4481b5 | 3954 | done |
c0d27fcc MR |
3955 | done |
3956 | ;; | |
3957 | esac | |
3958 | done | |
3959 | ||
ba4481b5 DL |
3960 | |
3961 | fi | |
3962 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3963 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3964 | else |
3965 | # As a last resort, use the slow shell script. We don't cache a | |
3966 | # path for INSTALL within a source directory, because that will | |
3967 | # break other packages using the cache if that directory is | |
3968 | # removed, or if the path is relative. | |
503d2be0 | 3969 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3970 | fi |
3971 | fi | |
c0d27fcc | 3972 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3973 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3974 | |
3975 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3976 | # It thinks the first close brace ends the variable substitution. | |
3977 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3978 | ||
503d2be0 | 3979 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3980 | |
ba4481b5 DL |
3981 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3982 | ||
c0d27fcc MR |
3983 | if test "x$RANLIB" = x; then |
3984 | if test -n "$ac_tool_prefix"; then | |
3985 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3986 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3989 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3991 | else |
3992 | if test -n "$RANLIB"; then | |
3993 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3994 | else | |
c0d27fcc MR |
3995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3996 | for as_dir in $PATH | |
3997 | do | |
3998 | IFS=$as_save_IFS | |
3999 | test -z "$as_dir" && as_dir=. | |
4000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4002 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4004 | break 2 | |
4005 | fi | |
4006 | done | |
503d2be0 AS |
4007 | done |
4008 | ||
7397acc4 DL |
4009 | fi |
4010 | fi | |
503d2be0 | 4011 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 4012 | if test -n "$RANLIB"; then |
c0d27fcc | 4013 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
4014 | echo "${ECHO_T}$RANLIB" >&6 |
4015 | else | |
c0d27fcc | 4016 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4017 | echo "${ECHO_T}no" >&6 |
4018 | fi | |
4019 | ||
4020 | fi | |
4021 | if test -z "$ac_cv_prog_RANLIB"; then | |
4022 | ac_ct_RANLIB=$RANLIB | |
4023 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4024 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 4025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
4026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4027 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4029 | else | |
4030 | if test -n "$ac_ct_RANLIB"; then | |
4031 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4032 | else | |
c0d27fcc MR |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4034 | for as_dir in $PATH | |
4035 | do | |
4036 | IFS=$as_save_IFS | |
4037 | test -z "$as_dir" && as_dir=. | |
4038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4040 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4042 | break 2 | |
4043 | fi | |
4044 | done | |
503d2be0 AS |
4045 | done |
4046 | ||
4047 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4048 | fi | |
4049 | fi | |
4050 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4051 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 4052 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
4053 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4054 | else | |
c0d27fcc | 4055 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4056 | echo "${ECHO_T}no" >&6 |
4057 | fi | |
4058 | ||
4059 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 4060 | else |
503d2be0 | 4061 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
4062 | fi |
4063 | ||
4064 | fi | |
9e71690e DK |
4065 | # Extract the first word of "install-info", so it can be a program name with args. |
4066 | set dummy install-info; ac_word=$2 | |
4067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4069 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4071 | else | |
4072 | case $INSTALL_INFO in | |
4073 | [\\/]* | ?:[\\/]*) | |
4074 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4075 | ;; | |
4076 | *) | |
4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4078 | for as_dir in $PATH | |
4079 | do | |
4080 | IFS=$as_save_IFS | |
4081 | test -z "$as_dir" && as_dir=. | |
4082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4084 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4086 | break 2 | |
4087 | fi | |
4088 | done | |
4089 | done | |
4090 | ||
4091 | ;; | |
4092 | esac | |
4093 | fi | |
4094 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4095 | ||
4096 | if test -n "$INSTALL_INFO"; then | |
4097 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4098 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4099 | else | |
4100 | echo "$as_me:$LINENO: result: no" >&5 | |
4101 | echo "${ECHO_T}no" >&6 | |
4102 | fi | |
4103 | ||
4104 | # Extract the first word of "install-info", so it can be a program name with args. | |
4105 | set dummy install-info; ac_word=$2 | |
4106 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4108 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4110 | else | |
4111 | case $INSTALL_INFO in | |
4112 | [\\/]* | ?:[\\/]*) | |
4113 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4114 | ;; | |
4115 | *) | |
4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4117 | for as_dir in /usr/sbin | |
4118 | do | |
4119 | IFS=$as_save_IFS | |
4120 | test -z "$as_dir" && as_dir=. | |
4121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4123 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4125 | break 2 | |
4126 | fi | |
4127 | done | |
4128 | done | |
4129 | ||
4130 | ;; | |
4131 | esac | |
4132 | fi | |
4133 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4134 | ||
4135 | if test -n "$INSTALL_INFO"; then | |
4136 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4137 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4138 | else | |
4139 | echo "$as_me:$LINENO: result: no" >&5 | |
4140 | echo "${ECHO_T}no" >&6 | |
4141 | fi | |
4142 | ||
4143 | # Extract the first word of "install-info", so it can be a program name with args. | |
4144 | set dummy install-info; ac_word=$2 | |
4145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4147 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | case $INSTALL_INFO in | |
4151 | [\\/]* | ?:[\\/]*) | |
4152 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4153 | ;; | |
4154 | *) | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in /sbin | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
4160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4162 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4164 | break 2 | |
4165 | fi | |
4166 | done | |
4167 | done | |
4168 | ||
4169 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4170 | ;; | |
4171 | esac | |
4172 | fi | |
4173 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4174 | ||
4175 | if test -n "$INSTALL_INFO"; then | |
4176 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4177 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4178 | else | |
4179 | echo "$as_me:$LINENO: result: no" >&5 | |
4180 | echo "${ECHO_T}no" >&6 | |
4181 | fi | |
4182 | ||
ba4481b5 | 4183 | |
c0d27fcc | 4184 | |
8e967cf7 MR |
4185 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4186 | then | |
4187 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4188 | fi | |
4189 | ||
4190 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4191 | then | |
4192 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4193 | fi | |
4194 | ||
c0d27fcc | 4195 | |
fe239f0f AS |
4196 | late_LDFLAGS=$LDFLAGS |
4197 | if test $GCC = yes; then | |
4198 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | |
4199 | else | |
4200 | LDFLAGS="$LDFLAGS -znocombreloc" | |
4201 | fi | |
4202 | ||
4203 | echo "$as_me:$LINENO: checking For -znocombreloc" >&5 | |
4204 | echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6 | |
4205 | ||
4206 | cat >conftest.$ac_ext <<_ACEOF | |
4207 | main(){return 0;} | |
4208 | _ACEOF | |
4209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4211 | (eval $ac_link) 2>conftest.er1 | |
4212 | ac_status=$? | |
4213 | grep -v '^ *+' conftest.er1 >conftest.err | |
4214 | rm -f conftest.er1 | |
4215 | cat conftest.err >&5 | |
4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4217 | (exit $ac_status); } && | |
4218 | { ac_try='test -z "$ac_c_werror_flag" | |
4219 | || test ! -s conftest.err' | |
4220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4221 | (eval $ac_try) 2>&5 | |
4222 | ac_status=$? | |
4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4224 | (exit $ac_status); }; } && | |
4225 | { ac_try='test -s conftest$ac_exeext' | |
4226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4227 | (eval $ac_try) 2>&5 | |
4228 | ac_status=$? | |
4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4230 | (exit $ac_status); }; }; then | |
4231 | echo "$as_me:$LINENO: result: yes" >&5 | |
4232 | echo "${ECHO_T}yes" >&6 | |
4233 | else | |
4234 | echo "$as_me: failed program was:" >&5 | |
4235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4236 | ||
4237 | LDFLAGS=$late_LDFLAGS | |
4238 | echo "$as_me:$LINENO: result: no" >&5 | |
4239 | echo "${ECHO_T}no" >&6 | |
4240 | fi | |
4241 | rm -f conftest.err conftest.$ac_objext \ | |
4242 | conftest$ac_exeext conftest.$ac_ext | |
4243 | ||
c0d27fcc | 4244 | |
6bae0ccf DL |
4245 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4246 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4247 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4249 | else | |
4250 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4251 | then ac_cv_prog_egrep='grep -E' | |
4252 | else ac_cv_prog_egrep='egrep' | |
4253 | fi | |
4254 | fi | |
4255 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4256 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4257 | EGREP=$ac_cv_prog_egrep | |
4258 | ||
4259 | ||
c0d27fcc MR |
4260 | |
4261 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4262 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4263 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4264 | /* confdefs.h. */ |
4265 | _ACEOF | |
4266 | cat confdefs.h >>conftest.$ac_ext | |
4267 | cat >>conftest.$ac_ext <<_ACEOF | |
4268 | /* end confdefs.h. */ | |
ba4481b5 DL |
4269 | #ifdef _AIX |
4270 | yes | |
4271 | #endif | |
4272 | ||
503d2be0 | 4273 | _ACEOF |
ba4481b5 | 4274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4275 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4276 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4277 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4278 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4279 | #define _ALL_SOURCE 1 |
c0d27fcc | 4280 | _ACEOF |
ba4481b5 DL |
4281 | |
4282 | else | |
c0d27fcc | 4283 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4284 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4285 | fi |
4286 | rm -f conftest* | |
4287 | ||
c0d27fcc MR |
4288 | |
4289 | ||
3b33a005 DL |
4290 | #### Extract some information from the operating system and machine files. |
4291 | ||
c0d27fcc | 4292 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4293 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4294 | - whether the GNU malloc routines are usable..." >&5 |
4295 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4296 | - which libraries the lib-src programs will want, and |
503d2be0 | 4297 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4298 | |
4299 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4300 | ### and REAL_CFLAGS (which we use for real compilation). | |
4301 | ### The two are the same except on a few systems, where they are made | |
4302 | ### different to work around various lossages. For example, | |
4303 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4304 | ### as implying static linking. | |
4305 | ||
4306 | ### If the CFLAGS env var is specified, we use that value | |
4307 | ### instead of the default. | |
4308 | ||
4309 | ### It's not important that this name contain the PID; you can't run | |
4310 | ### two configures in the same directory and have anything work | |
4311 | ### anyway. | |
4312 | tempcname="conftest.c" | |
4313 | ||
4314 | echo ' | |
4315 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4316 | #include "'${srcdir}'/src/'${machfile}'" | |
4317 | #ifndef LIBS_MACHINE | |
4318 | #define LIBS_MACHINE | |
4319 | #endif | |
4320 | #ifndef LIBS_SYSTEM | |
4321 | #define LIBS_SYSTEM | |
4322 | #endif | |
4323 | #ifndef C_SWITCH_SYSTEM | |
4324 | #define C_SWITCH_SYSTEM | |
4325 | #endif | |
4326 | #ifndef C_SWITCH_MACHINE | |
4327 | #define C_SWITCH_MACHINE | |
4328 | #endif | |
4329 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4330 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4331 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4332 | ||
4333 | #ifndef LIB_X11_LIB | |
4334 | #define LIB_X11_LIB -lX11 | |
4335 | #endif | |
4336 | ||
4337 | #ifndef LIBX11_MACHINE | |
4338 | #define LIBX11_MACHINE | |
4339 | #endif | |
4340 | ||
4341 | #ifndef LIBX11_SYSTEM | |
4342 | #define LIBX11_SYSTEM | |
4343 | #endif | |
4344 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4345 | ||
4346 | #ifdef UNEXEC | |
4347 | configure___ unexec=UNEXEC | |
4348 | #else | |
4349 | configure___ unexec=unexec.o | |
4350 | #endif | |
4351 | ||
4352 | #ifdef SYSTEM_MALLOC | |
4353 | configure___ system_malloc=yes | |
4354 | #else | |
4355 | configure___ system_malloc=no | |
4356 | #endif | |
4357 | ||
ef9e4345 GM |
4358 | #ifdef USE_MMAP_FOR_BUFFERS |
4359 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4360 | #else |
ef9e4345 | 4361 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4362 | #endif |
4363 | ||
3b33a005 DL |
4364 | #ifndef C_DEBUG_SWITCH |
4365 | #define C_DEBUG_SWITCH -g | |
4366 | #endif | |
4367 | ||
4368 | #ifndef C_OPTIMIZE_SWITCH | |
4369 | #ifdef __GNUC__ | |
4370 | #define C_OPTIMIZE_SWITCH -O2 | |
4371 | #else | |
4372 | #define C_OPTIMIZE_SWITCH -O | |
4373 | #endif | |
4374 | #endif | |
4375 | ||
4376 | #ifndef LD_SWITCH_MACHINE | |
4377 | #define LD_SWITCH_MACHINE | |
4378 | #endif | |
4379 | ||
4380 | #ifndef LD_SWITCH_SYSTEM | |
4381 | #define LD_SWITCH_SYSTEM | |
4382 | #endif | |
4383 | ||
4384 | #ifndef LD_SWITCH_X_SITE_AUX | |
4385 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4386 | #endif |
3b33a005 DL |
4387 | |
4388 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4389 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4390 | ||
4391 | #ifdef THIS_IS_CONFIGURE | |
4392 | ||
4393 | /* Get the CFLAGS for tests in configure. */ | |
4394 | #ifdef __GNUC__ | |
4395 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4396 | #else | |
4397 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4398 | #endif | |
4399 | ||
4400 | #else /* not THIS_IS_CONFIGURE */ | |
4401 | ||
4402 | /* Get the CFLAGS for real compilation. */ | |
4403 | #ifdef __GNUC__ | |
4404 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4405 | #else | |
4406 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4407 | #endif | |
4408 | ||
4409 | #endif /* not THIS_IS_CONFIGURE */ | |
4410 | ' > ${tempcname} | |
4411 | ||
4412 | # The value of CPP is a quoted variable reference, so we need to do this | |
4413 | # to get its actual value... | |
4414 | CPP=`eval "echo $CPP"` | |
4415 | eval `${CPP} -Isrc ${tempcname} \ | |
4416 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4417 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4418 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4419 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4420 | else | |
4421 | REAL_CFLAGS="$CFLAGS" | |
4422 | fi | |
4423 | rm ${tempcname} | |
4424 | ||
4425 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4426 | ||
4427 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4428 | ||
4429 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4430 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4431 | else | |
4432 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4433 | fi | |
4434 | ||
6bae0ccf DL |
4435 | |
4436 | ||
22044edf DL |
4437 | |
4438 | cat >>confdefs.h <<\_ACEOF | |
4439 | #define _GNU_SOURCE 1 | |
4440 | _ACEOF | |
4441 | ||
4442 | ||
4443 | ||
503d2be0 | 4444 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4445 | if test "${enable_largefile+set}" = set; then |
4446 | enableval="$enable_largefile" | |
f4988be7 | 4447 | |
503d2be0 AS |
4448 | fi; |
4449 | if test "$enable_largefile" != no; then | |
f4988be7 | 4450 | |
c0d27fcc | 4451 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4452 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4453 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4455 | else |
f4988be7 | 4456 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4457 | if test "$GCC" != yes; then |
4458 | ac_save_CC=$CC | |
4459 | while :; do | |
4460 | # IRIX 6.2 and later do not support large files by default, | |
4461 | # so use the C compiler's -n32 option if that helps. | |
35996d22 | 4462 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4463 | /* confdefs.h. */ |
4464 | _ACEOF | |
4465 | cat confdefs.h >>conftest.$ac_ext | |
4466 | cat >>conftest.$ac_ext <<_ACEOF | |
4467 | /* end confdefs.h. */ | |
f4988be7 | 4468 | #include <sys/types.h> |
503d2be0 AS |
4469 | /* Check that off_t can represent 2**63 - 1 correctly. |
4470 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4471 | since some C++ compilers masquerading as C compilers | |
4472 | incorrectly reject 9223372036854775807. */ | |
4473 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4474 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4475 | && LARGE_OFF_T % 2147483647 == 1) | |
4476 | ? 1 : -1]; | |
4477 | int | |
4478 | main () | |
4479 | { | |
f4988be7 | 4480 | |
503d2be0 AS |
4481 | ; |
4482 | return 0; | |
4483 | } | |
4484 | _ACEOF | |
4485 | rm -f conftest.$ac_objext | |
c0d27fcc | 4486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4487 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4488 | ac_status=$? |
35996d22 AS |
4489 | grep -v '^ *+' conftest.er1 >conftest.err |
4490 | rm -f conftest.er1 | |
4491 | cat conftest.err >&5 | |
c0d27fcc | 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4493 | (exit $ac_status); } && |
35996d22 AS |
4494 | { ac_try='test -z "$ac_c_werror_flag" |
4495 | || test ! -s conftest.err' | |
4496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4497 | (eval $ac_try) 2>&5 | |
4498 | ac_status=$? | |
4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4500 | (exit $ac_status); }; } && | |
4501 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4503 | (eval $ac_try) 2>&5 |
4504 | ac_status=$? | |
c0d27fcc | 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4506 | (exit $ac_status); }; }; then |
4507 | break | |
b192d653 | 4508 | else |
503d2be0 | 4509 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4510 | sed 's/^/| /' conftest.$ac_ext >&5 |
4511 | ||
503d2be0 | 4512 | fi |
35996d22 | 4513 | rm -f conftest.err conftest.$ac_objext |
503d2be0 AS |
4514 | CC="$CC -n32" |
4515 | rm -f conftest.$ac_objext | |
c0d27fcc | 4516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4517 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4518 | ac_status=$? |
35996d22 AS |
4519 | grep -v '^ *+' conftest.er1 >conftest.err |
4520 | rm -f conftest.er1 | |
4521 | cat conftest.err >&5 | |
c0d27fcc | 4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4523 | (exit $ac_status); } && |
35996d22 AS |
4524 | { ac_try='test -z "$ac_c_werror_flag" |
4525 | || test ! -s conftest.err' | |
4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4527 | (eval $ac_try) 2>&5 | |
4528 | ac_status=$? | |
4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4530 | (exit $ac_status); }; } && | |
4531 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4533 | (eval $ac_try) 2>&5 |
4534 | ac_status=$? | |
c0d27fcc | 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4536 | (exit $ac_status); }; }; then |
4537 | ac_cv_sys_largefile_CC=' -n32'; break | |
4538 | else | |
4539 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4540 | sed 's/^/| /' conftest.$ac_ext >&5 |
4541 | ||
503d2be0 | 4542 | fi |
35996d22 AS |
4543 | rm -f conftest.err conftest.$ac_objext |
4544 | break | |
503d2be0 AS |
4545 | done |
4546 | CC=$ac_save_CC | |
4547 | rm -f conftest.$ac_ext | |
4548 | fi | |
b192d653 | 4549 | fi |
c0d27fcc | 4550 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4551 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4552 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4553 | CC=$CC$ac_cv_sys_largefile_CC | |
4554 | fi | |
b192d653 | 4555 | |
c0d27fcc | 4556 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4557 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4558 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4560 | else |
503d2be0 | 4561 | while :; do |
f4988be7 | 4562 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4563 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4564 | /* confdefs.h. */ |
4565 | _ACEOF | |
4566 | cat confdefs.h >>conftest.$ac_ext | |
4567 | cat >>conftest.$ac_ext <<_ACEOF | |
4568 | /* end confdefs.h. */ | |
f4988be7 | 4569 | #include <sys/types.h> |
503d2be0 AS |
4570 | /* Check that off_t can represent 2**63 - 1 correctly. |
4571 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4572 | since some C++ compilers masquerading as C compilers | |
4573 | incorrectly reject 9223372036854775807. */ | |
4574 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4575 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4576 | && LARGE_OFF_T % 2147483647 == 1) | |
4577 | ? 1 : -1]; | |
4578 | int | |
4579 | main () | |
4580 | { | |
f4988be7 | 4581 | |
503d2be0 AS |
4582 | ; |
4583 | return 0; | |
4584 | } | |
4585 | _ACEOF | |
4586 | rm -f conftest.$ac_objext | |
c0d27fcc | 4587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4588 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4589 | ac_status=$? |
35996d22 AS |
4590 | grep -v '^ *+' conftest.er1 >conftest.err |
4591 | rm -f conftest.er1 | |
4592 | cat conftest.err >&5 | |
c0d27fcc | 4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4594 | (exit $ac_status); } && |
35996d22 AS |
4595 | { ac_try='test -z "$ac_c_werror_flag" |
4596 | || test ! -s conftest.err' | |
4597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4598 | (eval $ac_try) 2>&5 | |
4599 | ac_status=$? | |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4601 | (exit $ac_status); }; } && | |
4602 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4604 | (eval $ac_try) 2>&5 |
4605 | ac_status=$? | |
c0d27fcc | 4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4607 | (exit $ac_status); }; }; then |
4608 | break | |
f4988be7 | 4609 | else |
503d2be0 | 4610 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4611 | sed 's/^/| /' conftest.$ac_ext >&5 |
4612 | ||
503d2be0 | 4613 | fi |
35996d22 | 4614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4615 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4616 | /* confdefs.h. */ |
4617 | _ACEOF | |
4618 | cat confdefs.h >>conftest.$ac_ext | |
4619 | cat >>conftest.$ac_ext <<_ACEOF | |
4620 | /* end confdefs.h. */ | |
f4988be7 GM |
4621 | #define _FILE_OFFSET_BITS 64 |
4622 | #include <sys/types.h> | |
503d2be0 AS |
4623 | /* Check that off_t can represent 2**63 - 1 correctly. |
4624 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4625 | since some C++ compilers masquerading as C compilers | |
4626 | incorrectly reject 9223372036854775807. */ | |
4627 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4628 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4629 | && LARGE_OFF_T % 2147483647 == 1) | |
4630 | ? 1 : -1]; | |
4631 | int | |
4632 | main () | |
4633 | { | |
4634 | ||
4635 | ; | |
4636 | return 0; | |
4637 | } | |
4638 | _ACEOF | |
4639 | rm -f conftest.$ac_objext | |
c0d27fcc | 4640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4641 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4642 | ac_status=$? |
35996d22 AS |
4643 | grep -v '^ *+' conftest.er1 >conftest.err |
4644 | rm -f conftest.er1 | |
4645 | cat conftest.err >&5 | |
c0d27fcc | 4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4647 | (exit $ac_status); } && |
35996d22 AS |
4648 | { ac_try='test -z "$ac_c_werror_flag" |
4649 | || test ! -s conftest.err' | |
4650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4651 | (eval $ac_try) 2>&5 | |
4652 | ac_status=$? | |
4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4654 | (exit $ac_status); }; } && | |
4655 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4657 | (eval $ac_try) 2>&5 |
4658 | ac_status=$? | |
c0d27fcc | 4659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4660 | (exit $ac_status); }; }; then |
4661 | ac_cv_sys_file_offset_bits=64; break | |
4662 | else | |
4663 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4664 | sed 's/^/| /' conftest.$ac_ext >&5 |
4665 | ||
503d2be0 | 4666 | fi |
35996d22 | 4667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4668 | break |
4669 | done | |
ba4481b5 | 4670 | fi |
c0d27fcc | 4671 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4672 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4673 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4674 | |
c0d27fcc | 4675 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4676 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4677 | _ACEOF |
f4988be7 | 4678 | |
503d2be0 AS |
4679 | fi |
4680 | rm -f conftest* | |
c0d27fcc | 4681 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4682 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4683 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4685 | else |
503d2be0 | 4686 | while :; do |
f4988be7 | 4687 | ac_cv_sys_large_files=no |
503d2be0 | 4688 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4689 | /* confdefs.h. */ |
4690 | _ACEOF | |
4691 | cat confdefs.h >>conftest.$ac_ext | |
4692 | cat >>conftest.$ac_ext <<_ACEOF | |
4693 | /* end confdefs.h. */ | |
503d2be0 AS |
4694 | #include <sys/types.h> |
4695 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4696 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4697 | since some C++ compilers masquerading as C compilers | |
4698 | incorrectly reject 9223372036854775807. */ | |
4699 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4700 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4701 | && LARGE_OFF_T % 2147483647 == 1) | |
4702 | ? 1 : -1]; | |
4703 | int | |
4704 | main () | |
4705 | { | |
ba4481b5 | 4706 | |
503d2be0 AS |
4707 | ; |
4708 | return 0; | |
4709 | } | |
4710 | _ACEOF | |
4711 | rm -f conftest.$ac_objext | |
c0d27fcc | 4712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4713 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4714 | ac_status=$? |
35996d22 AS |
4715 | grep -v '^ *+' conftest.er1 >conftest.err |
4716 | rm -f conftest.er1 | |
4717 | cat conftest.err >&5 | |
c0d27fcc | 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4719 | (exit $ac_status); } && |
35996d22 AS |
4720 | { ac_try='test -z "$ac_c_werror_flag" |
4721 | || test ! -s conftest.err' | |
4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4723 | (eval $ac_try) 2>&5 | |
4724 | ac_status=$? | |
4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4726 | (exit $ac_status); }; } && | |
4727 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4729 | (eval $ac_try) 2>&5 |
4730 | ac_status=$? | |
c0d27fcc | 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4732 | (exit $ac_status); }; }; then |
4733 | break | |
ba4481b5 | 4734 | else |
503d2be0 | 4735 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4736 | sed 's/^/| /' conftest.$ac_ext >&5 |
4737 | ||
503d2be0 | 4738 | fi |
35996d22 | 4739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4740 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4741 | /* confdefs.h. */ |
4742 | _ACEOF | |
4743 | cat confdefs.h >>conftest.$ac_ext | |
4744 | cat >>conftest.$ac_ext <<_ACEOF | |
4745 | /* end confdefs.h. */ | |
f4988be7 | 4746 | #define _LARGE_FILES 1 |
503d2be0 AS |
4747 | #include <sys/types.h> |
4748 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4749 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4750 | since some C++ compilers masquerading as C compilers | |
4751 | incorrectly reject 9223372036854775807. */ | |
4752 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4753 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4754 | && LARGE_OFF_T % 2147483647 == 1) | |
4755 | ? 1 : -1]; | |
4756 | int | |
4757 | main () | |
4758 | { | |
f4988be7 | 4759 | |
503d2be0 AS |
4760 | ; |
4761 | return 0; | |
4762 | } | |
4763 | _ACEOF | |
4764 | rm -f conftest.$ac_objext | |
c0d27fcc | 4765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4766 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4767 | ac_status=$? |
35996d22 AS |
4768 | grep -v '^ *+' conftest.er1 >conftest.err |
4769 | rm -f conftest.er1 | |
4770 | cat conftest.err >&5 | |
c0d27fcc | 4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4772 | (exit $ac_status); } && |
35996d22 AS |
4773 | { ac_try='test -z "$ac_c_werror_flag" |
4774 | || test ! -s conftest.err' | |
4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4776 | (eval $ac_try) 2>&5 | |
4777 | ac_status=$? | |
4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4779 | (exit $ac_status); }; } && | |
4780 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4782 | (eval $ac_try) 2>&5 |
4783 | ac_status=$? | |
c0d27fcc | 4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4785 | (exit $ac_status); }; }; then |
4786 | ac_cv_sys_large_files=1; break | |
4787 | else | |
4788 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4789 | sed 's/^/| /' conftest.$ac_ext >&5 |
4790 | ||
503d2be0 | 4791 | fi |
35996d22 | 4792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4793 | break |
4794 | done | |
ba4481b5 | 4795 | fi |
c0d27fcc | 4796 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4797 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4798 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4799 | |
c0d27fcc | 4800 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4801 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4802 | _ACEOF |
ba4481b5 | 4803 | |
503d2be0 AS |
4804 | fi |
4805 | rm -f conftest* | |
4806 | fi | |
ba4481b5 | 4807 | |
c0d27fcc | 4808 | |
2c9dccc9 PJ |
4809 | if test "${with_sound}" != "no"; then |
4810 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4811 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4812 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4813 | if test "${ac_cv_header_stdc+set}" = set; then | |
4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4815 | else | |
4816 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4817 | /* confdefs.h. */ |
4818 | _ACEOF | |
4819 | cat confdefs.h >>conftest.$ac_ext | |
4820 | cat >>conftest.$ac_ext <<_ACEOF | |
4821 | /* end confdefs.h. */ | |
c0d27fcc MR |
4822 | #include <stdlib.h> |
4823 | #include <stdarg.h> | |
4824 | #include <string.h> | |
4825 | #include <float.h> | |
98418dba | 4826 | |
19650fd6 AS |
4827 | int |
4828 | main () | |
4829 | { | |
4830 | ||
4831 | ; | |
4832 | return 0; | |
4833 | } | |
c0d27fcc | 4834 | _ACEOF |
19650fd6 AS |
4835 | rm -f conftest.$ac_objext |
4836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4837 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 4838 | ac_status=$? |
35996d22 AS |
4839 | grep -v '^ *+' conftest.er1 >conftest.err |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
cd958eb3 | 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 4843 | (exit $ac_status); } && |
35996d22 AS |
4844 | { ac_try='test -z "$ac_c_werror_flag" |
4845 | || test ! -s conftest.err' | |
4846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4847 | (eval $ac_try) 2>&5 | |
4848 | ac_status=$? | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); }; } && | |
4851 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4853 | (eval $ac_try) 2>&5 | |
4854 | ac_status=$? | |
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4857 | ac_cv_header_stdc=yes |
4858 | else | |
4859 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4860 | sed 's/^/| /' conftest.$ac_ext >&5 |
4861 | ||
4862 | ac_cv_header_stdc=no | |
c0d27fcc | 4863 | fi |
35996d22 | 4864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4865 | |
4866 | if test $ac_cv_header_stdc = yes; then | |
4867 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4868 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4869 | /* confdefs.h. */ |
4870 | _ACEOF | |
4871 | cat confdefs.h >>conftest.$ac_ext | |
4872 | cat >>conftest.$ac_ext <<_ACEOF | |
4873 | /* end confdefs.h. */ | |
c0d27fcc MR |
4874 | #include <string.h> |
4875 | ||
4876 | _ACEOF | |
4877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4878 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4879 | : |
4880 | else | |
4881 | ac_cv_header_stdc=no | |
4882 | fi | |
4883 | rm -f conftest* | |
4884 | ||
4885 | fi | |
4886 | ||
4887 | if test $ac_cv_header_stdc = yes; then | |
4888 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4889 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4890 | /* confdefs.h. */ |
4891 | _ACEOF | |
4892 | cat confdefs.h >>conftest.$ac_ext | |
4893 | cat >>conftest.$ac_ext <<_ACEOF | |
4894 | /* end confdefs.h. */ | |
c0d27fcc MR |
4895 | #include <stdlib.h> |
4896 | ||
4897 | _ACEOF | |
4898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4899 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4900 | : |
4901 | else | |
4902 | ac_cv_header_stdc=no | |
4903 | fi | |
4904 | rm -f conftest* | |
4905 | ||
4906 | fi | |
4907 | ||
4908 | if test $ac_cv_header_stdc = yes; then | |
4909 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4910 | if test "$cross_compiling" = yes; then | |
4911 | : | |
4912 | else | |
4913 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4914 | /* confdefs.h. */ |
4915 | _ACEOF | |
4916 | cat confdefs.h >>conftest.$ac_ext | |
4917 | cat >>conftest.$ac_ext <<_ACEOF | |
4918 | /* end confdefs.h. */ | |
c0d27fcc MR |
4919 | #include <ctype.h> |
4920 | #if ((' ' & 0x0FF) == 0x020) | |
4921 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4922 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4923 | #else | |
19650fd6 | 4924 | # define ISLOWER(c) \ |
35996d22 AS |
4925 | (('a' <= (c) && (c) <= 'i') \ |
4926 | || ('j' <= (c) && (c) <= 'r') \ | |
4927 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
4928 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4929 | #endif | |
4930 | ||
4931 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4932 | int | |
4933 | main () | |
4934 | { | |
4935 | int i; | |
4936 | for (i = 0; i < 256; i++) | |
4937 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 4938 | || toupper (i) != TOUPPER (i)) |
c0d27fcc MR |
4939 | exit(2); |
4940 | exit (0); | |
4941 | } | |
4942 | _ACEOF | |
4943 | rm -f conftest$ac_exeext | |
4944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4945 | (eval $ac_link) 2>&5 | |
4946 | ac_status=$? | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4950 | (eval $ac_try) 2>&5 | |
4951 | ac_status=$? | |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4953 | (exit $ac_status); }; }; then | |
4954 | : | |
4955 | else | |
4956 | echo "$as_me: program exited with status $ac_status" >&5 | |
4957 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
4959 | ||
c0d27fcc MR |
4960 | ( exit $ac_status ) |
4961 | ac_cv_header_stdc=no | |
4962 | fi | |
35996d22 | 4963 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4964 | fi |
4965 | fi | |
4966 | fi | |
4967 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4968 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4969 | if test $ac_cv_header_stdc = yes; then | |
4970 | ||
4971 | cat >>confdefs.h <<\_ACEOF | |
4972 | #define STDC_HEADERS 1 | |
4973 | _ACEOF | |
4974 | ||
4975 | fi | |
4976 | ||
4977 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4978 | ||
4979 | ||
4980 | ||
4981 | ||
4982 | ||
4983 | ||
4984 | ||
4985 | ||
4986 | ||
4987 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
35996d22 | 4988 | inttypes.h stdint.h unistd.h |
98418dba CW |
4989 | do |
4990 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4995 | else |
925c2f3f | 4996 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4997 | /* confdefs.h. */ |
4998 | _ACEOF | |
4999 | cat confdefs.h >>conftest.$ac_ext | |
5000 | cat >>conftest.$ac_ext <<_ACEOF | |
5001 | /* end confdefs.h. */ | |
c0d27fcc MR |
5002 | $ac_includes_default |
5003 | ||
5004 | #include <$ac_header> | |
5005 | _ACEOF | |
5006 | rm -f conftest.$ac_objext | |
5007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5008 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5009 | ac_status=$? |
35996d22 AS |
5010 | grep -v '^ *+' conftest.er1 >conftest.err |
5011 | rm -f conftest.er1 | |
5012 | cat conftest.err >&5 | |
c0d27fcc MR |
5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5014 | (exit $ac_status); } && | |
35996d22 AS |
5015 | { ac_try='test -z "$ac_c_werror_flag" |
5016 | || test ! -s conftest.err' | |
5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5018 | (eval $ac_try) 2>&5 | |
5019 | ac_status=$? | |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5021 | (exit $ac_status); }; } && | |
5022 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5024 | (eval $ac_try) 2>&5 | |
5025 | ac_status=$? | |
5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5027 | (exit $ac_status); }; }; then | |
5028 | eval "$as_ac_Header=yes" | |
5029 | else | |
5030 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5031 | sed 's/^/| /' conftest.$ac_ext >&5 |
5032 | ||
c0d27fcc MR |
5033 | eval "$as_ac_Header=no" |
5034 | fi | |
35996d22 | 5035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5036 | fi |
5037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5040 | cat >>confdefs.h <<_ACEOF | |
5041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5042 | _ACEOF | |
5043 | ||
5044 | fi | |
5045 | ||
5046 | done | |
5047 | ||
5048 | ||
5049 | ||
5050 | ||
5051 | ||
5052 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
5053 | do | |
5054 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5060 | fi | |
5061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5063 | else | |
5064 | # Is the header compilable? | |
5065 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5067 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5068 | /* confdefs.h. */ |
5069 | _ACEOF | |
5070 | cat confdefs.h >>conftest.$ac_ext | |
5071 | cat >>conftest.$ac_ext <<_ACEOF | |
5072 | /* end confdefs.h. */ | |
c0d27fcc | 5073 | $ac_includes_default |
98418dba | 5074 | #include <$ac_header> |
503d2be0 | 5075 | _ACEOF |
c0d27fcc MR |
5076 | rm -f conftest.$ac_objext |
5077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5078 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5079 | ac_status=$? |
35996d22 AS |
5080 | grep -v '^ *+' conftest.er1 >conftest.err |
5081 | rm -f conftest.er1 | |
5082 | cat conftest.err >&5 | |
c0d27fcc MR |
5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5084 | (exit $ac_status); } && | |
35996d22 AS |
5085 | { ac_try='test -z "$ac_c_werror_flag" |
5086 | || test ! -s conftest.err' | |
5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5088 | (eval $ac_try) 2>&5 | |
5089 | ac_status=$? | |
5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5091 | (exit $ac_status); }; } && | |
5092 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5094 | (eval $ac_try) 2>&5 | |
5095 | ac_status=$? | |
5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5097 | (exit $ac_status); }; }; then | |
5098 | ac_header_compiler=yes | |
5099 | else | |
5100 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5101 | sed 's/^/| /' conftest.$ac_ext >&5 |
5102 | ||
c0d27fcc MR |
5103 | ac_header_compiler=no |
5104 | fi | |
35996d22 | 5105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5108 | ||
5109 | # Is the header present? | |
5110 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5112 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5113 | /* confdefs.h. */ |
5114 | _ACEOF | |
5115 | cat confdefs.h >>conftest.$ac_ext | |
5116 | cat >>conftest.$ac_ext <<_ACEOF | |
5117 | /* end confdefs.h. */ | |
c0d27fcc MR |
5118 | #include <$ac_header> |
5119 | _ACEOF | |
5120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 5121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5122 | ac_status=$? |
6bae0ccf | 5123 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5124 | rm -f conftest.er1 |
5125 | cat conftest.err >&5 | |
c0d27fcc | 5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5127 | (exit $ac_status); } >/dev/null; then |
5128 | if test -s conftest.err; then | |
5129 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5131 | else |
5132 | ac_cpp_err= | |
5133 | fi | |
5134 | else | |
5135 | ac_cpp_err=yes | |
5136 | fi | |
5137 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5138 | ac_header_preproc=yes |
f4988be7 | 5139 | else |
503d2be0 | 5140 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5141 | sed 's/^/| /' conftest.$ac_ext >&5 |
5142 | ||
c0d27fcc | 5143 | ac_header_preproc=no |
f4988be7 | 5144 | fi |
98418dba | 5145 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5148 | ||
5149 | # So? What about this header? | |
35996d22 AS |
5150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5151 | yes:no: ) | |
c0d27fcc MR |
5152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5156 | ac_header_preproc=yes | |
19650fd6 | 5157 | ;; |
35996d22 | 5158 | no:yes:* ) |
c0d27fcc MR |
5159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5171 | ( |
5172 | cat <<\_ASBOX | |
35996d22 AS |
5173 | ## ------------------------------------------ ## |
5174 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5175 | ## ------------------------------------------ ## | |
19650fd6 AS |
5176 | _ASBOX |
5177 | ) | | |
5178 | sed "s/^/$as_me: WARNING: /" >&2 | |
5179 | ;; | |
c0d27fcc MR |
5180 | esac |
5181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5185 | else | |
35996d22 | 5186 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 5187 | fi |
c0d27fcc | 5188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5190 | |
5191 | fi | |
98418dba | 5192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5193 | cat >>confdefs.h <<_ACEOF |
98418dba | 5194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5195 | _ACEOF |
f4988be7 GM |
5196 | |
5197 | fi | |
c0d27fcc | 5198 | |
98418dba CW |
5199 | done |
5200 | ||
5201 | # Emulation library used on NetBSD. | |
c0d27fcc | 5202 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
5203 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
5204 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 5205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 5206 | else |
98418dba CW |
5207 | ac_check_lib_save_LIBS=$LIBS |
5208 | LIBS="-lossaudio $LIBS" | |
5209 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5210 | /* confdefs.h. */ |
5211 | _ACEOF | |
5212 | cat confdefs.h >>conftest.$ac_ext | |
5213 | cat >>conftest.$ac_ext <<_ACEOF | |
5214 | /* end confdefs.h. */ | |
98418dba CW |
5215 | |
5216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5217 | #ifdef __cplusplus | |
5218 | extern "C" | |
f4988be7 | 5219 | #endif |
98418dba CW |
5220 | /* We use char because int might match the return type of a gcc2 |
5221 | builtin and then its argument prototype would still apply. */ | |
5222 | char _oss_ioctl (); | |
503d2be0 AS |
5223 | int |
5224 | main () | |
5225 | { | |
98418dba | 5226 | _oss_ioctl (); |
503d2be0 AS |
5227 | ; |
5228 | return 0; | |
5229 | } | |
5230 | _ACEOF | |
98418dba | 5231 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 5232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 5233 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 5234 | ac_status=$? |
35996d22 AS |
5235 | grep -v '^ *+' conftest.er1 >conftest.err |
5236 | rm -f conftest.er1 | |
5237 | cat conftest.err >&5 | |
c0d27fcc | 5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5239 | (exit $ac_status); } && |
35996d22 AS |
5240 | { ac_try='test -z "$ac_c_werror_flag" |
5241 | || test ! -s conftest.err' | |
5242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5243 | (eval $ac_try) 2>&5 | |
5244 | ac_status=$? | |
5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5246 | (exit $ac_status); }; } && | |
5247 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5249 | (eval $ac_try) 2>&5 |
5250 | ac_status=$? | |
c0d27fcc | 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5252 | (exit $ac_status); }; }; then |
98418dba | 5253 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 5254 | else |
503d2be0 | 5255 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5256 | sed 's/^/| /' conftest.$ac_ext >&5 |
5257 | ||
98418dba | 5258 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 5259 | fi |
35996d22 AS |
5260 | rm -f conftest.err conftest.$ac_objext \ |
5261 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 5262 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 5263 | fi |
c0d27fcc | 5264 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
5265 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
5266 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
5267 | LIBSOUND=-lossaudio | |
5268 | else | |
5269 | LIBSOUND= | |
5270 | fi | |
5271 | ||
c0d27fcc | 5272 | |
f4988be7 | 5273 | fi |
c0d27fcc MR |
5274 | |
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | ||
22044edf DL |
5292 | |
5293 | ||
973a76b1 | 5294 | |
cffcede7 | 5295 | |
c0d27fcc | 5296 | |
f4988be7 | 5297 | |
98418dba CW |
5298 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5299 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 5300 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
cffcede7 | 5301 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h |
98418dba CW |
5302 | do |
5303 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5309 | fi |
5310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5312 | else |
c0d27fcc MR |
5313 | # Is the header compilable? |
5314 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5315 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5316 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5317 | /* confdefs.h. */ |
5318 | _ACEOF | |
5319 | cat confdefs.h >>conftest.$ac_ext | |
5320 | cat >>conftest.$ac_ext <<_ACEOF | |
5321 | /* end confdefs.h. */ | |
c0d27fcc MR |
5322 | $ac_includes_default |
5323 | #include <$ac_header> | |
5324 | _ACEOF | |
5325 | rm -f conftest.$ac_objext | |
5326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5327 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5328 | ac_status=$? |
35996d22 AS |
5329 | grep -v '^ *+' conftest.er1 >conftest.err |
5330 | rm -f conftest.er1 | |
5331 | cat conftest.err >&5 | |
c0d27fcc MR |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5333 | (exit $ac_status); } && | |
35996d22 AS |
5334 | { ac_try='test -z "$ac_c_werror_flag" |
5335 | || test ! -s conftest.err' | |
5336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5337 | (eval $ac_try) 2>&5 | |
5338 | ac_status=$? | |
5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5340 | (exit $ac_status); }; } && | |
5341 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5343 | (eval $ac_try) 2>&5 | |
5344 | ac_status=$? | |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 | (exit $ac_status); }; }; then | |
5347 | ac_header_compiler=yes | |
5348 | else | |
5349 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5350 | sed 's/^/| /' conftest.$ac_ext >&5 |
5351 | ||
c0d27fcc MR |
5352 | ac_header_compiler=no |
5353 | fi | |
35996d22 | 5354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5356 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5357 | ||
5358 | # Is the header present? | |
5359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5361 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5362 | /* confdefs.h. */ |
5363 | _ACEOF | |
5364 | cat confdefs.h >>conftest.$ac_ext | |
5365 | cat >>conftest.$ac_ext <<_ACEOF | |
5366 | /* end confdefs.h. */ | |
98418dba | 5367 | #include <$ac_header> |
503d2be0 | 5368 | _ACEOF |
c0d27fcc | 5369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5371 | ac_status=$? |
6bae0ccf | 5372 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5373 | rm -f conftest.er1 |
5374 | cat conftest.err >&5 | |
c0d27fcc | 5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5376 | (exit $ac_status); } >/dev/null; then |
5377 | if test -s conftest.err; then | |
5378 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5380 | else |
5381 | ac_cpp_err= | |
5382 | fi | |
5383 | else | |
5384 | ac_cpp_err=yes | |
5385 | fi | |
5386 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5387 | ac_header_preproc=yes |
34ec9ebe | 5388 | else |
503d2be0 | 5389 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
5391 | ||
c0d27fcc | 5392 | ac_header_preproc=no |
34ec9ebe | 5393 | fi |
98418dba | 5394 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5396 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5397 | ||
5398 | # So? What about this header? | |
35996d22 AS |
5399 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5400 | yes:no: ) | |
c0d27fcc MR |
5401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5404 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5405 | ac_header_preproc=yes | |
19650fd6 | 5406 | ;; |
35996d22 | 5407 | no:yes:* ) |
c0d27fcc MR |
5408 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5409 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5410 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5411 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5412 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5413 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5414 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5415 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5418 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5419 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5420 | ( |
5421 | cat <<\_ASBOX | |
35996d22 AS |
5422 | ## ------------------------------------------ ## |
5423 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5424 | ## ------------------------------------------ ## | |
19650fd6 AS |
5425 | _ASBOX |
5426 | ) | | |
5427 | sed "s/^/$as_me: WARNING: /" >&2 | |
5428 | ;; | |
c0d27fcc MR |
5429 | esac |
5430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5434 | else | |
35996d22 | 5435 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 5436 | fi |
c0d27fcc | 5437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5439 | |
5440 | fi | |
98418dba | 5441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5442 | cat >>confdefs.h <<_ACEOF |
98418dba | 5443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5444 | _ACEOF |
34ec9ebe | 5445 | |
98418dba | 5446 | fi |
c0d27fcc | 5447 | |
98418dba CW |
5448 | done |
5449 | ||
22044edf DL |
5450 | |
5451 | for ac_header in term.h | |
5452 | do | |
5453 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5458 | else | |
5459 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5460 | /* confdefs.h. */ |
5461 | _ACEOF | |
5462 | cat confdefs.h >>conftest.$ac_ext | |
5463 | cat >>conftest.$ac_ext <<_ACEOF | |
5464 | /* end confdefs.h. */ | |
22044edf DL |
5465 | #include <$ac_header> |
5466 | _ACEOF | |
5467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5469 | ac_status=$? | |
5470 | grep -v '^ *+' conftest.er1 >conftest.err | |
5471 | rm -f conftest.er1 | |
5472 | cat conftest.err >&5 | |
5473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5474 | (exit $ac_status); } >/dev/null; then | |
5475 | if test -s conftest.err; then | |
5476 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22044edf DL |
5478 | else |
5479 | ac_cpp_err= | |
5480 | fi | |
5481 | else | |
5482 | ac_cpp_err=yes | |
5483 | fi | |
5484 | if test -z "$ac_cpp_err"; then | |
5485 | eval "$as_ac_Header=yes" | |
5486 | else | |
5487 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5488 | sed 's/^/| /' conftest.$ac_ext >&5 |
5489 | ||
22044edf DL |
5490 | eval "$as_ac_Header=no" |
5491 | fi | |
5492 | rm -f conftest.err conftest.$ac_ext | |
5493 | fi | |
5494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5497 | cat >>confdefs.h <<_ACEOF | |
5498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5499 | _ACEOF | |
5500 | ||
5501 | fi | |
5502 | ||
5503 | done | |
5504 | ||
c0d27fcc | 5505 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5506 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5507 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5509 | else |
503d2be0 | 5510 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5511 | /* confdefs.h. */ |
5512 | _ACEOF | |
5513 | cat confdefs.h >>conftest.$ac_ext | |
5514 | cat >>conftest.$ac_ext <<_ACEOF | |
5515 | /* end confdefs.h. */ | |
98418dba CW |
5516 | #include <stdlib.h> |
5517 | #include <stdarg.h> | |
5518 | #include <string.h> | |
5519 | #include <float.h> | |
5520 | ||
19650fd6 AS |
5521 | int |
5522 | main () | |
5523 | { | |
5524 | ||
5525 | ; | |
5526 | return 0; | |
5527 | } | |
98418dba | 5528 | _ACEOF |
19650fd6 AS |
5529 | rm -f conftest.$ac_objext |
5530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5531 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5532 | ac_status=$? |
35996d22 AS |
5533 | grep -v '^ *+' conftest.er1 >conftest.err |
5534 | rm -f conftest.er1 | |
5535 | cat conftest.err >&5 | |
cd958eb3 | 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 5537 | (exit $ac_status); } && |
35996d22 AS |
5538 | { ac_try='test -z "$ac_c_werror_flag" |
5539 | || test ! -s conftest.err' | |
5540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5541 | (eval $ac_try) 2>&5 | |
5542 | ac_status=$? | |
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5544 | (exit $ac_status); }; } && | |
5545 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
5546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5547 | (eval $ac_try) 2>&5 | |
5548 | ac_status=$? | |
5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5550 | (exit $ac_status); }; }; then | |
98418dba | 5551 | ac_cv_header_stdc=yes |
ba4481b5 | 5552 | else |
503d2be0 | 5553 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5554 | sed 's/^/| /' conftest.$ac_ext >&5 |
5555 | ||
5556 | ac_cv_header_stdc=no | |
ba4481b5 | 5557 | fi |
35996d22 | 5558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5559 | |
5560 | if test $ac_cv_header_stdc = yes; then | |
5561 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5562 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5563 | /* confdefs.h. */ |
5564 | _ACEOF | |
5565 | cat confdefs.h >>conftest.$ac_ext | |
5566 | cat >>conftest.$ac_ext <<_ACEOF | |
5567 | /* end confdefs.h. */ | |
98418dba CW |
5568 | #include <string.h> |
5569 | ||
5570 | _ACEOF | |
5571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5572 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5573 | : |
5574 | else | |
5575 | ac_cv_header_stdc=no | |
ba4481b5 | 5576 | fi |
98418dba | 5577 | rm -f conftest* |
ba4481b5 DL |
5578 | |
5579 | fi | |
5580 | ||
98418dba CW |
5581 | if test $ac_cv_header_stdc = yes; then |
5582 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5583 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5584 | /* confdefs.h. */ |
5585 | _ACEOF | |
5586 | cat confdefs.h >>conftest.$ac_ext | |
5587 | cat >>conftest.$ac_ext <<_ACEOF | |
5588 | /* end confdefs.h. */ | |
98418dba CW |
5589 | #include <stdlib.h> |
5590 | ||
5591 | _ACEOF | |
5592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5593 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5594 | : |
5595 | else | |
5596 | ac_cv_header_stdc=no | |
5597 | fi | |
5598 | rm -f conftest* | |
5599 | ||
5600 | fi | |
5601 | ||
5602 | if test $ac_cv_header_stdc = yes; then | |
5603 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5604 | if test "$cross_compiling" = yes; then | |
5605 | : | |
d42122a3 | 5606 | else |
503d2be0 | 5607 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5608 | /* confdefs.h. */ |
5609 | _ACEOF | |
5610 | cat confdefs.h >>conftest.$ac_ext | |
5611 | cat >>conftest.$ac_ext <<_ACEOF | |
5612 | /* end confdefs.h. */ | |
98418dba CW |
5613 | #include <ctype.h> |
5614 | #if ((' ' & 0x0FF) == 0x020) | |
5615 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5616 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5617 | #else | |
19650fd6 | 5618 | # define ISLOWER(c) \ |
35996d22 AS |
5619 | (('a' <= (c) && (c) <= 'i') \ |
5620 | || ('j' <= (c) && (c) <= 'r') \ | |
5621 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
5622 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5623 | #endif | |
5624 | ||
5625 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5626 | int |
5627 | main () | |
5628 | { | |
98418dba CW |
5629 | int i; |
5630 | for (i = 0; i < 256; i++) | |
5631 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 5632 | || toupper (i) != TOUPPER (i)) |
98418dba CW |
5633 | exit(2); |
5634 | exit (0); | |
503d2be0 AS |
5635 | } |
5636 | _ACEOF | |
98418dba | 5637 | rm -f conftest$ac_exeext |
c0d27fcc | 5638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5639 | (eval $ac_link) 2>&5 |
503d2be0 | 5640 | ac_status=$? |
c0d27fcc | 5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5644 | (eval $ac_try) 2>&5 |
5645 | ac_status=$? | |
c0d27fcc | 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5647 | (exit $ac_status); }; }; then |
98418dba | 5648 | : |
d42122a3 | 5649 | else |
98418dba CW |
5650 | echo "$as_me: program exited with status $ac_status" >&5 |
5651 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5652 | sed 's/^/| /' conftest.$ac_ext >&5 |
5653 | ||
c0d27fcc | 5654 | ( exit $ac_status ) |
98418dba | 5655 | ac_cv_header_stdc=no |
d42122a3 | 5656 | fi |
35996d22 | 5657 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5658 | fi |
98418dba CW |
5659 | fi |
5660 | fi | |
c0d27fcc | 5661 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5662 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5663 | if test $ac_cv_header_stdc = yes; then | |
5664 | ||
c0d27fcc | 5665 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5666 | #define STDC_HEADERS 1 |
c0d27fcc | 5667 | _ACEOF |
d42122a3 DL |
5668 | |
5669 | fi | |
5670 | ||
c0d27fcc | 5671 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5672 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5673 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5675 | else |
503d2be0 | 5676 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5677 | /* confdefs.h. */ |
5678 | _ACEOF | |
5679 | cat confdefs.h >>conftest.$ac_ext | |
5680 | cat >>conftest.$ac_ext <<_ACEOF | |
5681 | /* end confdefs.h. */ | |
ba4481b5 | 5682 | #include <sys/types.h> |
98418dba | 5683 | #include <sys/time.h> |
ba4481b5 | 5684 | #include <time.h> |
503d2be0 AS |
5685 | |
5686 | int | |
5687 | main () | |
5688 | { | |
98418dba CW |
5689 | if ((struct tm *) 0) |
5690 | return 0; | |
503d2be0 AS |
5691 | ; |
5692 | return 0; | |
5693 | } | |
5694 | _ACEOF | |
5695 | rm -f conftest.$ac_objext | |
c0d27fcc | 5696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5697 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5698 | ac_status=$? |
35996d22 AS |
5699 | grep -v '^ *+' conftest.er1 >conftest.err |
5700 | rm -f conftest.er1 | |
5701 | cat conftest.err >&5 | |
c0d27fcc | 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5703 | (exit $ac_status); } && |
35996d22 AS |
5704 | { ac_try='test -z "$ac_c_werror_flag" |
5705 | || test ! -s conftest.err' | |
5706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5707 | (eval $ac_try) 2>&5 | |
5708 | ac_status=$? | |
5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5710 | (exit $ac_status); }; } && | |
5711 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5713 | (eval $ac_try) 2>&5 |
5714 | ac_status=$? | |
c0d27fcc | 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5716 | (exit $ac_status); }; }; then |
98418dba | 5717 | ac_cv_header_time=yes |
ba4481b5 | 5718 | else |
503d2be0 | 5719 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5720 | sed 's/^/| /' conftest.$ac_ext >&5 |
5721 | ||
98418dba | 5722 | ac_cv_header_time=no |
ba4481b5 | 5723 | fi |
35996d22 | 5724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5725 | fi |
c0d27fcc | 5726 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5727 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5728 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5729 | |
c0d27fcc | 5730 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5731 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5732 | _ACEOF |
ba4481b5 DL |
5733 | |
5734 | fi | |
5735 | ||
cd958eb3 MB |
5736 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5737 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5738 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5740 | else |
503d2be0 | 5741 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5742 | /* confdefs.h. */ |
5743 | _ACEOF | |
5744 | cat confdefs.h >>conftest.$ac_ext | |
5745 | cat >>conftest.$ac_ext <<_ACEOF | |
5746 | /* end confdefs.h. */ | |
cd958eb3 MB |
5747 | $ac_includes_default |
5748 | int | |
5749 | main () | |
5750 | { | |
5751 | #ifndef sys_siglist | |
5752 | char *p = (char *) sys_siglist; | |
98418dba | 5753 | #endif |
503d2be0 | 5754 | |
cd958eb3 MB |
5755 | ; |
5756 | return 0; | |
5757 | } | |
5758 | _ACEOF | |
5759 | rm -f conftest.$ac_objext | |
5760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5761 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5762 | ac_status=$? |
35996d22 AS |
5763 | grep -v '^ *+' conftest.er1 >conftest.err |
5764 | rm -f conftest.er1 | |
5765 | cat conftest.err >&5 | |
cd958eb3 MB |
5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5767 | (exit $ac_status); } && | |
35996d22 AS |
5768 | { ac_try='test -z "$ac_c_werror_flag" |
5769 | || test ! -s conftest.err' | |
5770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5771 | (eval $ac_try) 2>&5 | |
5772 | ac_status=$? | |
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5774 | (exit $ac_status); }; } && | |
5775 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
5776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5777 | (eval $ac_try) 2>&5 | |
5778 | ac_status=$? | |
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5780 | (exit $ac_status); }; }; then | |
5781 | ac_cv_have_decl_sys_siglist=yes | |
5782 | else | |
5783 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5784 | sed 's/^/| /' conftest.$ac_ext >&5 |
5785 | ||
cd958eb3 MB |
5786 | ac_cv_have_decl_sys_siglist=no |
5787 | fi | |
35996d22 | 5788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
5789 | fi |
5790 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5791 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5792 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5793 | ||
5794 | cat >>confdefs.h <<_ACEOF | |
5795 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5796 | _ACEOF | |
5797 | ||
5798 | ||
5799 | else | |
5800 | cat >>confdefs.h <<_ACEOF | |
5801 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5802 | _ACEOF | |
5803 | ||
5804 | ||
5805 | fi | |
5806 | ||
5807 | ||
5808 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5809 | # For Tru64, at least: | |
5810 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5811 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5812 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5814 | else | |
5815 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5816 | /* confdefs.h. */ |
5817 | _ACEOF | |
5818 | cat confdefs.h >>conftest.$ac_ext | |
5819 | cat >>conftest.$ac_ext <<_ACEOF | |
5820 | /* end confdefs.h. */ | |
cd958eb3 | 5821 | $ac_includes_default |
503d2be0 AS |
5822 | int |
5823 | main () | |
5824 | { | |
cd958eb3 MB |
5825 | #ifndef __sys_siglist |
5826 | char *p = (char *) __sys_siglist; | |
5827 | #endif | |
5828 | ||
503d2be0 AS |
5829 | ; |
5830 | return 0; | |
5831 | } | |
5832 | _ACEOF | |
5833 | rm -f conftest.$ac_objext | |
c0d27fcc | 5834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5835 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5836 | ac_status=$? |
35996d22 AS |
5837 | grep -v '^ *+' conftest.er1 >conftest.err |
5838 | rm -f conftest.er1 | |
5839 | cat conftest.err >&5 | |
c0d27fcc | 5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5841 | (exit $ac_status); } && |
35996d22 AS |
5842 | { ac_try='test -z "$ac_c_werror_flag" |
5843 | || test ! -s conftest.err' | |
5844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5845 | (eval $ac_try) 2>&5 | |
5846 | ac_status=$? | |
5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5848 | (exit $ac_status); }; } && | |
5849 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5851 | (eval $ac_try) 2>&5 |
5852 | ac_status=$? | |
c0d27fcc | 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5854 | (exit $ac_status); }; }; then |
cd958eb3 | 5855 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5856 | else |
503d2be0 | 5857 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 |
5859 | ||
cd958eb3 | 5860 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 5861 | fi |
35996d22 | 5862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 5863 | fi |
cd958eb3 MB |
5864 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5865 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5866 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5867 | |
cd958eb3 MB |
5868 | cat >>confdefs.h <<_ACEOF |
5869 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5870 | _ACEOF | |
5871 | ||
5872 | ||
5873 | else | |
5874 | cat >>confdefs.h <<_ACEOF | |
5875 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5876 | _ACEOF |
503d2be0 | 5877 | |
cd958eb3 | 5878 | |
ba4481b5 DL |
5879 | fi |
5880 | ||
cd958eb3 MB |
5881 | |
5882 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5883 | ||
5884 | cat >>confdefs.h <<\_ACEOF | |
5885 | #define sys_siglist __sys_siglist | |
5886 | _ACEOF | |
5887 | ||
5888 | fi | |
5889 | fi | |
c0d27fcc | 5890 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5891 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5892 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5894 | else |
503d2be0 | 5895 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5896 | /* confdefs.h. */ |
5897 | _ACEOF | |
5898 | cat confdefs.h >>conftest.$ac_ext | |
5899 | cat >>conftest.$ac_ext <<_ACEOF | |
5900 | /* end confdefs.h. */ | |
98418dba CW |
5901 | #include <sys/types.h> |
5902 | #include <sys/wait.h> | |
5903 | #ifndef WEXITSTATUS | |
5904 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5905 | #endif | |
5906 | #ifndef WIFEXITED | |
5907 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5908 | #endif |
503d2be0 AS |
5909 | |
5910 | int | |
5911 | main () | |
5912 | { | |
98418dba CW |
5913 | int s; |
5914 | wait (&s); | |
5915 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5916 | ; |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
98418dba | 5920 | rm -f conftest.$ac_objext |
c0d27fcc | 5921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5922 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5923 | ac_status=$? |
35996d22 AS |
5924 | grep -v '^ *+' conftest.er1 >conftest.err |
5925 | rm -f conftest.er1 | |
5926 | cat conftest.err >&5 | |
c0d27fcc | 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5928 | (exit $ac_status); } && |
35996d22 AS |
5929 | { ac_try='test -z "$ac_c_werror_flag" |
5930 | || test ! -s conftest.err' | |
5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5932 | (eval $ac_try) 2>&5 | |
5933 | ac_status=$? | |
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5935 | (exit $ac_status); }; } && | |
5936 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5938 | (eval $ac_try) 2>&5 |
5939 | ac_status=$? | |
c0d27fcc | 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5941 | (exit $ac_status); }; }; then |
98418dba | 5942 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5943 | else |
503d2be0 | 5944 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
5946 | ||
98418dba | 5947 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5948 | fi |
35996d22 | 5949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5950 | fi |
c0d27fcc | 5951 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
5952 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
5953 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 5954 | |
c0d27fcc | 5955 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5956 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 5957 | _ACEOF |
ba4481b5 | 5958 | |
ba4481b5 DL |
5959 | fi |
5960 | ||
c0d27fcc MR |
5961 | |
5962 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
5963 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5964 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 5966 | else |
503d2be0 | 5967 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5968 | /* confdefs.h. */ |
5969 | _ACEOF | |
5970 | cat confdefs.h >>conftest.$ac_ext | |
5971 | cat >>conftest.$ac_ext <<_ACEOF | |
5972 | /* end confdefs.h. */ | |
98418dba CW |
5973 | #ifdef TIME_WITH_SYS_TIME |
5974 | #include <sys/time.h> | |
5975 | #include <time.h> | |
5976 | #else | |
5977 | #ifdef HAVE_SYS_TIME_H | |
5978 | #include <sys/time.h> | |
5979 | #else | |
1113b624 | 5980 | #include <time.h> |
98418dba CW |
5981 | #endif |
5982 | #endif | |
5983 | #ifdef HAVE_UTIME_H | |
5984 | #include <utime.h> | |
5985 | #endif | |
503d2be0 AS |
5986 | int |
5987 | main () | |
5988 | { | |
98418dba | 5989 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
5990 | ; |
5991 | return 0; | |
5992 | } | |
5993 | _ACEOF | |
98418dba | 5994 | rm -f conftest.$ac_objext |
c0d27fcc | 5995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5996 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5997 | ac_status=$? |
35996d22 AS |
5998 | grep -v '^ *+' conftest.er1 >conftest.err |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
c0d27fcc | 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6002 | (exit $ac_status); } && |
35996d22 AS |
6003 | { ac_try='test -z "$ac_c_werror_flag" |
6004 | || test ! -s conftest.err' | |
6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6006 | (eval $ac_try) 2>&5 | |
6007 | ac_status=$? | |
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6009 | (exit $ac_status); }; } && | |
6010 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6012 | (eval $ac_try) 2>&5 |
6013 | ac_status=$? | |
c0d27fcc | 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6015 | (exit $ac_status); }; }; then |
98418dba | 6016 | emacs_cv_struct_utimbuf=yes |
1113b624 | 6017 | else |
503d2be0 | 6018 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6019 | sed 's/^/| /' conftest.$ac_ext >&5 |
6020 | ||
98418dba | 6021 | emacs_cv_struct_utimbuf=no |
1113b624 | 6022 | fi |
35996d22 | 6023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1113b624 | 6024 | fi |
c0d27fcc | 6025 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
6026 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
6027 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 6028 | |
c0d27fcc | 6029 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6030 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 6031 | _ACEOF |
1113b624 PE |
6032 | |
6033 | fi | |
ba4481b5 | 6034 | |
c0d27fcc | 6035 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
6036 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
6037 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6039 | else |
98418dba | 6040 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6041 | /* confdefs.h. */ |
6042 | _ACEOF | |
6043 | cat confdefs.h >>conftest.$ac_ext | |
6044 | cat >>conftest.$ac_ext <<_ACEOF | |
6045 | /* end confdefs.h. */ | |
7397acc4 | 6046 | #include <sys/types.h> |
98418dba CW |
6047 | #include <signal.h> |
6048 | #ifdef signal | |
6049 | # undef signal | |
6050 | #endif | |
6051 | #ifdef __cplusplus | |
6052 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6053 | #else | |
6054 | void (*signal ()) (); | |
6055 | #endif | |
6056 | ||
503d2be0 AS |
6057 | int |
6058 | main () | |
6059 | { | |
98418dba | 6060 | int i; |
503d2be0 AS |
6061 | ; |
6062 | return 0; | |
6063 | } | |
6064 | _ACEOF | |
98418dba | 6065 | rm -f conftest.$ac_objext |
c0d27fcc | 6066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6067 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6068 | ac_status=$? |
35996d22 AS |
6069 | grep -v '^ *+' conftest.er1 >conftest.err |
6070 | rm -f conftest.er1 | |
6071 | cat conftest.err >&5 | |
c0d27fcc | 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6073 | (exit $ac_status); } && |
35996d22 AS |
6074 | { ac_try='test -z "$ac_c_werror_flag" |
6075 | || test ! -s conftest.err' | |
6076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6077 | (eval $ac_try) 2>&5 | |
6078 | ac_status=$? | |
6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6080 | (exit $ac_status); }; } && | |
6081 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6083 | (eval $ac_try) 2>&5 |
6084 | ac_status=$? | |
c0d27fcc | 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6086 | (exit $ac_status); }; }; then |
98418dba | 6087 | ac_cv_type_signal=void |
503d2be0 AS |
6088 | else |
6089 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6090 | sed 's/^/| /' conftest.$ac_ext >&5 |
6091 | ||
98418dba | 6092 | ac_cv_type_signal=int |
503d2be0 | 6093 | fi |
35996d22 | 6094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6095 | fi |
c0d27fcc | 6096 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 6097 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 6098 | |
c0d27fcc | 6099 | cat >>confdefs.h <<_ACEOF |
98418dba | 6100 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
6101 | _ACEOF |
6102 | ||
503d2be0 | 6103 | |
c0d27fcc MR |
6104 | |
6105 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
6106 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
6107 | if test "${emacs_cv_speed_t+set}" = set; then | |
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 6109 | else |
98418dba | 6110 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6111 | /* confdefs.h. */ |
6112 | _ACEOF | |
6113 | cat confdefs.h >>conftest.$ac_ext | |
6114 | cat >>conftest.$ac_ext <<_ACEOF | |
6115 | /* end confdefs.h. */ | |
98418dba | 6116 | #include <termios.h> |
98418dba CW |
6117 | int |
6118 | main () | |
6119 | { | |
6120 | speed_t x = 1; | |
6121 | ; | |
6122 | return 0; | |
6123 | } | |
6124 | _ACEOF | |
6125 | rm -f conftest.$ac_objext | |
c0d27fcc | 6126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6127 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6128 | ac_status=$? |
35996d22 AS |
6129 | grep -v '^ *+' conftest.er1 >conftest.err |
6130 | rm -f conftest.er1 | |
6131 | cat conftest.err >&5 | |
c0d27fcc | 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6133 | (exit $ac_status); } && |
35996d22 AS |
6134 | { ac_try='test -z "$ac_c_werror_flag" |
6135 | || test ! -s conftest.err' | |
6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6137 | (eval $ac_try) 2>&5 | |
6138 | ac_status=$? | |
6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6140 | (exit $ac_status); }; } && | |
6141 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6143 | (eval $ac_try) 2>&5 |
6144 | ac_status=$? | |
c0d27fcc | 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6146 | (exit $ac_status); }; }; then |
6147 | emacs_cv_speed_t=yes | |
6148 | else | |
6149 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
6151 | ||
98418dba CW |
6152 | emacs_cv_speed_t=no |
6153 | fi | |
35996d22 | 6154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 6155 | fi |
c0d27fcc | 6156 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
6157 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
6158 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 6159 | |
c0d27fcc | 6160 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6161 | #define HAVE_SPEED_T 1 |
c0d27fcc | 6162 | _ACEOF |
98418dba | 6163 | |
7397acc4 DL |
6164 | fi |
6165 | ||
c0d27fcc | 6166 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
6167 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
6168 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 6169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6170 | else |
503d2be0 | 6171 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6172 | /* confdefs.h. */ |
6173 | _ACEOF | |
6174 | cat confdefs.h >>conftest.$ac_ext | |
6175 | cat >>conftest.$ac_ext <<_ACEOF | |
6176 | /* end confdefs.h. */ | |
98418dba CW |
6177 | #ifdef TIME_WITH_SYS_TIME |
6178 | #include <sys/time.h> | |
6179 | #include <time.h> | |
6180 | #else | |
6181 | #ifdef HAVE_SYS_TIME_H | |
6182 | #include <sys/time.h> | |
6183 | #else | |
6184 | #include <time.h> | |
6185 | #endif | |
6186 | #endif | |
503d2be0 AS |
6187 | int |
6188 | main () | |
6189 | { | |
98418dba | 6190 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
6191 | ; |
6192 | return 0; | |
6193 | } | |
6194 | _ACEOF | |
6195 | rm -f conftest.$ac_objext | |
c0d27fcc | 6196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6197 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6198 | ac_status=$? |
35996d22 AS |
6199 | grep -v '^ *+' conftest.er1 >conftest.err |
6200 | rm -f conftest.er1 | |
6201 | cat conftest.err >&5 | |
c0d27fcc | 6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6203 | (exit $ac_status); } && |
35996d22 AS |
6204 | { ac_try='test -z "$ac_c_werror_flag" |
6205 | || test ! -s conftest.err' | |
6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6207 | (eval $ac_try) 2>&5 | |
6208 | ac_status=$? | |
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6210 | (exit $ac_status); }; } && | |
6211 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6213 | (eval $ac_try) 2>&5 |
6214 | ac_status=$? | |
c0d27fcc | 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6216 | (exit $ac_status); }; }; then |
98418dba | 6217 | emacs_cv_struct_timeval=yes |
7397acc4 | 6218 | else |
503d2be0 | 6219 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
6221 | ||
98418dba | 6222 | emacs_cv_struct_timeval=no |
7397acc4 | 6223 | fi |
35996d22 | 6224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6225 | fi |
c0d27fcc | 6226 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
6227 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
6228 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
6229 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 6230 | |
c0d27fcc | 6231 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6232 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 6233 | _ACEOF |
7397acc4 DL |
6234 | |
6235 | fi | |
6236 | ||
c0d27fcc | 6237 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
6238 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
6239 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6241 | else |
503d2be0 | 6242 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6243 | /* confdefs.h. */ |
6244 | _ACEOF | |
6245 | cat confdefs.h >>conftest.$ac_ext | |
6246 | cat >>conftest.$ac_ext <<_ACEOF | |
6247 | /* end confdefs.h. */ | |
98418dba | 6248 | #include <math.h> |
503d2be0 AS |
6249 | int |
6250 | main () | |
6251 | { | |
98418dba | 6252 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
6253 | ; |
6254 | return 0; | |
ba4481b5 | 6255 | } |
503d2be0 AS |
6256 | _ACEOF |
6257 | rm -f conftest.$ac_objext | |
c0d27fcc | 6258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6259 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6260 | ac_status=$? |
35996d22 AS |
6261 | grep -v '^ *+' conftest.er1 >conftest.err |
6262 | rm -f conftest.er1 | |
6263 | cat conftest.err >&5 | |
c0d27fcc | 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6265 | (exit $ac_status); } && |
35996d22 AS |
6266 | { ac_try='test -z "$ac_c_werror_flag" |
6267 | || test ! -s conftest.err' | |
6268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6269 | (eval $ac_try) 2>&5 | |
6270 | ac_status=$? | |
6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6272 | (exit $ac_status); }; } && | |
6273 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6275 | (eval $ac_try) 2>&5 |
6276 | ac_status=$? | |
c0d27fcc | 6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6278 | (exit $ac_status); }; }; then |
98418dba | 6279 | emacs_cv_struct_exception=yes |
ba4481b5 | 6280 | else |
503d2be0 | 6281 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6282 | sed 's/^/| /' conftest.$ac_ext >&5 |
6283 | ||
98418dba | 6284 | emacs_cv_struct_exception=no |
ba4481b5 | 6285 | fi |
35996d22 | 6286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6287 | fi |
c0d27fcc | 6288 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
6289 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
6290 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
6291 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 6292 | |
c0d27fcc | 6293 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6294 | #define NO_MATHERR 1 |
c0d27fcc | 6295 | _ACEOF |
ba4481b5 DL |
6296 | |
6297 | fi | |
6298 | ||
7862d3a8 AS |
6299 | |
6300 | for ac_header in sys/socket.h | |
6301 | do | |
6302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6308 | fi | |
6309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6311 | else | |
6312 | # Is the header compilable? | |
6313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6315 | cat >conftest.$ac_ext <<_ACEOF | |
6316 | /* confdefs.h. */ | |
6317 | _ACEOF | |
6318 | cat confdefs.h >>conftest.$ac_ext | |
6319 | cat >>conftest.$ac_ext <<_ACEOF | |
6320 | /* end confdefs.h. */ | |
6321 | $ac_includes_default | |
6322 | #include <$ac_header> | |
6323 | _ACEOF | |
6324 | rm -f conftest.$ac_objext | |
6325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6326 | (eval $ac_compile) 2>conftest.er1 | |
6327 | ac_status=$? | |
6328 | grep -v '^ *+' conftest.er1 >conftest.err | |
6329 | rm -f conftest.er1 | |
6330 | cat conftest.err >&5 | |
6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6332 | (exit $ac_status); } && | |
6333 | { ac_try='test -z "$ac_c_werror_flag" | |
6334 | || test ! -s conftest.err' | |
6335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6336 | (eval $ac_try) 2>&5 | |
6337 | ac_status=$? | |
6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6339 | (exit $ac_status); }; } && | |
6340 | { ac_try='test -s conftest.$ac_objext' | |
6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6342 | (eval $ac_try) 2>&5 | |
6343 | ac_status=$? | |
6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6345 | (exit $ac_status); }; }; then | |
6346 | ac_header_compiler=yes | |
6347 | else | |
6348 | echo "$as_me: failed program was:" >&5 | |
6349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6350 | ||
6351 | ac_header_compiler=no | |
6352 | fi | |
6353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6354 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6355 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6356 | ||
6357 | # Is the header present? | |
6358 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6359 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6360 | cat >conftest.$ac_ext <<_ACEOF | |
6361 | /* confdefs.h. */ | |
6362 | _ACEOF | |
6363 | cat confdefs.h >>conftest.$ac_ext | |
6364 | cat >>conftest.$ac_ext <<_ACEOF | |
6365 | /* end confdefs.h. */ | |
6366 | #include <$ac_header> | |
6367 | _ACEOF | |
6368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6370 | ac_status=$? | |
6371 | grep -v '^ *+' conftest.er1 >conftest.err | |
6372 | rm -f conftest.er1 | |
6373 | cat conftest.err >&5 | |
6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6375 | (exit $ac_status); } >/dev/null; then | |
6376 | if test -s conftest.err; then | |
6377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6379 | else | |
6380 | ac_cpp_err= | |
6381 | fi | |
6382 | else | |
6383 | ac_cpp_err=yes | |
6384 | fi | |
6385 | if test -z "$ac_cpp_err"; then | |
6386 | ac_header_preproc=yes | |
6387 | else | |
6388 | echo "$as_me: failed program was:" >&5 | |
6389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6390 | ||
6391 | ac_header_preproc=no | |
6392 | fi | |
6393 | rm -f conftest.err conftest.$ac_ext | |
6394 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6395 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6396 | ||
6397 | # So? What about this header? | |
6398 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6399 | yes:no: ) | |
6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6401 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6403 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6404 | ac_header_preproc=yes | |
6405 | ;; | |
6406 | no:yes:* ) | |
6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6411 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6412 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6413 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6414 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6416 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6417 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6418 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6419 | ( | |
6420 | cat <<\_ASBOX | |
6421 | ## ------------------------------------------ ## | |
6422 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6423 | ## ------------------------------------------ ## | |
6424 | _ASBOX | |
6425 | ) | | |
6426 | sed "s/^/$as_me: WARNING: /" >&2 | |
6427 | ;; | |
6428 | esac | |
6429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6433 | else | |
6434 | eval "$as_ac_Header=\$ac_header_preproc" | |
6435 | fi | |
6436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6438 | ||
6439 | fi | |
6440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6441 | cat >>confdefs.h <<_ACEOF | |
6442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6443 | _ACEOF | |
6444 | ||
6445 | fi | |
6446 | ||
6447 | done | |
6448 | ||
6449 | ||
6450 | for ac_header in net/if.h | |
6451 | do | |
6452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6457 | else | |
6458 | cat >conftest.$ac_ext <<_ACEOF | |
6459 | /* confdefs.h. */ | |
6460 | _ACEOF | |
6461 | cat confdefs.h >>conftest.$ac_ext | |
6462 | cat >>conftest.$ac_ext <<_ACEOF | |
6463 | /* end confdefs.h. */ | |
6464 | $ac_includes_default | |
6465 | #if HAVE_SYS_SOCKET_H | |
6466 | #include <sys/socket.h> | |
6467 | #endif | |
6468 | ||
6469 | #include <$ac_header> | |
6470 | _ACEOF | |
6471 | rm -f conftest.$ac_objext | |
6472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6473 | (eval $ac_compile) 2>conftest.er1 | |
6474 | ac_status=$? | |
6475 | grep -v '^ *+' conftest.er1 >conftest.err | |
6476 | rm -f conftest.er1 | |
6477 | cat conftest.err >&5 | |
6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6479 | (exit $ac_status); } && | |
6480 | { ac_try='test -z "$ac_c_werror_flag" | |
6481 | || test ! -s conftest.err' | |
6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6483 | (eval $ac_try) 2>&5 | |
6484 | ac_status=$? | |
6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6486 | (exit $ac_status); }; } && | |
6487 | { ac_try='test -s conftest.$ac_objext' | |
6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6489 | (eval $ac_try) 2>&5 | |
6490 | ac_status=$? | |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6492 | (exit $ac_status); }; }; then | |
6493 | eval "$as_ac_Header=yes" | |
6494 | else | |
6495 | echo "$as_me: failed program was:" >&5 | |
6496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6497 | ||
6498 | eval "$as_ac_Header=no" | |
6499 | fi | |
6500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6501 | fi | |
6502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6505 | cat >>confdefs.h <<_ACEOF | |
6506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6507 | _ACEOF | |
6508 | ||
6509 | fi | |
6510 | ||
6511 | done | |
6512 | ||
6513 | ||
c0d27fcc | 6514 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
6515 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
6516 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6518 | else |
503d2be0 | 6519 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6520 | /* confdefs.h. */ |
6521 | _ACEOF | |
6522 | cat confdefs.h >>conftest.$ac_ext | |
6523 | cat >>conftest.$ac_ext <<_ACEOF | |
6524 | /* end confdefs.h. */ | |
98418dba CW |
6525 | #include <sys/types.h> |
6526 | #include <time.h> | |
7397acc4 | 6527 | |
503d2be0 AS |
6528 | int |
6529 | main () | |
6530 | { | |
98418dba | 6531 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
6532 | ; |
6533 | return 0; | |
6534 | } | |
6535 | _ACEOF | |
6536 | rm -f conftest.$ac_objext | |
c0d27fcc | 6537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6538 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6539 | ac_status=$? |
35996d22 AS |
6540 | grep -v '^ *+' conftest.er1 >conftest.err |
6541 | rm -f conftest.er1 | |
6542 | cat conftest.err >&5 | |
c0d27fcc | 6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6544 | (exit $ac_status); } && |
35996d22 AS |
6545 | { ac_try='test -z "$ac_c_werror_flag" |
6546 | || test ! -s conftest.err' | |
c0d27fcc | 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6548 | (eval $ac_try) 2>&5 |
6549 | ac_status=$? | |
c0d27fcc | 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
6551 | (exit $ac_status); }; } && |
6552 | { ac_try='test -s conftest.$ac_objext' | |
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6554 | (eval $ac_try) 2>&5 | |
6555 | ac_status=$? | |
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6557 | (exit $ac_status); }; }; then | |
6558 | ac_cv_struct_tm=time.h | |
6559 | else | |
503d2be0 | 6560 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6561 | sed 's/^/| /' conftest.$ac_ext >&5 |
6562 | ||
98418dba | 6563 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 6564 | fi |
35996d22 | 6565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6566 | fi |
c0d27fcc | 6567 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
6568 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
6569 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 6570 | |
c0d27fcc | 6571 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6572 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 6573 | _ACEOF |
7397acc4 DL |
6574 | |
6575 | fi | |
ba4481b5 | 6576 | |
c0d27fcc | 6577 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
6578 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
6579 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 6580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6581 | else |
98418dba | 6582 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6583 | /* confdefs.h. */ |
6584 | _ACEOF | |
6585 | cat confdefs.h >>conftest.$ac_ext | |
6586 | cat >>conftest.$ac_ext <<_ACEOF | |
6587 | /* end confdefs.h. */ | |
98418dba CW |
6588 | #include <sys/types.h> |
6589 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6590 | |
c0d27fcc | 6591 | |
98418dba CW |
6592 | int |
6593 | main () | |
6594 | { | |
6595 | static struct tm ac_aggr; | |
6596 | if (ac_aggr.tm_zone) | |
6597 | return 0; | |
6598 | ; | |
6599 | return 0; | |
6600 | } | |
6601 | _ACEOF | |
6602 | rm -f conftest.$ac_objext | |
c0d27fcc | 6603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6604 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6605 | ac_status=$? |
35996d22 AS |
6606 | grep -v '^ *+' conftest.er1 >conftest.err |
6607 | rm -f conftest.er1 | |
6608 | cat conftest.err >&5 | |
c0d27fcc | 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6610 | (exit $ac_status); } && |
35996d22 AS |
6611 | { ac_try='test -z "$ac_c_werror_flag" |
6612 | || test ! -s conftest.err' | |
6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6614 | (eval $ac_try) 2>&5 | |
6615 | ac_status=$? | |
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6617 | (exit $ac_status); }; } && | |
6618 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6620 | (eval $ac_try) 2>&5 |
6621 | ac_status=$? | |
c0d27fcc | 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6623 | (exit $ac_status); }; }; then |
6624 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6625 | else |
98418dba | 6626 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
6628 | ||
6bae0ccf | 6629 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6630 | /* confdefs.h. */ |
6631 | _ACEOF | |
6632 | cat confdefs.h >>conftest.$ac_ext | |
6633 | cat >>conftest.$ac_ext <<_ACEOF | |
6634 | /* end confdefs.h. */ | |
6bae0ccf DL |
6635 | #include <sys/types.h> |
6636 | #include <$ac_cv_struct_tm> | |
6637 | ||
6638 | ||
6639 | int | |
6640 | main () | |
6641 | { | |
6642 | static struct tm ac_aggr; | |
6643 | if (sizeof ac_aggr.tm_zone) | |
6644 | return 0; | |
6645 | ; | |
6646 | return 0; | |
6647 | } | |
6648 | _ACEOF | |
6649 | rm -f conftest.$ac_objext | |
6650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6651 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 6652 | ac_status=$? |
35996d22 AS |
6653 | grep -v '^ *+' conftest.er1 >conftest.err |
6654 | rm -f conftest.er1 | |
6655 | cat conftest.err >&5 | |
6bae0ccf DL |
6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6657 | (exit $ac_status); } && | |
35996d22 AS |
6658 | { ac_try='test -z "$ac_c_werror_flag" |
6659 | || test ! -s conftest.err' | |
6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6661 | (eval $ac_try) 2>&5 | |
6662 | ac_status=$? | |
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6664 | (exit $ac_status); }; } && | |
6665 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
6666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6667 | (eval $ac_try) 2>&5 | |
6668 | ac_status=$? | |
6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6670 | (exit $ac_status); }; }; then | |
6671 | ac_cv_member_struct_tm_tm_zone=yes | |
6672 | else | |
6673 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6674 | sed 's/^/| /' conftest.$ac_ext >&5 |
6675 | ||
98418dba | 6676 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6677 | fi |
35996d22 | 6678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6679 | fi |
35996d22 | 6680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6681 | fi |
c0d27fcc | 6682 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6683 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6684 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6685 | |
c0d27fcc | 6686 | cat >>confdefs.h <<_ACEOF |
98418dba | 6687 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6688 | _ACEOF |
6689 | ||
ba4481b5 | 6690 | |
98418dba | 6691 | fi |
ba4481b5 | 6692 | |
98418dba | 6693 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6694 | |
c0d27fcc | 6695 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6696 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6697 | _ACEOF |
ba4481b5 | 6698 | |
ba4481b5 | 6699 | else |
c0d27fcc | 6700 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6701 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6702 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6704 | else |
98418dba | 6705 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6706 | /* confdefs.h. */ |
6707 | _ACEOF | |
6708 | cat confdefs.h >>conftest.$ac_ext | |
6709 | cat >>conftest.$ac_ext <<_ACEOF | |
6710 | /* end confdefs.h. */ | |
98418dba CW |
6711 | #include <time.h> |
6712 | #ifndef tzname /* For SGI. */ | |
6713 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6714 | #endif | |
6715 | ||
98418dba CW |
6716 | int |
6717 | main () | |
6718 | { | |
6719 | atoi(*tzname); | |
6720 | ; | |
6721 | return 0; | |
6722 | } | |
6723 | _ACEOF | |
6724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 6726 | (eval $ac_link) 2>conftest.er1 |
98418dba | 6727 | ac_status=$? |
35996d22 AS |
6728 | grep -v '^ *+' conftest.er1 >conftest.err |
6729 | rm -f conftest.er1 | |
6730 | cat conftest.err >&5 | |
c0d27fcc | 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6732 | (exit $ac_status); } && |
35996d22 AS |
6733 | { ac_try='test -z "$ac_c_werror_flag" |
6734 | || test ! -s conftest.err' | |
6735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6736 | (eval $ac_try) 2>&5 | |
6737 | ac_status=$? | |
6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6739 | (exit $ac_status); }; } && | |
6740 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6742 | (eval $ac_try) 2>&5 |
6743 | ac_status=$? | |
c0d27fcc | 6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6745 | (exit $ac_status); }; }; then |
6746 | ac_cv_var_tzname=yes | |
6747 | else | |
6748 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6749 | sed 's/^/| /' conftest.$ac_ext >&5 |
6750 | ||
98418dba | 6751 | ac_cv_var_tzname=no |
ba4481b5 | 6752 | fi |
35996d22 AS |
6753 | rm -f conftest.err conftest.$ac_objext \ |
6754 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 6755 | fi |
c0d27fcc | 6756 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6757 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6758 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6759 | |
c0d27fcc | 6760 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6761 | #define HAVE_TZNAME 1 |
c0d27fcc | 6762 | _ACEOF |
503d2be0 | 6763 | |
98418dba CW |
6764 | fi |
6765 | fi | |
503d2be0 | 6766 | |
c0d27fcc | 6767 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6768 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6769 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6771 | else | |
6772 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6773 | /* confdefs.h. */ |
6774 | _ACEOF | |
6775 | cat confdefs.h >>conftest.$ac_ext | |
6776 | cat >>conftest.$ac_ext <<_ACEOF | |
6777 | /* end confdefs.h. */ | |
98418dba | 6778 | #include <time.h> |
b936fae4 | 6779 | |
98418dba CW |
6780 | int |
6781 | main () | |
6782 | { | |
b936fae4 AS |
6783 | static struct tm ac_aggr; |
6784 | if (ac_aggr.tm_gmtoff) | |
6785 | return 0; | |
98418dba CW |
6786 | ; |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
b936fae4 | 6790 | rm -f conftest.$ac_objext |
c0d27fcc | 6791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6792 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6793 | ac_status=$? |
35996d22 AS |
6794 | grep -v '^ *+' conftest.er1 >conftest.err |
6795 | rm -f conftest.er1 | |
6796 | cat conftest.err >&5 | |
c0d27fcc | 6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6798 | (exit $ac_status); } && |
35996d22 AS |
6799 | { ac_try='test -z "$ac_c_werror_flag" |
6800 | || test ! -s conftest.err' | |
6801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6802 | (eval $ac_try) 2>&5 | |
6803 | ac_status=$? | |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6805 | (exit $ac_status); }; } && | |
6806 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6808 | (eval $ac_try) 2>&5 |
6809 | ac_status=$? | |
c0d27fcc | 6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6811 | (exit $ac_status); }; }; then |
b936fae4 | 6812 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6813 | else |
6814 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6815 | sed 's/^/| /' conftest.$ac_ext >&5 |
6816 | ||
8799b3e4 | 6817 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6818 | /* confdefs.h. */ |
6819 | _ACEOF | |
6820 | cat confdefs.h >>conftest.$ac_ext | |
6821 | cat >>conftest.$ac_ext <<_ACEOF | |
6822 | /* end confdefs.h. */ | |
6bae0ccf DL |
6823 | #include <time.h> |
6824 | ||
8799b3e4 CW |
6825 | int |
6826 | main () | |
6827 | { | |
6bae0ccf DL |
6828 | static struct tm ac_aggr; |
6829 | if (sizeof ac_aggr.tm_gmtoff) | |
6830 | return 0; | |
8799b3e4 CW |
6831 | ; |
6832 | return 0; | |
6833 | } | |
6834 | _ACEOF | |
6bae0ccf | 6835 | rm -f conftest.$ac_objext |
c0d27fcc | 6836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6837 | (eval $ac_compile) 2>conftest.er1 |
8799b3e4 | 6838 | ac_status=$? |
35996d22 AS |
6839 | grep -v '^ *+' conftest.er1 >conftest.err |
6840 | rm -f conftest.er1 | |
6841 | cat conftest.err >&5 | |
c0d27fcc | 6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6843 | (exit $ac_status); } && |
35996d22 AS |
6844 | { ac_try='test -z "$ac_c_werror_flag" |
6845 | || test ! -s conftest.err' | |
6846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6847 | (eval $ac_try) 2>&5 | |
6848 | ac_status=$? | |
6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6850 | (exit $ac_status); }; } && | |
6851 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6853 | (eval $ac_try) 2>&5 |
6854 | ac_status=$? | |
c0d27fcc | 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6856 | (exit $ac_status); }; }; then |
6bae0ccf | 6857 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6858 | else |
6859 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6860 | sed 's/^/| /' conftest.$ac_ext >&5 |
6861 | ||
6bae0ccf | 6862 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6863 | fi |
35996d22 | 6864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6865 | fi |
35996d22 | 6866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8799b3e4 | 6867 | fi |
6bae0ccf DL |
6868 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6869 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6870 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6871 | ||
6872 | cat >>confdefs.h <<\_ACEOF | |
6873 | #define HAVE_TM_GMTOFF 1 | |
6874 | _ACEOF | |
6875 | ||
6876 | fi | |
6877 | ||
96f3a036 DL |
6878 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
6879 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6 | |
6880 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
6881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6882 | else | |
6883 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6884 | /* confdefs.h. */ |
6885 | _ACEOF | |
6886 | cat confdefs.h >>conftest.$ac_ext | |
6887 | cat >>conftest.$ac_ext <<_ACEOF | |
6888 | /* end confdefs.h. */ | |
7862d3a8 AS |
6889 | $ac_includes_default |
6890 | #if HAVE_SYS_SOCKET_H | |
6891 | #include <sys/socket.h> | |
6892 | #endif | |
6893 | #if HAVE_NET_IF_H | |
96f3a036 | 6894 | #include <net/if.h> |
7862d3a8 | 6895 | #endif |
96f3a036 DL |
6896 | |
6897 | int | |
6898 | main () | |
6899 | { | |
6900 | static struct ifreq ac_aggr; | |
6901 | if (ac_aggr.ifr_flags) | |
6902 | return 0; | |
6903 | ; | |
6904 | return 0; | |
6905 | } | |
6906 | _ACEOF | |
6907 | rm -f conftest.$ac_objext | |
6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6909 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6910 | ac_status=$? |
35996d22 AS |
6911 | grep -v '^ *+' conftest.er1 >conftest.err |
6912 | rm -f conftest.er1 | |
6913 | cat conftest.err >&5 | |
96f3a036 DL |
6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6915 | (exit $ac_status); } && | |
35996d22 AS |
6916 | { ac_try='test -z "$ac_c_werror_flag" |
6917 | || test ! -s conftest.err' | |
6918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6919 | (eval $ac_try) 2>&5 | |
6920 | ac_status=$? | |
6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6922 | (exit $ac_status); }; } && | |
6923 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6925 | (eval $ac_try) 2>&5 | |
6926 | ac_status=$? | |
6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6928 | (exit $ac_status); }; }; then | |
6929 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6930 | else | |
6931 | echo "$as_me: failed program was:" >&5 | |
6932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6933 | ||
6934 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6935 | /* confdefs.h. */ |
6936 | _ACEOF | |
6937 | cat confdefs.h >>conftest.$ac_ext | |
6938 | cat >>conftest.$ac_ext <<_ACEOF | |
6939 | /* end confdefs.h. */ | |
7862d3a8 AS |
6940 | $ac_includes_default |
6941 | #if HAVE_SYS_SOCKET_H | |
6942 | #include <sys/socket.h> | |
6943 | #endif | |
6944 | #if HAVE_NET_IF_H | |
96f3a036 | 6945 | #include <net/if.h> |
7862d3a8 | 6946 | #endif |
96f3a036 DL |
6947 | |
6948 | int | |
6949 | main () | |
6950 | { | |
6951 | static struct ifreq ac_aggr; | |
6952 | if (sizeof ac_aggr.ifr_flags) | |
6953 | return 0; | |
6954 | ; | |
6955 | return 0; | |
6956 | } | |
6957 | _ACEOF | |
6958 | rm -f conftest.$ac_objext | |
6959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6960 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6961 | ac_status=$? |
35996d22 AS |
6962 | grep -v '^ *+' conftest.er1 >conftest.err |
6963 | rm -f conftest.er1 | |
6964 | cat conftest.err >&5 | |
96f3a036 DL |
6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6966 | (exit $ac_status); } && | |
35996d22 AS |
6967 | { ac_try='test -z "$ac_c_werror_flag" |
6968 | || test ! -s conftest.err' | |
6969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6970 | (eval $ac_try) 2>&5 | |
6971 | ac_status=$? | |
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6973 | (exit $ac_status); }; } && | |
6974 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6976 | (eval $ac_try) 2>&5 | |
6977 | ac_status=$? | |
6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6979 | (exit $ac_status); }; }; then | |
6980 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6981 | else | |
6982 | echo "$as_me: failed program was:" >&5 | |
6983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6984 | ||
6985 | ac_cv_member_struct_ifreq_ifr_flags=no | |
6986 | fi | |
35996d22 | 6987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 6988 | fi |
35996d22 | 6989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
6990 | fi |
6991 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
6992 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 | |
6993 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
6994 | ||
6995 | cat >>confdefs.h <<_ACEOF | |
6996 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
6997 | _ACEOF | |
6998 | ||
6999 | ||
7000 | fi | |
7001 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | |
7002 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6 | |
7003 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7005 | else | |
7006 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7007 | /* confdefs.h. */ |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
7862d3a8 AS |
7012 | $ac_includes_default |
7013 | #if HAVE_SYS_SOCKET_H | |
7014 | #include <sys/socket.h> | |
7015 | #endif | |
7016 | #if HAVE_NET_IF_H | |
96f3a036 | 7017 | #include <net/if.h> |
7862d3a8 | 7018 | #endif |
96f3a036 DL |
7019 | |
7020 | int | |
7021 | main () | |
7022 | { | |
7023 | static struct ifreq ac_aggr; | |
7024 | if (ac_aggr.ifr_hwaddr) | |
7025 | return 0; | |
7026 | ; | |
7027 | return 0; | |
7028 | } | |
7029 | _ACEOF | |
7030 | rm -f conftest.$ac_objext | |
7031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7032 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7033 | ac_status=$? |
35996d22 AS |
7034 | grep -v '^ *+' conftest.er1 >conftest.err |
7035 | rm -f conftest.er1 | |
7036 | cat conftest.err >&5 | |
96f3a036 DL |
7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7038 | (exit $ac_status); } && | |
35996d22 AS |
7039 | { ac_try='test -z "$ac_c_werror_flag" |
7040 | || test ! -s conftest.err' | |
7041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7042 | (eval $ac_try) 2>&5 | |
7043 | ac_status=$? | |
7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7045 | (exit $ac_status); }; } && | |
7046 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7048 | (eval $ac_try) 2>&5 | |
7049 | ac_status=$? | |
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7051 | (exit $ac_status); }; }; then | |
7052 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7053 | else | |
7054 | echo "$as_me: failed program was:" >&5 | |
7055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7056 | ||
7057 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7058 | /* confdefs.h. */ |
7059 | _ACEOF | |
7060 | cat confdefs.h >>conftest.$ac_ext | |
7061 | cat >>conftest.$ac_ext <<_ACEOF | |
7062 | /* end confdefs.h. */ | |
7862d3a8 AS |
7063 | $ac_includes_default |
7064 | #if HAVE_SYS_SOCKET_H | |
7065 | #include <sys/socket.h> | |
7066 | #endif | |
7067 | #if HAVE_NET_IF_H | |
96f3a036 | 7068 | #include <net/if.h> |
7862d3a8 | 7069 | #endif |
96f3a036 DL |
7070 | |
7071 | int | |
7072 | main () | |
7073 | { | |
7074 | static struct ifreq ac_aggr; | |
7075 | if (sizeof ac_aggr.ifr_hwaddr) | |
7076 | return 0; | |
7077 | ; | |
7078 | return 0; | |
7079 | } | |
7080 | _ACEOF | |
7081 | rm -f conftest.$ac_objext | |
7082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7083 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7084 | ac_status=$? |
35996d22 AS |
7085 | grep -v '^ *+' conftest.er1 >conftest.err |
7086 | rm -f conftest.er1 | |
7087 | cat conftest.err >&5 | |
96f3a036 DL |
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7089 | (exit $ac_status); } && | |
35996d22 AS |
7090 | { ac_try='test -z "$ac_c_werror_flag" |
7091 | || test ! -s conftest.err' | |
7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7093 | (eval $ac_try) 2>&5 | |
7094 | ac_status=$? | |
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7096 | (exit $ac_status); }; } && | |
7097 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7099 | (eval $ac_try) 2>&5 | |
7100 | ac_status=$? | |
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7102 | (exit $ac_status); }; }; then | |
7103 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7104 | else | |
7105 | echo "$as_me: failed program was:" >&5 | |
7106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7107 | ||
7108 | ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
7109 | fi | |
35996d22 | 7110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7111 | fi |
35996d22 | 7112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7113 | fi |
7114 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
7115 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 | |
7116 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
7117 | ||
7118 | cat >>confdefs.h <<_ACEOF | |
7119 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
7120 | _ACEOF | |
7121 | ||
7122 | ||
7123 | fi | |
7124 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | |
7125 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6 | |
7126 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
7127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7128 | else | |
7129 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7130 | /* confdefs.h. */ |
7131 | _ACEOF | |
7132 | cat confdefs.h >>conftest.$ac_ext | |
7133 | cat >>conftest.$ac_ext <<_ACEOF | |
7134 | /* end confdefs.h. */ | |
7862d3a8 AS |
7135 | $ac_includes_default |
7136 | #if HAVE_SYS_SOCKET_H | |
7137 | #include <sys/socket.h> | |
7138 | #endif | |
7139 | #if HAVE_NET_IF_H | |
96f3a036 | 7140 | #include <net/if.h> |
7862d3a8 | 7141 | #endif |
96f3a036 DL |
7142 | |
7143 | int | |
7144 | main () | |
7145 | { | |
7146 | static struct ifreq ac_aggr; | |
7147 | if (ac_aggr.ifr_netmask) | |
7148 | return 0; | |
7149 | ; | |
7150 | return 0; | |
7151 | } | |
7152 | _ACEOF | |
7153 | rm -f conftest.$ac_objext | |
7154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7155 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7156 | ac_status=$? |
35996d22 AS |
7157 | grep -v '^ *+' conftest.er1 >conftest.err |
7158 | rm -f conftest.er1 | |
7159 | cat conftest.err >&5 | |
96f3a036 DL |
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7161 | (exit $ac_status); } && | |
35996d22 AS |
7162 | { ac_try='test -z "$ac_c_werror_flag" |
7163 | || test ! -s conftest.err' | |
7164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7165 | (eval $ac_try) 2>&5 | |
7166 | ac_status=$? | |
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7168 | (exit $ac_status); }; } && | |
7169 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7171 | (eval $ac_try) 2>&5 | |
7172 | ac_status=$? | |
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); }; }; then | |
7175 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7176 | else | |
7177 | echo "$as_me: failed program was:" >&5 | |
7178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7179 | ||
7180 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7181 | /* confdefs.h. */ |
7182 | _ACEOF | |
7183 | cat confdefs.h >>conftest.$ac_ext | |
7184 | cat >>conftest.$ac_ext <<_ACEOF | |
7185 | /* end confdefs.h. */ | |
7862d3a8 AS |
7186 | $ac_includes_default |
7187 | #if HAVE_SYS_SOCKET_H | |
7188 | #include <sys/socket.h> | |
7189 | #endif | |
7190 | #if HAVE_NET_IF_H | |
96f3a036 | 7191 | #include <net/if.h> |
7862d3a8 | 7192 | #endif |
96f3a036 DL |
7193 | |
7194 | int | |
7195 | main () | |
7196 | { | |
7197 | static struct ifreq ac_aggr; | |
7198 | if (sizeof ac_aggr.ifr_netmask) | |
7199 | return 0; | |
7200 | ; | |
7201 | return 0; | |
7202 | } | |
7203 | _ACEOF | |
7204 | rm -f conftest.$ac_objext | |
7205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7206 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7207 | ac_status=$? |
35996d22 AS |
7208 | grep -v '^ *+' conftest.er1 >conftest.err |
7209 | rm -f conftest.er1 | |
7210 | cat conftest.err >&5 | |
96f3a036 DL |
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7212 | (exit $ac_status); } && | |
35996d22 AS |
7213 | { ac_try='test -z "$ac_c_werror_flag" |
7214 | || test ! -s conftest.err' | |
7215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7216 | (eval $ac_try) 2>&5 | |
7217 | ac_status=$? | |
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7219 | (exit $ac_status); }; } && | |
7220 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7222 | (eval $ac_try) 2>&5 | |
7223 | ac_status=$? | |
7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7225 | (exit $ac_status); }; }; then | |
7226 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7227 | else | |
7228 | echo "$as_me: failed program was:" >&5 | |
7229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7230 | ||
7231 | ac_cv_member_struct_ifreq_ifr_netmask=no | |
7232 | fi | |
35996d22 | 7233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7234 | fi |
35996d22 | 7235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7236 | fi |
7237 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
7238 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 | |
7239 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
7240 | ||
7241 | cat >>confdefs.h <<_ACEOF | |
7242 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
7243 | _ACEOF | |
7244 | ||
7245 | ||
7246 | fi | |
7247 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
7248 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6 | |
7249 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
7250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7251 | else | |
7252 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7253 | /* confdefs.h. */ |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
7862d3a8 AS |
7258 | $ac_includes_default |
7259 | #if HAVE_SYS_SOCKET_H | |
7260 | #include <sys/socket.h> | |
7261 | #endif | |
7262 | #if HAVE_NET_IF_H | |
96f3a036 | 7263 | #include <net/if.h> |
7862d3a8 | 7264 | #endif |
96f3a036 DL |
7265 | |
7266 | int | |
7267 | main () | |
7268 | { | |
7269 | static struct ifreq ac_aggr; | |
7270 | if (ac_aggr.ifr_broadaddr) | |
7271 | return 0; | |
7272 | ; | |
7273 | return 0; | |
7274 | } | |
7275 | _ACEOF | |
7276 | rm -f conftest.$ac_objext | |
7277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7278 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7279 | ac_status=$? |
35996d22 AS |
7280 | grep -v '^ *+' conftest.er1 >conftest.err |
7281 | rm -f conftest.er1 | |
7282 | cat conftest.err >&5 | |
96f3a036 DL |
7283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7284 | (exit $ac_status); } && | |
35996d22 AS |
7285 | { ac_try='test -z "$ac_c_werror_flag" |
7286 | || test ! -s conftest.err' | |
7287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7288 | (eval $ac_try) 2>&5 | |
7289 | ac_status=$? | |
7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7291 | (exit $ac_status); }; } && | |
7292 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7294 | (eval $ac_try) 2>&5 | |
7295 | ac_status=$? | |
7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7297 | (exit $ac_status); }; }; then | |
7298 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7299 | else | |
7300 | echo "$as_me: failed program was:" >&5 | |
7301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7302 | ||
7303 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7304 | /* confdefs.h. */ |
7305 | _ACEOF | |
7306 | cat confdefs.h >>conftest.$ac_ext | |
7307 | cat >>conftest.$ac_ext <<_ACEOF | |
7308 | /* end confdefs.h. */ | |
7862d3a8 AS |
7309 | $ac_includes_default |
7310 | #if HAVE_SYS_SOCKET_H | |
7311 | #include <sys/socket.h> | |
7312 | #endif | |
7313 | #if HAVE_NET_IF_H | |
96f3a036 | 7314 | #include <net/if.h> |
7862d3a8 | 7315 | #endif |
96f3a036 DL |
7316 | |
7317 | int | |
7318 | main () | |
7319 | { | |
7320 | static struct ifreq ac_aggr; | |
7321 | if (sizeof ac_aggr.ifr_broadaddr) | |
7322 | return 0; | |
7323 | ; | |
7324 | return 0; | |
7325 | } | |
7326 | _ACEOF | |
7327 | rm -f conftest.$ac_objext | |
7328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7329 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7330 | ac_status=$? |
35996d22 AS |
7331 | grep -v '^ *+' conftest.er1 >conftest.err |
7332 | rm -f conftest.er1 | |
7333 | cat conftest.err >&5 | |
96f3a036 DL |
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7335 | (exit $ac_status); } && | |
35996d22 AS |
7336 | { ac_try='test -z "$ac_c_werror_flag" |
7337 | || test ! -s conftest.err' | |
7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7339 | (eval $ac_try) 2>&5 | |
7340 | ac_status=$? | |
7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7342 | (exit $ac_status); }; } && | |
7343 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7345 | (eval $ac_try) 2>&5 | |
7346 | ac_status=$? | |
7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7348 | (exit $ac_status); }; }; then | |
7349 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7350 | else | |
7351 | echo "$as_me: failed program was:" >&5 | |
7352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7353 | ||
7354 | ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
7355 | fi | |
35996d22 | 7356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7357 | fi |
35996d22 | 7358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7359 | fi |
7360 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
7361 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 | |
7362 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
7363 | ||
7364 | cat >>confdefs.h <<_ACEOF | |
7365 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
7366 | _ACEOF | |
7367 | ||
7368 | ||
7369 | fi | |
7370 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
7371 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6 | |
7372 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
7373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7374 | else | |
7375 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7376 | /* confdefs.h. */ |
7377 | _ACEOF | |
7378 | cat confdefs.h >>conftest.$ac_ext | |
7379 | cat >>conftest.$ac_ext <<_ACEOF | |
7380 | /* end confdefs.h. */ | |
7862d3a8 AS |
7381 | $ac_includes_default |
7382 | #if HAVE_SYS_SOCKET_H | |
7383 | #include <sys/socket.h> | |
7384 | #endif | |
7385 | #if HAVE_NET_IF_H | |
96f3a036 | 7386 | #include <net/if.h> |
7862d3a8 | 7387 | #endif |
96f3a036 DL |
7388 | |
7389 | int | |
7390 | main () | |
7391 | { | |
7392 | static struct ifreq ac_aggr; | |
7393 | if (ac_aggr.ifr_addr) | |
7394 | return 0; | |
7395 | ; | |
7396 | return 0; | |
7397 | } | |
7398 | _ACEOF | |
7399 | rm -f conftest.$ac_objext | |
7400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7401 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7402 | ac_status=$? |
35996d22 AS |
7403 | grep -v '^ *+' conftest.er1 >conftest.err |
7404 | rm -f conftest.er1 | |
7405 | cat conftest.err >&5 | |
96f3a036 DL |
7406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7407 | (exit $ac_status); } && | |
35996d22 AS |
7408 | { ac_try='test -z "$ac_c_werror_flag" |
7409 | || test ! -s conftest.err' | |
7410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7411 | (eval $ac_try) 2>&5 | |
7412 | ac_status=$? | |
7413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7414 | (exit $ac_status); }; } && | |
7415 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7417 | (eval $ac_try) 2>&5 | |
7418 | ac_status=$? | |
7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7420 | (exit $ac_status); }; }; then | |
7421 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7422 | else | |
7423 | echo "$as_me: failed program was:" >&5 | |
7424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7425 | ||
7426 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7427 | /* confdefs.h. */ |
7428 | _ACEOF | |
7429 | cat confdefs.h >>conftest.$ac_ext | |
7430 | cat >>conftest.$ac_ext <<_ACEOF | |
7431 | /* end confdefs.h. */ | |
7862d3a8 AS |
7432 | $ac_includes_default |
7433 | #if HAVE_SYS_SOCKET_H | |
7434 | #include <sys/socket.h> | |
7435 | #endif | |
7436 | #if HAVE_NET_IF_H | |
96f3a036 | 7437 | #include <net/if.h> |
7862d3a8 | 7438 | #endif |
96f3a036 DL |
7439 | |
7440 | int | |
7441 | main () | |
7442 | { | |
7443 | static struct ifreq ac_aggr; | |
7444 | if (sizeof ac_aggr.ifr_addr) | |
7445 | return 0; | |
7446 | ; | |
7447 | return 0; | |
7448 | } | |
7449 | _ACEOF | |
7450 | rm -f conftest.$ac_objext | |
7451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7452 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7453 | ac_status=$? |
35996d22 AS |
7454 | grep -v '^ *+' conftest.er1 >conftest.err |
7455 | rm -f conftest.er1 | |
7456 | cat conftest.err >&5 | |
96f3a036 DL |
7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7458 | (exit $ac_status); } && | |
35996d22 AS |
7459 | { ac_try='test -z "$ac_c_werror_flag" |
7460 | || test ! -s conftest.err' | |
7461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7462 | (eval $ac_try) 2>&5 | |
7463 | ac_status=$? | |
7464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7465 | (exit $ac_status); }; } && | |
7466 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7468 | (eval $ac_try) 2>&5 | |
7469 | ac_status=$? | |
7470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7471 | (exit $ac_status); }; }; then | |
7472 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7473 | else | |
7474 | echo "$as_me: failed program was:" >&5 | |
7475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7476 | ||
7477 | ac_cv_member_struct_ifreq_ifr_addr=no | |
7478 | fi | |
35996d22 | 7479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7480 | fi |
35996d22 | 7481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7482 | fi |
7483 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
7484 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 | |
7485 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
7486 | ||
7487 | cat >>confdefs.h <<_ACEOF | |
7488 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
7489 | _ACEOF | |
7490 | ||
7491 | ||
7492 | fi | |
7493 | ||
8799b3e4 | 7494 | |
8799b3e4 | 7495 | |
c0d27fcc | 7496 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
7497 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
7498 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 7499 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7500 | echo "${ECHO_T}yes" >&6 |
7501 | ||
c0d27fcc | 7502 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7503 | #define PROTOTYPES 1 |
c0d27fcc MR |
7504 | _ACEOF |
7505 | ||
7506 | ||
7507 | cat >>confdefs.h <<\_ACEOF | |
7508 | #define __PROTOTYPES 1 | |
7509 | _ACEOF | |
98418dba CW |
7510 | |
7511 | else | |
c0d27fcc | 7512 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7513 | echo "${ECHO_T}no" >&6 |
7514 | fi | |
7515 | ||
c0d27fcc | 7516 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
7517 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
7518 | if test "${ac_cv_c_volatile+set}" = set; then | |
7519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7520 | else | |
7521 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7522 | /* confdefs.h. */ |
7523 | _ACEOF | |
7524 | cat confdefs.h >>conftest.$ac_ext | |
7525 | cat >>conftest.$ac_ext <<_ACEOF | |
7526 | /* end confdefs.h. */ | |
98418dba | 7527 | |
98418dba CW |
7528 | int |
7529 | main () | |
7530 | { | |
7531 | ||
7532 | volatile int x; | |
7533 | int * volatile y; | |
7534 | ; | |
7535 | return 0; | |
7536 | } | |
7537 | _ACEOF | |
7538 | rm -f conftest.$ac_objext | |
c0d27fcc | 7539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7540 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7541 | ac_status=$? |
35996d22 AS |
7542 | grep -v '^ *+' conftest.er1 >conftest.err |
7543 | rm -f conftest.er1 | |
7544 | cat conftest.err >&5 | |
c0d27fcc | 7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7546 | (exit $ac_status); } && |
35996d22 AS |
7547 | { ac_try='test -z "$ac_c_werror_flag" |
7548 | || test ! -s conftest.err' | |
7549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7550 | (eval $ac_try) 2>&5 | |
7551 | ac_status=$? | |
7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7553 | (exit $ac_status); }; } && | |
7554 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7556 | (eval $ac_try) 2>&5 |
7557 | ac_status=$? | |
c0d27fcc | 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7559 | (exit $ac_status); }; }; then |
7560 | ac_cv_c_volatile=yes | |
7561 | else | |
7562 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7563 | sed 's/^/| /' conftest.$ac_ext >&5 |
7564 | ||
98418dba CW |
7565 | ac_cv_c_volatile=no |
7566 | fi | |
35996d22 | 7567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7568 | fi |
c0d27fcc | 7569 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
7570 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
7571 | if test $ac_cv_c_volatile = no; then | |
7572 | ||
c0d27fcc | 7573 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7574 | #define volatile |
c0d27fcc | 7575 | _ACEOF |
98418dba CW |
7576 | |
7577 | fi | |
7578 | ||
c0d27fcc | 7579 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
7580 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7581 | if test "${ac_cv_c_const+set}" = set; then | |
7582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7583 | else | |
7584 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7585 | /* confdefs.h. */ |
7586 | _ACEOF | |
7587 | cat confdefs.h >>conftest.$ac_ext | |
7588 | cat >>conftest.$ac_ext <<_ACEOF | |
7589 | /* end confdefs.h. */ | |
98418dba | 7590 | |
98418dba CW |
7591 | int |
7592 | main () | |
7593 | { | |
7594 | /* FIXME: Include the comments suggested by Paul. */ | |
7595 | #ifndef __cplusplus | |
7596 | /* Ultrix mips cc rejects this. */ | |
7597 | typedef int charset[2]; | |
7598 | const charset x; | |
7599 | /* SunOS 4.1.1 cc rejects this. */ | |
7600 | char const *const *ccp; | |
7601 | char **p; | |
7602 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7603 | struct point {int x, y;}; | |
7604 | static struct point const zero = {0,0}; | |
7605 | /* AIX XL C 1.02.0.0 rejects this. | |
7606 | It does not let you subtract one const X* pointer from another in | |
7607 | an arm of an if-expression whose if-part is not a constant | |
7608 | expression */ | |
7609 | const char *g = "string"; | |
7610 | ccp = &g + (g ? g-g : 0); | |
7611 | /* HPUX 7.0 cc rejects these. */ | |
7612 | ++ccp; | |
7613 | p = (char**) ccp; | |
7614 | ccp = (char const *const *) p; | |
7615 | { /* SCO 3.2v4 cc rejects this. */ | |
7616 | char *t; | |
7617 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7618 | ||
7619 | *t++ = 0; | |
7620 | } | |
7621 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7622 | int x[] = {25, 17}; | |
7623 | const int *foo = &x[0]; | |
7624 | ++foo; | |
7625 | } | |
7626 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7627 | typedef const int *iptr; | |
7628 | iptr p = 0; | |
7629 | ++p; | |
7630 | } | |
7631 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7632 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7633 | struct s { int j; const int *ap[3]; }; | |
7634 | struct s *b; b->j = 5; | |
7635 | } | |
7636 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7637 | const int foo = 10; | |
7638 | } | |
7639 | #endif | |
7640 | ||
7641 | ; | |
7642 | return 0; | |
7643 | } | |
7644 | _ACEOF | |
7645 | rm -f conftest.$ac_objext | |
c0d27fcc | 7646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7647 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7648 | ac_status=$? |
35996d22 AS |
7649 | grep -v '^ *+' conftest.er1 >conftest.err |
7650 | rm -f conftest.er1 | |
7651 | cat conftest.err >&5 | |
c0d27fcc | 7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7653 | (exit $ac_status); } && |
35996d22 AS |
7654 | { ac_try='test -z "$ac_c_werror_flag" |
7655 | || test ! -s conftest.err' | |
7656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7657 | (eval $ac_try) 2>&5 | |
7658 | ac_status=$? | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7660 | (exit $ac_status); }; } && | |
7661 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7663 | (eval $ac_try) 2>&5 |
7664 | ac_status=$? | |
c0d27fcc | 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7666 | (exit $ac_status); }; }; then |
7667 | ac_cv_c_const=yes | |
7668 | else | |
7669 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7670 | sed 's/^/| /' conftest.$ac_ext >&5 |
7671 | ||
98418dba CW |
7672 | ac_cv_c_const=no |
7673 | fi | |
35996d22 | 7674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7675 | fi |
c0d27fcc | 7676 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
7677 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
7678 | if test $ac_cv_c_const = no; then | |
7679 | ||
c0d27fcc | 7680 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7681 | #define const |
c0d27fcc | 7682 | _ACEOF |
98418dba CW |
7683 | |
7684 | fi | |
7685 | ||
c0d27fcc | 7686 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
7687 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
7688 | if test "${emacs_cv_void_star+set}" = set; then | |
7689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7690 | else | |
7691 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7692 | /* confdefs.h. */ |
7693 | _ACEOF | |
7694 | cat confdefs.h >>conftest.$ac_ext | |
7695 | cat >>conftest.$ac_ext <<_ACEOF | |
7696 | /* end confdefs.h. */ | |
98418dba | 7697 | |
98418dba CW |
7698 | int |
7699 | main () | |
7700 | { | |
7701 | void * foo; | |
7702 | ; | |
7703 | return 0; | |
7704 | } | |
7705 | _ACEOF | |
7706 | rm -f conftest.$ac_objext | |
c0d27fcc | 7707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7708 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7709 | ac_status=$? |
35996d22 AS |
7710 | grep -v '^ *+' conftest.er1 >conftest.err |
7711 | rm -f conftest.er1 | |
7712 | cat conftest.err >&5 | |
c0d27fcc | 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7714 | (exit $ac_status); } && |
35996d22 AS |
7715 | { ac_try='test -z "$ac_c_werror_flag" |
7716 | || test ! -s conftest.err' | |
7717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7718 | (eval $ac_try) 2>&5 | |
7719 | ac_status=$? | |
7720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7721 | (exit $ac_status); }; } && | |
7722 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7724 | (eval $ac_try) 2>&5 |
7725 | ac_status=$? | |
c0d27fcc | 7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7727 | (exit $ac_status); }; }; then |
7728 | emacs_cv_void_star=yes | |
7729 | else | |
7730 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7731 | sed 's/^/| /' conftest.$ac_ext >&5 |
7732 | ||
98418dba CW |
7733 | emacs_cv_void_star=no |
7734 | fi | |
35996d22 | 7735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7736 | fi |
c0d27fcc | 7737 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
7738 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
7739 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 7740 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7741 | #define POINTER_TYPE void |
c0d27fcc | 7742 | _ACEOF |
98418dba CW |
7743 | |
7744 | else | |
c0d27fcc | 7745 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7746 | #define POINTER_TYPE char |
c0d27fcc | 7747 | _ACEOF |
98418dba CW |
7748 | |
7749 | fi | |
7750 | ||
c0d27fcc | 7751 | |
cd958eb3 | 7752 | |
19650fd6 AS |
7753 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7754 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35996d22 | 7755 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
98418dba CW |
7756 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7758 | else | |
c0d27fcc | 7759 | cat >conftest.make <<\_ACEOF |
98418dba | 7760 | all: |
19650fd6 | 7761 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 7762 | _ACEOF |
98418dba CW |
7763 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7764 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
7765 | if test -n "$ac_maketemp"; then | |
7766 | eval ac_cv_prog_make_${ac_make}_set=yes | |
7767 | else | |
7768 | eval ac_cv_prog_make_${ac_make}_set=no | |
7769 | fi | |
7770 | rm -f conftest.make | |
7771 | fi | |
7772 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 7773 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7774 | echo "${ECHO_T}yes" >&6 |
7775 | SET_MAKE= | |
7776 | else | |
c0d27fcc | 7777 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7778 | echo "${ECHO_T}no" >&6 |
7779 | SET_MAKE="MAKE=${MAKE-make}" | |
7780 | fi | |
7781 | ||
c0d27fcc MR |
7782 | |
7783 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
7784 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
7785 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7787 | else | |
7788 | ac_cv_sys_long_file_names=yes | |
7789 | # Test for long file names in all the places we know might matter: | |
7790 | # . the current directory, where building will happen | |
7791 | # $prefix/lib where we will be installing things | |
7792 | # $exec_prefix/lib likewise | |
7793 | # eval it to expand exec_prefix. | |
7794 | # $TMPDIR if set, where it might want to write temporary files | |
7795 | # if $TMPDIR is not set: | |
7796 | # /tmp where it might want to write temporary files | |
7797 | # /var/tmp likewise | |
7798 | # /usr/tmp likewise | |
7799 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
7800 | ac_tmpdirs=$TMPDIR | |
7801 | else | |
7802 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
7803 | fi | |
7804 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
7805 | test -d $ac_dir || continue | |
7806 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
7807 | ac_xdir=$ac_dir/cf$$ | |
7808 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
7809 | ac_tf1=$ac_xdir/conftest9012345 | |
7810 | ac_tf2=$ac_xdir/conftest9012346 | |
7811 | (echo 1 >$ac_tf1) 2>/dev/null | |
7812 | (echo 2 >$ac_tf2) 2>/dev/null | |
7813 | ac_val=`cat $ac_tf1 2>/dev/null` | |
7814 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
7815 | ac_cv_sys_long_file_names=no | |
7816 | rm -rf $ac_xdir 2>/dev/null | |
7817 | break | |
7818 | fi | |
7819 | rm -rf $ac_xdir 2>/dev/null | |
7820 | done | |
7821 | fi | |
c0d27fcc | 7822 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
7823 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
7824 | if test $ac_cv_sys_long_file_names = yes; then | |
7825 | ||
c0d27fcc | 7826 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7827 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 7828 | _ACEOF |
98418dba CW |
7829 | |
7830 | fi | |
7831 | ||
c0d27fcc | 7832 | |
98418dba CW |
7833 | #### Choose a window system. |
7834 | ||
c0d27fcc | 7835 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
7836 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
7837 | ||
c0d27fcc | 7838 | |
98418dba CW |
7839 | # Check whether --with-x or --without-x was given. |
7840 | if test "${with_x+set}" = set; then | |
7841 | withval="$with_x" | |
7842 | ||
7843 | fi; | |
7844 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7845 | if test "x$with_x" = xno; then | |
7846 | # The user explicitly disabled X. | |
7847 | have_x=disabled | |
7848 | else | |
7849 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7850 | # Both variables are already set. | |
7851 | have_x=yes | |
7852 | else | |
7853 | if test "${ac_cv_have_x+set}" = set; then | |
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7855 | else | |
7856 | # One or both of the vars are not set, and there is no cached value. | |
7857 | ac_x_includes=no ac_x_libraries=no | |
7858 | rm -fr conftest.dir | |
7859 | if mkdir conftest.dir; then | |
7860 | cd conftest.dir | |
7861 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 7862 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
7863 | acfindx: |
7864 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 7865 | _ACEOF |
98418dba CW |
7866 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
7867 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7868 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7869 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7870 | for ac_extension in a so sl; do | |
7871 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
35996d22 AS |
7872 | test -f $ac_im_libdir/libX11.$ac_extension; then |
7873 | ac_im_usrlibdir=$ac_im_libdir; break | |
98418dba CW |
7874 | fi |
7875 | done | |
7876 | # Screen out bogus values from the imake configuration. They are | |
7877 | # bogus both because they are the default anyway, and because | |
7878 | # using them would break gcc on systems where it needs fixed includes. | |
7879 | case $ac_im_incroot in | |
7880 | /usr/include) ;; | |
7881 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
7882 | esac | |
7883 | case $ac_im_usrlibdir in | |
7884 | /usr/lib | /lib) ;; | |
7885 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
7886 | esac | |
7887 | fi | |
7888 | cd .. | |
7889 | rm -fr conftest.dir | |
7890 | fi | |
7891 | ||
7892 | # Standard set of common directories for X headers. | |
7893 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7894 | ac_x_header_dirs=' | |
7895 | /usr/X11/include | |
7896 | /usr/X11R6/include | |
7897 | /usr/X11R5/include | |
7898 | /usr/X11R4/include | |
7899 | ||
7900 | /usr/include/X11 | |
7901 | /usr/include/X11R6 | |
7902 | /usr/include/X11R5 | |
7903 | /usr/include/X11R4 | |
7904 | ||
7905 | /usr/local/X11/include | |
7906 | /usr/local/X11R6/include | |
7907 | /usr/local/X11R5/include | |
7908 | /usr/local/X11R4/include | |
7909 | ||
7910 | /usr/local/include/X11 | |
7911 | /usr/local/include/X11R6 | |
7912 | /usr/local/include/X11R5 | |
7913 | /usr/local/include/X11R4 | |
7914 | ||
7915 | /usr/X386/include | |
7916 | /usr/x386/include | |
7917 | /usr/XFree86/include/X11 | |
7918 | ||
7919 | /usr/include | |
7920 | /usr/local/include | |
7921 | /usr/unsupported/include | |
7922 | /usr/athena/include | |
7923 | /usr/local/x11r5/include | |
7924 | /usr/lpp/Xamples/include | |
7925 | ||
7926 | /usr/openwin/include | |
7927 | /usr/openwin/share/include' | |
7928 | ||
7929 | if test "$ac_x_includes" = no; then | |
7930 | # Guess where to find include files, by looking for Intrinsic.h. | |
7931 | # First, try using that file with no special directory specified. | |
7932 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7933 | /* confdefs.h. */ |
7934 | _ACEOF | |
7935 | cat confdefs.h >>conftest.$ac_ext | |
7936 | cat >>conftest.$ac_ext <<_ACEOF | |
7937 | /* end confdefs.h. */ | |
98418dba CW |
7938 | #include <X11/Intrinsic.h> |
7939 | _ACEOF | |
c0d27fcc | 7940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7942 | ac_status=$? | |
6bae0ccf | 7943 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7944 | rm -f conftest.er1 |
7945 | cat conftest.err >&5 | |
c0d27fcc | 7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7947 | (exit $ac_status); } >/dev/null; then |
7948 | if test -s conftest.err; then | |
7949 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 7950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
7951 | else |
7952 | ac_cpp_err= | |
7953 | fi | |
7954 | else | |
7955 | ac_cpp_err=yes | |
7956 | fi | |
7957 | if test -z "$ac_cpp_err"; then | |
7958 | # We can compile using X headers with no special include directory. | |
7959 | ac_x_includes= | |
7960 | else | |
7961 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7962 | sed 's/^/| /' conftest.$ac_ext >&5 |
7963 | ||
98418dba CW |
7964 | for ac_dir in $ac_x_header_dirs; do |
7965 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
7966 | ac_x_includes=$ac_dir | |
7967 | break | |
7968 | fi | |
7969 | done | |
7970 | fi | |
7971 | rm -f conftest.err conftest.$ac_ext | |
7972 | fi # $ac_x_includes = no | |
7973 | ||
7974 | if test "$ac_x_libraries" = no; then | |
7975 | # Check for the libraries. | |
7976 | # See if we find them without any special options. | |
7977 | # Don't add to $LIBS permanently. | |
7978 | ac_save_LIBS=$LIBS | |
7979 | LIBS="-lXt $LIBS" | |
7980 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7981 | /* confdefs.h. */ |
7982 | _ACEOF | |
7983 | cat confdefs.h >>conftest.$ac_ext | |
7984 | cat >>conftest.$ac_ext <<_ACEOF | |
7985 | /* end confdefs.h. */ | |
98418dba | 7986 | #include <X11/Intrinsic.h> |
98418dba CW |
7987 | int |
7988 | main () | |
7989 | { | |
7990 | XtMalloc (0) | |
7991 | ; | |
7992 | return 0; | |
7993 | } | |
7994 | _ACEOF | |
7995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 7997 | (eval $ac_link) 2>conftest.er1 |
98418dba | 7998 | ac_status=$? |
35996d22 AS |
7999 | grep -v '^ *+' conftest.er1 >conftest.err |
8000 | rm -f conftest.er1 | |
8001 | cat conftest.err >&5 | |
c0d27fcc | 8002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8003 | (exit $ac_status); } && |
35996d22 AS |
8004 | { ac_try='test -z "$ac_c_werror_flag" |
8005 | || test ! -s conftest.err' | |
8006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8007 | (eval $ac_try) 2>&5 | |
8008 | ac_status=$? | |
8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8010 | (exit $ac_status); }; } && | |
8011 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8013 | (eval $ac_try) 2>&5 |
8014 | ac_status=$? | |
c0d27fcc | 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8016 | (exit $ac_status); }; }; then |
8017 | LIBS=$ac_save_LIBS | |
8018 | # We can link X programs with no special library path. | |
8019 | ac_x_libraries= | |
8020 | else | |
8021 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8022 | sed 's/^/| /' conftest.$ac_ext >&5 |
8023 | ||
98418dba CW |
8024 | LIBS=$ac_save_LIBS |
8025 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
8026 | do | |
8027 | # Don't even attempt the hair of trying to link an X program! | |
8028 | for ac_extension in a so sl; do | |
8029 | if test -r $ac_dir/libXt.$ac_extension; then | |
8030 | ac_x_libraries=$ac_dir | |
8031 | break 2 | |
8032 | fi | |
8033 | done | |
8034 | done | |
8035 | fi | |
35996d22 AS |
8036 | rm -f conftest.err conftest.$ac_objext \ |
8037 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8038 | fi # $ac_x_libraries = no |
8039 | ||
8040 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
8041 | # Didn't find X anywhere. Cache the known absence of X. | |
8042 | ac_cv_have_x="have_x=no" | |
8043 | else | |
8044 | # Record where we found X for the cache. | |
8045 | ac_cv_have_x="have_x=yes \ | |
35996d22 | 8046 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
98418dba CW |
8047 | fi |
8048 | fi | |
8049 | ||
8050 | fi | |
8051 | eval "$ac_cv_have_x" | |
8052 | fi # $with_x != no | |
8053 | ||
8054 | if test "$have_x" != yes; then | |
c0d27fcc | 8055 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
8056 | echo "${ECHO_T}$have_x" >&6 |
8057 | no_x=yes | |
8058 | else | |
8059 | # If each of the values was on the command line, it overrides each guess. | |
8060 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8061 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8062 | # Update the cache value to reflect the command line values. | |
8063 | ac_cv_have_x="have_x=yes \ | |
8064 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c0d27fcc | 8065 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
8066 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
8067 | fi | |
8068 | ||
8069 | if test "$no_x" = yes; then | |
8070 | window_system=none | |
8071 | else | |
8072 | window_system=x11 | |
8073 | fi | |
8074 | ||
8075 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
8076 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
8077 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
8078 | x_default_search_path="" | |
8079 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
8080 | x_search_path="\ | |
8081 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
8082 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
8083 | ${x_library}/X11/%T/%N%C%S:\ | |
8084 | ${x_library}/X11/%L/%T/%N%S:\ | |
8085 | ${x_library}/X11/%l/%T/%N%S:\ | |
8086 | ${x_library}/X11/%T/%N%S" | |
8087 | if test x"${x_default_search_path}" = x; then | |
8088 | x_default_search_path=${x_search_path} | |
8089 | else | |
8090 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
8091 | fi | |
8092 | done | |
8093 | fi | |
8094 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
8095 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
8096 | fi | |
8097 | ||
8098 | if test x"${x_includes}" = x; then | |
8099 | bitmapdir=/usr/include/X11/bitmaps | |
8100 | else | |
8101 | # accumulate include directories that have X11 bitmap subdirectories | |
8102 | bmd_acc="dummyval" | |
8103 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
8104 | if test -d "${bmd}/X11/bitmaps"; then | |
8105 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
8106 | fi | |
8107 | if test -d "${bmd}/bitmaps"; then | |
8108 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
8109 | fi | |
8110 | done | |
8111 | if test ${bmd_acc} != "dummyval"; then | |
8112 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
8113 | fi | |
8114 | fi | |
8115 | ||
8116 | case "${window_system}" in | |
8117 | x11 ) | |
8118 | HAVE_X_WINDOWS=yes | |
8119 | HAVE_X11=yes | |
8120 | case "${with_x_toolkit}" in | |
8121 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
8122 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
8123 | gtk ) with_gtk=yes |
8124 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
8125 | no ) USE_X_TOOLKIT=none ;; |
8126 | * ) USE_X_TOOLKIT=maybe ;; | |
8127 | esac | |
8128 | ;; | |
8129 | none ) | |
8130 | HAVE_X_WINDOWS=no | |
8131 | HAVE_X11=no | |
8132 | USE_X_TOOLKIT=none | |
8133 | ;; | |
8134 | esac | |
8135 | ||
8136 | ### If we're using X11, we should use the X menu package. | |
8137 | HAVE_MENUS=no | |
8138 | case ${HAVE_X11} in | |
8139 | yes ) HAVE_MENUS=yes ;; | |
8140 | esac | |
8141 | ||
8142 | if test "${opsys}" = "hpux9"; then | |
8143 | case "${x_libraries}" in | |
8144 | *X11R4* ) | |
8145 | opsysfile="s/hpux9-x11r4.h" | |
8146 | ;; | |
8147 | esac | |
8148 | fi | |
8149 | ||
8150 | if test "${opsys}" = "hpux9shr"; then | |
8151 | case "${x_libraries}" in | |
8152 | *X11R4* ) | |
8153 | opsysfile="s/hpux9shxr4.h" | |
8154 | ;; | |
8155 | esac | |
8156 | fi | |
8157 | ||
8158 | ### Compute the unexec source name from the object name. | |
8159 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
8160 | ||
8161 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
8162 | # Assume not, until told otherwise. | |
8163 | GNU_MALLOC=yes | |
8164 | doug_lea_malloc=yes | |
c0d27fcc | 8165 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
8166 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
8167 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8169 | else | |
8170 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8171 | /* confdefs.h. */ |
8172 | _ACEOF | |
8173 | cat confdefs.h >>conftest.$ac_ext | |
8174 | cat >>conftest.$ac_ext <<_ACEOF | |
8175 | /* end confdefs.h. */ | |
35996d22 AS |
8176 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
8177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8178 | #define malloc_get_state innocuous_malloc_get_state | |
8179 | ||
98418dba | 8180 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8181 | which can conflict with char malloc_get_state (); below. |
8182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8183 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8184 | |
19650fd6 AS |
8185 | #ifdef __STDC__ |
8186 | # include <limits.h> | |
8187 | #else | |
8188 | # include <assert.h> | |
8189 | #endif | |
35996d22 AS |
8190 | |
8191 | #undef malloc_get_state | |
8192 | ||
98418dba CW |
8193 | /* Override any gcc2 internal prototype to avoid an error. */ |
8194 | #ifdef __cplusplus | |
8195 | extern "C" | |
19650fd6 | 8196 | { |
98418dba CW |
8197 | #endif |
8198 | /* We use char because int might match the return type of a gcc2 | |
8199 | builtin and then its argument prototype would still apply. */ | |
8200 | char malloc_get_state (); | |
98418dba CW |
8201 | /* The GNU C library defines this for functions which it implements |
8202 | to always fail with ENOSYS. Some functions are actually named | |
8203 | something starting with __ and the normal name is an alias. */ | |
8204 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
8205 | choke me | |
8206 | #else | |
19650fd6 AS |
8207 | char (*f) () = malloc_get_state; |
8208 | #endif | |
8209 | #ifdef __cplusplus | |
8210 | } | |
98418dba CW |
8211 | #endif |
8212 | ||
19650fd6 AS |
8213 | int |
8214 | main () | |
8215 | { | |
8216 | return f != malloc_get_state; | |
98418dba CW |
8217 | ; |
8218 | return 0; | |
8219 | } | |
8220 | _ACEOF | |
8221 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8223 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8224 | ac_status=$? |
35996d22 AS |
8225 | grep -v '^ *+' conftest.er1 >conftest.err |
8226 | rm -f conftest.er1 | |
8227 | cat conftest.err >&5 | |
c0d27fcc | 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8229 | (exit $ac_status); } && |
35996d22 AS |
8230 | { ac_try='test -z "$ac_c_werror_flag" |
8231 | || test ! -s conftest.err' | |
8232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8233 | (eval $ac_try) 2>&5 | |
8234 | ac_status=$? | |
8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8236 | (exit $ac_status); }; } && | |
8237 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8239 | (eval $ac_try) 2>&5 |
8240 | ac_status=$? | |
c0d27fcc | 8241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8242 | (exit $ac_status); }; }; then |
8243 | ac_cv_func_malloc_get_state=yes | |
8244 | else | |
8245 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8246 | sed 's/^/| /' conftest.$ac_ext >&5 |
8247 | ||
98418dba CW |
8248 | ac_cv_func_malloc_get_state=no |
8249 | fi | |
35996d22 AS |
8250 | rm -f conftest.err conftest.$ac_objext \ |
8251 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8252 | fi |
c0d27fcc | 8253 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
8254 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
8255 | if test $ac_cv_func_malloc_get_state = yes; then | |
8256 | : | |
8257 | else | |
8258 | doug_lea_malloc=no | |
8259 | fi | |
8260 | ||
c0d27fcc | 8261 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
8262 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
8263 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
8264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8265 | else | |
8266 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8267 | /* confdefs.h. */ |
8268 | _ACEOF | |
8269 | cat confdefs.h >>conftest.$ac_ext | |
8270 | cat >>conftest.$ac_ext <<_ACEOF | |
8271 | /* end confdefs.h. */ | |
35996d22 AS |
8272 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
8273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8274 | #define malloc_set_state innocuous_malloc_set_state | |
8275 | ||
98418dba | 8276 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8277 | which can conflict with char malloc_set_state (); below. |
8278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8279 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8280 | |
19650fd6 AS |
8281 | #ifdef __STDC__ |
8282 | # include <limits.h> | |
8283 | #else | |
8284 | # include <assert.h> | |
8285 | #endif | |
35996d22 AS |
8286 | |
8287 | #undef malloc_set_state | |
8288 | ||
98418dba CW |
8289 | /* Override any gcc2 internal prototype to avoid an error. */ |
8290 | #ifdef __cplusplus | |
8291 | extern "C" | |
19650fd6 | 8292 | { |
98418dba CW |
8293 | #endif |
8294 | /* We use char because int might match the return type of a gcc2 | |
8295 | builtin and then its argument prototype would still apply. */ | |
8296 | char malloc_set_state (); | |
98418dba CW |
8297 | /* The GNU C library defines this for functions which it implements |
8298 | to always fail with ENOSYS. Some functions are actually named | |
8299 | something starting with __ and the normal name is an alias. */ | |
8300 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
8301 | choke me | |
8302 | #else | |
19650fd6 AS |
8303 | char (*f) () = malloc_set_state; |
8304 | #endif | |
8305 | #ifdef __cplusplus | |
8306 | } | |
98418dba CW |
8307 | #endif |
8308 | ||
19650fd6 AS |
8309 | int |
8310 | main () | |
8311 | { | |
8312 | return f != malloc_set_state; | |
98418dba CW |
8313 | ; |
8314 | return 0; | |
8315 | } | |
8316 | _ACEOF | |
8317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8319 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8320 | ac_status=$? |
35996d22 AS |
8321 | grep -v '^ *+' conftest.er1 >conftest.err |
8322 | rm -f conftest.er1 | |
8323 | cat conftest.err >&5 | |
c0d27fcc | 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8325 | (exit $ac_status); } && |
35996d22 AS |
8326 | { ac_try='test -z "$ac_c_werror_flag" |
8327 | || test ! -s conftest.err' | |
8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8329 | (eval $ac_try) 2>&5 | |
8330 | ac_status=$? | |
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8332 | (exit $ac_status); }; } && | |
8333 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8335 | (eval $ac_try) 2>&5 |
8336 | ac_status=$? | |
c0d27fcc | 8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8338 | (exit $ac_status); }; }; then |
8339 | ac_cv_func_malloc_set_state=yes | |
8340 | else | |
8341 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8342 | sed 's/^/| /' conftest.$ac_ext >&5 |
8343 | ||
98418dba CW |
8344 | ac_cv_func_malloc_set_state=no |
8345 | fi | |
35996d22 AS |
8346 | rm -f conftest.err conftest.$ac_objext \ |
8347 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8348 | fi |
c0d27fcc | 8349 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
8350 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
8351 | if test $ac_cv_func_malloc_set_state = yes; then | |
8352 | : | |
8353 | else | |
8354 | doug_lea_malloc=no | |
8355 | fi | |
8356 | ||
c0d27fcc | 8357 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
8358 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
8359 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
8360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8361 | else | |
8362 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8363 | /* confdefs.h. */ |
8364 | _ACEOF | |
8365 | cat confdefs.h >>conftest.$ac_ext | |
8366 | cat >>conftest.$ac_ext <<_ACEOF | |
8367 | /* end confdefs.h. */ | |
98418dba | 8368 | extern void (* __after_morecore_hook)(); |
98418dba CW |
8369 | int |
8370 | main () | |
8371 | { | |
8372 | __after_morecore_hook = 0 | |
8373 | ; | |
8374 | return 0; | |
8375 | } | |
8376 | _ACEOF | |
8377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8379 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8380 | ac_status=$? |
35996d22 AS |
8381 | grep -v '^ *+' conftest.er1 >conftest.err |
8382 | rm -f conftest.er1 | |
8383 | cat conftest.err >&5 | |
c0d27fcc | 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8385 | (exit $ac_status); } && |
35996d22 AS |
8386 | { ac_try='test -z "$ac_c_werror_flag" |
8387 | || test ! -s conftest.err' | |
8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8389 | (eval $ac_try) 2>&5 | |
8390 | ac_status=$? | |
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8392 | (exit $ac_status); }; } && | |
8393 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8395 | (eval $ac_try) 2>&5 |
8396 | ac_status=$? | |
c0d27fcc | 8397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8398 | (exit $ac_status); }; }; then |
8399 | emacs_cv_var___after_morecore_hook=yes | |
8400 | else | |
8401 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8402 | sed 's/^/| /' conftest.$ac_ext >&5 |
8403 | ||
98418dba CW |
8404 | emacs_cv_var___after_morecore_hook=no |
8405 | fi | |
35996d22 AS |
8406 | rm -f conftest.err conftest.$ac_objext \ |
8407 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8408 | fi |
c0d27fcc | 8409 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
8410 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
8411 | if test $emacs_cv_var___after_morecore_hook = no; then | |
8412 | doug_lea_malloc=no | |
8413 | fi | |
8414 | if test "${system_malloc}" = "yes"; then | |
8415 | GNU_MALLOC=no | |
8416 | GNU_MALLOC_reason=" | |
8417 | (The GNU allocators don't work with this system configuration.)" | |
8418 | fi | |
8419 | if test "$doug_lea_malloc" = "yes" ; then | |
8420 | if test "$GNU_MALLOC" = yes ; then | |
8421 | GNU_MALLOC_reason=" | |
8422 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
8423 | fi | |
b936fae4 | 8424 | |
c0d27fcc | 8425 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8426 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 8427 | _ACEOF |
98418dba CW |
8428 | |
8429 | fi | |
8430 | ||
8431 | if test x"${REL_ALLOC}" = x; then | |
8432 | REL_ALLOC=${GNU_MALLOC} | |
8433 | fi | |
8434 | ||
8435 | ||
c0d27fcc MR |
8436 | |
8437 | ||
8438 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
8439 | do |
8440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
8441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8442 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
8443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
8446 | fi |
8447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 8449 | else |
c0d27fcc MR |
8450 | # Is the header compilable? |
8451 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8452 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8453 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8454 | /* confdefs.h. */ |
8455 | _ACEOF | |
8456 | cat confdefs.h >>conftest.$ac_ext | |
8457 | cat >>conftest.$ac_ext <<_ACEOF | |
8458 | /* end confdefs.h. */ | |
98418dba CW |
8459 | $ac_includes_default |
8460 | #include <$ac_header> | |
8461 | _ACEOF | |
8462 | rm -f conftest.$ac_objext | |
c0d27fcc | 8463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 8464 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 8465 | ac_status=$? |
35996d22 AS |
8466 | grep -v '^ *+' conftest.er1 >conftest.err |
8467 | rm -f conftest.er1 | |
8468 | cat conftest.err >&5 | |
c0d27fcc | 8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8470 | (exit $ac_status); } && |
35996d22 AS |
8471 | { ac_try='test -z "$ac_c_werror_flag" |
8472 | || test ! -s conftest.err' | |
8473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8474 | (eval $ac_try) 2>&5 | |
8475 | ac_status=$? | |
8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8477 | (exit $ac_status); }; } && | |
8478 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8480 | (eval $ac_try) 2>&5 |
8481 | ac_status=$? | |
c0d27fcc | 8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8483 | (exit $ac_status); }; }; then |
c0d27fcc | 8484 | ac_header_compiler=yes |
98418dba CW |
8485 | else |
8486 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
8488 | ||
c0d27fcc | 8489 | ac_header_compiler=no |
98418dba | 8490 | fi |
35996d22 | 8491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
8492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8493 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 8494 | |
c0d27fcc MR |
8495 | # Is the header present? |
8496 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8497 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8498 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8499 | /* confdefs.h. */ |
8500 | _ACEOF | |
8501 | cat confdefs.h >>conftest.$ac_ext | |
8502 | cat >>conftest.$ac_ext <<_ACEOF | |
8503 | /* end confdefs.h. */ | |
98418dba CW |
8504 | #include <$ac_header> |
8505 | _ACEOF | |
c0d27fcc | 8506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
8507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8508 | ac_status=$? | |
6bae0ccf | 8509 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
8510 | rm -f conftest.er1 |
8511 | cat conftest.err >&5 | |
c0d27fcc | 8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8513 | (exit $ac_status); } >/dev/null; then |
8514 | if test -s conftest.err; then | |
8515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 8516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
8517 | else |
8518 | ac_cpp_err= | |
8519 | fi | |
8520 | else | |
8521 | ac_cpp_err=yes | |
8522 | fi | |
8523 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 8524 | ac_header_preproc=yes |
98418dba CW |
8525 | else |
8526 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8527 | sed 's/^/| /' conftest.$ac_ext >&5 |
8528 | ||
c0d27fcc | 8529 | ac_header_preproc=no |
98418dba CW |
8530 | fi |
8531 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
8532 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8533 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8534 | ||
8535 | # So? What about this header? | |
35996d22 AS |
8536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8537 | yes:no: ) | |
c0d27fcc MR |
8538 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8539 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
8540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8541 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8542 | ac_header_preproc=yes | |
19650fd6 | 8543 | ;; |
35996d22 | 8544 | no:yes:* ) |
c0d27fcc MR |
8545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
8547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8549 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8550 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8551 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8552 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 8553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 8554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
8555 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8556 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
8557 | ( |
8558 | cat <<\_ASBOX | |
35996d22 AS |
8559 | ## ------------------------------------------ ## |
8560 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8561 | ## ------------------------------------------ ## | |
19650fd6 AS |
8562 | _ASBOX |
8563 | ) | | |
8564 | sed "s/^/$as_me: WARNING: /" >&2 | |
8565 | ;; | |
c0d27fcc MR |
8566 | esac |
8567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8571 | else | |
35996d22 | 8572 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 8573 | fi |
c0d27fcc | 8574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
8576 | |
8577 | fi | |
98418dba | 8578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 8579 | cat >>confdefs.h <<_ACEOF |
98418dba | 8580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 8581 | _ACEOF |
98418dba CW |
8582 | |
8583 | fi | |
c0d27fcc | 8584 | |
98418dba CW |
8585 | done |
8586 | ||
c0d27fcc | 8587 | |
98418dba CW |
8588 | for ac_func in getpagesize |
8589 | do | |
8590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 8591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
8592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8595 | else | |
8596 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8597 | /* confdefs.h. */ |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
35996d22 AS |
8602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8604 | #define $ac_func innocuous_$ac_func | |
8605 | ||
98418dba | 8606 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8607 | which can conflict with char $ac_func (); below. |
8608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8609 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8610 | |
19650fd6 AS |
8611 | #ifdef __STDC__ |
8612 | # include <limits.h> | |
8613 | #else | |
8614 | # include <assert.h> | |
8615 | #endif | |
35996d22 AS |
8616 | |
8617 | #undef $ac_func | |
8618 | ||
98418dba CW |
8619 | /* Override any gcc2 internal prototype to avoid an error. */ |
8620 | #ifdef __cplusplus | |
8621 | extern "C" | |
19650fd6 | 8622 | { |
98418dba CW |
8623 | #endif |
8624 | /* We use char because int might match the return type of a gcc2 | |
8625 | builtin and then its argument prototype would still apply. */ | |
8626 | char $ac_func (); | |
98418dba CW |
8627 | /* The GNU C library defines this for functions which it implements |
8628 | to always fail with ENOSYS. Some functions are actually named | |
8629 | something starting with __ and the normal name is an alias. */ | |
8630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8631 | choke me | |
8632 | #else | |
19650fd6 AS |
8633 | char (*f) () = $ac_func; |
8634 | #endif | |
8635 | #ifdef __cplusplus | |
8636 | } | |
98418dba CW |
8637 | #endif |
8638 | ||
19650fd6 AS |
8639 | int |
8640 | main () | |
8641 | { | |
8642 | return f != $ac_func; | |
98418dba CW |
8643 | ; |
8644 | return 0; | |
8645 | } | |
8646 | _ACEOF | |
8647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8649 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8650 | ac_status=$? |
35996d22 AS |
8651 | grep -v '^ *+' conftest.er1 >conftest.err |
8652 | rm -f conftest.er1 | |
8653 | cat conftest.err >&5 | |
c0d27fcc | 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8655 | (exit $ac_status); } && |
35996d22 AS |
8656 | { ac_try='test -z "$ac_c_werror_flag" |
8657 | || test ! -s conftest.err' | |
8658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8659 | (eval $ac_try) 2>&5 | |
8660 | ac_status=$? | |
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8662 | (exit $ac_status); }; } && | |
8663 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8665 | (eval $ac_try) 2>&5 |
8666 | ac_status=$? | |
c0d27fcc | 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8668 | (exit $ac_status); }; }; then |
8669 | eval "$as_ac_var=yes" | |
8670 | else | |
8671 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8672 | sed 's/^/| /' conftest.$ac_ext >&5 |
8673 | ||
98418dba CW |
8674 | eval "$as_ac_var=no" |
8675 | fi | |
35996d22 AS |
8676 | rm -f conftest.err conftest.$ac_objext \ |
8677 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8678 | fi |
c0d27fcc | 8679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8680 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8681 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 8682 | cat >>confdefs.h <<_ACEOF |
98418dba | 8683 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 8684 | _ACEOF |
98418dba CW |
8685 | |
8686 | fi | |
8687 | done | |
8688 | ||
c0d27fcc | 8689 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
8690 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
8691 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
8692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8693 | else | |
8694 | if test "$cross_compiling" = yes; then | |
8695 | ac_cv_func_mmap_fixed_mapped=no | |
8696 | else | |
8697 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8698 | /* confdefs.h. */ |
8699 | _ACEOF | |
8700 | cat confdefs.h >>conftest.$ac_ext | |
8701 | cat >>conftest.$ac_ext <<_ACEOF | |
8702 | /* end confdefs.h. */ | |
98418dba | 8703 | $ac_includes_default |
c0d27fcc MR |
8704 | /* malloc might have been renamed as rpl_malloc. */ |
8705 | #undef malloc | |
8706 | ||
98418dba CW |
8707 | /* Thanks to Mike Haertel and Jim Avera for this test. |
8708 | Here is a matrix of mmap possibilities: | |
8709 | mmap private not fixed | |
8710 | mmap private fixed at somewhere currently unmapped | |
8711 | mmap private fixed at somewhere already mapped | |
8712 | mmap shared not fixed | |
8713 | mmap shared fixed at somewhere currently unmapped | |
8714 | mmap shared fixed at somewhere already mapped | |
8715 | For private mappings, we should verify that changes cannot be read() | |
8716 | back from the file, nor mmap's back from the file at a different | |
8717 | address. (There have been systems where private was not correctly | |
8718 | implemented like the infamous i386 svr4.0, and systems where the | |
8719 | VM page cache was not coherent with the file system buffer cache | |
8720 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8721 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 8722 | propagated back to all the places they're supposed to be. |
98418dba CW |
8723 | |
8724 | Grep wants private fixed already mapped. | |
8725 | The main things grep needs to know about mmap are: | |
8726 | * does it exist and is it safe to write into the mmap'd area | |
8727 | * how to use it (BSD variants) */ | |
8728 | ||
8729 | #include <fcntl.h> | |
8730 | #include <sys/mman.h> | |
8731 | ||
8732 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
8733 | char *malloc (); | |
8734 | #endif | |
8735 | ||
8736 | /* This mess was copied from the GNU getpagesize.h. */ | |
8737 | #if !HAVE_GETPAGESIZE | |
8738 | /* Assume that all systems that can run configure have sys/param.h. */ | |
8739 | # if !HAVE_SYS_PARAM_H | |
8740 | # define HAVE_SYS_PARAM_H 1 | |
8741 | # endif | |
8742 | ||
8743 | # ifdef _SC_PAGESIZE | |
8744 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8745 | # else /* no _SC_PAGESIZE */ | |
8746 | # if HAVE_SYS_PARAM_H | |
8747 | # include <sys/param.h> | |
8748 | # ifdef EXEC_PAGESIZE | |
8749 | # define getpagesize() EXEC_PAGESIZE | |
8750 | # else /* no EXEC_PAGESIZE */ | |
8751 | # ifdef NBPG | |
8752 | # define getpagesize() NBPG * CLSIZE | |
8753 | # ifndef CLSIZE | |
8754 | # define CLSIZE 1 | |
8755 | # endif /* no CLSIZE */ | |
8756 | # else /* no NBPG */ | |
8757 | # ifdef NBPC | |
8758 | # define getpagesize() NBPC | |
8759 | # else /* no NBPC */ | |
8760 | # ifdef PAGESIZE | |
8761 | # define getpagesize() PAGESIZE | |
8762 | # endif /* PAGESIZE */ | |
8763 | # endif /* no NBPC */ | |
8764 | # endif /* no NBPG */ | |
8765 | # endif /* no EXEC_PAGESIZE */ | |
8766 | # else /* no HAVE_SYS_PARAM_H */ | |
8767 | # define getpagesize() 8192 /* punt totally */ | |
8768 | # endif /* no HAVE_SYS_PARAM_H */ | |
8769 | # endif /* no _SC_PAGESIZE */ | |
8770 | ||
8771 | #endif /* no HAVE_GETPAGESIZE */ | |
8772 | ||
8773 | int | |
8774 | main () | |
8775 | { | |
8776 | char *data, *data2, *data3; | |
8777 | int i, pagesize; | |
8778 | int fd; | |
8779 | ||
8780 | pagesize = getpagesize (); | |
8781 | ||
8782 | /* First, make a file with some known garbage in it. */ | |
8783 | data = (char *) malloc (pagesize); | |
8784 | if (!data) | |
8785 | exit (1); | |
8786 | for (i = 0; i < pagesize; ++i) | |
8787 | *(data + i) = rand (); | |
8788 | umask (0); | |
8789 | fd = creat ("conftest.mmap", 0600); | |
8790 | if (fd < 0) | |
8791 | exit (1); | |
8792 | if (write (fd, data, pagesize) != pagesize) | |
8793 | exit (1); | |
8794 | close (fd); | |
8795 | ||
8796 | /* Next, try to mmap the file at a fixed address which already has | |
8797 | something else allocated at it. If we can, also make sure that | |
8798 | we see the same garbage. */ | |
8799 | fd = open ("conftest.mmap", O_RDWR); | |
8800 | if (fd < 0) | |
8801 | exit (1); | |
8802 | data2 = (char *) malloc (2 * pagesize); | |
8803 | if (!data2) | |
8804 | exit (1); | |
35996d22 | 8805 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
98418dba | 8806 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
35996d22 | 8807 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
98418dba CW |
8808 | exit (1); |
8809 | for (i = 0; i < pagesize; ++i) | |
8810 | if (*(data + i) != *(data2 + i)) | |
8811 | exit (1); | |
8812 | ||
8813 | /* Finally, make sure that changes to the mapped area do not | |
8814 | percolate back to the file as seen by read(). (This is a bug on | |
8815 | some variants of i386 svr4.0.) */ | |
8816 | for (i = 0; i < pagesize; ++i) | |
8817 | *(data2 + i) = *(data2 + i) + 1; | |
8818 | data3 = (char *) malloc (pagesize); | |
8819 | if (!data3) | |
8820 | exit (1); | |
8821 | if (read (fd, data3, pagesize) != pagesize) | |
8822 | exit (1); | |
8823 | for (i = 0; i < pagesize; ++i) | |
8824 | if (*(data + i) != *(data3 + i)) | |
8825 | exit (1); | |
8826 | close (fd); | |
8827 | exit (0); | |
8828 | } | |
8829 | _ACEOF | |
8830 | rm -f conftest$ac_exeext | |
c0d27fcc | 8831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8832 | (eval $ac_link) 2>&5 |
8833 | ac_status=$? | |
c0d27fcc | 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 8836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8837 | (eval $ac_try) 2>&5 |
8838 | ac_status=$? | |
c0d27fcc | 8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8840 | (exit $ac_status); }; }; then |
8841 | ac_cv_func_mmap_fixed_mapped=yes | |
8842 | else | |
8843 | echo "$as_me: program exited with status $ac_status" >&5 | |
8844 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
8846 | ||
c0d27fcc | 8847 | ( exit $ac_status ) |
98418dba CW |
8848 | ac_cv_func_mmap_fixed_mapped=no |
8849 | fi | |
35996d22 | 8850 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
8851 | fi |
8852 | fi | |
c0d27fcc | 8853 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
8854 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
8855 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8856 | ||
c0d27fcc | 8857 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8858 | #define HAVE_MMAP 1 |
c0d27fcc | 8859 | _ACEOF |
98418dba CW |
8860 | |
8861 | fi | |
8862 | rm -f conftest.mmap | |
8863 | ||
8864 | if test $use_mmap_for_buffers = yes; then | |
8865 | REL_ALLOC=no | |
8866 | fi | |
8867 | ||
8868 | LIBS="$libsrc_libs $LIBS" | |
8869 | ||
c0d27fcc MR |
8870 | |
8871 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
8872 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
8873 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
8874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8875 | else | |
8876 | ac_check_lib_save_LIBS=$LIBS | |
8877 | LIBS="-ldnet $LIBS" | |
8878 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8879 | /* confdefs.h. */ |
8880 | _ACEOF | |
8881 | cat confdefs.h >>conftest.$ac_ext | |
8882 | cat >>conftest.$ac_ext <<_ACEOF | |
8883 | /* end confdefs.h. */ | |
98418dba CW |
8884 | |
8885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8886 | #ifdef __cplusplus | |
8887 | extern "C" | |
8888 | #endif | |
8889 | /* We use char because int might match the return type of a gcc2 | |
8890 | builtin and then its argument prototype would still apply. */ | |
8891 | char dnet_ntoa (); | |
98418dba CW |
8892 | int |
8893 | main () | |
8894 | { | |
8895 | dnet_ntoa (); | |
8896 | ; | |
8897 | return 0; | |
8898 | } | |
8899 | _ACEOF | |
8900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8902 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8903 | ac_status=$? |
35996d22 AS |
8904 | grep -v '^ *+' conftest.er1 >conftest.err |
8905 | rm -f conftest.er1 | |
8906 | cat conftest.err >&5 | |
c0d27fcc | 8907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8908 | (exit $ac_status); } && |
35996d22 AS |
8909 | { ac_try='test -z "$ac_c_werror_flag" |
8910 | || test ! -s conftest.err' | |
8911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8912 | (eval $ac_try) 2>&5 | |
8913 | ac_status=$? | |
8914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8915 | (exit $ac_status); }; } && | |
8916 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8918 | (eval $ac_try) 2>&5 |
8919 | ac_status=$? | |
c0d27fcc | 8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8921 | (exit $ac_status); }; }; then |
8922 | ac_cv_lib_dnet_dnet_ntoa=yes | |
8923 | else | |
8924 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8925 | sed 's/^/| /' conftest.$ac_ext >&5 |
8926 | ||
98418dba CW |
8927 | ac_cv_lib_dnet_dnet_ntoa=no |
8928 | fi | |
35996d22 AS |
8929 | rm -f conftest.err conftest.$ac_objext \ |
8930 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8931 | LIBS=$ac_check_lib_save_LIBS |
8932 | fi | |
c0d27fcc | 8933 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
8934 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
8935 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 8936 | cat >>confdefs.h <<_ACEOF |
98418dba | 8937 | #define HAVE_LIBDNET 1 |
c0d27fcc | 8938 | _ACEOF |
98418dba CW |
8939 | |
8940 | LIBS="-ldnet $LIBS" | |
8941 | ||
8942 | fi | |
8943 | ||
c0d27fcc MR |
8944 | |
8945 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
8946 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
8947 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8949 | else | |
8950 | ac_check_lib_save_LIBS=$LIBS | |
8951 | LIBS="-lXbsd $LIBS" | |
8952 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8953 | /* confdefs.h. */ |
8954 | _ACEOF | |
8955 | cat confdefs.h >>conftest.$ac_ext | |
8956 | cat >>conftest.$ac_ext <<_ACEOF | |
8957 | /* end confdefs.h. */ | |
98418dba | 8958 | |
c0d27fcc | 8959 | |
98418dba CW |
8960 | int |
8961 | main () | |
8962 | { | |
8963 | main (); | |
8964 | ; | |
8965 | return 0; | |
8966 | } | |
8967 | _ACEOF | |
8968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8970 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8971 | ac_status=$? |
35996d22 AS |
8972 | grep -v '^ *+' conftest.er1 >conftest.err |
8973 | rm -f conftest.er1 | |
8974 | cat conftest.err >&5 | |
c0d27fcc | 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8976 | (exit $ac_status); } && |
35996d22 AS |
8977 | { ac_try='test -z "$ac_c_werror_flag" |
8978 | || test ! -s conftest.err' | |
8979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8980 | (eval $ac_try) 2>&5 | |
8981 | ac_status=$? | |
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8983 | (exit $ac_status); }; } && | |
8984 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8986 | (eval $ac_try) 2>&5 |
8987 | ac_status=$? | |
c0d27fcc | 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8989 | (exit $ac_status); }; }; then |
8990 | ac_cv_lib_Xbsd_main=yes | |
8991 | else | |
8992 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
8994 | ||
98418dba CW |
8995 | ac_cv_lib_Xbsd_main=no |
8996 | fi | |
35996d22 AS |
8997 | rm -f conftest.err conftest.$ac_objext \ |
8998 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8999 | LIBS=$ac_check_lib_save_LIBS |
9000 | fi | |
c0d27fcc | 9001 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
9002 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
9003 | if test $ac_cv_lib_Xbsd_main = yes; then | |
9004 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
9005 | fi | |
9006 | ||
c0d27fcc MR |
9007 | |
9008 | ||
9009 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
9010 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
9011 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
9012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9013 | else | |
9014 | ac_check_lib_save_LIBS=$LIBS | |
9015 | LIBS="-lpthreads $LIBS" | |
9016 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9017 | /* confdefs.h. */ |
9018 | _ACEOF | |
9019 | cat confdefs.h >>conftest.$ac_ext | |
9020 | cat >>conftest.$ac_ext <<_ACEOF | |
9021 | /* end confdefs.h. */ | |
98418dba CW |
9022 | |
9023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9024 | #ifdef __cplusplus | |
9025 | extern "C" | |
9026 | #endif | |
9027 | /* We use char because int might match the return type of a gcc2 | |
9028 | builtin and then its argument prototype would still apply. */ | |
9029 | char cma_open (); | |
98418dba CW |
9030 | int |
9031 | main () | |
9032 | { | |
9033 | cma_open (); | |
9034 | ; | |
9035 | return 0; | |
9036 | } | |
9037 | _ACEOF | |
9038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9040 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9041 | ac_status=$? |
35996d22 AS |
9042 | grep -v '^ *+' conftest.er1 >conftest.err |
9043 | rm -f conftest.er1 | |
9044 | cat conftest.err >&5 | |
c0d27fcc | 9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9046 | (exit $ac_status); } && |
35996d22 AS |
9047 | { ac_try='test -z "$ac_c_werror_flag" |
9048 | || test ! -s conftest.err' | |
9049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9050 | (eval $ac_try) 2>&5 | |
9051 | ac_status=$? | |
9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9053 | (exit $ac_status); }; } && | |
9054 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9056 | (eval $ac_try) 2>&5 |
9057 | ac_status=$? | |
c0d27fcc | 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9059 | (exit $ac_status); }; }; then |
9060 | ac_cv_lib_pthreads_cma_open=yes | |
9061 | else | |
9062 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9063 | sed 's/^/| /' conftest.$ac_ext >&5 |
9064 | ||
98418dba CW |
9065 | ac_cv_lib_pthreads_cma_open=no |
9066 | fi | |
35996d22 AS |
9067 | rm -f conftest.err conftest.$ac_objext \ |
9068 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9069 | LIBS=$ac_check_lib_save_LIBS |
9070 | fi | |
c0d27fcc | 9071 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
9072 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
9073 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 9074 | cat >>confdefs.h <<_ACEOF |
98418dba | 9075 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 9076 | _ACEOF |
98418dba CW |
9077 | |
9078 | LIBS="-lpthreads $LIBS" | |
9079 | ||
9080 | fi | |
9081 | ||
c0d27fcc MR |
9082 | |
9083 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
9084 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
9085 | if test -d /usr/X386/include; then | |
9086 | HAVE_XFREE386=yes | |
9087 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
9088 | else | |
9089 | HAVE_XFREE386=no | |
9090 | fi | |
c0d27fcc | 9091 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
9092 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
9093 | ||
55597d70 DL |
9094 | |
9095 | case ${host_os} in | |
9096 | aix*) | |
9097 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
9098 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
9099 | if test "${gdb_cv_bigtoc+set}" = set; then | |
9100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9101 | else | |
9102 | ||
9103 | case $GCC in | |
9104 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
9105 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
9106 | esac | |
9107 | ||
9108 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
9109 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9110 | /* confdefs.h. */ |
9111 | _ACEOF | |
9112 | cat confdefs.h >>conftest.$ac_ext | |
9113 | cat >>conftest.$ac_ext <<_ACEOF | |
9114 | /* end confdefs.h. */ | |
55597d70 DL |
9115 | |
9116 | int | |
9117 | main () | |
9118 | { | |
9119 | int i; | |
9120 | ; | |
9121 | return 0; | |
9122 | } | |
9123 | _ACEOF | |
9124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9126 | (eval $ac_link) 2>conftest.er1 |
55597d70 | 9127 | ac_status=$? |
35996d22 AS |
9128 | grep -v '^ *+' conftest.er1 >conftest.err |
9129 | rm -f conftest.er1 | |
9130 | cat conftest.err >&5 | |
55597d70 DL |
9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9132 | (exit $ac_status); } && | |
35996d22 AS |
9133 | { ac_try='test -z "$ac_c_werror_flag" |
9134 | || test ! -s conftest.err' | |
9135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9136 | (eval $ac_try) 2>&5 | |
9137 | ac_status=$? | |
9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9139 | (exit $ac_status); }; } && | |
9140 | { ac_try='test -s conftest$ac_exeext' | |
55597d70 DL |
9141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9142 | (eval $ac_try) 2>&5 | |
9143 | ac_status=$? | |
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9145 | (exit $ac_status); }; }; then | |
9146 | : | |
9147 | else | |
9148 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9149 | sed 's/^/| /' conftest.$ac_ext >&5 |
9150 | ||
55597d70 DL |
9151 | gdb_cv_bigtoc= |
9152 | fi | |
35996d22 AS |
9153 | rm -f conftest.err conftest.$ac_objext \ |
9154 | conftest$ac_exeext conftest.$ac_ext | |
55597d70 DL |
9155 | |
9156 | fi | |
9157 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
9158 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
9159 | ;; | |
9160 | esac | |
9161 | ||
ae1a998c RS |
9162 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
9163 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
9164 | # REAL_CPPFLAGS later on. | |
98418dba CW |
9165 | |
9166 | REAL_CPPFLAGS="$CPPFLAGS" | |
9167 | ||
9168 | if test "${HAVE_X11}" = "yes"; then | |
9169 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
9170 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
9171 | LIBS="$LIBX $LIBS" | |
9172 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
9173 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
9174 | ||
9175 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
9176 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
9177 | # but it's more convenient here to set LD_RUN_PATH | |
9178 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
9179 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
9180 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
9181 | export LD_RUN_PATH | |
9182 | fi | |
9183 | ||
9184 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 9185 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
9186 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
9187 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9188 | /* confdefs.h. */ |
9189 | _ACEOF | |
9190 | cat confdefs.h >>conftest.$ac_ext | |
9191 | cat >>conftest.$ac_ext <<_ACEOF | |
9192 | /* end confdefs.h. */ | |
98418dba | 9193 | |
98418dba CW |
9194 | int |
9195 | main () | |
9196 | { | |
9197 | XOpenDisplay ("foo"); | |
9198 | ; | |
9199 | return 0; | |
9200 | } | |
9201 | _ACEOF | |
9202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9204 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9205 | ac_status=$? |
35996d22 AS |
9206 | grep -v '^ *+' conftest.er1 >conftest.err |
9207 | rm -f conftest.er1 | |
9208 | cat conftest.err >&5 | |
c0d27fcc | 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9210 | (exit $ac_status); } && |
35996d22 AS |
9211 | { ac_try='test -z "$ac_c_werror_flag" |
9212 | || test ! -s conftest.err' | |
c0d27fcc | 9213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9214 | (eval $ac_try) 2>&5 |
9215 | ac_status=$? | |
c0d27fcc | 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
9217 | (exit $ac_status); }; } && |
9218 | { ac_try='test -s conftest$ac_exeext' | |
9219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9220 | (eval $ac_try) 2>&5 | |
9221 | ac_status=$? | |
9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9223 | (exit $ac_status); }; }; then | |
9224 | xlinux_first_failure=no | |
98418dba CW |
9225 | else |
9226 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9227 | sed 's/^/| /' conftest.$ac_ext >&5 |
9228 | ||
98418dba CW |
9229 | xlinux_first_failure=yes |
9230 | fi | |
35996d22 AS |
9231 | rm -f conftest.err conftest.$ac_objext \ |
9232 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9233 | if test "${xlinux_first_failure}" = "yes"; then |
9234 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
9235 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
9236 | OLD_CPPFLAGS="$CPPFLAGS" | |
9237 | OLD_LIBS="$LIBS" | |
9238 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
9239 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
9240 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
9241 | LIBS="$LIBS -b i486-linuxaout" | |
9242 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9243 | /* confdefs.h. */ |
9244 | _ACEOF | |
9245 | cat confdefs.h >>conftest.$ac_ext | |
9246 | cat >>conftest.$ac_ext <<_ACEOF | |
9247 | /* end confdefs.h. */ | |
98418dba | 9248 | |
98418dba CW |
9249 | int |
9250 | main () | |
9251 | { | |
9252 | XOpenDisplay ("foo"); | |
9253 | ; | |
9254 | return 0; | |
9255 | } | |
9256 | _ACEOF | |
9257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9259 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9260 | ac_status=$? |
35996d22 AS |
9261 | grep -v '^ *+' conftest.er1 >conftest.err |
9262 | rm -f conftest.er1 | |
9263 | cat conftest.err >&5 | |
c0d27fcc | 9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9265 | (exit $ac_status); } && |
35996d22 AS |
9266 | { ac_try='test -z "$ac_c_werror_flag" |
9267 | || test ! -s conftest.err' | |
9268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9269 | (eval $ac_try) 2>&5 | |
9270 | ac_status=$? | |
9271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9272 | (exit $ac_status); }; } && | |
9273 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9275 | (eval $ac_try) 2>&5 |
9276 | ac_status=$? | |
c0d27fcc | 9277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9278 | (exit $ac_status); }; }; then |
9279 | xlinux_second_failure=no | |
9280 | else | |
9281 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9282 | sed 's/^/| /' conftest.$ac_ext >&5 |
9283 | ||
98418dba CW |
9284 | xlinux_second_failure=yes |
9285 | fi | |
35996d22 AS |
9286 | rm -f conftest.err conftest.$ac_objext \ |
9287 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9288 | if test "${xlinux_second_failure}" = "yes"; then |
9289 | # If we get the same failure with -b, there is no use adding -b. | |
9290 | # So take it out. This plays safe. | |
9291 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
9292 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
9293 | CPPFLAGS="$OLD_CPPFLAGS" | |
9294 | LIBS="$OLD_LIBS" | |
c0d27fcc | 9295 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9296 | echo "${ECHO_T}no" >&6 |
9297 | else | |
c0d27fcc | 9298 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9299 | echo "${ECHO_T}yes" >&6 |
9300 | fi | |
9301 | else | |
c0d27fcc | 9302 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9303 | echo "${ECHO_T}no" >&6 |
9304 | fi | |
9305 | fi | |
9306 | ||
9307 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
9308 | # header files included from there. | |
c0d27fcc | 9309 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
9310 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
9311 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9312 | /* confdefs.h. */ |
9313 | _ACEOF | |
9314 | cat confdefs.h >>conftest.$ac_ext | |
9315 | cat >>conftest.$ac_ext <<_ACEOF | |
9316 | /* end confdefs.h. */ | |
98418dba CW |
9317 | #include <X11/Xlib.h> |
9318 | #include <X11/XKBlib.h> | |
98418dba CW |
9319 | int |
9320 | main () | |
9321 | { | |
9322 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
9323 | ; | |
9324 | return 0; | |
9325 | } | |
9326 | _ACEOF | |
9327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9329 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9330 | ac_status=$? |
35996d22 AS |
9331 | grep -v '^ *+' conftest.er1 >conftest.err |
9332 | rm -f conftest.er1 | |
9333 | cat conftest.err >&5 | |
c0d27fcc | 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9335 | (exit $ac_status); } && |
35996d22 AS |
9336 | { ac_try='test -z "$ac_c_werror_flag" |
9337 | || test ! -s conftest.err' | |
9338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9339 | (eval $ac_try) 2>&5 | |
9340 | ac_status=$? | |
9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9342 | (exit $ac_status); }; } && | |
9343 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9345 | (eval $ac_try) 2>&5 |
9346 | ac_status=$? | |
c0d27fcc | 9347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9348 | (exit $ac_status); }; }; then |
9349 | emacs_xkb=yes | |
9350 | else | |
9351 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9352 | sed 's/^/| /' conftest.$ac_ext >&5 |
9353 | ||
98418dba CW |
9354 | emacs_xkb=no |
9355 | fi | |
35996d22 AS |
9356 | rm -f conftest.err conftest.$ac_objext \ |
9357 | conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 9358 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
9359 | echo "${ECHO_T}$emacs_xkb" >&6 |
9360 | if test $emacs_xkb = yes; then | |
b936fae4 | 9361 | |
c0d27fcc | 9362 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9363 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 9364 | _ACEOF |
98418dba CW |
9365 | |
9366 | fi | |
9367 | ||
c0d27fcc MR |
9368 | |
9369 | ||
9370 | ||
9371 | ||
98418dba CW |
9372 | for ac_func in XrmSetDatabase XScreenResourceString \ |
9373 | XScreenNumberOfScreen XSetWMProtocols | |
9374 | do | |
9375 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 9376 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
9377 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9378 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9380 | else | |
9381 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9382 | /* confdefs.h. */ |
9383 | _ACEOF | |
9384 | cat confdefs.h >>conftest.$ac_ext | |
9385 | cat >>conftest.$ac_ext <<_ACEOF | |
9386 | /* end confdefs.h. */ | |
35996d22 AS |
9387 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9388 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9389 | #define $ac_func innocuous_$ac_func | |
9390 | ||
98418dba | 9391 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9392 | which can conflict with char $ac_func (); below. |
9393 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9394 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9395 | |
19650fd6 AS |
9396 | #ifdef __STDC__ |
9397 | # include <limits.h> | |
9398 | #else | |
9399 | # include <assert.h> | |
9400 | #endif | |
35996d22 AS |
9401 | |
9402 | #undef $ac_func | |
9403 | ||
98418dba CW |
9404 | /* Override any gcc2 internal prototype to avoid an error. */ |
9405 | #ifdef __cplusplus | |
9406 | extern "C" | |
19650fd6 | 9407 | { |
98418dba CW |
9408 | #endif |
9409 | /* We use char because int might match the return type of a gcc2 | |
9410 | builtin and then its argument prototype would still apply. */ | |
9411 | char $ac_func (); | |
98418dba CW |
9412 | /* The GNU C library defines this for functions which it implements |
9413 | to always fail with ENOSYS. Some functions are actually named | |
9414 | something starting with __ and the normal name is an alias. */ | |
9415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9416 | choke me | |
9417 | #else | |
19650fd6 AS |
9418 | char (*f) () = $ac_func; |
9419 | #endif | |
9420 | #ifdef __cplusplus | |
9421 | } | |
98418dba CW |
9422 | #endif |
9423 | ||
19650fd6 AS |
9424 | int |
9425 | main () | |
9426 | { | |
9427 | return f != $ac_func; | |
98418dba CW |
9428 | ; |
9429 | return 0; | |
9430 | } | |
9431 | _ACEOF | |
9432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9434 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9435 | ac_status=$? |
35996d22 AS |
9436 | grep -v '^ *+' conftest.er1 >conftest.err |
9437 | rm -f conftest.er1 | |
9438 | cat conftest.err >&5 | |
c0d27fcc | 9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9440 | (exit $ac_status); } && |
35996d22 AS |
9441 | { ac_try='test -z "$ac_c_werror_flag" |
9442 | || test ! -s conftest.err' | |
9443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9444 | (eval $ac_try) 2>&5 | |
9445 | ac_status=$? | |
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9447 | (exit $ac_status); }; } && | |
9448 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9450 | (eval $ac_try) 2>&5 |
9451 | ac_status=$? | |
c0d27fcc | 9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9453 | (exit $ac_status); }; }; then |
9454 | eval "$as_ac_var=yes" | |
9455 | else | |
9456 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9457 | sed 's/^/| /' conftest.$ac_ext >&5 |
9458 | ||
98418dba CW |
9459 | eval "$as_ac_var=no" |
9460 | fi | |
35996d22 AS |
9461 | rm -f conftest.err conftest.$ac_objext \ |
9462 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9463 | fi |
c0d27fcc | 9464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
9465 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9466 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 9467 | cat >>confdefs.h <<_ACEOF |
98418dba | 9468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 9469 | _ACEOF |
98418dba CW |
9470 | |
9471 | fi | |
9472 | done | |
9473 | ||
9474 | fi | |
9475 | ||
9476 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9477 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
9478 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
9479 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9481 | else | |
9482 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9483 | /* confdefs.h. */ |
9484 | _ACEOF | |
9485 | cat confdefs.h >>conftest.$ac_ext | |
9486 | cat >>conftest.$ac_ext <<_ACEOF | |
9487 | /* end confdefs.h. */ | |
98418dba | 9488 | #include <X11/Xlib.h> |
98418dba CW |
9489 | int |
9490 | main () | |
9491 | { | |
9492 | #if XlibSpecificationRelease < 6 | |
9493 | fail; | |
9494 | #endif | |
9495 | ||
9496 | ; | |
9497 | return 0; | |
9498 | } | |
9499 | _ACEOF | |
9500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9502 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9503 | ac_status=$? |
35996d22 AS |
9504 | grep -v '^ *+' conftest.er1 >conftest.err |
9505 | rm -f conftest.er1 | |
9506 | cat conftest.err >&5 | |
c0d27fcc | 9507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9508 | (exit $ac_status); } && |
35996d22 AS |
9509 | { ac_try='test -z "$ac_c_werror_flag" |
9510 | || test ! -s conftest.err' | |
9511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9512 | (eval $ac_try) 2>&5 | |
9513 | ac_status=$? | |
9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9515 | (exit $ac_status); }; } && | |
9516 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9518 | (eval $ac_try) 2>&5 |
9519 | ac_status=$? | |
c0d27fcc | 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9521 | (exit $ac_status); }; }; then |
9522 | emacs_cv_x11_version_6=yes | |
9523 | else | |
9524 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9525 | sed 's/^/| /' conftest.$ac_ext >&5 |
9526 | ||
98418dba CW |
9527 | emacs_cv_x11_version_6=no |
9528 | fi | |
35996d22 AS |
9529 | rm -f conftest.err conftest.$ac_objext \ |
9530 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9531 | fi |
9532 | ||
9533 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 9534 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9535 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9536 | |
c0d27fcc | 9537 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9538 | #define HAVE_X11R6 1 |
c0d27fcc | 9539 | _ACEOF |
98418dba CW |
9540 | |
9541 | else | |
c0d27fcc | 9542 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9543 | echo "${ECHO_T}before 6" >&6 |
9544 | fi | |
9545 | fi | |
9546 | ||
9547 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9548 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
9549 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
9550 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
9551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9552 | else | |
9553 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9554 | /* confdefs.h. */ |
9555 | _ACEOF | |
9556 | cat confdefs.h >>conftest.$ac_ext | |
9557 | cat >>conftest.$ac_ext <<_ACEOF | |
9558 | /* end confdefs.h. */ | |
98418dba | 9559 | #include <X11/Xlib.h> |
98418dba CW |
9560 | int |
9561 | main () | |
9562 | { | |
9563 | #if XlibSpecificationRelease < 5 | |
9564 | fail; | |
9565 | #endif | |
9566 | ||
9567 | ; | |
9568 | return 0; | |
9569 | } | |
9570 | _ACEOF | |
9571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9573 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9574 | ac_status=$? |
35996d22 AS |
9575 | grep -v '^ *+' conftest.er1 >conftest.err |
9576 | rm -f conftest.er1 | |
9577 | cat conftest.err >&5 | |
c0d27fcc | 9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9579 | (exit $ac_status); } && |
35996d22 AS |
9580 | { ac_try='test -z "$ac_c_werror_flag" |
9581 | || test ! -s conftest.err' | |
9582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9583 | (eval $ac_try) 2>&5 | |
9584 | ac_status=$? | |
9585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9586 | (exit $ac_status); }; } && | |
9587 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9589 | (eval $ac_try) 2>&5 |
9590 | ac_status=$? | |
c0d27fcc | 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9592 | (exit $ac_status); }; }; then |
9593 | emacs_cv_x11_version_5=yes | |
9594 | else | |
9595 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9596 | sed 's/^/| /' conftest.$ac_ext >&5 |
9597 | ||
98418dba CW |
9598 | emacs_cv_x11_version_5=no |
9599 | fi | |
35996d22 AS |
9600 | rm -f conftest.err conftest.$ac_objext \ |
9601 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9602 | fi |
9603 | ||
9604 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 9605 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
9606 | echo "${ECHO_T}5 or newer" >&6 |
9607 | HAVE_X11R5=yes | |
b936fae4 | 9608 | |
c0d27fcc | 9609 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9610 | #define HAVE_X11R5 1 |
c0d27fcc | 9611 | _ACEOF |
98418dba CW |
9612 | |
9613 | else | |
9614 | HAVE_X11R5=no | |
c0d27fcc | 9615 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
9616 | echo "${ECHO_T}before 5" >&6 |
9617 | fi | |
9618 | fi | |
9619 | ||
488dd4c4 JD |
9620 | |
9621 | ||
9622 | HAVE_GTK=no | |
9623 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 9624 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
9625 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
9626 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
9627 | { (exit 1); exit 1; }; }; | |
9628 | fi | |
9629 | GLIB_REQUIRED=2.0.1 | |
e512ece1 | 9630 | GTK_REQUIRED=2.0.1 |
488dd4c4 JD |
9631 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
9632 | ||
9633 | if test "X${with_pkg_config_prog}" != X; then | |
9634 | PKG_CONFIG="${with_pkg_config_prog}" | |
9635 | fi | |
9636 | ||
9637 | succeeded=no | |
9638 | ||
9639 | if test -z "$PKG_CONFIG"; then | |
9640 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9641 | set dummy pkg-config; ac_word=$2 | |
9642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9644 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9646 | else | |
9647 | case $PKG_CONFIG in | |
9648 | [\\/]* | ?:[\\/]*) | |
9649 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9650 | ;; | |
9651 | *) | |
9652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9653 | for as_dir in $PATH | |
9654 | do | |
9655 | IFS=$as_save_IFS | |
9656 | test -z "$as_dir" && as_dir=. | |
9657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9659 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9661 | break 2 | |
9662 | fi | |
9663 | done | |
9664 | done | |
9665 | ||
9666 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
9667 | ;; | |
9668 | esac | |
9669 | fi | |
9670 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9671 | ||
9672 | if test -n "$PKG_CONFIG"; then | |
9673 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9674 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
9675 | else | |
9676 | echo "$as_me:$LINENO: result: no" >&5 | |
9677 | echo "${ECHO_T}no" >&6 | |
9678 | fi | |
9679 | ||
9680 | fi | |
9681 | ||
9682 | if test "$PKG_CONFIG" = "no" ; then | |
9683 | echo "*** The pkg-config script could not be found. Make sure it is" | |
9684 | echo "*** in your path, or give the full path to pkg-config with" | |
9685 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
9686 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
9687 | else | |
9688 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
9689 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
9690 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
9691 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
9692 | ||
9693 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
9694 | echo "$as_me:$LINENO: result: yes" >&5 | |
9695 | echo "${ECHO_T}yes" >&6 | |
9696 | succeeded=yes | |
9697 | ||
9698 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
9699 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
9700 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
9701 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
9702 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
9703 | ||
9704 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
9705 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
9706 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
9707 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
9708 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
9709 | else | |
9710 | GTK_CFLAGS="" | |
9711 | GTK_LIBS="" | |
9712 | ## If we have a custom action on failure, don't print errors, but | |
9713 | ## do set a variable so people can do so. | |
9714 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
9715 | echo $GTK_PKG_ERRORS | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | ||
9720 | else | |
9721 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
9722 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
9723 | fi | |
9724 | fi | |
9725 | ||
9726 | if test $succeeded = yes; then | |
9727 | : | |
9728 | else | |
9729 | { { 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 | |
9730 | 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;} | |
9731 | { (exit 1); exit 1; }; } | |
9732 | fi | |
9733 | ||
9734 | ||
9735 | ||
9736 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
9737 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
9738 | LIBS="$GTK_LIBS $LIBS" | |
488dd4c4 JD |
9739 | HAVE_GTK=yes |
9740 | ||
9741 | cat >>confdefs.h <<\_ACEOF | |
9742 | #define HAVE_GTK 1 | |
9743 | _ACEOF | |
9744 | ||
9745 | USE_X_TOOLKIT=none | |
9746 | ||
9747 | with_toolkit_scroll_bars=yes | |
57669b57 JD |
9748 | |
9749 | HAVE_GTK_MULTIDISPLAY=no | |
9750 | ||
9751 | for ac_func in gdk_display_open | |
9752 | do | |
9753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9754 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9756 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9758 | else | |
9759 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
9760 | /* confdefs.h. */ |
9761 | _ACEOF | |
9762 | cat confdefs.h >>conftest.$ac_ext | |
9763 | cat >>conftest.$ac_ext <<_ACEOF | |
9764 | /* end confdefs.h. */ | |
35996d22 AS |
9765 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9767 | #define $ac_func innocuous_$ac_func | |
9768 | ||
57669b57 JD |
9769 | /* System header to define __stub macros and hopefully few prototypes, |
9770 | which can conflict with char $ac_func (); below. | |
9771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9772 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9773 | |
57669b57 JD |
9774 | #ifdef __STDC__ |
9775 | # include <limits.h> | |
9776 | #else | |
9777 | # include <assert.h> | |
9778 | #endif | |
35996d22 AS |
9779 | |
9780 | #undef $ac_func | |
9781 | ||
57669b57 JD |
9782 | /* Override any gcc2 internal prototype to avoid an error. */ |
9783 | #ifdef __cplusplus | |
9784 | extern "C" | |
9785 | { | |
9786 | #endif | |
9787 | /* We use char because int might match the return type of a gcc2 | |
9788 | builtin and then its argument prototype would still apply. */ | |
9789 | char $ac_func (); | |
9790 | /* The GNU C library defines this for functions which it implements | |
9791 | to always fail with ENOSYS. Some functions are actually named | |
9792 | something starting with __ and the normal name is an alias. */ | |
9793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9794 | choke me | |
9795 | #else | |
9796 | char (*f) () = $ac_func; | |
9797 | #endif | |
9798 | #ifdef __cplusplus | |
9799 | } | |
9800 | #endif | |
9801 | ||
9802 | int | |
9803 | main () | |
9804 | { | |
9805 | return f != $ac_func; | |
9806 | ; | |
9807 | return 0; | |
9808 | } | |
9809 | _ACEOF | |
9810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9812 | (eval $ac_link) 2>conftest.er1 |
57669b57 | 9813 | ac_status=$? |
35996d22 AS |
9814 | grep -v '^ *+' conftest.er1 >conftest.err |
9815 | rm -f conftest.er1 | |
9816 | cat conftest.err >&5 | |
57669b57 JD |
9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9818 | (exit $ac_status); } && | |
35996d22 AS |
9819 | { ac_try='test -z "$ac_c_werror_flag" |
9820 | || test ! -s conftest.err' | |
9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9822 | (eval $ac_try) 2>&5 | |
9823 | ac_status=$? | |
9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9825 | (exit $ac_status); }; } && | |
9826 | { ac_try='test -s conftest$ac_exeext' | |
57669b57 JD |
9827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9828 | (eval $ac_try) 2>&5 | |
9829 | ac_status=$? | |
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9831 | (exit $ac_status); }; }; then | |
9832 | eval "$as_ac_var=yes" | |
9833 | else | |
9834 | echo "$as_me: failed program was:" >&5 | |
9835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9836 | ||
9837 | eval "$as_ac_var=no" | |
9838 | fi | |
35996d22 AS |
9839 | rm -f conftest.err conftest.$ac_objext \ |
9840 | conftest$ac_exeext conftest.$ac_ext | |
57669b57 JD |
9841 | fi |
9842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9843 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9844 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9845 | cat >>confdefs.h <<_ACEOF | |
9846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9847 | _ACEOF | |
9848 | HAVE_GTK_MULTIDISPLAY=yes | |
9849 | fi | |
9850 | done | |
9851 | ||
9852 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
9853 | ||
9854 | cat >>confdefs.h <<\_ACEOF | |
9855 | #define HAVE_GTK_MULTIDISPLAY 1 | |
9856 | _ACEOF | |
9857 | ||
9858 | fi | |
488dd4c4 JD |
9859 | fi |
9860 | ||
98418dba CW |
9861 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
9862 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 9863 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
9864 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
9865 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
9866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9867 | else | |
9868 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9869 | /* confdefs.h. */ |
9870 | _ACEOF | |
9871 | cat confdefs.h >>conftest.$ac_ext | |
9872 | cat >>conftest.$ac_ext <<_ACEOF | |
9873 | /* end confdefs.h. */ | |
98418dba CW |
9874 | |
9875 | #include <X11/Intrinsic.h> | |
9876 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
9877 | int |
9878 | main () | |
9879 | { | |
9880 | ||
9881 | ; | |
9882 | return 0; | |
9883 | } | |
9884 | _ACEOF | |
9885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9887 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9888 | ac_status=$? |
35996d22 AS |
9889 | grep -v '^ *+' conftest.er1 >conftest.err |
9890 | rm -f conftest.er1 | |
9891 | cat conftest.err >&5 | |
c0d27fcc | 9892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9893 | (exit $ac_status); } && |
35996d22 AS |
9894 | { ac_try='test -z "$ac_c_werror_flag" |
9895 | || test ! -s conftest.err' | |
9896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9897 | (eval $ac_try) 2>&5 | |
9898 | ac_status=$? | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); }; } && | |
9901 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9903 | (eval $ac_try) 2>&5 |
9904 | ac_status=$? | |
c0d27fcc | 9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9906 | (exit $ac_status); }; }; then |
9907 | emacs_cv_x11_version_5_with_xaw=yes | |
9908 | else | |
9909 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9910 | sed 's/^/| /' conftest.$ac_ext >&5 |
9911 | ||
98418dba CW |
9912 | emacs_cv_x11_version_5_with_xaw=no |
9913 | fi | |
35996d22 AS |
9914 | rm -f conftest.err conftest.$ac_objext \ |
9915 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9916 | fi |
9917 | ||
9918 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 9919 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
9920 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
9921 | USE_X_TOOLKIT=LUCID | |
9922 | else | |
c0d27fcc | 9923 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
9924 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
9925 | USE_X_TOOLKIT=none | |
9926 | fi | |
9927 | else | |
9928 | USE_X_TOOLKIT=none | |
9929 | fi | |
9930 | fi | |
9931 | ||
9932 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
9933 | ||
9934 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 9935 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
9936 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
9937 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9939 | else | |
9940 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9941 | /* confdefs.h. */ |
9942 | _ACEOF | |
9943 | cat confdefs.h >>conftest.$ac_ext | |
9944 | cat >>conftest.$ac_ext <<_ACEOF | |
9945 | /* end confdefs.h. */ | |
98418dba | 9946 | #include <X11/Intrinsic.h> |
98418dba CW |
9947 | int |
9948 | main () | |
9949 | { | |
9950 | #if XtSpecificationRelease < 6 | |
9951 | fail; | |
9952 | #endif | |
9953 | ||
9954 | ; | |
9955 | return 0; | |
9956 | } | |
9957 | _ACEOF | |
9958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9960 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9961 | ac_status=$? |
35996d22 AS |
9962 | grep -v '^ *+' conftest.er1 >conftest.err |
9963 | rm -f conftest.er1 | |
9964 | cat conftest.err >&5 | |
c0d27fcc | 9965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9966 | (exit $ac_status); } && |
35996d22 AS |
9967 | { ac_try='test -z "$ac_c_werror_flag" |
9968 | || test ! -s conftest.err' | |
9969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9970 | (eval $ac_try) 2>&5 | |
9971 | ac_status=$? | |
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9973 | (exit $ac_status); }; } && | |
9974 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9976 | (eval $ac_try) 2>&5 |
9977 | ac_status=$? | |
c0d27fcc | 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9979 | (exit $ac_status); }; }; then |
9980 | emacs_cv_x11_toolkit_version_6=yes | |
9981 | else | |
9982 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
9984 | ||
98418dba CW |
9985 | emacs_cv_x11_toolkit_version_6=no |
9986 | fi | |
35996d22 AS |
9987 | rm -f conftest.err conftest.$ac_objext \ |
9988 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9989 | fi |
9990 | ||
9991 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
9992 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 9993 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9994 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9995 | |
c0d27fcc | 9996 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9997 | #define HAVE_X11XTR6 1 |
c0d27fcc | 9998 | _ACEOF |
98418dba CW |
9999 | |
10000 | else | |
c0d27fcc | 10001 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
10002 | echo "${ECHO_T}before 6" >&6 |
10003 | fi | |
10004 | ||
10005 | OLDLIBS="$LIBS" | |
10006 | if test x$HAVE_X11XTR6 = xyes; then | |
10007 | LIBS="-lXt -lSM -lICE $LIBS" | |
10008 | else | |
10009 | LIBS="-lXt $LIBS" | |
10010 | fi | |
10011 | ||
c0d27fcc | 10012 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
10013 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
10014 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10016 | else | |
10017 | ac_check_lib_save_LIBS=$LIBS | |
10018 | LIBS="-lXmu $LIBS" | |
10019 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10020 | /* confdefs.h. */ |
10021 | _ACEOF | |
10022 | cat confdefs.h >>conftest.$ac_ext | |
10023 | cat >>conftest.$ac_ext <<_ACEOF | |
10024 | /* end confdefs.h. */ | |
98418dba CW |
10025 | |
10026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10027 | #ifdef __cplusplus | |
10028 | extern "C" | |
10029 | #endif | |
10030 | /* We use char because int might match the return type of a gcc2 | |
10031 | builtin and then its argument prototype would still apply. */ | |
10032 | char XmuConvertStandardSelection (); | |
98418dba CW |
10033 | int |
10034 | main () | |
10035 | { | |
10036 | XmuConvertStandardSelection (); | |
10037 | ; | |
10038 | return 0; | |
10039 | } | |
10040 | _ACEOF | |
10041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10043 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10044 | ac_status=$? |
35996d22 AS |
10045 | grep -v '^ *+' conftest.er1 >conftest.err |
10046 | rm -f conftest.er1 | |
10047 | cat conftest.err >&5 | |
c0d27fcc | 10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10049 | (exit $ac_status); } && |
35996d22 AS |
10050 | { ac_try='test -z "$ac_c_werror_flag" |
10051 | || test ! -s conftest.err' | |
10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10053 | (eval $ac_try) 2>&5 | |
10054 | ac_status=$? | |
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10056 | (exit $ac_status); }; } && | |
10057 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10059 | (eval $ac_try) 2>&5 |
10060 | ac_status=$? | |
c0d27fcc | 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10062 | (exit $ac_status); }; }; then |
10063 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
10064 | else | |
10065 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10066 | sed 's/^/| /' conftest.$ac_ext >&5 |
10067 | ||
98418dba CW |
10068 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
10069 | fi | |
35996d22 AS |
10070 | rm -f conftest.err conftest.$ac_objext \ |
10071 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10072 | LIBS=$ac_check_lib_save_LIBS |
10073 | fi | |
c0d27fcc | 10074 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
10075 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
10076 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 10077 | cat >>confdefs.h <<_ACEOF |
98418dba | 10078 | #define HAVE_LIBXMU 1 |
c0d27fcc | 10079 | _ACEOF |
98418dba CW |
10080 | |
10081 | LIBS="-lXmu $LIBS" | |
10082 | ||
10083 | fi | |
10084 | ||
10085 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
10086 | fi | |
10087 | ||
10088 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
10089 | if test "${HAVE_X11}" = "yes"; then | |
10090 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10091 | ||
c0d27fcc | 10092 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
10093 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
10094 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10096 | else | |
10097 | ac_check_lib_save_LIBS=$LIBS | |
10098 | LIBS="-lXext $LIBS" | |
10099 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10100 | /* confdefs.h. */ |
10101 | _ACEOF | |
10102 | cat confdefs.h >>conftest.$ac_ext | |
10103 | cat >>conftest.$ac_ext <<_ACEOF | |
10104 | /* end confdefs.h. */ | |
98418dba CW |
10105 | |
10106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10107 | #ifdef __cplusplus | |
10108 | extern "C" | |
10109 | #endif | |
10110 | /* We use char because int might match the return type of a gcc2 | |
10111 | builtin and then its argument prototype would still apply. */ | |
10112 | char XShapeQueryExtension (); | |
98418dba CW |
10113 | int |
10114 | main () | |
10115 | { | |
10116 | XShapeQueryExtension (); | |
10117 | ; | |
10118 | return 0; | |
10119 | } | |
10120 | _ACEOF | |
10121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10123 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10124 | ac_status=$? |
35996d22 AS |
10125 | grep -v '^ *+' conftest.er1 >conftest.err |
10126 | rm -f conftest.er1 | |
10127 | cat conftest.err >&5 | |
c0d27fcc | 10128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10129 | (exit $ac_status); } && |
35996d22 AS |
10130 | { ac_try='test -z "$ac_c_werror_flag" |
10131 | || test ! -s conftest.err' | |
10132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10133 | (eval $ac_try) 2>&5 | |
10134 | ac_status=$? | |
10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10136 | (exit $ac_status); }; } && | |
10137 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10139 | (eval $ac_try) 2>&5 |
10140 | ac_status=$? | |
c0d27fcc | 10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10142 | (exit $ac_status); }; }; then |
10143 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
10144 | else | |
10145 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10146 | sed 's/^/| /' conftest.$ac_ext >&5 |
10147 | ||
98418dba CW |
10148 | ac_cv_lib_Xext_XShapeQueryExtension=no |
10149 | fi | |
35996d22 AS |
10150 | rm -f conftest.err conftest.$ac_objext \ |
10151 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10152 | LIBS=$ac_check_lib_save_LIBS |
10153 | fi | |
c0d27fcc | 10154 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
10155 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
10156 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 10157 | cat >>confdefs.h <<_ACEOF |
98418dba | 10158 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 10159 | _ACEOF |
98418dba CW |
10160 | |
10161 | LIBS="-lXext $LIBS" | |
10162 | ||
10163 | fi | |
10164 | ||
10165 | fi | |
10166 | fi | |
10167 | ||
10168 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10169 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
10170 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
10171 | if test "${emacs_cv_lesstif+set}" = set; then | |
10172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10173 | else | |
ae1a998c RS |
10174 | # We put this in CFLAGS temporarily to precede other -I options |
10175 | # that might be in CFLAGS temporarily. | |
10176 | # We put this in CPPFLAGS where it precedes the other -I options. | |
10177 | OLD_CPPFLAGS=$CPPFLAGS | |
10178 | OLD_CFLAGS=$CFLAGS | |
10179 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
10180 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 10181 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10182 | /* confdefs.h. */ |
10183 | _ACEOF | |
10184 | cat confdefs.h >>conftest.$ac_ext | |
10185 | cat >>conftest.$ac_ext <<_ACEOF | |
10186 | /* end confdefs.h. */ | |
8e967cf7 MR |
10187 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
10188 | int | |
10189 | main () | |
10190 | { | |
10191 | int x = 5; | |
10192 | ; | |
10193 | return 0; | |
10194 | } | |
10195 | _ACEOF | |
10196 | rm -f conftest.$ac_objext | |
c0d27fcc | 10197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10198 | (eval $ac_compile) 2>conftest.er1 |
8e967cf7 | 10199 | ac_status=$? |
35996d22 AS |
10200 | grep -v '^ *+' conftest.er1 >conftest.err |
10201 | rm -f conftest.er1 | |
10202 | cat conftest.err >&5 | |
c0d27fcc | 10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 | 10204 | (exit $ac_status); } && |
35996d22 AS |
10205 | { ac_try='test -z "$ac_c_werror_flag" |
10206 | || test ! -s conftest.err' | |
10207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10208 | (eval $ac_try) 2>&5 | |
10209 | ac_status=$? | |
10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10211 | (exit $ac_status); }; } && | |
10212 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
10214 | (eval $ac_try) 2>&5 |
10215 | ac_status=$? | |
c0d27fcc | 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
10217 | (exit $ac_status); }; }; then |
10218 | emacs_cv_lesstif=yes | |
10219 | else | |
10220 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10221 | sed 's/^/| /' conftest.$ac_ext >&5 |
10222 | ||
8e967cf7 MR |
10223 | emacs_cv_lesstif=no |
10224 | fi | |
35996d22 | 10225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8e967cf7 | 10226 | fi |
c0d27fcc | 10227 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
10228 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
10229 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
10230 | # Make sure this -I option remains in CPPFLAGS after it is set |
10231 | # back to REAL_CPPFLAGS. | |
10232 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
10233 | # have those other -I options anyway. Ultimately, having this | |
10234 | # directory ultimately in CPPFLAGS will be enough. | |
10235 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 10236 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
10237 | else |
10238 | CFLAGS=$OLD_CFLAGS | |
10239 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 10240 | fi |
c0d27fcc | 10241 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
10242 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
10243 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10245 | else | |
10246 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10247 | /* confdefs.h. */ |
10248 | _ACEOF | |
10249 | cat confdefs.h >>conftest.$ac_ext | |
10250 | cat >>conftest.$ac_ext <<_ACEOF | |
10251 | /* end confdefs.h. */ | |
98418dba | 10252 | #include <Xm/Xm.h> |
98418dba CW |
10253 | int |
10254 | main () | |
10255 | { | |
10256 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
10257 | int x = 5; | |
10258 | #else | |
10259 | Motif version prior to 2.1. | |
10260 | #endif | |
10261 | ; | |
10262 | return 0; | |
10263 | } | |
10264 | _ACEOF | |
10265 | rm -f conftest.$ac_objext | |
c0d27fcc | 10266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10267 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 10268 | ac_status=$? |
35996d22 AS |
10269 | grep -v '^ *+' conftest.er1 >conftest.err |
10270 | rm -f conftest.er1 | |
10271 | cat conftest.err >&5 | |
c0d27fcc | 10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10273 | (exit $ac_status); } && |
35996d22 AS |
10274 | { ac_try='test -z "$ac_c_werror_flag" |
10275 | || test ! -s conftest.err' | |
10276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10277 | (eval $ac_try) 2>&5 | |
10278 | ac_status=$? | |
10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10280 | (exit $ac_status); }; } && | |
10281 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10283 | (eval $ac_try) 2>&5 |
10284 | ac_status=$? | |
c0d27fcc | 10285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10286 | (exit $ac_status); }; }; then |
10287 | emacs_cv_motif_version_2_1=yes | |
10288 | else | |
10289 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10290 | sed 's/^/| /' conftest.$ac_ext >&5 |
10291 | ||
98418dba CW |
10292 | emacs_cv_motif_version_2_1=no |
10293 | fi | |
35996d22 | 10294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 10295 | fi |
c0d27fcc | 10296 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
10297 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
10298 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
10299 | if test $emacs_cv_motif_version_2_1 = yes; then | |
10300 | HAVE_LIBXP=no | |
b936fae4 | 10301 | |
c0d27fcc | 10302 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10303 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 10304 | _ACEOF |
98418dba | 10305 | |
c0d27fcc | 10306 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
10307 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
10308 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10310 | else | |
10311 | ac_check_lib_save_LIBS=$LIBS | |
10312 | LIBS="-lXp $LIBS" | |
10313 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10314 | /* confdefs.h. */ |
10315 | _ACEOF | |
10316 | cat confdefs.h >>conftest.$ac_ext | |
10317 | cat >>conftest.$ac_ext <<_ACEOF | |
10318 | /* end confdefs.h. */ | |
98418dba CW |
10319 | |
10320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10321 | #ifdef __cplusplus | |
10322 | extern "C" | |
10323 | #endif | |
10324 | /* We use char because int might match the return type of a gcc2 | |
10325 | builtin and then its argument prototype would still apply. */ | |
10326 | char XpCreateContext (); | |
98418dba CW |
10327 | int |
10328 | main () | |
10329 | { | |
10330 | XpCreateContext (); | |
10331 | ; | |
10332 | return 0; | |
10333 | } | |
10334 | _ACEOF | |
10335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10337 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10338 | ac_status=$? |
35996d22 AS |
10339 | grep -v '^ *+' conftest.er1 >conftest.err |
10340 | rm -f conftest.er1 | |
10341 | cat conftest.err >&5 | |
c0d27fcc | 10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10343 | (exit $ac_status); } && |
35996d22 AS |
10344 | { ac_try='test -z "$ac_c_werror_flag" |
10345 | || test ! -s conftest.err' | |
10346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10347 | (eval $ac_try) 2>&5 | |
10348 | ac_status=$? | |
10349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10350 | (exit $ac_status); }; } && | |
10351 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10353 | (eval $ac_try) 2>&5 |
10354 | ac_status=$? | |
c0d27fcc | 10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10356 | (exit $ac_status); }; }; then |
10357 | ac_cv_lib_Xp_XpCreateContext=yes | |
10358 | else | |
10359 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 |
10361 | ||
98418dba CW |
10362 | ac_cv_lib_Xp_XpCreateContext=no |
10363 | fi | |
35996d22 AS |
10364 | rm -f conftest.err conftest.$ac_objext \ |
10365 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10366 | LIBS=$ac_check_lib_save_LIBS |
10367 | fi | |
c0d27fcc | 10368 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
10369 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
10370 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
10371 | HAVE_LIBXP=yes | |
10372 | fi | |
503d2be0 | 10373 | |
98418dba | 10374 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 10375 | |
c0d27fcc | 10376 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10377 | #define HAVE_LIBXP 1 |
c0d27fcc | 10378 | _ACEOF |
503d2be0 | 10379 | |
98418dba CW |
10380 | fi |
10381 | fi | |
10382 | fi | |
10383 | ||
10384 | ### Is -lXaw3d available? | |
10385 | HAVE_XAW3D=no | |
10386 | if test "${HAVE_X11}" = "yes"; then | |
10387 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 10388 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
10389 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
10390 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 10392 | else |
22044edf | 10393 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10394 | /* confdefs.h. */ |
10395 | _ACEOF | |
10396 | cat confdefs.h >>conftest.$ac_ext | |
10397 | cat >>conftest.$ac_ext <<_ACEOF | |
10398 | /* end confdefs.h. */ | |
98418dba | 10399 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 10400 | _ACEOF |
c0d27fcc | 10401 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10402 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10403 | ac_status=$? | |
6bae0ccf | 10404 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
10405 | rm -f conftest.er1 |
10406 | cat conftest.err >&5 | |
c0d27fcc | 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10408 | (exit $ac_status); } >/dev/null; then |
10409 | if test -s conftest.err; then | |
10410 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10411 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
10412 | else |
10413 | ac_cpp_err= | |
10414 | fi | |
10415 | else | |
10416 | ac_cpp_err=yes | |
10417 | fi | |
10418 | if test -z "$ac_cpp_err"; then | |
22044edf | 10419 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 10420 | else |
503d2be0 | 10421 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10422 | sed 's/^/| /' conftest.$ac_ext >&5 |
10423 | ||
22044edf | 10424 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 10425 | fi |
503d2be0 | 10426 | rm -f conftest.err conftest.$ac_ext |
98418dba | 10427 | fi |
c0d27fcc | 10428 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 10429 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 10430 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 10431 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
10432 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
10433 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10435 | else | |
10436 | ac_check_lib_save_LIBS=$LIBS | |
10437 | LIBS="-lXaw3d $LIBS" | |
10438 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10439 | /* confdefs.h. */ |
10440 | _ACEOF | |
10441 | cat confdefs.h >>conftest.$ac_ext | |
10442 | cat >>conftest.$ac_ext <<_ACEOF | |
10443 | /* end confdefs.h. */ | |
98418dba CW |
10444 | |
10445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10446 | #ifdef __cplusplus | |
10447 | extern "C" | |
10448 | #endif | |
10449 | /* We use char because int might match the return type of a gcc2 | |
10450 | builtin and then its argument prototype would still apply. */ | |
10451 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
10452 | int |
10453 | main () | |
10454 | { | |
98418dba | 10455 | XawScrollbarSetThumb (); |
503d2be0 AS |
10456 | ; |
10457 | return 0; | |
10458 | } | |
10459 | _ACEOF | |
10460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10462 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10463 | ac_status=$? |
35996d22 AS |
10464 | grep -v '^ *+' conftest.er1 >conftest.err |
10465 | rm -f conftest.er1 | |
10466 | cat conftest.err >&5 | |
c0d27fcc | 10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10468 | (exit $ac_status); } && |
35996d22 AS |
10469 | { ac_try='test -z "$ac_c_werror_flag" |
10470 | || test ! -s conftest.err' | |
10471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10472 | (eval $ac_try) 2>&5 | |
10473 | ac_status=$? | |
10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10475 | (exit $ac_status); }; } && | |
10476 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10478 | (eval $ac_try) 2>&5 |
10479 | ac_status=$? | |
c0d27fcc | 10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10481 | (exit $ac_status); }; }; then |
98418dba | 10482 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 10483 | else |
503d2be0 | 10484 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10485 | sed 's/^/| /' conftest.$ac_ext >&5 |
10486 | ||
98418dba | 10487 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 10488 | fi |
35996d22 AS |
10489 | rm -f conftest.err conftest.$ac_objext \ |
10490 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10491 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10492 | fi |
c0d27fcc | 10493 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
10494 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
10495 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
10496 | HAVE_XAW3D=yes | |
ba4481b5 | 10497 | fi |
503d2be0 | 10498 | |
ba4481b5 DL |
10499 | fi |
10500 | ||
c0d27fcc | 10501 | |
98418dba | 10502 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 10503 | |
c0d27fcc | 10504 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10505 | #define HAVE_XAW3D 1 |
c0d27fcc | 10506 | _ACEOF |
98418dba | 10507 | |
ba4481b5 | 10508 | fi |
98418dba | 10509 | fi |
ba4481b5 DL |
10510 | fi |
10511 | ||
c0d27fcc MR |
10512 | |
10513 | ||
98418dba CW |
10514 | USE_TOOLKIT_SCROLL_BARS=no |
10515 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
10516 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10517 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10518 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10519 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10520 | _ACEOF |
98418dba CW |
10521 | |
10522 | HAVE_XAW3D=no | |
10523 | USE_TOOLKIT_SCROLL_BARS=yes | |
10524 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 10525 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10526 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10527 | _ACEOF |
98418dba CW |
10528 | |
10529 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 10530 | fi |
488dd4c4 JD |
10531 | elif test "${HAVE_GTK}" = "yes"; then |
10532 | cat >>confdefs.h <<\_ACEOF | |
10533 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
10534 | _ACEOF | |
10535 | ||
10536 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
10537 | fi |
10538 | fi | |
10539 | ||
abd39b57 | 10540 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
10541 | /* confdefs.h. */ |
10542 | _ACEOF | |
10543 | cat confdefs.h >>conftest.$ac_ext | |
10544 | cat >>conftest.$ac_ext <<_ACEOF | |
10545 | /* end confdefs.h. */ | |
10546 | ||
10547 | #include <X11/Xlib.h> | |
10548 | #include <X11/Xresource.h> | |
10549 | int | |
10550 | main () | |
10551 | { | |
10552 | XIMProc callback; | |
10553 | ; | |
10554 | return 0; | |
10555 | } | |
10556 | _ACEOF | |
10557 | rm -f conftest.$ac_objext | |
10558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10559 | (eval $ac_compile) 2>conftest.er1 |
abd39b57 | 10560 | ac_status=$? |
35996d22 AS |
10561 | grep -v '^ *+' conftest.er1 >conftest.err |
10562 | rm -f conftest.er1 | |
10563 | cat conftest.err >&5 | |
abd39b57 AC |
10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10565 | (exit $ac_status); } && | |
35996d22 AS |
10566 | { ac_try='test -z "$ac_c_werror_flag" |
10567 | || test ! -s conftest.err' | |
10568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10569 | (eval $ac_try) 2>&5 | |
10570 | ac_status=$? | |
10571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10572 | (exit $ac_status); }; } && | |
10573 | { ac_try='test -s conftest.$ac_objext' | |
abd39b57 AC |
10574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10575 | (eval $ac_try) 2>&5 | |
10576 | ac_status=$? | |
10577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10578 | (exit $ac_status); }; }; then | |
10579 | HAVE_XIM=yes | |
10580 | ||
10581 | cat >>confdefs.h <<\_ACEOF | |
10582 | #define HAVE_XIM 1 | |
10583 | _ACEOF | |
10584 | ||
10585 | else | |
10586 | echo "$as_me: failed program was:" >&5 | |
10587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10588 | ||
10589 | HAVE_XIM=no | |
10590 | fi | |
35996d22 | 10591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
abd39b57 | 10592 | |
c0d27fcc | 10593 | |
98418dba | 10594 | if test "${with_xim}" != "no"; then |
b936fae4 | 10595 | |
c0d27fcc | 10596 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10597 | #define USE_XIM 1 |
c0d27fcc | 10598 | _ACEOF |
98418dba | 10599 | |
793fa0d7 | 10600 | fi |
abd39b57 AC |
10601 | |
10602 | ||
10603 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
10604 | late_CFLAGS=$CFLAGS |
10605 | if test "$GCC" = yes; then | |
10606 | CFLAGS="$CFLAGS --pedantic-errors" | |
10607 | fi | |
cffcede7 | 10608 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10609 | /* confdefs.h. */ |
10610 | _ACEOF | |
10611 | cat confdefs.h >>conftest.$ac_ext | |
10612 | cat >>conftest.$ac_ext <<_ACEOF | |
10613 | /* end confdefs.h. */ | |
cffcede7 JD |
10614 | |
10615 | #include <X11/Xlib.h> | |
10616 | #include <X11/Xresource.h> | |
10617 | int | |
10618 | main () | |
10619 | { | |
10620 | Display *display; | |
10621 | XrmDatabase db; | |
10622 | char *res_name; | |
10623 | char *res_class; | |
10624 | XIMProc callback; | |
10625 | XPointer *client_data; | |
849d80cf DL |
10626 | #ifndef __GNUC__ |
10627 | /* If we're not using GCC, it's probably not XFree86, and this is | |
10628 | probably right, but we can't use something like --pedantic-errors. */ | |
10629 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
10630 | char*, XIMProc, XPointer*); | |
10631 | #endif | |
cffcede7 JD |
10632 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
10633 | client_data); | |
10634 | ; | |
10635 | return 0; | |
10636 | } | |
10637 | _ACEOF | |
10638 | rm -f conftest.$ac_objext | |
10639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10640 | (eval $ac_compile) 2>conftest.er1 |
cffcede7 | 10641 | ac_status=$? |
35996d22 AS |
10642 | grep -v '^ *+' conftest.er1 >conftest.err |
10643 | rm -f conftest.er1 | |
10644 | cat conftest.err >&5 | |
cffcede7 JD |
10645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10646 | (exit $ac_status); } && | |
35996d22 AS |
10647 | { ac_try='test -z "$ac_c_werror_flag" |
10648 | || test ! -s conftest.err' | |
10649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10650 | (eval $ac_try) 2>&5 | |
10651 | ac_status=$? | |
10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10653 | (exit $ac_status); }; } && | |
10654 | { ac_try='test -s conftest.$ac_objext' | |
cffcede7 JD |
10655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10656 | (eval $ac_try) 2>&5 | |
10657 | ac_status=$? | |
10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10659 | (exit $ac_status); }; }; then | |
10660 | emacs_cv_arg6_star=yes | |
10661 | else | |
10662 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10663 | sed 's/^/| /' conftest.$ac_ext >&5 |
10664 | ||
cffcede7 | 10665 | fi |
35996d22 | 10666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cffcede7 JD |
10667 | |
10668 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 10669 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10670 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
10671 | _ACEOF | |
10672 | ||
10673 | else | |
f57bd967 | 10674 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10675 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
10676 | _ACEOF | |
10677 | ||
10678 | fi | |
849d80cf | 10679 | CFLAGS=$late_CFLAGS |
98418dba CW |
10680 | fi |
10681 | ||
10682 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
10683 | HAVE_XPM=no | |
10684 | if test "${HAVE_X11}" = "yes"; then | |
10685 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
10686 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
10687 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
10688 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
10689 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10691 | fi |
10692 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
10693 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 10694 | else |
c0d27fcc MR |
10695 | # Is the header compilable? |
10696 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
10697 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
10698 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10699 | /* confdefs.h. */ |
10700 | _ACEOF | |
10701 | cat confdefs.h >>conftest.$ac_ext | |
10702 | cat >>conftest.$ac_ext <<_ACEOF | |
10703 | /* end confdefs.h. */ | |
c0d27fcc MR |
10704 | $ac_includes_default |
10705 | #include <X11/xpm.h> | |
10706 | _ACEOF | |
10707 | rm -f conftest.$ac_objext | |
10708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10709 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10710 | ac_status=$? |
35996d22 AS |
10711 | grep -v '^ *+' conftest.er1 >conftest.err |
10712 | rm -f conftest.er1 | |
10713 | cat conftest.err >&5 | |
c0d27fcc MR |
10714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10715 | (exit $ac_status); } && | |
35996d22 AS |
10716 | { ac_try='test -z "$ac_c_werror_flag" |
10717 | || test ! -s conftest.err' | |
10718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10719 | (eval $ac_try) 2>&5 | |
10720 | ac_status=$? | |
10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10722 | (exit $ac_status); }; } && | |
10723 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10725 | (eval $ac_try) 2>&5 | |
10726 | ac_status=$? | |
10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10728 | (exit $ac_status); }; }; then | |
10729 | ac_header_compiler=yes | |
10730 | else | |
10731 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
10733 | ||
c0d27fcc MR |
10734 | ac_header_compiler=no |
10735 | fi | |
35996d22 | 10736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10737 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10738 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10739 | ||
10740 | # Is the header present? | |
10741 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
10742 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
10743 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10744 | /* confdefs.h. */ |
10745 | _ACEOF | |
10746 | cat confdefs.h >>conftest.$ac_ext | |
10747 | cat >>conftest.$ac_ext <<_ACEOF | |
10748 | /* end confdefs.h. */ | |
98418dba CW |
10749 | #include <X11/xpm.h> |
10750 | _ACEOF | |
c0d27fcc | 10751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10753 | ac_status=$? | |
6bae0ccf | 10754 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10755 | rm -f conftest.er1 |
10756 | cat conftest.err >&5 | |
c0d27fcc | 10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10758 | (exit $ac_status); } >/dev/null; then |
10759 | if test -s conftest.err; then | |
10760 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
10762 | else |
10763 | ac_cpp_err= | |
10764 | fi | |
10765 | else | |
10766 | ac_cpp_err=yes | |
10767 | fi | |
10768 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10769 | ac_header_preproc=yes |
98418dba CW |
10770 | else |
10771 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10772 | sed 's/^/| /' conftest.$ac_ext >&5 |
10773 | ||
c0d27fcc | 10774 | ac_header_preproc=no |
98418dba CW |
10775 | fi |
10776 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10777 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10778 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10779 | ||
10780 | # So? What about this header? | |
35996d22 AS |
10781 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10782 | yes:no: ) | |
c0d27fcc MR |
10783 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10784 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
10785 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
10786 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
10787 | ac_header_preproc=yes | |
19650fd6 | 10788 | ;; |
35996d22 | 10789 | no:yes:* ) |
c0d27fcc MR |
10790 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 |
10791 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
10792 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
10793 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
10794 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
10795 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
10796 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10797 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 10798 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10799 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
10800 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
10801 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
10802 | ( |
10803 | cat <<\_ASBOX | |
35996d22 AS |
10804 | ## ------------------------------------------ ## |
10805 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10806 | ## ------------------------------------------ ## | |
19650fd6 AS |
10807 | _ASBOX |
10808 | ) | | |
10809 | sed "s/^/$as_me: WARNING: /" >&2 | |
10810 | ;; | |
c0d27fcc MR |
10811 | esac |
10812 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
10813 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
10814 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10816 | else | |
10817 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 10818 | fi |
c0d27fcc | 10819 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 10820 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
10821 | |
10822 | fi | |
98418dba | 10823 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 10824 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
10825 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
10826 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10828 | else |
98418dba CW |
10829 | ac_check_lib_save_LIBS=$LIBS |
10830 | LIBS="-lXpm -lX11 $LIBS" | |
10831 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10832 | /* confdefs.h. */ |
10833 | _ACEOF | |
10834 | cat confdefs.h >>conftest.$ac_ext | |
10835 | cat >>conftest.$ac_ext <<_ACEOF | |
10836 | /* end confdefs.h. */ | |
98418dba | 10837 | |
ba4481b5 | 10838 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10839 | #ifdef __cplusplus |
10840 | extern "C" | |
10841 | #endif | |
ba4481b5 | 10842 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10843 | builtin and then its argument prototype would still apply. */ |
98418dba | 10844 | char XpmReadFileToPixmap (); |
503d2be0 AS |
10845 | int |
10846 | main () | |
10847 | { | |
98418dba | 10848 | XpmReadFileToPixmap (); |
503d2be0 AS |
10849 | ; |
10850 | return 0; | |
10851 | } | |
10852 | _ACEOF | |
10853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10855 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10856 | ac_status=$? |
35996d22 AS |
10857 | grep -v '^ *+' conftest.er1 >conftest.err |
10858 | rm -f conftest.er1 | |
10859 | cat conftest.err >&5 | |
c0d27fcc | 10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10861 | (exit $ac_status); } && |
35996d22 AS |
10862 | { ac_try='test -z "$ac_c_werror_flag" |
10863 | || test ! -s conftest.err' | |
10864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10865 | (eval $ac_try) 2>&5 | |
10866 | ac_status=$? | |
10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10868 | (exit $ac_status); }; } && | |
10869 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10871 | (eval $ac_try) 2>&5 |
10872 | ac_status=$? | |
c0d27fcc | 10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10874 | (exit $ac_status); }; }; then |
98418dba | 10875 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
10876 | else |
10877 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
10879 | ||
98418dba | 10880 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 10881 | fi |
35996d22 AS |
10882 | rm -f conftest.err conftest.$ac_objext \ |
10883 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10884 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 10885 | fi |
c0d27fcc | 10886 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
10887 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
10888 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
10889 | HAVE_XPM=yes | |
ba4481b5 DL |
10890 | fi |
10891 | ||
98418dba CW |
10892 | fi |
10893 | ||
c0d27fcc | 10894 | |
98418dba | 10895 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10896 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
10897 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
10898 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10899 | /* confdefs.h. */ |
10900 | _ACEOF | |
10901 | cat confdefs.h >>conftest.$ac_ext | |
10902 | cat >>conftest.$ac_ext <<_ACEOF | |
10903 | /* end confdefs.h. */ | |
98418dba CW |
10904 | #include "X11/xpm.h" |
10905 | #ifndef XpmReturnAllocPixels | |
10906 | no_return_alloc_pixels | |
503d2be0 | 10907 | #endif |
ba4481b5 | 10908 | |
98418dba CW |
10909 | _ACEOF |
10910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10911 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
10912 | HAVE_XPM=no |
10913 | else | |
10914 | HAVE_XPM=yes | |
10915 | fi | |
10916 | rm -f conftest* | |
ba4481b5 | 10917 | |
c0d27fcc | 10918 | |
98418dba | 10919 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10920 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
10921 | echo "${ECHO_T}yes" >&6 |
10922 | else | |
c0d27fcc | 10923 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
10924 | echo "${ECHO_T}no" >&6 |
10925 | fi | |
10926 | fi | |
10927 | fi | |
10928 | ||
10929 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 10930 | |
c0d27fcc | 10931 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10932 | #define HAVE_XPM 1 |
c0d27fcc | 10933 | _ACEOF |
98418dba CW |
10934 | |
10935 | fi | |
10936 | fi | |
10937 | ||
10938 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
10939 | HAVE_JPEG=no | |
10940 | if test "${HAVE_X11}" = "yes"; then | |
10941 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
10942 | if test "${ac_cv_header_jerror_h+set}" = set; then |
10943 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
10944 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
10945 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10947 | fi |
10948 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
10949 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 10950 | else |
c0d27fcc MR |
10951 | # Is the header compilable? |
10952 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
10953 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
10954 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10955 | /* confdefs.h. */ |
10956 | _ACEOF | |
10957 | cat confdefs.h >>conftest.$ac_ext | |
10958 | cat >>conftest.$ac_ext <<_ACEOF | |
10959 | /* end confdefs.h. */ | |
c0d27fcc MR |
10960 | $ac_includes_default |
10961 | #include <jerror.h> | |
10962 | _ACEOF | |
10963 | rm -f conftest.$ac_objext | |
10964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10965 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10966 | ac_status=$? |
35996d22 AS |
10967 | grep -v '^ *+' conftest.er1 >conftest.err |
10968 | rm -f conftest.er1 | |
10969 | cat conftest.err >&5 | |
c0d27fcc MR |
10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10971 | (exit $ac_status); } && | |
35996d22 AS |
10972 | { ac_try='test -z "$ac_c_werror_flag" |
10973 | || test ! -s conftest.err' | |
10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10975 | (eval $ac_try) 2>&5 | |
10976 | ac_status=$? | |
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10978 | (exit $ac_status); }; } && | |
10979 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10981 | (eval $ac_try) 2>&5 | |
10982 | ac_status=$? | |
10983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10984 | (exit $ac_status); }; }; then | |
10985 | ac_header_compiler=yes | |
10986 | else | |
10987 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10988 | sed 's/^/| /' conftest.$ac_ext >&5 |
10989 | ||
c0d27fcc MR |
10990 | ac_header_compiler=no |
10991 | fi | |
35996d22 | 10992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10995 | ||
10996 | # Is the header present? | |
10997 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
10998 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
10999 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11000 | /* confdefs.h. */ |
11001 | _ACEOF | |
11002 | cat confdefs.h >>conftest.$ac_ext | |
11003 | cat >>conftest.$ac_ext <<_ACEOF | |
11004 | /* end confdefs.h. */ | |
98418dba CW |
11005 | #include <jerror.h> |
11006 | _ACEOF | |
c0d27fcc | 11007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11009 | ac_status=$? | |
6bae0ccf | 11010 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11011 | rm -f conftest.er1 |
11012 | cat conftest.err >&5 | |
c0d27fcc | 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11014 | (exit $ac_status); } >/dev/null; then |
11015 | if test -s conftest.err; then | |
11016 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11018 | else |
11019 | ac_cpp_err= | |
11020 | fi | |
11021 | else | |
11022 | ac_cpp_err=yes | |
503d2be0 | 11023 | fi |
98418dba | 11024 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 11025 | ac_header_preproc=yes |
ba4481b5 | 11026 | else |
98418dba | 11027 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11028 | sed 's/^/| /' conftest.$ac_ext >&5 |
11029 | ||
c0d27fcc | 11030 | ac_header_preproc=no |
98418dba CW |
11031 | fi |
11032 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11035 | ||
11036 | # So? What about this header? | |
35996d22 AS |
11037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11038 | yes:no: ) | |
c0d27fcc MR |
11039 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11040 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11041 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
11042 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
11043 | ac_header_preproc=yes | |
19650fd6 | 11044 | ;; |
35996d22 | 11045 | no:yes:* ) |
c0d27fcc MR |
11046 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
11047 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11048 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
11049 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
11050 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
11051 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
11052 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11053 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11054 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11055 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11056 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
11057 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11058 | ( |
11059 | cat <<\_ASBOX | |
35996d22 AS |
11060 | ## ------------------------------------------ ## |
11061 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11062 | ## ------------------------------------------ ## | |
19650fd6 AS |
11063 | _ASBOX |
11064 | ) | | |
11065 | sed "s/^/$as_me: WARNING: /" >&2 | |
11066 | ;; | |
c0d27fcc MR |
11067 | esac |
11068 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
11069 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
11070 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11072 | else | |
11073 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 11074 | fi |
c0d27fcc | 11075 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 11076 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
11077 | |
11078 | fi | |
98418dba | 11079 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 11080 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
11081 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
11082 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 11083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11084 | else |
98418dba CW |
11085 | ac_check_lib_save_LIBS=$LIBS |
11086 | LIBS="-ljpeg $LIBS" | |
11087 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11088 | /* confdefs.h. */ |
11089 | _ACEOF | |
11090 | cat confdefs.h >>conftest.$ac_ext | |
11091 | cat >>conftest.$ac_ext <<_ACEOF | |
11092 | /* end confdefs.h. */ | |
98418dba CW |
11093 | |
11094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11095 | #ifdef __cplusplus | |
11096 | extern "C" | |
11097 | #endif | |
11098 | /* We use char because int might match the return type of a gcc2 | |
11099 | builtin and then its argument prototype would still apply. */ | |
11100 | char jpeg_destroy_compress (); | |
503d2be0 AS |
11101 | int |
11102 | main () | |
11103 | { | |
98418dba | 11104 | jpeg_destroy_compress (); |
503d2be0 AS |
11105 | ; |
11106 | return 0; | |
11107 | } | |
11108 | _ACEOF | |
11109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11111 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11112 | ac_status=$? |
35996d22 AS |
11113 | grep -v '^ *+' conftest.er1 >conftest.err |
11114 | rm -f conftest.er1 | |
11115 | cat conftest.err >&5 | |
c0d27fcc | 11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11117 | (exit $ac_status); } && |
35996d22 AS |
11118 | { ac_try='test -z "$ac_c_werror_flag" |
11119 | || test ! -s conftest.err' | |
11120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11121 | (eval $ac_try) 2>&5 | |
11122 | ac_status=$? | |
11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11124 | (exit $ac_status); }; } && | |
11125 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11127 | (eval $ac_try) 2>&5 |
11128 | ac_status=$? | |
c0d27fcc | 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11130 | (exit $ac_status); }; }; then |
98418dba | 11131 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 11132 | else |
503d2be0 | 11133 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11134 | sed 's/^/| /' conftest.$ac_ext >&5 |
11135 | ||
98418dba | 11136 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 11137 | fi |
35996d22 AS |
11138 | rm -f conftest.err conftest.$ac_objext \ |
11139 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11140 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 11141 | fi |
c0d27fcc | 11142 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
11143 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
11144 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
11145 | HAVE_JPEG=yes | |
ba4481b5 | 11146 | fi |
98418dba | 11147 | |
ba4481b5 | 11148 | fi |
98418dba | 11149 | |
c0d27fcc | 11150 | |
ba4481b5 | 11151 | fi |
ba4481b5 | 11152 | |
c0d27fcc | 11153 | |
98418dba | 11154 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 11155 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11156 | #define HAVE_JPEG 1 |
c0d27fcc | 11157 | _ACEOF |
98418dba CW |
11158 | |
11159 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11160 | /* confdefs.h. */ |
11161 | _ACEOF | |
11162 | cat confdefs.h >>conftest.$ac_ext | |
11163 | cat >>conftest.$ac_ext <<_ACEOF | |
11164 | /* end confdefs.h. */ | |
22044edf | 11165 | #include <jpeglib.h> |
98418dba CW |
11166 | version=JPEG_LIB_VERSION |
11167 | ||
11168 | _ACEOF | |
11169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 11170 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 11171 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11172 | #define HAVE_JPEG 1 |
c0d27fcc | 11173 | _ACEOF |
ba4481b5 | 11174 | |
98418dba | 11175 | else |
c0d27fcc | 11176 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
11177 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
11178 | HAVE_JPEG=no | |
ba4481b5 | 11179 | fi |
98418dba | 11180 | rm -f conftest* |
ba4481b5 | 11181 | |
98418dba CW |
11182 | fi |
11183 | fi | |
503d2be0 | 11184 | |
98418dba CW |
11185 | ### Use -lpng if available, unless `--with-png=no'. |
11186 | HAVE_PNG=no | |
11187 | if test "${HAVE_X11}" = "yes"; then | |
11188 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
11189 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
11190 | # in /usr/include/libpng. | |
11191 | ||
11192 | ||
11193 | for ac_header in png.h libpng/png.h | |
11194 | do | |
11195 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 11201 | fi |
f57bd967 DL |
11202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
503d2be0 | 11204 | else |
c0d27fcc | 11205 | # Is the header compilable? |
f57bd967 DL |
11206 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11207 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
c0d27fcc | 11208 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11209 | /* confdefs.h. */ |
11210 | _ACEOF | |
11211 | cat confdefs.h >>conftest.$ac_ext | |
11212 | cat >>conftest.$ac_ext <<_ACEOF | |
11213 | /* end confdefs.h. */ | |
c0d27fcc | 11214 | $ac_includes_default |
f57bd967 | 11215 | #include <$ac_header> |
c0d27fcc MR |
11216 | _ACEOF |
11217 | rm -f conftest.$ac_objext | |
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11219 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11220 | ac_status=$? |
35996d22 AS |
11221 | grep -v '^ *+' conftest.er1 >conftest.err |
11222 | rm -f conftest.er1 | |
11223 | cat conftest.err >&5 | |
c0d27fcc MR |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11225 | (exit $ac_status); } && | |
35996d22 AS |
11226 | { ac_try='test -z "$ac_c_werror_flag" |
11227 | || test ! -s conftest.err' | |
11228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11229 | (eval $ac_try) 2>&5 | |
11230 | ac_status=$? | |
11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11232 | (exit $ac_status); }; } && | |
11233 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11235 | (eval $ac_try) 2>&5 | |
11236 | ac_status=$? | |
11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11238 | (exit $ac_status); }; }; then | |
11239 | ac_header_compiler=yes | |
11240 | else | |
11241 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11242 | sed 's/^/| /' conftest.$ac_ext >&5 |
11243 | ||
c0d27fcc MR |
11244 | ac_header_compiler=no |
11245 | fi | |
35996d22 | 11246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11247 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11248 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11249 | ||
11250 | # Is the header present? | |
f57bd967 DL |
11251 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11252 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
c0d27fcc | 11253 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11254 | /* confdefs.h. */ |
11255 | _ACEOF | |
11256 | cat confdefs.h >>conftest.$ac_ext | |
11257 | cat >>conftest.$ac_ext <<_ACEOF | |
11258 | /* end confdefs.h. */ | |
f57bd967 | 11259 | #include <$ac_header> |
503d2be0 | 11260 | _ACEOF |
c0d27fcc | 11261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11263 | ac_status=$? | |
6bae0ccf | 11264 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11265 | rm -f conftest.er1 |
11266 | cat conftest.err >&5 | |
c0d27fcc | 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11268 | (exit $ac_status); } >/dev/null; then |
11269 | if test -s conftest.err; then | |
11270 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
11272 | else |
11273 | ac_cpp_err= | |
11274 | fi | |
11275 | else | |
11276 | ac_cpp_err=yes | |
11277 | fi | |
11278 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11279 | ac_header_preproc=yes |
503d2be0 AS |
11280 | else |
11281 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
11283 | ||
c0d27fcc | 11284 | ac_header_preproc=no |
ba4481b5 | 11285 | fi |
503d2be0 | 11286 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11287 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11288 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11289 | ||
11290 | # So? What about this header? | |
35996d22 AS |
11291 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11292 | yes:no: ) | |
f57bd967 DL |
11293 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11294 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11296 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11297 | ac_header_preproc=yes | |
19650fd6 | 11298 | ;; |
35996d22 | 11299 | no:yes:* ) |
f57bd967 DL |
11300 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11301 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
11302 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11303 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11304 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11305 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11306 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11307 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 11308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11309 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11310 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11311 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11312 | ( |
11313 | cat <<\_ASBOX | |
35996d22 AS |
11314 | ## ------------------------------------------ ## |
11315 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11316 | ## ------------------------------------------ ## | |
19650fd6 AS |
11317 | _ASBOX |
11318 | ) | | |
11319 | sed "s/^/$as_me: WARNING: /" >&2 | |
11320 | ;; | |
c0d27fcc | 11321 | esac |
f57bd967 DL |
11322 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
c0d27fcc MR |
11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11326 | else | |
35996d22 | 11327 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 DL |
11328 | fi |
11329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11331 | ||
ba4481b5 | 11332 | fi |
f57bd967 DL |
11333 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11334 | cat >>confdefs.h <<_ACEOF | |
11335 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11336 | _ACEOF | |
c0d27fcc MR |
11337 | |
11338 | fi | |
f57bd967 DL |
11339 | |
11340 | done | |
11341 | ||
11342 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
11343 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
98418dba CW |
11344 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
11345 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 11346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11347 | else |
98418dba CW |
11348 | ac_check_lib_save_LIBS=$LIBS |
11349 | LIBS="-lpng -lz -lm $LIBS" | |
11350 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11351 | /* confdefs.h. */ |
11352 | _ACEOF | |
11353 | cat confdefs.h >>conftest.$ac_ext | |
11354 | cat >>conftest.$ac_ext <<_ACEOF | |
11355 | /* end confdefs.h. */ | |
98418dba | 11356 | |
ba4481b5 | 11357 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11358 | #ifdef __cplusplus |
11359 | extern "C" | |
11360 | #endif | |
ba4481b5 | 11361 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11362 | builtin and then its argument prototype would still apply. */ |
98418dba | 11363 | char png_get_channels (); |
503d2be0 AS |
11364 | int |
11365 | main () | |
11366 | { | |
98418dba | 11367 | png_get_channels (); |
503d2be0 AS |
11368 | ; |
11369 | return 0; | |
11370 | } | |
11371 | _ACEOF | |
11372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11374 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11375 | ac_status=$? |
35996d22 AS |
11376 | grep -v '^ *+' conftest.er1 >conftest.err |
11377 | rm -f conftest.er1 | |
11378 | cat conftest.err >&5 | |
c0d27fcc | 11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11380 | (exit $ac_status); } && |
35996d22 AS |
11381 | { ac_try='test -z "$ac_c_werror_flag" |
11382 | || test ! -s conftest.err' | |
11383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11384 | (eval $ac_try) 2>&5 | |
11385 | ac_status=$? | |
11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11387 | (exit $ac_status); }; } && | |
11388 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11390 | (eval $ac_try) 2>&5 |
11391 | ac_status=$? | |
c0d27fcc | 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11393 | (exit $ac_status); }; }; then |
98418dba | 11394 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 11395 | else |
98418dba | 11396 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11397 | sed 's/^/| /' conftest.$ac_ext >&5 |
11398 | ||
98418dba | 11399 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 11400 | fi |
35996d22 AS |
11401 | rm -f conftest.err conftest.$ac_objext \ |
11402 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11403 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 11404 | fi |
c0d27fcc | 11405 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
11406 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
11407 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
11408 | HAVE_PNG=yes | |
73b77ee5 | 11409 | fi |
503d2be0 | 11410 | |
f57bd967 | 11411 | fi |
98418dba CW |
11412 | fi |
11413 | ||
11414 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 11415 | |
c0d27fcc | 11416 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11417 | #define HAVE_PNG 1 |
c0d27fcc | 11418 | _ACEOF |
73b77ee5 | 11419 | |
98418dba | 11420 | fi |
73b77ee5 GM |
11421 | fi |
11422 | ||
98418dba CW |
11423 | ### Use -ltiff if available, unless `--with-tiff=no'. |
11424 | HAVE_TIFF=no | |
11425 | if test "${HAVE_X11}" = "yes"; then | |
11426 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
11427 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
11428 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
11429 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
11430 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11432 | fi |
11433 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
11434 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 11435 | else |
c0d27fcc MR |
11436 | # Is the header compilable? |
11437 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
11438 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
11439 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11440 | /* confdefs.h. */ |
11441 | _ACEOF | |
11442 | cat confdefs.h >>conftest.$ac_ext | |
11443 | cat >>conftest.$ac_ext <<_ACEOF | |
11444 | /* end confdefs.h. */ | |
c0d27fcc MR |
11445 | $ac_includes_default |
11446 | #include <tiffio.h> | |
11447 | _ACEOF | |
11448 | rm -f conftest.$ac_objext | |
11449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11450 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11451 | ac_status=$? |
35996d22 AS |
11452 | grep -v '^ *+' conftest.er1 >conftest.err |
11453 | rm -f conftest.er1 | |
11454 | cat conftest.err >&5 | |
c0d27fcc MR |
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11456 | (exit $ac_status); } && | |
35996d22 AS |
11457 | { ac_try='test -z "$ac_c_werror_flag" |
11458 | || test ! -s conftest.err' | |
11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11460 | (eval $ac_try) 2>&5 | |
11461 | ac_status=$? | |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11463 | (exit $ac_status); }; } && | |
11464 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11466 | (eval $ac_try) 2>&5 | |
11467 | ac_status=$? | |
11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11469 | (exit $ac_status); }; }; then | |
11470 | ac_header_compiler=yes | |
11471 | else | |
11472 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11473 | sed 's/^/| /' conftest.$ac_ext >&5 |
11474 | ||
c0d27fcc MR |
11475 | ac_header_compiler=no |
11476 | fi | |
35996d22 | 11477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11478 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11479 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11480 | ||
11481 | # Is the header present? | |
11482 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
11483 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
11484 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11485 | /* confdefs.h. */ |
11486 | _ACEOF | |
11487 | cat confdefs.h >>conftest.$ac_ext | |
11488 | cat >>conftest.$ac_ext <<_ACEOF | |
11489 | /* end confdefs.h. */ | |
98418dba CW |
11490 | #include <tiffio.h> |
11491 | _ACEOF | |
c0d27fcc | 11492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11494 | ac_status=$? | |
6bae0ccf | 11495 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11496 | rm -f conftest.er1 |
11497 | cat conftest.err >&5 | |
c0d27fcc | 11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11499 | (exit $ac_status); } >/dev/null; then |
11500 | if test -s conftest.err; then | |
11501 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11502 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11503 | else |
11504 | ac_cpp_err= | |
11505 | fi | |
11506 | else | |
11507 | ac_cpp_err=yes | |
11508 | fi | |
11509 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11510 | ac_header_preproc=yes |
98418dba CW |
11511 | else |
11512 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11513 | sed 's/^/| /' conftest.$ac_ext >&5 |
11514 | ||
c0d27fcc | 11515 | ac_header_preproc=no |
98418dba CW |
11516 | fi |
11517 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11518 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11519 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11520 | ||
11521 | # So? What about this header? | |
35996d22 AS |
11522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11523 | yes:no: ) | |
c0d27fcc MR |
11524 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11525 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11526 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
11527 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
11528 | ac_header_preproc=yes | |
19650fd6 | 11529 | ;; |
35996d22 | 11530 | no:yes:* ) |
c0d27fcc MR |
11531 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
11532 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11533 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
11534 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
11535 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
11536 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
11537 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11538 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11539 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11540 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11541 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
11542 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11543 | ( |
11544 | cat <<\_ASBOX | |
35996d22 AS |
11545 | ## ------------------------------------------ ## |
11546 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11547 | ## ------------------------------------------ ## | |
19650fd6 AS |
11548 | _ASBOX |
11549 | ) | | |
11550 | sed "s/^/$as_me: WARNING: /" >&2 | |
11551 | ;; | |
c0d27fcc MR |
11552 | esac |
11553 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
11554 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
11555 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11557 | else | |
11558 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 11559 | fi |
c0d27fcc | 11560 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 11561 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
11562 | |
11563 | fi | |
98418dba CW |
11564 | if test $ac_cv_header_tiffio_h = yes; then |
11565 | tifflibs="-lz -lm" | |
11566 | # At least one tiff package requires the jpeg library. | |
11567 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 11568 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
11569 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
11570 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 11571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11572 | else |
503d2be0 | 11573 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11574 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 11575 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11576 | /* confdefs.h. */ |
11577 | _ACEOF | |
11578 | cat confdefs.h >>conftest.$ac_ext | |
11579 | cat >>conftest.$ac_ext <<_ACEOF | |
11580 | /* end confdefs.h. */ | |
503d2be0 | 11581 | |
73b77ee5 | 11582 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11583 | #ifdef __cplusplus |
11584 | extern "C" | |
11585 | #endif | |
73b77ee5 | 11586 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11587 | builtin and then its argument prototype would still apply. */ |
98418dba | 11588 | char TIFFGetVersion (); |
503d2be0 AS |
11589 | int |
11590 | main () | |
11591 | { | |
98418dba | 11592 | TIFFGetVersion (); |
503d2be0 AS |
11593 | ; |
11594 | return 0; | |
11595 | } | |
11596 | _ACEOF | |
11597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11599 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11600 | ac_status=$? |
35996d22 AS |
11601 | grep -v '^ *+' conftest.er1 >conftest.err |
11602 | rm -f conftest.er1 | |
11603 | cat conftest.err >&5 | |
c0d27fcc | 11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11605 | (exit $ac_status); } && |
35996d22 AS |
11606 | { ac_try='test -z "$ac_c_werror_flag" |
11607 | || test ! -s conftest.err' | |
11608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11609 | (eval $ac_try) 2>&5 | |
11610 | ac_status=$? | |
11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11612 | (exit $ac_status); }; } && | |
11613 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11615 | (eval $ac_try) 2>&5 |
11616 | ac_status=$? | |
c0d27fcc | 11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11618 | (exit $ac_status); }; }; then |
98418dba | 11619 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
11620 | else |
11621 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11622 | sed 's/^/| /' conftest.$ac_ext >&5 |
11623 | ||
98418dba | 11624 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 11625 | fi |
35996d22 AS |
11626 | rm -f conftest.err conftest.$ac_objext \ |
11627 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
11628 | LIBS=$ac_check_lib_save_LIBS |
11629 | fi | |
c0d27fcc | 11630 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
11631 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
11632 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
11633 | HAVE_TIFF=yes | |
11634 | fi | |
11635 | ||
11636 | fi | |
73b77ee5 | 11637 | |
c0d27fcc | 11638 | |
98418dba CW |
11639 | fi |
11640 | ||
11641 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 11642 | |
c0d27fcc | 11643 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11644 | #define HAVE_TIFF 1 |
c0d27fcc | 11645 | _ACEOF |
98418dba CW |
11646 | |
11647 | fi | |
73b77ee5 GM |
11648 | fi |
11649 | ||
98418dba CW |
11650 | ### Use -lgif if available, unless `--with-gif=no'. |
11651 | HAVE_GIF=no | |
11652 | if test "${HAVE_X11}" = "yes"; then | |
11653 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
11654 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
11655 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
11656 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
11657 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11659 | fi |
11660 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
11661 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 11662 | else |
c0d27fcc MR |
11663 | # Is the header compilable? |
11664 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
11665 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
11666 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11667 | /* confdefs.h. */ |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
c0d27fcc MR |
11672 | $ac_includes_default |
11673 | #include <gif_lib.h> | |
11674 | _ACEOF | |
11675 | rm -f conftest.$ac_objext | |
11676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11677 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11678 | ac_status=$? |
35996d22 AS |
11679 | grep -v '^ *+' conftest.er1 >conftest.err |
11680 | rm -f conftest.er1 | |
11681 | cat conftest.err >&5 | |
c0d27fcc MR |
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11683 | (exit $ac_status); } && | |
35996d22 AS |
11684 | { ac_try='test -z "$ac_c_werror_flag" |
11685 | || test ! -s conftest.err' | |
11686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11687 | (eval $ac_try) 2>&5 | |
11688 | ac_status=$? | |
11689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11690 | (exit $ac_status); }; } && | |
11691 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11693 | (eval $ac_try) 2>&5 | |
11694 | ac_status=$? | |
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11696 | (exit $ac_status); }; }; then | |
11697 | ac_header_compiler=yes | |
11698 | else | |
11699 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11700 | sed 's/^/| /' conftest.$ac_ext >&5 |
11701 | ||
c0d27fcc MR |
11702 | ac_header_compiler=no |
11703 | fi | |
35996d22 | 11704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11705 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11706 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11707 | ||
11708 | # Is the header present? | |
11709 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
11710 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
11711 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11712 | /* confdefs.h. */ |
11713 | _ACEOF | |
11714 | cat confdefs.h >>conftest.$ac_ext | |
11715 | cat >>conftest.$ac_ext <<_ACEOF | |
11716 | /* end confdefs.h. */ | |
98418dba CW |
11717 | #include <gif_lib.h> |
11718 | _ACEOF | |
c0d27fcc | 11719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11721 | ac_status=$? | |
6bae0ccf | 11722 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11723 | rm -f conftest.er1 |
11724 | cat conftest.err >&5 | |
c0d27fcc | 11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11726 | (exit $ac_status); } >/dev/null; then |
11727 | if test -s conftest.err; then | |
11728 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11729 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11730 | else |
11731 | ac_cpp_err= | |
11732 | fi | |
11733 | else | |
11734 | ac_cpp_err=yes | |
11735 | fi | |
11736 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11737 | ac_header_preproc=yes |
98418dba CW |
11738 | else |
11739 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11740 | sed 's/^/| /' conftest.$ac_ext >&5 |
11741 | ||
c0d27fcc | 11742 | ac_header_preproc=no |
98418dba CW |
11743 | fi |
11744 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11746 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11747 | ||
11748 | # So? What about this header? | |
35996d22 AS |
11749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11750 | yes:no: ) | |
c0d27fcc MR |
11751 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11752 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11753 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
11754 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
11755 | ac_header_preproc=yes | |
19650fd6 | 11756 | ;; |
35996d22 | 11757 | no:yes:* ) |
c0d27fcc MR |
11758 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
11759 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11760 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
11761 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
11762 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
11763 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
11764 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11765 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11766 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11767 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11768 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
11769 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11770 | ( |
11771 | cat <<\_ASBOX | |
35996d22 AS |
11772 | ## ------------------------------------------ ## |
11773 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11774 | ## ------------------------------------------ ## | |
19650fd6 AS |
11775 | _ASBOX |
11776 | ) | | |
11777 | sed "s/^/$as_me: WARNING: /" >&2 | |
11778 | ;; | |
c0d27fcc MR |
11779 | esac |
11780 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
11781 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
11782 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11784 | else | |
11785 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 11786 | fi |
c0d27fcc | 11787 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 11788 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
11789 | |
11790 | fi | |
98418dba CW |
11791 | if test $ac_cv_header_gif_lib_h = yes; then |
11792 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
11793 | # Earlier versions can crash Emacs. | |
c0d27fcc | 11794 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
11795 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
11796 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 11797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11798 | else |
503d2be0 | 11799 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11800 | LIBS="-lungif $LIBS" |
503d2be0 | 11801 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11802 | /* confdefs.h. */ |
11803 | _ACEOF | |
11804 | cat confdefs.h >>conftest.$ac_ext | |
11805 | cat >>conftest.$ac_ext <<_ACEOF | |
11806 | /* end confdefs.h. */ | |
73b77ee5 | 11807 | |
98418dba CW |
11808 | /* Override any gcc2 internal prototype to avoid an error. */ |
11809 | #ifdef __cplusplus | |
11810 | extern "C" | |
11811 | #endif | |
11812 | /* We use char because int might match the return type of a gcc2 | |
11813 | builtin and then its argument prototype would still apply. */ | |
11814 | char EGifPutExtensionLast (); | |
503d2be0 AS |
11815 | int |
11816 | main () | |
11817 | { | |
98418dba | 11818 | EGifPutExtensionLast (); |
503d2be0 AS |
11819 | ; |
11820 | return 0; | |
11821 | } | |
11822 | _ACEOF | |
11823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11825 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11826 | ac_status=$? |
35996d22 AS |
11827 | grep -v '^ *+' conftest.er1 >conftest.err |
11828 | rm -f conftest.er1 | |
11829 | cat conftest.err >&5 | |
c0d27fcc | 11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11831 | (exit $ac_status); } && |
35996d22 AS |
11832 | { ac_try='test -z "$ac_c_werror_flag" |
11833 | || test ! -s conftest.err' | |
c0d27fcc | 11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
11835 | (eval $ac_try) 2>&5 |
11836 | ac_status=$? | |
c0d27fcc | 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
11838 | (exit $ac_status); }; } && |
11839 | { ac_try='test -s conftest$ac_exeext' | |
11840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11841 | (eval $ac_try) 2>&5 | |
11842 | ac_status=$? | |
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11844 | (exit $ac_status); }; }; then | |
11845 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
11846 | else | |
98418dba | 11847 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11848 | sed 's/^/| /' conftest.$ac_ext >&5 |
11849 | ||
98418dba CW |
11850 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
11851 | fi | |
35996d22 AS |
11852 | rm -f conftest.err conftest.$ac_objext \ |
11853 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
11854 | LIBS=$ac_check_lib_save_LIBS |
11855 | fi | |
c0d27fcc | 11856 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
11857 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
11858 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
11859 | HAVE_GIF=yes | |
11860 | fi | |
11861 | ||
11862 | fi | |
11863 | ||
c0d27fcc | 11864 | |
98418dba CW |
11865 | fi |
11866 | ||
11867 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 11868 | |
c0d27fcc | 11869 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11870 | #define HAVE_GIF 1 |
c0d27fcc | 11871 | _ACEOF |
98418dba CW |
11872 | |
11873 | fi | |
11874 | fi | |
11875 | ||
c0d27fcc MR |
11876 | ### Use Mac OS X Carbon API to implement GUI. |
11877 | HAVE_CARBON=no | |
11878 | if test "${with_carbon}" != "no"; then | |
11879 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11880 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11881 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11882 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11884 | fi | |
11885 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
11886 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
11887 | else | |
11888 | # Is the header compilable? | |
11889 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
11890 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
11891 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11892 | /* confdefs.h. */ |
11893 | _ACEOF | |
11894 | cat confdefs.h >>conftest.$ac_ext | |
11895 | cat >>conftest.$ac_ext <<_ACEOF | |
11896 | /* end confdefs.h. */ | |
c0d27fcc MR |
11897 | $ac_includes_default |
11898 | #include <Carbon/Carbon.h> | |
11899 | _ACEOF | |
11900 | rm -f conftest.$ac_objext | |
11901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11902 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11903 | ac_status=$? |
35996d22 AS |
11904 | grep -v '^ *+' conftest.er1 >conftest.err |
11905 | rm -f conftest.er1 | |
11906 | cat conftest.err >&5 | |
c0d27fcc MR |
11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11908 | (exit $ac_status); } && | |
35996d22 AS |
11909 | { ac_try='test -z "$ac_c_werror_flag" |
11910 | || test ! -s conftest.err' | |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; } && | |
11916 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11918 | (eval $ac_try) 2>&5 | |
11919 | ac_status=$? | |
11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11921 | (exit $ac_status); }; }; then | |
11922 | ac_header_compiler=yes | |
11923 | else | |
11924 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11925 | sed 's/^/| /' conftest.$ac_ext >&5 |
11926 | ||
c0d27fcc MR |
11927 | ac_header_compiler=no |
11928 | fi | |
35996d22 | 11929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11930 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11931 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11932 | ||
11933 | # Is the header present? | |
11934 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
11935 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
11936 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11937 | /* confdefs.h. */ |
11938 | _ACEOF | |
11939 | cat confdefs.h >>conftest.$ac_ext | |
11940 | cat >>conftest.$ac_ext <<_ACEOF | |
11941 | /* end confdefs.h. */ | |
e0f712ba AC |
11942 | #include <Carbon/Carbon.h> |
11943 | _ACEOF | |
c0d27fcc | 11944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
11945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11946 | ac_status=$? | |
6bae0ccf | 11947 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
11948 | rm -f conftest.er1 |
11949 | cat conftest.err >&5 | |
c0d27fcc | 11950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
11951 | (exit $ac_status); } >/dev/null; then |
11952 | if test -s conftest.err; then | |
11953 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11954 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e0f712ba AC |
11955 | else |
11956 | ac_cpp_err= | |
11957 | fi | |
11958 | else | |
11959 | ac_cpp_err=yes | |
11960 | fi | |
11961 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11962 | ac_header_preproc=yes |
e0f712ba AC |
11963 | else |
11964 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11965 | sed 's/^/| /' conftest.$ac_ext >&5 |
11966 | ||
c0d27fcc | 11967 | ac_header_preproc=no |
e0f712ba AC |
11968 | fi |
11969 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11970 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11971 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11972 | ||
11973 | # So? What about this header? | |
35996d22 AS |
11974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11975 | yes:no: ) | |
c0d27fcc MR |
11976 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11977 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11978 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
11979 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
11980 | ac_header_preproc=yes | |
19650fd6 | 11981 | ;; |
35996d22 | 11982 | no:yes:* ) |
c0d27fcc MR |
11983 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
11984 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11985 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
11986 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
11987 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
11988 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
11989 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11990 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11991 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11992 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11993 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
11994 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11995 | ( |
11996 | cat <<\_ASBOX | |
35996d22 AS |
11997 | ## ------------------------------------------ ## |
11998 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11999 | ## ------------------------------------------ ## | |
19650fd6 AS |
12000 | _ASBOX |
12001 | ) | | |
12002 | sed "s/^/$as_me: WARNING: /" >&2 | |
12003 | ;; | |
c0d27fcc MR |
12004 | esac |
12005 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
12006 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
12007 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
12008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12009 | else | |
12010 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 12011 | fi |
c0d27fcc | 12012 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 12013 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
12014 | |
12015 | fi | |
e0f712ba AC |
12016 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
12017 | HAVE_CARBON=yes | |
12018 | fi | |
12019 | ||
c0d27fcc | 12020 | |
e0f712ba AC |
12021 | fi |
12022 | ||
12023 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 12024 | |
c0d27fcc | 12025 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 12026 | #define HAVE_CARBON 1 |
c0d27fcc | 12027 | _ACEOF |
e0f712ba | 12028 | |
6a3a24fa JD |
12029 | window_system=mac |
12030 | ## Specify the install directory | |
12031 | carbon_appdir= | |
12032 | if test "${carbon_appdir_x}" != ""; then | |
12033 | case ${carbon_appdir_x} in | |
12034 | y | ye | yes) carbon_appdir=/Applications ;; | |
12035 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
12036 | esac | |
12037 | fi | |
8f417b3b AS |
12038 | # We also have mouse menus. |
12039 | HAVE_MENUS=yes | |
e0f712ba AC |
12040 | fi |
12041 | ||
98418dba CW |
12042 | ### Use session management (-lSM -lICE) if available |
12043 | HAVE_X_SM=no | |
12044 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
12045 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
12046 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
12047 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
12048 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
12050 | fi |
12051 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
12052 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 12053 | else |
c0d27fcc MR |
12054 | # Is the header compilable? |
12055 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
12056 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
12057 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12058 | /* confdefs.h. */ |
12059 | _ACEOF | |
12060 | cat confdefs.h >>conftest.$ac_ext | |
12061 | cat >>conftest.$ac_ext <<_ACEOF | |
12062 | /* end confdefs.h. */ | |
c0d27fcc MR |
12063 | $ac_includes_default |
12064 | #include <X11/SM/SMlib.h> | |
12065 | _ACEOF | |
12066 | rm -f conftest.$ac_objext | |
12067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 12068 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 12069 | ac_status=$? |
35996d22 AS |
12070 | grep -v '^ *+' conftest.er1 >conftest.err |
12071 | rm -f conftest.er1 | |
12072 | cat conftest.err >&5 | |
c0d27fcc MR |
12073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12074 | (exit $ac_status); } && | |
35996d22 AS |
12075 | { ac_try='test -z "$ac_c_werror_flag" |
12076 | || test ! -s conftest.err' | |
12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12078 | (eval $ac_try) 2>&5 | |
12079 | ac_status=$? | |
12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12081 | (exit $ac_status); }; } && | |
12082 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
12083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12084 | (eval $ac_try) 2>&5 | |
12085 | ac_status=$? | |
12086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12087 | (exit $ac_status); }; }; then | |
12088 | ac_header_compiler=yes | |
12089 | else | |
12090 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12091 | sed 's/^/| /' conftest.$ac_ext >&5 |
12092 | ||
c0d27fcc MR |
12093 | ac_header_compiler=no |
12094 | fi | |
35996d22 | 12095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
12096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12098 | ||
12099 | # Is the header present? | |
12100 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
12101 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
12102 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12103 | /* confdefs.h. */ |
12104 | _ACEOF | |
12105 | cat confdefs.h >>conftest.$ac_ext | |
12106 | cat >>conftest.$ac_ext <<_ACEOF | |
12107 | /* end confdefs.h. */ | |
98418dba CW |
12108 | #include <X11/SM/SMlib.h> |
12109 | _ACEOF | |
c0d27fcc | 12110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12112 | ac_status=$? | |
6bae0ccf | 12113 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12114 | rm -f conftest.er1 |
12115 | cat conftest.err >&5 | |
c0d27fcc | 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12117 | (exit $ac_status); } >/dev/null; then |
12118 | if test -s conftest.err; then | |
12119 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 12120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
12121 | else |
12122 | ac_cpp_err= | |
12123 | fi | |
12124 | else | |
12125 | ac_cpp_err=yes | |
503d2be0 | 12126 | fi |
98418dba | 12127 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12128 | ac_header_preproc=yes |
98418dba CW |
12129 | else |
12130 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12131 | sed 's/^/| /' conftest.$ac_ext >&5 |
12132 | ||
c0d27fcc | 12133 | ac_header_preproc=no |
98418dba CW |
12134 | fi |
12135 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
12136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12138 | ||
12139 | # So? What about this header? | |
35996d22 AS |
12140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12141 | yes:no: ) | |
c0d27fcc MR |
12142 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12143 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
12144 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
12145 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
12146 | ac_header_preproc=yes | |
19650fd6 | 12147 | ;; |
35996d22 | 12148 | no:yes:* ) |
c0d27fcc MR |
12149 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
12150 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
12151 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
12152 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
12153 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
12154 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
12155 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12156 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 12157 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12158 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
12159 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
12160 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
12161 | ( |
12162 | cat <<\_ASBOX | |
35996d22 AS |
12163 | ## ------------------------------------------ ## |
12164 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12165 | ## ------------------------------------------ ## | |
19650fd6 AS |
12166 | _ASBOX |
12167 | ) | | |
12168 | sed "s/^/$as_me: WARNING: /" >&2 | |
12169 | ;; | |
c0d27fcc MR |
12170 | esac |
12171 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
12172 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
12173 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12175 | else | |
12176 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 12177 | fi |
c0d27fcc | 12178 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 12179 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
12180 | |
12181 | fi | |
98418dba | 12182 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 12183 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
12184 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
12185 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 12186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 12187 | else |
503d2be0 | 12188 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 12189 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 12190 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12191 | /* confdefs.h. */ |
12192 | _ACEOF | |
12193 | cat confdefs.h >>conftest.$ac_ext | |
12194 | cat >>conftest.$ac_ext <<_ACEOF | |
12195 | /* end confdefs.h. */ | |
503d2be0 | 12196 | |
73b77ee5 | 12197 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12198 | #ifdef __cplusplus |
12199 | extern "C" | |
12200 | #endif | |
73b77ee5 | 12201 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12202 | builtin and then its argument prototype would still apply. */ |
98418dba | 12203 | char SmcOpenConnection (); |
503d2be0 AS |
12204 | int |
12205 | main () | |
12206 | { | |
98418dba | 12207 | SmcOpenConnection (); |
503d2be0 AS |
12208 | ; |
12209 | return 0; | |
12210 | } | |
12211 | _ACEOF | |
12212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12214 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12215 | ac_status=$? |
35996d22 AS |
12216 | grep -v '^ *+' conftest.er1 >conftest.err |
12217 | rm -f conftest.er1 | |
12218 | cat conftest.err >&5 | |
c0d27fcc | 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12220 | (exit $ac_status); } && |
35996d22 AS |
12221 | { ac_try='test -z "$ac_c_werror_flag" |
12222 | || test ! -s conftest.err' | |
12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 | (eval $ac_try) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; } && | |
12228 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12230 | (eval $ac_try) 2>&5 |
12231 | ac_status=$? | |
c0d27fcc | 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12233 | (exit $ac_status); }; }; then |
98418dba | 12234 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
12235 | else |
12236 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12237 | sed 's/^/| /' conftest.$ac_ext >&5 |
12238 | ||
98418dba | 12239 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 12240 | fi |
35996d22 AS |
12241 | rm -f conftest.err conftest.$ac_objext \ |
12242 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
12243 | LIBS=$ac_check_lib_save_LIBS |
12244 | fi | |
c0d27fcc | 12245 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
12246 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
12247 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
12248 | HAVE_X_SM=yes | |
73b77ee5 GM |
12249 | fi |
12250 | ||
73b77ee5 | 12251 | fi |
73b77ee5 | 12252 | |
c0d27fcc MR |
12253 | |
12254 | ||
98418dba | 12255 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 12256 | |
c0d27fcc | 12257 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12258 | #define HAVE_X_SM 1 |
c0d27fcc | 12259 | _ACEOF |
73b77ee5 | 12260 | |
98418dba CW |
12261 | case "$LIBS" in |
12262 | *-lSM*) ;; | |
12263 | *) LIBS="-lSM -lICE $LIBS" ;; | |
12264 | esac | |
73b77ee5 | 12265 | fi |
98418dba | 12266 | fi |
73b77ee5 | 12267 | |
98418dba | 12268 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 12269 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
12270 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
12271 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12273 | else | |
12274 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12275 | /* confdefs.h. */ |
12276 | _ACEOF | |
12277 | cat confdefs.h >>conftest.$ac_ext | |
12278 | cat >>conftest.$ac_ext <<_ACEOF | |
12279 | /* end confdefs.h. */ | |
98418dba | 12280 | #include <netdb.h> |
503d2be0 AS |
12281 | int |
12282 | main () | |
12283 | { | |
98418dba | 12284 | return h_errno; |
503d2be0 AS |
12285 | ; |
12286 | return 0; | |
12287 | } | |
12288 | _ACEOF | |
12289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12291 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12292 | ac_status=$? |
35996d22 AS |
12293 | grep -v '^ *+' conftest.er1 >conftest.err |
12294 | rm -f conftest.er1 | |
12295 | cat conftest.err >&5 | |
c0d27fcc | 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12297 | (exit $ac_status); } && |
35996d22 AS |
12298 | { ac_try='test -z "$ac_c_werror_flag" |
12299 | || test ! -s conftest.err' | |
12300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12301 | (eval $ac_try) 2>&5 | |
12302 | ac_status=$? | |
12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12304 | (exit $ac_status); }; } && | |
12305 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12307 | (eval $ac_try) 2>&5 |
12308 | ac_status=$? | |
c0d27fcc | 12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12310 | (exit $ac_status); }; }; then |
98418dba | 12311 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 12312 | else |
503d2be0 | 12313 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12314 | sed 's/^/| /' conftest.$ac_ext >&5 |
12315 | ||
98418dba | 12316 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 12317 | fi |
35996d22 AS |
12318 | rm -f conftest.err conftest.$ac_objext \ |
12319 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12320 | fi |
c0d27fcc | 12321 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
12322 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
12323 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 12324 | |
c0d27fcc | 12325 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12326 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 12327 | _ACEOF |
73b77ee5 | 12328 | |
98418dba CW |
12329 | fi |
12330 | ||
12331 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12332 | # for constant arguments. Useless! | |
c0d27fcc | 12333 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
12334 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
12335 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12337 | else | |
12338 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12339 | /* confdefs.h. */ |
12340 | _ACEOF | |
12341 | cat confdefs.h >>conftest.$ac_ext | |
12342 | cat >>conftest.$ac_ext <<_ACEOF | |
12343 | /* end confdefs.h. */ | |
98418dba | 12344 | #include <alloca.h> |
503d2be0 AS |
12345 | int |
12346 | main () | |
12347 | { | |
98418dba | 12348 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
12349 | ; |
12350 | return 0; | |
12351 | } | |
12352 | _ACEOF | |
12353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12355 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12356 | ac_status=$? |
35996d22 AS |
12357 | grep -v '^ *+' conftest.er1 >conftest.err |
12358 | rm -f conftest.er1 | |
12359 | cat conftest.err >&5 | |
c0d27fcc | 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12361 | (exit $ac_status); } && |
35996d22 AS |
12362 | { ac_try='test -z "$ac_c_werror_flag" |
12363 | || test ! -s conftest.err' | |
12364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12365 | (eval $ac_try) 2>&5 | |
12366 | ac_status=$? | |
12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12368 | (exit $ac_status); }; } && | |
12369 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12371 | (eval $ac_try) 2>&5 |
12372 | ac_status=$? | |
c0d27fcc | 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12374 | (exit $ac_status); }; }; then |
98418dba | 12375 | ac_cv_working_alloca_h=yes |
73b77ee5 | 12376 | else |
503d2be0 | 12377 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12378 | sed 's/^/| /' conftest.$ac_ext >&5 |
12379 | ||
98418dba | 12380 | ac_cv_working_alloca_h=no |
73b77ee5 | 12381 | fi |
35996d22 AS |
12382 | rm -f conftest.err conftest.$ac_objext \ |
12383 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12384 | fi |
c0d27fcc | 12385 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
12386 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
12387 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 12388 | |
c0d27fcc | 12389 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12390 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 12391 | _ACEOF |
98418dba CW |
12392 | |
12393 | fi | |
12394 | ||
c0d27fcc | 12395 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
12396 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
12397 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12399 | else | |
503d2be0 | 12400 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12401 | /* confdefs.h. */ |
12402 | _ACEOF | |
12403 | cat confdefs.h >>conftest.$ac_ext | |
12404 | cat >>conftest.$ac_ext <<_ACEOF | |
12405 | /* end confdefs.h. */ | |
98418dba CW |
12406 | #ifdef __GNUC__ |
12407 | # define alloca __builtin_alloca | |
12408 | #else | |
12409 | # ifdef _MSC_VER | |
12410 | # include <malloc.h> | |
12411 | # define alloca _alloca | |
12412 | # else | |
12413 | # if HAVE_ALLOCA_H | |
12414 | # include <alloca.h> | |
12415 | # else | |
12416 | # ifdef _AIX | |
12417 | #pragma alloca | |
12418 | # else | |
12419 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12420 | char *alloca (); | |
12421 | # endif | |
12422 | # endif | |
12423 | # endif | |
12424 | # endif | |
12425 | #endif | |
12426 | ||
503d2be0 AS |
12427 | int |
12428 | main () | |
12429 | { | |
98418dba | 12430 | char *p = (char *) alloca (1); |
503d2be0 AS |
12431 | ; |
12432 | return 0; | |
12433 | } | |
12434 | _ACEOF | |
12435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12437 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12438 | ac_status=$? |
35996d22 AS |
12439 | grep -v '^ *+' conftest.er1 >conftest.err |
12440 | rm -f conftest.er1 | |
12441 | cat conftest.err >&5 | |
c0d27fcc | 12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12443 | (exit $ac_status); } && |
35996d22 AS |
12444 | { ac_try='test -z "$ac_c_werror_flag" |
12445 | || test ! -s conftest.err' | |
12446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12447 | (eval $ac_try) 2>&5 | |
12448 | ac_status=$? | |
12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12450 | (exit $ac_status); }; } && | |
12451 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12453 | (eval $ac_try) 2>&5 |
12454 | ac_status=$? | |
c0d27fcc | 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12456 | (exit $ac_status); }; }; then |
98418dba | 12457 | ac_cv_func_alloca_works=yes |
ac95a621 | 12458 | else |
503d2be0 | 12459 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12460 | sed 's/^/| /' conftest.$ac_ext >&5 |
12461 | ||
98418dba | 12462 | ac_cv_func_alloca_works=no |
ac95a621 | 12463 | fi |
35996d22 AS |
12464 | rm -f conftest.err conftest.$ac_objext \ |
12465 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12466 | fi |
c0d27fcc | 12467 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 12468 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 12469 | |
98418dba CW |
12470 | if test $ac_cv_func_alloca_works = yes; then |
12471 | ||
c0d27fcc | 12472 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12473 | #define HAVE_ALLOCA 1 |
c0d27fcc | 12474 | _ACEOF |
98418dba CW |
12475 | |
12476 | else | |
12477 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12478 | # that cause trouble. Some versions do not even contain alloca or | |
12479 | # contain a buggy version. If you still want to use their alloca, | |
12480 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12481 | ||
12482 | ALLOCA=alloca.$ac_objext | |
12483 | ||
c0d27fcc | 12484 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12485 | #define C_ALLOCA 1 |
c0d27fcc | 12486 | _ACEOF |
98418dba | 12487 | |
c0d27fcc MR |
12488 | |
12489 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
12490 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
12491 | if test "${ac_cv_os_cray+set}" = set; then | |
12492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12493 | else | |
12494 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12495 | /* confdefs.h. */ |
12496 | _ACEOF | |
12497 | cat confdefs.h >>conftest.$ac_ext | |
12498 | cat >>conftest.$ac_ext <<_ACEOF | |
12499 | /* end confdefs.h. */ | |
98418dba CW |
12500 | #if defined(CRAY) && ! defined(CRAY2) |
12501 | webecray | |
12502 | #else | |
12503 | wenotbecray | |
12504 | #endif | |
12505 | ||
12506 | _ACEOF | |
12507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 12508 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
12509 | ac_cv_os_cray=yes |
12510 | else | |
12511 | ac_cv_os_cray=no | |
12512 | fi | |
12513 | rm -f conftest* | |
ac95a621 | 12514 | |
98418dba | 12515 | fi |
c0d27fcc | 12516 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
12517 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
12518 | if test $ac_cv_os_cray = yes; then | |
12519 | for ac_func in _getb67 GETB67 getb67; do | |
12520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12521 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12523 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 12525 | else |
503d2be0 | 12526 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12527 | /* confdefs.h. */ |
12528 | _ACEOF | |
12529 | cat confdefs.h >>conftest.$ac_ext | |
12530 | cat >>conftest.$ac_ext <<_ACEOF | |
12531 | /* end confdefs.h. */ | |
35996d22 AS |
12532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12534 | #define $ac_func innocuous_$ac_func | |
12535 | ||
73b77ee5 | 12536 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12537 | which can conflict with char $ac_func (); below. |
12538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12539 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12540 | |
19650fd6 AS |
12541 | #ifdef __STDC__ |
12542 | # include <limits.h> | |
12543 | #else | |
12544 | # include <assert.h> | |
12545 | #endif | |
35996d22 AS |
12546 | |
12547 | #undef $ac_func | |
12548 | ||
73b77ee5 | 12549 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12550 | #ifdef __cplusplus |
12551 | extern "C" | |
19650fd6 | 12552 | { |
503d2be0 | 12553 | #endif |
73b77ee5 | 12554 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12555 | builtin and then its argument prototype would still apply. */ |
12556 | char $ac_func (); | |
73b77ee5 GM |
12557 | /* The GNU C library defines this for functions which it implements |
12558 | to always fail with ENOSYS. Some functions are actually named | |
12559 | something starting with __ and the normal name is an alias. */ | |
12560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12561 | choke me | |
12562 | #else | |
19650fd6 AS |
12563 | char (*f) () = $ac_func; |
12564 | #endif | |
12565 | #ifdef __cplusplus | |
12566 | } | |
73b77ee5 GM |
12567 | #endif |
12568 | ||
19650fd6 AS |
12569 | int |
12570 | main () | |
12571 | { | |
12572 | return f != $ac_func; | |
503d2be0 AS |
12573 | ; |
12574 | return 0; | |
12575 | } | |
12576 | _ACEOF | |
12577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12579 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12580 | ac_status=$? |
35996d22 AS |
12581 | grep -v '^ *+' conftest.er1 >conftest.err |
12582 | rm -f conftest.er1 | |
12583 | cat conftest.err >&5 | |
c0d27fcc | 12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12585 | (exit $ac_status); } && |
35996d22 AS |
12586 | { ac_try='test -z "$ac_c_werror_flag" |
12587 | || test ! -s conftest.err' | |
12588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12589 | (eval $ac_try) 2>&5 | |
12590 | ac_status=$? | |
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12592 | (exit $ac_status); }; } && | |
12593 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12595 | (eval $ac_try) 2>&5 |
12596 | ac_status=$? | |
c0d27fcc | 12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12598 | (exit $ac_status); }; }; then |
12599 | eval "$as_ac_var=yes" | |
12600 | else | |
12601 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12602 | sed 's/^/| /' conftest.$ac_ext >&5 |
12603 | ||
503d2be0 AS |
12604 | eval "$as_ac_var=no" |
12605 | fi | |
35996d22 AS |
12606 | rm -f conftest.err conftest.$ac_objext \ |
12607 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 12608 | fi |
c0d27fcc | 12609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 12612 | |
c0d27fcc | 12613 | cat >>confdefs.h <<_ACEOF |
98418dba | 12614 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 12615 | _ACEOF |
98418dba CW |
12616 | |
12617 | break | |
73b77ee5 | 12618 | fi |
73b77ee5 | 12619 | |
98418dba | 12620 | done |
73b77ee5 GM |
12621 | fi |
12622 | ||
c0d27fcc | 12623 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
12624 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
12625 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 12626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
12627 | else |
12628 | if test "$cross_compiling" = yes; then | |
12629 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 12630 | else |
503d2be0 | 12631 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12632 | /* confdefs.h. */ |
12633 | _ACEOF | |
12634 | cat confdefs.h >>conftest.$ac_ext | |
12635 | cat >>conftest.$ac_ext <<_ACEOF | |
12636 | /* end confdefs.h. */ | |
503d2be0 | 12637 | int |
98418dba | 12638 | find_stack_direction () |
503d2be0 | 12639 | { |
98418dba CW |
12640 | static char *addr = 0; |
12641 | auto char dummy; | |
12642 | if (addr == 0) | |
12643 | { | |
12644 | addr = &dummy; | |
12645 | return find_stack_direction (); | |
12646 | } | |
73b77ee5 | 12647 | else |
98418dba CW |
12648 | return (&dummy > addr) ? 1 : -1; |
12649 | } | |
ba4481b5 | 12650 | |
503d2be0 AS |
12651 | int |
12652 | main () | |
12653 | { | |
98418dba | 12654 | exit (find_stack_direction () < 0); |
503d2be0 AS |
12655 | } |
12656 | _ACEOF | |
98418dba | 12657 | rm -f conftest$ac_exeext |
c0d27fcc | 12658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12659 | (eval $ac_link) 2>&5 |
12660 | ac_status=$? | |
c0d27fcc | 12661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 12663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12664 | (eval $ac_try) 2>&5 |
12665 | ac_status=$? | |
c0d27fcc | 12666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12667 | (exit $ac_status); }; }; then |
98418dba | 12668 | ac_cv_c_stack_direction=1 |
ba4481b5 | 12669 | else |
98418dba CW |
12670 | echo "$as_me: program exited with status $ac_status" >&5 |
12671 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12672 | sed 's/^/| /' conftest.$ac_ext >&5 |
12673 | ||
c0d27fcc | 12674 | ( exit $ac_status ) |
98418dba | 12675 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 12676 | fi |
35996d22 | 12677 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 12678 | fi |
98418dba | 12679 | fi |
c0d27fcc | 12680 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
12681 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
12682 | ||
c0d27fcc | 12683 | cat >>confdefs.h <<_ACEOF |
98418dba | 12684 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
12685 | _ACEOF |
12686 | ||
ba4481b5 | 12687 | |
ba4481b5 DL |
12688 | fi |
12689 | ||
c0d27fcc | 12690 | |
98418dba CW |
12691 | # fmod, logb, and frexp are found in -lm on most systems. |
12692 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
12693 | ||
c0d27fcc | 12694 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
12695 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
12696 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 12697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12698 | else |
98418dba CW |
12699 | ac_check_lib_save_LIBS=$LIBS |
12700 | LIBS="-lm $LIBS" | |
12701 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12702 | /* confdefs.h. */ |
12703 | _ACEOF | |
12704 | cat confdefs.h >>conftest.$ac_ext | |
12705 | cat >>conftest.$ac_ext <<_ACEOF | |
12706 | /* end confdefs.h. */ | |
ba4481b5 | 12707 | |
98418dba CW |
12708 | /* Override any gcc2 internal prototype to avoid an error. */ |
12709 | #ifdef __cplusplus | |
12710 | extern "C" | |
12711 | #endif | |
12712 | /* We use char because int might match the return type of a gcc2 | |
12713 | builtin and then its argument prototype would still apply. */ | |
12714 | char sqrt (); | |
503d2be0 AS |
12715 | int |
12716 | main () | |
12717 | { | |
98418dba | 12718 | sqrt (); |
503d2be0 AS |
12719 | ; |
12720 | return 0; | |
12721 | } | |
12722 | _ACEOF | |
12723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12725 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12726 | ac_status=$? |
35996d22 AS |
12727 | grep -v '^ *+' conftest.er1 >conftest.err |
12728 | rm -f conftest.er1 | |
12729 | cat conftest.err >&5 | |
c0d27fcc | 12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12731 | (exit $ac_status); } && |
35996d22 AS |
12732 | { ac_try='test -z "$ac_c_werror_flag" |
12733 | || test ! -s conftest.err' | |
12734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12735 | (eval $ac_try) 2>&5 | |
12736 | ac_status=$? | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); }; } && | |
12739 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12741 | (eval $ac_try) 2>&5 |
12742 | ac_status=$? | |
c0d27fcc | 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12744 | (exit $ac_status); }; }; then |
98418dba | 12745 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 12746 | else |
503d2be0 | 12747 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12748 | sed 's/^/| /' conftest.$ac_ext >&5 |
12749 | ||
98418dba | 12750 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 12751 | fi |
35996d22 AS |
12752 | rm -f conftest.err conftest.$ac_objext \ |
12753 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12754 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12755 | fi |
c0d27fcc | 12756 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
12757 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
12758 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 12759 | cat >>confdefs.h <<_ACEOF |
98418dba | 12760 | #define HAVE_LIBM 1 |
c0d27fcc | 12761 | _ACEOF |
98418dba CW |
12762 | |
12763 | LIBS="-lm $LIBS" | |
ba4481b5 | 12764 | |
ba4481b5 DL |
12765 | fi |
12766 | ||
c0d27fcc | 12767 | |
55597d70 DL |
12768 | # Check for mail-locking functions in a "mail" library. Probably this should |
12769 | # have the same check as for liblockfile below. | |
98418dba | 12770 | |
c0d27fcc | 12771 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
12772 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
12773 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12775 | else |
98418dba CW |
12776 | ac_check_lib_save_LIBS=$LIBS |
12777 | LIBS="-lmail $LIBS" | |
12778 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12779 | /* confdefs.h. */ |
12780 | _ACEOF | |
12781 | cat confdefs.h >>conftest.$ac_ext | |
12782 | cat >>conftest.$ac_ext <<_ACEOF | |
12783 | /* end confdefs.h. */ | |
98418dba CW |
12784 | |
12785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12786 | #ifdef __cplusplus | |
12787 | extern "C" | |
12788 | #endif | |
12789 | /* We use char because int might match the return type of a gcc2 | |
12790 | builtin and then its argument prototype would still apply. */ | |
12791 | char maillock (); | |
503d2be0 AS |
12792 | int |
12793 | main () | |
12794 | { | |
98418dba | 12795 | maillock (); |
503d2be0 AS |
12796 | ; |
12797 | return 0; | |
12798 | } | |
12799 | _ACEOF | |
12800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12802 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12803 | ac_status=$? |
35996d22 AS |
12804 | grep -v '^ *+' conftest.er1 >conftest.err |
12805 | rm -f conftest.er1 | |
12806 | cat conftest.err >&5 | |
c0d27fcc | 12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12808 | (exit $ac_status); } && |
35996d22 AS |
12809 | { ac_try='test -z "$ac_c_werror_flag" |
12810 | || test ! -s conftest.err' | |
12811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12812 | (eval $ac_try) 2>&5 | |
12813 | ac_status=$? | |
12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12815 | (exit $ac_status); }; } && | |
12816 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12818 | (eval $ac_try) 2>&5 |
12819 | ac_status=$? | |
c0d27fcc | 12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12821 | (exit $ac_status); }; }; then |
98418dba | 12822 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 12823 | else |
503d2be0 | 12824 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12825 | sed 's/^/| /' conftest.$ac_ext >&5 |
12826 | ||
98418dba | 12827 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 12828 | fi |
35996d22 AS |
12829 | rm -f conftest.err conftest.$ac_objext \ |
12830 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12831 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12832 | fi |
c0d27fcc | 12833 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
12834 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
12835 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 12836 | cat >>confdefs.h <<_ACEOF |
98418dba | 12837 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 12838 | _ACEOF |
ba4481b5 | 12839 | |
98418dba | 12840 | LIBS="-lmail $LIBS" |
ba4481b5 | 12841 | |
98418dba | 12842 | fi |
ba4481b5 | 12843 | |
c0d27fcc MR |
12844 | |
12845 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
12846 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
12847 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 12848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12849 | else |
503d2be0 | 12850 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 12851 | LIBS="-llockfile $LIBS" |
503d2be0 | 12852 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12853 | /* confdefs.h. */ |
12854 | _ACEOF | |
12855 | cat confdefs.h >>conftest.$ac_ext | |
12856 | cat >>conftest.$ac_ext <<_ACEOF | |
12857 | /* end confdefs.h. */ | |
503d2be0 | 12858 | |
ba4481b5 | 12859 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12860 | #ifdef __cplusplus |
12861 | extern "C" | |
12862 | #endif | |
ba4481b5 | 12863 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12864 | builtin and then its argument prototype would still apply. */ |
98418dba | 12865 | char maillock (); |
503d2be0 AS |
12866 | int |
12867 | main () | |
12868 | { | |
98418dba | 12869 | maillock (); |
503d2be0 AS |
12870 | ; |
12871 | return 0; | |
12872 | } | |
12873 | _ACEOF | |
12874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12876 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12877 | ac_status=$? |
35996d22 AS |
12878 | grep -v '^ *+' conftest.er1 >conftest.err |
12879 | rm -f conftest.er1 | |
12880 | cat conftest.err >&5 | |
c0d27fcc | 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12882 | (exit $ac_status); } && |
35996d22 AS |
12883 | { ac_try='test -z "$ac_c_werror_flag" |
12884 | || test ! -s conftest.err' | |
12885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12886 | (eval $ac_try) 2>&5 | |
12887 | ac_status=$? | |
12888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12889 | (exit $ac_status); }; } && | |
12890 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12892 | (eval $ac_try) 2>&5 |
12893 | ac_status=$? | |
c0d27fcc | 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12895 | (exit $ac_status); }; }; then |
98418dba | 12896 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
12897 | else |
12898 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12899 | sed 's/^/| /' conftest.$ac_ext >&5 |
12900 | ||
98418dba CW |
12901 | ac_cv_lib_lockfile_maillock=no |
12902 | fi | |
35996d22 AS |
12903 | rm -f conftest.err conftest.$ac_objext \ |
12904 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
12905 | LIBS=$ac_check_lib_save_LIBS |
12906 | fi | |
c0d27fcc | 12907 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
12908 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
12909 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 12910 | cat >>confdefs.h <<_ACEOF |
98418dba | 12911 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 12912 | _ACEOF |
98418dba CW |
12913 | |
12914 | LIBS="-llockfile $LIBS" | |
12915 | ||
12916 | fi | |
12917 | ||
12918 | # If we have the shared liblockfile, assume we must use it for mail | |
12919 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
12920 | # (no liblockfile.a installed), ensure that we don't need to. | |
12921 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
12922 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
12923 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 12924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
12925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12926 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
12927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12928 | else | |
12929 | if test -n "$liblockfile"; then | |
12930 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
12931 | else | |
c0d27fcc | 12932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
12933 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
12934 | for as_dir in $as_dummy | |
c0d27fcc MR |
12935 | do |
12936 | IFS=$as_save_IFS | |
12937 | test -z "$as_dir" && as_dir=. | |
12938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12940 | ac_cv_prog_liblockfile="yes" | |
12941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12942 | break 2 | |
12943 | fi | |
12944 | done | |
98418dba CW |
12945 | done |
12946 | ||
12947 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 12948 | fi |
503d2be0 | 12949 | fi |
98418dba CW |
12950 | liblockfile=$ac_cv_prog_liblockfile |
12951 | if test -n "$liblockfile"; then | |
c0d27fcc | 12952 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
12953 | echo "${ECHO_T}$liblockfile" >&6 |
12954 | else | |
c0d27fcc | 12955 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 12956 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
12957 | fi |
12958 | ||
98418dba | 12959 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 12960 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
12961 | This probably means that movemail could lose mail. |
12962 | There may be a \`development' package to install containing liblockfile." >&5 | |
12963 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
12964 | This probably means that movemail could lose mail. | |
12965 | There may be a \`development' package to install containing liblockfile." >&2;} | |
12966 | { (exit 1); exit 1; }; } | |
98418dba | 12967 | else : |
55597d70 | 12968 | fi |
98418dba | 12969 | fi |
503d2be0 | 12970 | |
98418dba CW |
12971 | for ac_func in touchlock |
12972 | do | |
12973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
12975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12976 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 12977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 12978 | else |
98418dba | 12979 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12980 | /* confdefs.h. */ |
12981 | _ACEOF | |
12982 | cat confdefs.h >>conftest.$ac_ext | |
12983 | cat >>conftest.$ac_ext <<_ACEOF | |
12984 | /* end confdefs.h. */ | |
35996d22 AS |
12985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12987 | #define $ac_func innocuous_$ac_func | |
12988 | ||
98418dba | 12989 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12990 | which can conflict with char $ac_func (); below. |
12991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12992 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12993 | |
19650fd6 AS |
12994 | #ifdef __STDC__ |
12995 | # include <limits.h> | |
12996 | #else | |
12997 | # include <assert.h> | |
12998 | #endif | |
35996d22 AS |
12999 | |
13000 | #undef $ac_func | |
13001 | ||
457b792c | 13002 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13003 | #ifdef __cplusplus |
13004 | extern "C" | |
19650fd6 | 13005 | { |
503d2be0 | 13006 | #endif |
457b792c | 13007 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13008 | builtin and then its argument prototype would still apply. */ |
98418dba | 13009 | char $ac_func (); |
98418dba CW |
13010 | /* The GNU C library defines this for functions which it implements |
13011 | to always fail with ENOSYS. Some functions are actually named | |
13012 | something starting with __ and the normal name is an alias. */ | |
13013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13014 | choke me | |
13015 | #else | |
19650fd6 AS |
13016 | char (*f) () = $ac_func; |
13017 | #endif | |
13018 | #ifdef __cplusplus | |
13019 | } | |
cd958eb3 MB |
13020 | #endif |
13021 | ||
19650fd6 AS |
13022 | int |
13023 | main () | |
13024 | { | |
13025 | return f != $ac_func; | |
503d2be0 AS |
13026 | ; |
13027 | return 0; | |
13028 | } | |
13029 | _ACEOF | |
13030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13032 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13033 | ac_status=$? |
35996d22 AS |
13034 | grep -v '^ *+' conftest.er1 >conftest.err |
13035 | rm -f conftest.er1 | |
13036 | cat conftest.err >&5 | |
c0d27fcc | 13037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13038 | (exit $ac_status); } && |
35996d22 AS |
13039 | { ac_try='test -z "$ac_c_werror_flag" |
13040 | || test ! -s conftest.err' | |
13041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13042 | (eval $ac_try) 2>&5 | |
13043 | ac_status=$? | |
13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13045 | (exit $ac_status); }; } && | |
13046 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13048 | (eval $ac_try) 2>&5 |
13049 | ac_status=$? | |
c0d27fcc | 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13051 | (exit $ac_status); }; }; then |
98418dba | 13052 | eval "$as_ac_var=yes" |
503d2be0 AS |
13053 | else |
13054 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13055 | sed 's/^/| /' conftest.$ac_ext >&5 |
13056 | ||
98418dba | 13057 | eval "$as_ac_var=no" |
503d2be0 | 13058 | fi |
35996d22 AS |
13059 | rm -f conftest.err conftest.$ac_objext \ |
13060 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 13061 | fi |
c0d27fcc | 13062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13065 | cat >>confdefs.h <<_ACEOF |
98418dba | 13066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13067 | _ACEOF |
457b792c | 13068 | |
457b792c | 13069 | fi |
98418dba | 13070 | done |
457b792c | 13071 | |
c0d27fcc | 13072 | |
98418dba CW |
13073 | for ac_header in maillock.h |
13074 | do | |
13075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 13080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13081 | fi |
13082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 13084 | else |
c0d27fcc MR |
13085 | # Is the header compilable? |
13086 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13087 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13088 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13089 | /* confdefs.h. */ |
13090 | _ACEOF | |
13091 | cat confdefs.h >>conftest.$ac_ext | |
13092 | cat >>conftest.$ac_ext <<_ACEOF | |
13093 | /* end confdefs.h. */ | |
c0d27fcc MR |
13094 | $ac_includes_default |
13095 | #include <$ac_header> | |
13096 | _ACEOF | |
13097 | rm -f conftest.$ac_objext | |
13098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13099 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13100 | ac_status=$? |
35996d22 AS |
13101 | grep -v '^ *+' conftest.er1 >conftest.err |
13102 | rm -f conftest.er1 | |
13103 | cat conftest.err >&5 | |
c0d27fcc MR |
13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13105 | (exit $ac_status); } && | |
35996d22 AS |
13106 | { ac_try='test -z "$ac_c_werror_flag" |
13107 | || test ! -s conftest.err' | |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; } && | |
13113 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13115 | (eval $ac_try) 2>&5 | |
13116 | ac_status=$? | |
13117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13118 | (exit $ac_status); }; }; then | |
13119 | ac_header_compiler=yes | |
13120 | else | |
13121 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13122 | sed 's/^/| /' conftest.$ac_ext >&5 |
13123 | ||
c0d27fcc MR |
13124 | ac_header_compiler=no |
13125 | fi | |
35996d22 | 13126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13129 | ||
13130 | # Is the header present? | |
13131 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13133 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13134 | /* confdefs.h. */ |
13135 | _ACEOF | |
13136 | cat confdefs.h >>conftest.$ac_ext | |
13137 | cat >>conftest.$ac_ext <<_ACEOF | |
13138 | /* end confdefs.h. */ | |
98418dba | 13139 | #include <$ac_header> |
503d2be0 | 13140 | _ACEOF |
c0d27fcc | 13141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 13142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 13143 | ac_status=$? |
6bae0ccf | 13144 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13145 | rm -f conftest.er1 |
13146 | cat conftest.err >&5 | |
c0d27fcc | 13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13148 | (exit $ac_status); } >/dev/null; then |
13149 | if test -s conftest.err; then | |
13150 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13151 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
13152 | else |
13153 | ac_cpp_err= | |
13154 | fi | |
503d2be0 | 13155 | else |
98418dba | 13156 | ac_cpp_err=yes |
503d2be0 | 13157 | fi |
98418dba | 13158 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13159 | ac_header_preproc=yes |
98418dba CW |
13160 | else |
13161 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13162 | sed 's/^/| /' conftest.$ac_ext >&5 |
13163 | ||
c0d27fcc | 13164 | ac_header_preproc=no |
503d2be0 | 13165 | fi |
98418dba | 13166 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13169 | ||
13170 | # So? What about this header? | |
35996d22 AS |
13171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13172 | yes:no: ) | |
c0d27fcc MR |
13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13177 | ac_header_preproc=yes | |
19650fd6 | 13178 | ;; |
35996d22 | 13179 | no:yes:* ) |
c0d27fcc MR |
13180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13191 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13192 | ( |
13193 | cat <<\_ASBOX | |
35996d22 AS |
13194 | ## ------------------------------------------ ## |
13195 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13196 | ## ------------------------------------------ ## | |
19650fd6 AS |
13197 | _ASBOX |
13198 | ) | | |
13199 | sed "s/^/$as_me: WARNING: /" >&2 | |
13200 | ;; | |
c0d27fcc MR |
13201 | esac |
13202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13206 | else | |
35996d22 | 13207 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13208 | fi |
c0d27fcc | 13209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13211 | |
13212 | fi | |
98418dba | 13213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13214 | cat >>confdefs.h <<_ACEOF |
98418dba | 13215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13216 | _ACEOF |
48d4b120 | 13217 | |
ba4481b5 | 13218 | fi |
c0d27fcc | 13219 | |
98418dba CW |
13220 | done |
13221 | ||
c0d27fcc MR |
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 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | ||
13273 | ||
13274 | ||
13275 | ||
13276 | ||
22044edf DL |
13277 | |
13278 | ||
c0d27fcc | 13279 | |
b0e44248 RB |
13280 | |
13281 | ||
973a76b1 DL |
13282 | |
13283 | ||
13284 | ||
cd958eb3 | 13285 | |
25ca0bca | 13286 | |
28127e47 | 13287 | |
c0d27fcc MR |
13288 | |
13289 | ||
98418dba CW |
13290 | for ac_func in gethostname getdomainname dup2 \ |
13291 | rename closedir mkdir rmdir sysinfo \ | |
13292 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
13293 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 13294 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
13295 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
13296 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
b0e44248 | 13297 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
28127e47 | 13298 | memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
13299 | do |
13300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13301 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13303 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13305 | else |
503d2be0 | 13306 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13307 | /* confdefs.h. */ |
13308 | _ACEOF | |
13309 | cat confdefs.h >>conftest.$ac_ext | |
13310 | cat >>conftest.$ac_ext <<_ACEOF | |
13311 | /* end confdefs.h. */ | |
35996d22 AS |
13312 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13314 | #define $ac_func innocuous_$ac_func | |
13315 | ||
98418dba | 13316 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13317 | which can conflict with char $ac_func (); below. |
13318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13319 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13320 | |
19650fd6 AS |
13321 | #ifdef __STDC__ |
13322 | # include <limits.h> | |
13323 | #else | |
13324 | # include <assert.h> | |
13325 | #endif | |
35996d22 AS |
13326 | |
13327 | #undef $ac_func | |
13328 | ||
ba4481b5 | 13329 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13330 | #ifdef __cplusplus |
13331 | extern "C" | |
19650fd6 | 13332 | { |
503d2be0 | 13333 | #endif |
ba4481b5 | 13334 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13335 | builtin and then its argument prototype would still apply. */ |
98418dba | 13336 | char $ac_func (); |
98418dba CW |
13337 | /* The GNU C library defines this for functions which it implements |
13338 | to always fail with ENOSYS. Some functions are actually named | |
13339 | something starting with __ and the normal name is an alias. */ | |
13340 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13341 | choke me | |
13342 | #else | |
19650fd6 AS |
13343 | char (*f) () = $ac_func; |
13344 | #endif | |
13345 | #ifdef __cplusplus | |
13346 | } | |
98418dba CW |
13347 | #endif |
13348 | ||
19650fd6 AS |
13349 | int |
13350 | main () | |
13351 | { | |
13352 | return f != $ac_func; | |
503d2be0 AS |
13353 | ; |
13354 | return 0; | |
13355 | } | |
13356 | _ACEOF | |
13357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13359 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13360 | ac_status=$? |
35996d22 AS |
13361 | grep -v '^ *+' conftest.er1 >conftest.err |
13362 | rm -f conftest.er1 | |
13363 | cat conftest.err >&5 | |
c0d27fcc | 13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13365 | (exit $ac_status); } && |
35996d22 AS |
13366 | { ac_try='test -z "$ac_c_werror_flag" |
13367 | || test ! -s conftest.err' | |
13368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13369 | (eval $ac_try) 2>&5 | |
13370 | ac_status=$? | |
13371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13372 | (exit $ac_status); }; } && | |
13373 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13375 | (eval $ac_try) 2>&5 |
13376 | ac_status=$? | |
c0d27fcc | 13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13378 | (exit $ac_status); }; }; then |
98418dba | 13379 | eval "$as_ac_var=yes" |
503d2be0 AS |
13380 | else |
13381 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13382 | sed 's/^/| /' conftest.$ac_ext >&5 |
13383 | ||
98418dba | 13384 | eval "$as_ac_var=no" |
503d2be0 | 13385 | fi |
35996d22 AS |
13386 | rm -f conftest.err conftest.$ac_objext \ |
13387 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 13388 | fi |
c0d27fcc | 13389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13390 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13391 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13392 | cat >>confdefs.h <<_ACEOF |
98418dba | 13393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13394 | _ACEOF |
ba4481b5 | 13395 | |
ba4481b5 | 13396 | fi |
98418dba | 13397 | done |
ba4481b5 | 13398 | |
c0d27fcc MR |
13399 | |
13400 | ||
98418dba CW |
13401 | for ac_header in sys/un.h |
13402 | do | |
13403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13409 | fi |
13410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13412 | else |
c0d27fcc MR |
13413 | # Is the header compilable? |
13414 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13416 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13417 | /* confdefs.h. */ |
13418 | _ACEOF | |
13419 | cat confdefs.h >>conftest.$ac_ext | |
13420 | cat >>conftest.$ac_ext <<_ACEOF | |
13421 | /* end confdefs.h. */ | |
c0d27fcc MR |
13422 | $ac_includes_default |
13423 | #include <$ac_header> | |
13424 | _ACEOF | |
13425 | rm -f conftest.$ac_objext | |
13426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13427 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13428 | ac_status=$? |
35996d22 AS |
13429 | grep -v '^ *+' conftest.er1 >conftest.err |
13430 | rm -f conftest.er1 | |
13431 | cat conftest.err >&5 | |
c0d27fcc MR |
13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13433 | (exit $ac_status); } && | |
35996d22 AS |
13434 | { ac_try='test -z "$ac_c_werror_flag" |
13435 | || test ! -s conftest.err' | |
13436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13437 | (eval $ac_try) 2>&5 | |
13438 | ac_status=$? | |
13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13440 | (exit $ac_status); }; } && | |
13441 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13443 | (eval $ac_try) 2>&5 | |
13444 | ac_status=$? | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); }; }; then | |
13447 | ac_header_compiler=yes | |
13448 | else | |
13449 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13450 | sed 's/^/| /' conftest.$ac_ext >&5 |
13451 | ||
c0d27fcc MR |
13452 | ac_header_compiler=no |
13453 | fi | |
35996d22 | 13454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13456 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13457 | ||
13458 | # Is the header present? | |
13459 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13460 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13461 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13462 | /* confdefs.h. */ |
13463 | _ACEOF | |
13464 | cat confdefs.h >>conftest.$ac_ext | |
13465 | cat >>conftest.$ac_ext <<_ACEOF | |
13466 | /* end confdefs.h. */ | |
98418dba | 13467 | #include <$ac_header> |
503d2be0 | 13468 | _ACEOF |
c0d27fcc | 13469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13471 | ac_status=$? | |
6bae0ccf | 13472 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13473 | rm -f conftest.er1 |
13474 | cat conftest.err >&5 | |
c0d27fcc | 13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13476 | (exit $ac_status); } >/dev/null; then |
13477 | if test -s conftest.err; then | |
13478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13480 | else |
13481 | ac_cpp_err= | |
13482 | fi | |
13483 | else | |
13484 | ac_cpp_err=yes | |
13485 | fi | |
13486 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13487 | ac_header_preproc=yes |
ba4481b5 | 13488 | else |
503d2be0 | 13489 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13490 | sed 's/^/| /' conftest.$ac_ext >&5 |
13491 | ||
c0d27fcc | 13492 | ac_header_preproc=no |
ba4481b5 | 13493 | fi |
503d2be0 | 13494 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13496 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13497 | ||
13498 | # So? What about this header? | |
35996d22 AS |
13499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13500 | yes:no: ) | |
c0d27fcc MR |
13501 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13502 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13504 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13505 | ac_header_preproc=yes | |
19650fd6 | 13506 | ;; |
35996d22 | 13507 | no:yes:* ) |
c0d27fcc MR |
13508 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13509 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13510 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13511 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13512 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13513 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13514 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13515 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13517 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13518 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13519 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13520 | ( |
13521 | cat <<\_ASBOX | |
35996d22 AS |
13522 | ## ------------------------------------------ ## |
13523 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13524 | ## ------------------------------------------ ## | |
19650fd6 AS |
13525 | _ASBOX |
13526 | ) | | |
13527 | sed "s/^/$as_me: WARNING: /" >&2 | |
13528 | ;; | |
c0d27fcc MR |
13529 | esac |
13530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13534 | else | |
35996d22 | 13535 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13536 | fi |
c0d27fcc | 13537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 13538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13539 | |
13540 | fi | |
925c2f3f | 13541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13542 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 13543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13544 | _ACEOF |
503d2be0 | 13545 | |
925c2f3f | 13546 | fi |
c0d27fcc | 13547 | |
925c2f3f EZ |
13548 | done |
13549 | ||
c0d27fcc MR |
13550 | |
13551 | ||
13552 | ||
35996d22 AS |
13553 | |
13554 | for ac_header in stdlib.h sys/time.h unistd.h | |
925c2f3f EZ |
13555 | do |
13556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
13559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13562 | fi |
13563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 13565 | else |
c0d27fcc MR |
13566 | # Is the header compilable? |
13567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13569 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13570 | /* confdefs.h. */ |
13571 | _ACEOF | |
13572 | cat confdefs.h >>conftest.$ac_ext | |
13573 | cat >>conftest.$ac_ext <<_ACEOF | |
13574 | /* end confdefs.h. */ | |
c0d27fcc MR |
13575 | $ac_includes_default |
13576 | #include <$ac_header> | |
13577 | _ACEOF | |
13578 | rm -f conftest.$ac_objext | |
13579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13580 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13581 | ac_status=$? |
35996d22 AS |
13582 | grep -v '^ *+' conftest.er1 >conftest.err |
13583 | rm -f conftest.er1 | |
13584 | cat conftest.err >&5 | |
c0d27fcc MR |
13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13586 | (exit $ac_status); } && | |
35996d22 AS |
13587 | { ac_try='test -z "$ac_c_werror_flag" |
13588 | || test ! -s conftest.err' | |
13589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13590 | (eval $ac_try) 2>&5 | |
13591 | ac_status=$? | |
13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13593 | (exit $ac_status); }; } && | |
13594 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13596 | (eval $ac_try) 2>&5 | |
13597 | ac_status=$? | |
13598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13599 | (exit $ac_status); }; }; then | |
13600 | ac_header_compiler=yes | |
13601 | else | |
13602 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13603 | sed 's/^/| /' conftest.$ac_ext >&5 |
13604 | ||
c0d27fcc MR |
13605 | ac_header_compiler=no |
13606 | fi | |
35996d22 | 13607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13609 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13610 | ||
13611 | # Is the header present? | |
13612 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13613 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13614 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13615 | /* confdefs.h. */ |
13616 | _ACEOF | |
13617 | cat confdefs.h >>conftest.$ac_ext | |
13618 | cat >>conftest.$ac_ext <<_ACEOF | |
13619 | /* end confdefs.h. */ | |
98418dba | 13620 | #include <$ac_header> |
503d2be0 | 13621 | _ACEOF |
c0d27fcc | 13622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13624 | ac_status=$? | |
6bae0ccf | 13625 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13626 | rm -f conftest.er1 |
13627 | cat conftest.err >&5 | |
c0d27fcc | 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13629 | (exit $ac_status); } >/dev/null; then |
13630 | if test -s conftest.err; then | |
13631 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13633 | else |
13634 | ac_cpp_err= | |
13635 | fi | |
13636 | else | |
13637 | ac_cpp_err=yes | |
13638 | fi | |
13639 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13640 | ac_header_preproc=yes |
98418dba CW |
13641 | else |
13642 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13643 | sed 's/^/| /' conftest.$ac_ext >&5 |
13644 | ||
c0d27fcc | 13645 | ac_header_preproc=no |
98418dba CW |
13646 | fi |
13647 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13649 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13650 | ||
13651 | # So? What about this header? | |
35996d22 AS |
13652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13653 | yes:no: ) | |
c0d27fcc MR |
13654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13658 | ac_header_preproc=yes | |
19650fd6 | 13659 | ;; |
35996d22 | 13660 | no:yes:* ) |
c0d27fcc MR |
13661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13667 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13668 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13673 | ( |
13674 | cat <<\_ASBOX | |
35996d22 AS |
13675 | ## ------------------------------------------ ## |
13676 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13677 | ## ------------------------------------------ ## | |
19650fd6 AS |
13678 | _ASBOX |
13679 | ) | | |
13680 | sed "s/^/$as_me: WARNING: /" >&2 | |
13681 | ;; | |
c0d27fcc MR |
13682 | esac |
13683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13687 | else | |
35996d22 | 13688 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 13689 | fi |
c0d27fcc | 13690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13692 | |
13693 | fi | |
98418dba | 13694 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13695 | cat >>confdefs.h <<_ACEOF |
98418dba | 13696 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13697 | _ACEOF |
98418dba CW |
13698 | |
13699 | fi | |
c0d27fcc | 13700 | |
98418dba CW |
13701 | done |
13702 | ||
c0d27fcc | 13703 | |
98418dba CW |
13704 | for ac_func in alarm |
13705 | do | |
13706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13707 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13709 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13711 | else |
98418dba | 13712 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13713 | /* confdefs.h. */ |
13714 | _ACEOF | |
13715 | cat confdefs.h >>conftest.$ac_ext | |
13716 | cat >>conftest.$ac_ext <<_ACEOF | |
13717 | /* end confdefs.h. */ | |
35996d22 AS |
13718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13720 | #define $ac_func innocuous_$ac_func | |
13721 | ||
98418dba | 13722 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13723 | which can conflict with char $ac_func (); below. |
13724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13725 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13726 | |
19650fd6 AS |
13727 | #ifdef __STDC__ |
13728 | # include <limits.h> | |
13729 | #else | |
13730 | # include <assert.h> | |
13731 | #endif | |
35996d22 AS |
13732 | |
13733 | #undef $ac_func | |
13734 | ||
ba4481b5 | 13735 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13736 | #ifdef __cplusplus |
13737 | extern "C" | |
19650fd6 | 13738 | { |
503d2be0 | 13739 | #endif |
ba4481b5 | 13740 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13741 | builtin and then its argument prototype would still apply. */ |
98418dba | 13742 | char $ac_func (); |
98418dba CW |
13743 | /* The GNU C library defines this for functions which it implements |
13744 | to always fail with ENOSYS. Some functions are actually named | |
13745 | something starting with __ and the normal name is an alias. */ | |
13746 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13747 | choke me | |
13748 | #else | |
19650fd6 AS |
13749 | char (*f) () = $ac_func; |
13750 | #endif | |
13751 | #ifdef __cplusplus | |
13752 | } | |
98418dba CW |
13753 | #endif |
13754 | ||
19650fd6 AS |
13755 | int |
13756 | main () | |
13757 | { | |
13758 | return f != $ac_func; | |
503d2be0 AS |
13759 | ; |
13760 | return 0; | |
13761 | } | |
13762 | _ACEOF | |
13763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13765 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13766 | ac_status=$? |
35996d22 AS |
13767 | grep -v '^ *+' conftest.er1 >conftest.err |
13768 | rm -f conftest.er1 | |
13769 | cat conftest.err >&5 | |
c0d27fcc | 13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13771 | (exit $ac_status); } && |
35996d22 AS |
13772 | { ac_try='test -z "$ac_c_werror_flag" |
13773 | || test ! -s conftest.err' | |
13774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13775 | (eval $ac_try) 2>&5 | |
13776 | ac_status=$? | |
13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13778 | (exit $ac_status); }; } && | |
13779 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13781 | (eval $ac_try) 2>&5 |
13782 | ac_status=$? | |
c0d27fcc | 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13784 | (exit $ac_status); }; }; then |
98418dba | 13785 | eval "$as_ac_var=yes" |
503d2be0 AS |
13786 | else |
13787 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13788 | sed 's/^/| /' conftest.$ac_ext >&5 |
13789 | ||
98418dba | 13790 | eval "$as_ac_var=no" |
503d2be0 | 13791 | fi |
35996d22 AS |
13792 | rm -f conftest.err conftest.$ac_objext \ |
13793 | conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 13794 | fi |
c0d27fcc | 13795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13796 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13797 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13798 | cat >>confdefs.h <<_ACEOF |
98418dba | 13799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13800 | _ACEOF |
ffe36136 | 13801 | |
ba4481b5 | 13802 | fi |
98418dba | 13803 | done |
ba4481b5 | 13804 | |
c0d27fcc | 13805 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
13806 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
13807 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
13808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13809 | else | |
13810 | if test "$cross_compiling" = yes; then | |
13811 | ac_cv_func_working_mktime=no | |
13812 | else | |
13813 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13814 | /* confdefs.h. */ |
13815 | _ACEOF | |
13816 | cat confdefs.h >>conftest.$ac_ext | |
13817 | cat >>conftest.$ac_ext <<_ACEOF | |
13818 | /* end confdefs.h. */ | |
98418dba CW |
13819 | /* Test program from Paul Eggert and Tony Leneis. */ |
13820 | #if TIME_WITH_SYS_TIME | |
13821 | # include <sys/time.h> | |
13822 | # include <time.h> | |
13823 | #else | |
13824 | # if HAVE_SYS_TIME_H | |
13825 | # include <sys/time.h> | |
13826 | # else | |
13827 | # include <time.h> | |
13828 | # endif | |
13829 | #endif | |
ba4481b5 | 13830 | |
35996d22 AS |
13831 | #if HAVE_STDLIB_H |
13832 | # include <stdlib.h> | |
13833 | #endif | |
13834 | ||
98418dba CW |
13835 | #if HAVE_UNISTD_H |
13836 | # include <unistd.h> | |
13837 | #endif | |
ba4481b5 | 13838 | |
98418dba CW |
13839 | #if !HAVE_ALARM |
13840 | # define alarm(X) /* empty */ | |
13841 | #endif | |
df645f7c | 13842 | |
98418dba CW |
13843 | /* Work around redefinition to rpl_putenv by other config tests. */ |
13844 | #undef putenv | |
df645f7c | 13845 | |
98418dba | 13846 | static time_t time_t_max; |
35996d22 | 13847 | static time_t time_t_min; |
df645f7c | 13848 | |
98418dba | 13849 | /* Values we'll use to set the TZ environment variable. */ |
35996d22 AS |
13850 | static char *tz_strings[] = { |
13851 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
13852 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
13853 | }; | |
13854 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 13855 | |
98418dba CW |
13856 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
13857 | Based on a problem report from Andreas Jaeger. */ | |
13858 | static void | |
13859 | spring_forward_gap () | |
13860 | { | |
13861 | /* glibc (up to about 1998-10-07) failed this test. */ | |
13862 | struct tm tm; | |
13863 | ||
13864 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
13865 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
13866 | on systems that don't support the Olson extension, or don't have the | |
13867 | full zoneinfo tables installed. */ | |
13868 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
13869 | ||
13870 | tm.tm_year = 98; | |
13871 | tm.tm_mon = 3; | |
13872 | tm.tm_mday = 5; | |
13873 | tm.tm_hour = 2; | |
13874 | tm.tm_min = 0; | |
13875 | tm.tm_sec = 0; | |
13876 | tm.tm_isdst = -1; | |
13877 | if (mktime (&tm) == (time_t)-1) | |
13878 | exit (1); | |
13879 | } | |
13880 | ||
13881 | static void | |
35996d22 | 13882 | mktime_test1 (now) |
98418dba CW |
13883 | time_t now; |
13884 | { | |
13885 | struct tm *lt; | |
13886 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
13887 | exit (1); | |
35996d22 AS |
13888 | } |
13889 | ||
13890 | static void | |
13891 | mktime_test (now) | |
13892 | time_t now; | |
13893 | { | |
13894 | mktime_test1 (now); | |
13895 | mktime_test1 ((time_t) (time_t_max - now)); | |
13896 | mktime_test1 ((time_t) (time_t_min + now)); | |
98418dba CW |
13897 | } |
13898 | ||
13899 | static void | |
13900 | irix_6_4_bug () | |
13901 | { | |
13902 | /* Based on code from Ariel Faigon. */ | |
13903 | struct tm tm; | |
13904 | tm.tm_year = 96; | |
13905 | tm.tm_mon = 3; | |
13906 | tm.tm_mday = 0; | |
13907 | tm.tm_hour = 0; | |
13908 | tm.tm_min = 0; | |
13909 | tm.tm_sec = 0; | |
13910 | tm.tm_isdst = -1; | |
13911 | mktime (&tm); | |
13912 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
13913 | exit (1); | |
13914 | } | |
13915 | ||
13916 | static void | |
13917 | bigtime_test (j) | |
13918 | int j; | |
13919 | { | |
13920 | struct tm tm; | |
13921 | time_t now; | |
13922 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
13923 | now = mktime (&tm); | |
13924 | if (now != (time_t) -1) | |
13925 | { | |
13926 | struct tm *lt = localtime (&now); | |
13927 | if (! (lt | |
13928 | && lt->tm_year == tm.tm_year | |
13929 | && lt->tm_mon == tm.tm_mon | |
13930 | && lt->tm_mday == tm.tm_mday | |
13931 | && lt->tm_hour == tm.tm_hour | |
13932 | && lt->tm_min == tm.tm_min | |
13933 | && lt->tm_sec == tm.tm_sec | |
13934 | && lt->tm_yday == tm.tm_yday | |
13935 | && lt->tm_wday == tm.tm_wday | |
13936 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
13937 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
13938 | exit (1); | |
13939 | } | |
13940 | } | |
13941 | ||
13942 | int | |
13943 | main () | |
13944 | { | |
13945 | time_t t, delta; | |
13946 | int i, j; | |
13947 | ||
13948 | /* This test makes some buggy mktime implementations loop. | |
13949 | Give up after 60 seconds; a mktime slower than that | |
13950 | isn't worth using anyway. */ | |
13951 | alarm (60); | |
13952 | ||
13953 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
13954 | continue; | |
13955 | time_t_max--; | |
35996d22 AS |
13956 | if ((time_t) -1 < 0) |
13957 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
13958 | continue; | |
98418dba CW |
13959 | delta = time_t_max / 997; /* a suitable prime number */ |
13960 | for (i = 0; i < N_STRINGS; i++) | |
13961 | { | |
13962 | if (tz_strings[i]) | |
13963 | putenv (tz_strings[i]); | |
503d2be0 | 13964 | |
98418dba CW |
13965 | for (t = 0; t <= time_t_max - delta; t += delta) |
13966 | mktime_test (t); | |
35996d22 AS |
13967 | mktime_test ((time_t) 1); |
13968 | mktime_test ((time_t) (60 * 60)); | |
13969 | mktime_test ((time_t) (60 * 60 * 24)); | |
98418dba CW |
13970 | |
13971 | for (j = 1; 0 < j; j *= 2) | |
35996d22 | 13972 | bigtime_test (j); |
98418dba CW |
13973 | bigtime_test (j - 1); |
13974 | } | |
13975 | irix_6_4_bug (); | |
13976 | spring_forward_gap (); | |
13977 | exit (0); | |
503d2be0 AS |
13978 | } |
13979 | _ACEOF | |
98418dba | 13980 | rm -f conftest$ac_exeext |
c0d27fcc | 13981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13982 | (eval $ac_link) 2>&5 |
13983 | ac_status=$? | |
c0d27fcc | 13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 13985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 13986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13987 | (eval $ac_try) 2>&5 |
13988 | ac_status=$? | |
c0d27fcc | 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13990 | (exit $ac_status); }; }; then |
98418dba | 13991 | ac_cv_func_working_mktime=yes |
503d2be0 | 13992 | else |
98418dba CW |
13993 | echo "$as_me: program exited with status $ac_status" >&5 |
13994 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13995 | sed 's/^/| /' conftest.$ac_ext >&5 |
13996 | ||
c0d27fcc | 13997 | ( exit $ac_status ) |
98418dba | 13998 | ac_cv_func_working_mktime=no |
503d2be0 | 13999 | fi |
35996d22 | 14000 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 14001 | fi |
ba4481b5 | 14002 | fi |
c0d27fcc | 14003 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
14004 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
14005 | if test $ac_cv_func_working_mktime = no; then | |
35996d22 AS |
14006 | case $LIBOBJS in |
14007 | "mktime.$ac_objext" | \ | |
14008 | *" mktime.$ac_objext" | \ | |
14009 | "mktime.$ac_objext "* | \ | |
14010 | *" mktime.$ac_objext "* ) ;; | |
14011 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; | |
14012 | esac | |
14013 | ||
ba4481b5 DL |
14014 | fi |
14015 | ||
98418dba | 14016 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 14017 | |
c0d27fcc | 14018 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14019 | #define BROKEN_MKTIME 1 |
c0d27fcc | 14020 | _ACEOF |
ba4481b5 | 14021 | |
ba4481b5 | 14022 | fi |
503d2be0 | 14023 | |
98418dba CW |
14024 | ac_have_func=no # yes means we've found a way to get the load average. |
14025 | ||
6bae0ccf DL |
14026 | # Make sure getloadavg.c is where it belongs, at configure-time. |
14027 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
14028 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
14029 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
14030 | { (exit 1); exit 1; }; } | |
14031 | ||
98418dba CW |
14032 | ac_save_LIBS=$LIBS |
14033 | ||
14034 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 14035 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
14036 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
14037 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14039 | else |
503d2be0 | 14040 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14041 | /* confdefs.h. */ |
14042 | _ACEOF | |
14043 | cat confdefs.h >>conftest.$ac_ext | |
14044 | cat >>conftest.$ac_ext <<_ACEOF | |
14045 | /* end confdefs.h. */ | |
35996d22 AS |
14046 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
14047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14048 | #define getloadavg innocuous_getloadavg | |
14049 | ||
98418dba | 14050 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14051 | which can conflict with char getloadavg (); below. |
14052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14053 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14054 | |
19650fd6 AS |
14055 | #ifdef __STDC__ |
14056 | # include <limits.h> | |
14057 | #else | |
14058 | # include <assert.h> | |
14059 | #endif | |
35996d22 AS |
14060 | |
14061 | #undef getloadavg | |
14062 | ||
ba4481b5 | 14063 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14064 | #ifdef __cplusplus |
14065 | extern "C" | |
19650fd6 | 14066 | { |
503d2be0 | 14067 | #endif |
ba4481b5 | 14068 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14069 | builtin and then its argument prototype would still apply. */ |
98418dba | 14070 | char getloadavg (); |
98418dba CW |
14071 | /* The GNU C library defines this for functions which it implements |
14072 | to always fail with ENOSYS. Some functions are actually named | |
14073 | something starting with __ and the normal name is an alias. */ | |
14074 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
14075 | choke me | |
14076 | #else | |
19650fd6 AS |
14077 | char (*f) () = getloadavg; |
14078 | #endif | |
14079 | #ifdef __cplusplus | |
14080 | } | |
cd958eb3 MB |
14081 | #endif |
14082 | ||
19650fd6 AS |
14083 | int |
14084 | main () | |
14085 | { | |
14086 | return f != getloadavg; | |
503d2be0 AS |
14087 | ; |
14088 | return 0; | |
14089 | } | |
14090 | _ACEOF | |
14091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14093 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14094 | ac_status=$? |
35996d22 AS |
14095 | grep -v '^ *+' conftest.er1 >conftest.err |
14096 | rm -f conftest.er1 | |
14097 | cat conftest.err >&5 | |
c0d27fcc | 14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14099 | (exit $ac_status); } && |
35996d22 AS |
14100 | { ac_try='test -z "$ac_c_werror_flag" |
14101 | || test ! -s conftest.err' | |
14102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14103 | (eval $ac_try) 2>&5 | |
14104 | ac_status=$? | |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14106 | (exit $ac_status); }; } && | |
14107 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14109 | (eval $ac_try) 2>&5 |
14110 | ac_status=$? | |
c0d27fcc | 14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14112 | (exit $ac_status); }; }; then |
98418dba | 14113 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
14114 | else |
14115 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14116 | sed 's/^/| /' conftest.$ac_ext >&5 |
14117 | ||
98418dba | 14118 | ac_cv_func_getloadavg=no |
503d2be0 | 14119 | fi |
35996d22 AS |
14120 | rm -f conftest.err conftest.$ac_objext \ |
14121 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 14122 | fi |
c0d27fcc | 14123 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
14124 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
14125 | if test $ac_cv_func_getloadavg = yes; then | |
14126 | exit 0 | |
14127 | else | |
14128 | exit 1 | |
ba4481b5 | 14129 | fi |
98418dba | 14130 | ) && ac_have_func=yes |
ba4481b5 | 14131 | |
98418dba | 14132 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 14133 | |
98418dba CW |
14134 | for ac_func in pstat_getdynamic |
14135 | do | |
14136 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14137 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
14138 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14139 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 14140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14141 | else |
503d2be0 | 14142 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14143 | /* confdefs.h. */ |
14144 | _ACEOF | |
14145 | cat confdefs.h >>conftest.$ac_ext | |
14146 | cat >>conftest.$ac_ext <<_ACEOF | |
14147 | /* end confdefs.h. */ | |
35996d22 AS |
14148 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14150 | #define $ac_func innocuous_$ac_func | |
14151 | ||
98418dba | 14152 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14153 | which can conflict with char $ac_func (); below. |
14154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14155 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14156 | |
19650fd6 AS |
14157 | #ifdef __STDC__ |
14158 | # include <limits.h> | |
14159 | #else | |
14160 | # include <assert.h> | |
14161 | #endif | |
35996d22 AS |
14162 | |
14163 | #undef $ac_func | |
14164 | ||
ba4481b5 | 14165 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14166 | #ifdef __cplusplus |
14167 | extern "C" | |
19650fd6 | 14168 | { |
503d2be0 | 14169 | #endif |
ba4481b5 | 14170 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14171 | builtin and then its argument prototype would still apply. */ |
98418dba | 14172 | char $ac_func (); |
98418dba CW |
14173 | /* The GNU C library defines this for functions which it implements |
14174 | to always fail with ENOSYS. Some functions are actually named | |
14175 | something starting with __ and the normal name is an alias. */ | |
14176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14177 | choke me | |
14178 | #else | |
19650fd6 AS |
14179 | char (*f) () = $ac_func; |
14180 | #endif | |
14181 | #ifdef __cplusplus | |
14182 | } | |
98418dba CW |
14183 | #endif |
14184 | ||
19650fd6 AS |
14185 | int |
14186 | main () | |
14187 | { | |
14188 | return f != $ac_func; | |
98418dba CW |
14189 | ; |
14190 | return 0; | |
14191 | } | |
f21fadcc | 14192 | _ACEOF |
98418dba | 14193 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14195 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14196 | ac_status=$? |
35996d22 AS |
14197 | grep -v '^ *+' conftest.er1 >conftest.err |
14198 | rm -f conftest.er1 | |
14199 | cat conftest.err >&5 | |
c0d27fcc | 14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14201 | (exit $ac_status); } && |
35996d22 AS |
14202 | { ac_try='test -z "$ac_c_werror_flag" |
14203 | || test ! -s conftest.err' | |
14204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14205 | (eval $ac_try) 2>&5 | |
14206 | ac_status=$? | |
14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14208 | (exit $ac_status); }; } && | |
14209 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14211 | (eval $ac_try) 2>&5 |
14212 | ac_status=$? | |
c0d27fcc | 14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14214 | (exit $ac_status); }; }; then |
14215 | eval "$as_ac_var=yes" | |
f21fadcc JD |
14216 | else |
14217 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14218 | sed 's/^/| /' conftest.$ac_ext >&5 |
14219 | ||
98418dba | 14220 | eval "$as_ac_var=no" |
f21fadcc | 14221 | fi |
35996d22 AS |
14222 | rm -f conftest.err conftest.$ac_objext \ |
14223 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc | 14224 | fi |
c0d27fcc | 14225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
14226 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14227 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14228 | cat >>confdefs.h <<_ACEOF |
98418dba | 14229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14230 | _ACEOF |
98418dba CW |
14231 | |
14232 | fi | |
14233 | done | |
14234 | ||
c0d27fcc | 14235 | |
98418dba CW |
14236 | # Solaris has libkstat which does not require root. |
14237 | ||
c0d27fcc | 14238 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
14239 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
14240 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
14241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14242 | else | |
14243 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 14244 | LIBS="-lkstat $LIBS" |
f21fadcc | 14245 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14246 | /* confdefs.h. */ |
14247 | _ACEOF | |
14248 | cat confdefs.h >>conftest.$ac_ext | |
14249 | cat >>conftest.$ac_ext <<_ACEOF | |
14250 | /* end confdefs.h. */ | |
f21fadcc JD |
14251 | |
14252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14253 | #ifdef __cplusplus | |
14254 | extern "C" | |
14255 | #endif | |
14256 | /* We use char because int might match the return type of a gcc2 | |
14257 | builtin and then its argument prototype would still apply. */ | |
98418dba | 14258 | char kstat_open (); |
f21fadcc JD |
14259 | int |
14260 | main () | |
14261 | { | |
98418dba | 14262 | kstat_open (); |
f21fadcc JD |
14263 | ; |
14264 | return 0; | |
14265 | } | |
14266 | _ACEOF | |
14267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14269 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14270 | ac_status=$? |
35996d22 AS |
14271 | grep -v '^ *+' conftest.er1 >conftest.err |
14272 | rm -f conftest.er1 | |
14273 | cat conftest.err >&5 | |
c0d27fcc | 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14275 | (exit $ac_status); } && |
35996d22 AS |
14276 | { ac_try='test -z "$ac_c_werror_flag" |
14277 | || test ! -s conftest.err' | |
14278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14279 | (eval $ac_try) 2>&5 | |
14280 | ac_status=$? | |
14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14282 | (exit $ac_status); }; } && | |
14283 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
14285 | (eval $ac_try) 2>&5 |
14286 | ac_status=$? | |
c0d27fcc | 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14288 | (exit $ac_status); }; }; then |
98418dba | 14289 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
14290 | else |
14291 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14292 | sed 's/^/| /' conftest.$ac_ext >&5 |
14293 | ||
98418dba | 14294 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 14295 | fi |
35996d22 AS |
14296 | rm -f conftest.err conftest.$ac_objext \ |
14297 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc JD |
14298 | LIBS=$ac_check_lib_save_LIBS |
14299 | fi | |
c0d27fcc | 14300 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
14301 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
14302 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 14303 | cat >>confdefs.h <<_ACEOF |
98418dba | 14304 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 14305 | _ACEOF |
f21fadcc | 14306 | |
98418dba | 14307 | LIBS="-lkstat $LIBS" |
f21fadcc | 14308 | |
f21fadcc JD |
14309 | fi |
14310 | ||
98418dba CW |
14311 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
14312 | ||
14313 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
14314 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
14315 | # to get the right answer into the cache. | |
14316 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
14317 | if test $ac_have_func = no; then | |
c0d27fcc | 14318 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
14319 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
14320 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 14321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14322 | else |
98418dba CW |
14323 | ac_check_lib_save_LIBS=$LIBS |
14324 | LIBS="-lelf $LIBS" | |
14325 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14326 | /* confdefs.h. */ |
14327 | _ACEOF | |
14328 | cat confdefs.h >>conftest.$ac_ext | |
14329 | cat >>conftest.$ac_ext <<_ACEOF | |
14330 | /* end confdefs.h. */ | |
98418dba CW |
14331 | |
14332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14333 | #ifdef __cplusplus | |
14334 | extern "C" | |
14335 | #endif | |
14336 | /* We use char because int might match the return type of a gcc2 | |
14337 | builtin and then its argument prototype would still apply. */ | |
14338 | char elf_begin (); | |
503d2be0 AS |
14339 | int |
14340 | main () | |
14341 | { | |
98418dba | 14342 | elf_begin (); |
503d2be0 AS |
14343 | ; |
14344 | return 0; | |
14345 | } | |
14346 | _ACEOF | |
14347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14349 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14350 | ac_status=$? |
35996d22 AS |
14351 | grep -v '^ *+' conftest.er1 >conftest.err |
14352 | rm -f conftest.er1 | |
14353 | cat conftest.err >&5 | |
c0d27fcc | 14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14355 | (exit $ac_status); } && |
35996d22 AS |
14356 | { ac_try='test -z "$ac_c_werror_flag" |
14357 | || test ! -s conftest.err' | |
14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14359 | (eval $ac_try) 2>&5 | |
14360 | ac_status=$? | |
14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14362 | (exit $ac_status); }; } && | |
14363 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14365 | (eval $ac_try) 2>&5 |
14366 | ac_status=$? | |
c0d27fcc | 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14368 | (exit $ac_status); }; }; then |
98418dba | 14369 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 14370 | else |
503d2be0 | 14371 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14372 | sed 's/^/| /' conftest.$ac_ext >&5 |
14373 | ||
98418dba | 14374 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 14375 | fi |
35996d22 AS |
14376 | rm -f conftest.err conftest.$ac_objext \ |
14377 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14378 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14379 | fi |
c0d27fcc | 14380 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
14381 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
14382 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
14383 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
14384 | fi |
14385 | ||
98418dba CW |
14386 | fi |
14387 | if test $ac_have_func = no; then | |
c0d27fcc | 14388 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
14389 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
14390 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 14391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14392 | else |
98418dba CW |
14393 | ac_check_lib_save_LIBS=$LIBS |
14394 | LIBS="-lkvm $LIBS" | |
14395 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14396 | /* confdefs.h. */ |
14397 | _ACEOF | |
14398 | cat confdefs.h >>conftest.$ac_ext | |
14399 | cat >>conftest.$ac_ext <<_ACEOF | |
14400 | /* end confdefs.h. */ | |
98418dba CW |
14401 | |
14402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14403 | #ifdef __cplusplus | |
14404 | extern "C" | |
14405 | #endif | |
14406 | /* We use char because int might match the return type of a gcc2 | |
14407 | builtin and then its argument prototype would still apply. */ | |
14408 | char kvm_open (); | |
503d2be0 AS |
14409 | int |
14410 | main () | |
14411 | { | |
98418dba | 14412 | kvm_open (); |
503d2be0 AS |
14413 | ; |
14414 | return 0; | |
14415 | } | |
14416 | _ACEOF | |
14417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14419 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14420 | ac_status=$? |
35996d22 AS |
14421 | grep -v '^ *+' conftest.er1 >conftest.err |
14422 | rm -f conftest.er1 | |
14423 | cat conftest.err >&5 | |
c0d27fcc | 14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14425 | (exit $ac_status); } && |
35996d22 AS |
14426 | { ac_try='test -z "$ac_c_werror_flag" |
14427 | || test ! -s conftest.err' | |
14428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14429 | (eval $ac_try) 2>&5 | |
14430 | ac_status=$? | |
14431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14432 | (exit $ac_status); }; } && | |
14433 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14435 | (eval $ac_try) 2>&5 |
14436 | ac_status=$? | |
c0d27fcc | 14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14438 | (exit $ac_status); }; }; then |
98418dba | 14439 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
14440 | else |
14441 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14442 | sed 's/^/| /' conftest.$ac_ext >&5 |
14443 | ||
98418dba | 14444 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 14445 | fi |
35996d22 AS |
14446 | rm -f conftest.err conftest.$ac_objext \ |
14447 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14448 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 14449 | fi |
c0d27fcc | 14450 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
14451 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
14452 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
14453 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
14454 | fi |
14455 | ||
98418dba | 14456 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 14457 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
14458 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
14459 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 14460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14461 | else |
98418dba CW |
14462 | ac_check_lib_save_LIBS=$LIBS |
14463 | LIBS="-lutil $LIBS" | |
14464 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14465 | /* confdefs.h. */ |
14466 | _ACEOF | |
14467 | cat confdefs.h >>conftest.$ac_ext | |
14468 | cat >>conftest.$ac_ext <<_ACEOF | |
14469 | /* end confdefs.h. */ | |
98418dba CW |
14470 | |
14471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14472 | #ifdef __cplusplus | |
14473 | extern "C" | |
14474 | #endif | |
14475 | /* We use char because int might match the return type of a gcc2 | |
14476 | builtin and then its argument prototype would still apply. */ | |
14477 | char getloadavg (); | |
503d2be0 AS |
14478 | int |
14479 | main () | |
14480 | { | |
98418dba | 14481 | getloadavg (); |
503d2be0 AS |
14482 | ; |
14483 | return 0; | |
14484 | } | |
14485 | _ACEOF | |
14486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14488 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14489 | ac_status=$? |
35996d22 AS |
14490 | grep -v '^ *+' conftest.er1 >conftest.err |
14491 | rm -f conftest.er1 | |
14492 | cat conftest.err >&5 | |
c0d27fcc | 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14494 | (exit $ac_status); } && |
35996d22 AS |
14495 | { ac_try='test -z "$ac_c_werror_flag" |
14496 | || test ! -s conftest.err' | |
c0d27fcc | 14497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14498 | (eval $ac_try) 2>&5 |
14499 | ac_status=$? | |
c0d27fcc | 14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
14501 | (exit $ac_status); }; } && |
14502 | { ac_try='test -s conftest$ac_exeext' | |
14503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14504 | (eval $ac_try) 2>&5 | |
14505 | ac_status=$? | |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14507 | (exit $ac_status); }; }; then | |
14508 | ac_cv_lib_util_getloadavg=yes | |
14509 | else | |
503d2be0 | 14510 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14511 | sed 's/^/| /' conftest.$ac_ext >&5 |
14512 | ||
98418dba | 14513 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 14514 | fi |
35996d22 AS |
14515 | rm -f conftest.err conftest.$ac_objext \ |
14516 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14517 | LIBS=$ac_check_lib_save_LIBS |
14518 | fi | |
c0d27fcc | 14519 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
14520 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
14521 | if test $ac_cv_lib_util_getloadavg = yes; then | |
14522 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 14523 | fi |
503d2be0 | 14524 | |
98418dba | 14525 | fi |
ba4481b5 | 14526 | |
98418dba CW |
14527 | if test $ac_have_func = no; then |
14528 | # There is a commonly available library for RS/6000 AIX. | |
14529 | # Since it is not a standard part of AIX, it might be installed locally. | |
14530 | ac_getloadavg_LIBS=$LIBS | |
14531 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 14532 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
14533 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
14534 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14536 | else |
98418dba CW |
14537 | ac_check_lib_save_LIBS=$LIBS |
14538 | LIBS="-lgetloadavg $LIBS" | |
14539 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14540 | /* confdefs.h. */ |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
ba4481b5 | 14545 | |
98418dba CW |
14546 | /* Override any gcc2 internal prototype to avoid an error. */ |
14547 | #ifdef __cplusplus | |
14548 | extern "C" | |
14549 | #endif | |
14550 | /* We use char because int might match the return type of a gcc2 | |
14551 | builtin and then its argument prototype would still apply. */ | |
14552 | char getloadavg (); | |
98418dba CW |
14553 | int |
14554 | main () | |
14555 | { | |
14556 | getloadavg (); | |
14557 | ; | |
14558 | return 0; | |
14559 | } | |
503d2be0 | 14560 | _ACEOF |
98418dba | 14561 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14563 | (eval $ac_link) 2>conftest.er1 |
98418dba | 14564 | ac_status=$? |
35996d22 AS |
14565 | grep -v '^ *+' conftest.er1 >conftest.err |
14566 | rm -f conftest.er1 | |
14567 | cat conftest.err >&5 | |
c0d27fcc | 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14569 | (exit $ac_status); } && |
35996d22 AS |
14570 | { ac_try='test -z "$ac_c_werror_flag" |
14571 | || test ! -s conftest.err' | |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; } && | |
14577 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14579 | (eval $ac_try) 2>&5 |
14580 | ac_status=$? | |
c0d27fcc | 14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14582 | (exit $ac_status); }; }; then |
14583 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 14584 | else |
98418dba | 14585 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14586 | sed 's/^/| /' conftest.$ac_ext >&5 |
14587 | ||
98418dba CW |
14588 | ac_cv_lib_getloadavg_getloadavg=no |
14589 | fi | |
35996d22 AS |
14590 | rm -f conftest.err conftest.$ac_objext \ |
14591 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14592 | LIBS=$ac_check_lib_save_LIBS |
14593 | fi | |
c0d27fcc | 14594 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
14595 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
14596 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
14597 | LIBS="-lgetloadavg $LIBS" | |
14598 | else | |
14599 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 14600 | fi |
ba4481b5 DL |
14601 | |
14602 | fi | |
98418dba CW |
14603 | |
14604 | # Make sure it is really in the library, if we think we found it, | |
14605 | # otherwise set up the replacement function. | |
14606 | ||
14607 | for ac_func in getloadavg | |
14608 | do | |
14609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
14611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14612 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14614 | else |
503d2be0 | 14615 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14616 | /* confdefs.h. */ |
14617 | _ACEOF | |
14618 | cat confdefs.h >>conftest.$ac_ext | |
14619 | cat >>conftest.$ac_ext <<_ACEOF | |
14620 | /* end confdefs.h. */ | |
35996d22 AS |
14621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14623 | #define $ac_func innocuous_$ac_func | |
14624 | ||
ba4481b5 | 14625 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14626 | which can conflict with char $ac_func (); below. |
14627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14628 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14629 | |
19650fd6 AS |
14630 | #ifdef __STDC__ |
14631 | # include <limits.h> | |
14632 | #else | |
14633 | # include <assert.h> | |
14634 | #endif | |
35996d22 AS |
14635 | |
14636 | #undef $ac_func | |
14637 | ||
ba4481b5 | 14638 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14639 | #ifdef __cplusplus |
14640 | extern "C" | |
19650fd6 | 14641 | { |
503d2be0 | 14642 | #endif |
ba4481b5 | 14643 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14644 | builtin and then its argument prototype would still apply. */ |
14645 | char $ac_func (); | |
ba4481b5 DL |
14646 | /* The GNU C library defines this for functions which it implements |
14647 | to always fail with ENOSYS. Some functions are actually named | |
14648 | something starting with __ and the normal name is an alias. */ | |
14649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14650 | choke me | |
14651 | #else | |
19650fd6 AS |
14652 | char (*f) () = $ac_func; |
14653 | #endif | |
14654 | #ifdef __cplusplus | |
14655 | } | |
cd958eb3 MB |
14656 | #endif |
14657 | ||
19650fd6 AS |
14658 | int |
14659 | main () | |
14660 | { | |
14661 | return f != $ac_func; | |
503d2be0 AS |
14662 | ; |
14663 | return 0; | |
14664 | } | |
14665 | _ACEOF | |
14666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14668 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14669 | ac_status=$? |
35996d22 AS |
14670 | grep -v '^ *+' conftest.er1 >conftest.err |
14671 | rm -f conftest.er1 | |
14672 | cat conftest.err >&5 | |
c0d27fcc | 14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14674 | (exit $ac_status); } && |
35996d22 AS |
14675 | { ac_try='test -z "$ac_c_werror_flag" |
14676 | || test ! -s conftest.err' | |
14677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14678 | (eval $ac_try) 2>&5 | |
14679 | ac_status=$? | |
14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14681 | (exit $ac_status); }; } && | |
14682 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14684 | (eval $ac_try) 2>&5 |
14685 | ac_status=$? | |
c0d27fcc | 14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14687 | (exit $ac_status); }; }; then |
14688 | eval "$as_ac_var=yes" | |
14689 | else | |
14690 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14691 | sed 's/^/| /' conftest.$ac_ext >&5 |
14692 | ||
503d2be0 AS |
14693 | eval "$as_ac_var=no" |
14694 | fi | |
35996d22 AS |
14695 | rm -f conftest.err conftest.$ac_objext \ |
14696 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 14697 | fi |
c0d27fcc | 14698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14699 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14700 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14701 | cat >>confdefs.h <<_ACEOF |
98418dba | 14702 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14703 | _ACEOF |
503d2be0 | 14704 | |
98418dba | 14705 | else |
35996d22 AS |
14706 | case $LIBOBJS in |
14707 | "getloadavg.$ac_objext" | \ | |
14708 | *" getloadavg.$ac_objext" | \ | |
14709 | "getloadavg.$ac_objext "* | \ | |
14710 | *" getloadavg.$ac_objext "* ) ;; | |
14711 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; | |
14712 | esac | |
14713 | ||
ba4481b5 | 14714 | |
c0d27fcc | 14715 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14716 | #define C_GETLOADAVG 1 |
c0d27fcc | 14717 | _ACEOF |
ba4481b5 | 14718 | |
98418dba CW |
14719 | # Figure out what our getloadavg.c needs. |
14720 | ac_have_func=no | |
c0d27fcc MR |
14721 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
14722 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
14723 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
14724 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 14725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14726 | fi |
14727 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
14728 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 14729 | else |
c0d27fcc MR |
14730 | # Is the header compilable? |
14731 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
14732 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
14733 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14734 | /* confdefs.h. */ |
14735 | _ACEOF | |
14736 | cat confdefs.h >>conftest.$ac_ext | |
14737 | cat >>conftest.$ac_ext <<_ACEOF | |
14738 | /* end confdefs.h. */ | |
c0d27fcc MR |
14739 | $ac_includes_default |
14740 | #include <sys/dg_sys_info.h> | |
14741 | _ACEOF | |
14742 | rm -f conftest.$ac_objext | |
14743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14744 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14745 | ac_status=$? |
35996d22 AS |
14746 | grep -v '^ *+' conftest.er1 >conftest.err |
14747 | rm -f conftest.er1 | |
14748 | cat conftest.err >&5 | |
c0d27fcc MR |
14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14750 | (exit $ac_status); } && | |
35996d22 AS |
14751 | { ac_try='test -z "$ac_c_werror_flag" |
14752 | || test ! -s conftest.err' | |
14753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14754 | (eval $ac_try) 2>&5 | |
14755 | ac_status=$? | |
14756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14757 | (exit $ac_status); }; } && | |
14758 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14760 | (eval $ac_try) 2>&5 | |
14761 | ac_status=$? | |
14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14763 | (exit $ac_status); }; }; then | |
14764 | ac_header_compiler=yes | |
14765 | else | |
14766 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14767 | sed 's/^/| /' conftest.$ac_ext >&5 |
14768 | ||
c0d27fcc MR |
14769 | ac_header_compiler=no |
14770 | fi | |
35996d22 | 14771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14772 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14773 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14774 | ||
14775 | # Is the header present? | |
14776 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
14777 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
14778 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14779 | /* confdefs.h. */ |
14780 | _ACEOF | |
14781 | cat confdefs.h >>conftest.$ac_ext | |
14782 | cat >>conftest.$ac_ext <<_ACEOF | |
14783 | /* end confdefs.h. */ | |
98418dba CW |
14784 | #include <sys/dg_sys_info.h> |
14785 | _ACEOF | |
c0d27fcc | 14786 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
14787 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14788 | ac_status=$? | |
6bae0ccf | 14789 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14790 | rm -f conftest.er1 |
14791 | cat conftest.err >&5 | |
c0d27fcc | 14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14793 | (exit $ac_status); } >/dev/null; then |
14794 | if test -s conftest.err; then | |
14795 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 14796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
14797 | else |
14798 | ac_cpp_err= | |
14799 | fi | |
14800 | else | |
14801 | ac_cpp_err=yes | |
ba4481b5 | 14802 | fi |
98418dba | 14803 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 14804 | ac_header_preproc=yes |
98418dba CW |
14805 | else |
14806 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14807 | sed 's/^/| /' conftest.$ac_ext >&5 |
14808 | ||
c0d27fcc | 14809 | ac_header_preproc=no |
ba4481b5 | 14810 | fi |
98418dba | 14811 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
14812 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14813 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14814 | ||
14815 | # So? What about this header? | |
35996d22 AS |
14816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14817 | yes:no: ) | |
c0d27fcc MR |
14818 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14819 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
14820 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
14821 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
14822 | ac_header_preproc=yes | |
19650fd6 | 14823 | ;; |
35996d22 | 14824 | no:yes:* ) |
c0d27fcc MR |
14825 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
14826 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
14827 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
14828 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
14829 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
14830 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
14831 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14832 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14833 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14834 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
14835 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
14836 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
14837 | ( |
14838 | cat <<\_ASBOX | |
35996d22 AS |
14839 | ## ------------------------------------------ ## |
14840 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14841 | ## ------------------------------------------ ## | |
19650fd6 AS |
14842 | _ASBOX |
14843 | ) | | |
14844 | sed "s/^/$as_me: WARNING: /" >&2 | |
14845 | ;; | |
c0d27fcc MR |
14846 | esac |
14847 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
14848 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
14849 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
14850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14851 | else | |
14852 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 14853 | fi |
c0d27fcc | 14854 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 14855 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
14856 | |
14857 | fi | |
98418dba CW |
14858 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
14859 | ac_have_func=yes | |
ba4481b5 | 14860 | |
c0d27fcc | 14861 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14862 | #define DGUX 1 |
c0d27fcc MR |
14863 | _ACEOF |
14864 | ||
503d2be0 | 14865 | |
c0d27fcc | 14866 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
14867 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
14868 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14870 | else |
503d2be0 | 14871 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 14872 | LIBS="-ldgc $LIBS" |
503d2be0 | 14873 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14874 | /* confdefs.h. */ |
14875 | _ACEOF | |
14876 | cat confdefs.h >>conftest.$ac_ext | |
14877 | cat >>conftest.$ac_ext <<_ACEOF | |
14878 | /* end confdefs.h. */ | |
503d2be0 | 14879 | |
ba4481b5 | 14880 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14881 | #ifdef __cplusplus |
14882 | extern "C" | |
14883 | #endif | |
ba4481b5 | 14884 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14885 | builtin and then its argument prototype would still apply. */ |
98418dba | 14886 | char dg_sys_info (); |
503d2be0 AS |
14887 | int |
14888 | main () | |
14889 | { | |
98418dba | 14890 | dg_sys_info (); |
503d2be0 AS |
14891 | ; |
14892 | return 0; | |
14893 | } | |
14894 | _ACEOF | |
14895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14897 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14898 | ac_status=$? |
35996d22 AS |
14899 | grep -v '^ *+' conftest.er1 >conftest.err |
14900 | rm -f conftest.er1 | |
14901 | cat conftest.err >&5 | |
c0d27fcc | 14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14903 | (exit $ac_status); } && |
35996d22 AS |
14904 | { ac_try='test -z "$ac_c_werror_flag" |
14905 | || test ! -s conftest.err' | |
14906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14907 | (eval $ac_try) 2>&5 | |
14908 | ac_status=$? | |
14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14910 | (exit $ac_status); }; } && | |
14911 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14913 | (eval $ac_try) 2>&5 |
14914 | ac_status=$? | |
c0d27fcc | 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14916 | (exit $ac_status); }; }; then |
98418dba | 14917 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
14918 | else |
14919 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14920 | sed 's/^/| /' conftest.$ac_ext >&5 |
14921 | ||
98418dba | 14922 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 14923 | fi |
35996d22 AS |
14924 | rm -f conftest.err conftest.$ac_objext \ |
14925 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
14926 | LIBS=$ac_check_lib_save_LIBS |
14927 | fi | |
c0d27fcc | 14928 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
14929 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
14930 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 14931 | cat >>confdefs.h <<_ACEOF |
98418dba | 14932 | #define HAVE_LIBDGC 1 |
c0d27fcc | 14933 | _ACEOF |
ba4481b5 | 14934 | |
98418dba | 14935 | LIBS="-ldgc $LIBS" |
ba4481b5 | 14936 | |
ba4481b5 DL |
14937 | fi |
14938 | ||
98418dba | 14939 | fi |
503d2be0 | 14940 | |
c0d27fcc MR |
14941 | |
14942 | ||
14943 | if test "${ac_cv_header_locale_h+set}" = set; then | |
14944 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
14945 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
14946 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14948 | fi |
14949 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
14950 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 14951 | else |
c0d27fcc MR |
14952 | # Is the header compilable? |
14953 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
14954 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
14955 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14956 | /* confdefs.h. */ |
14957 | _ACEOF | |
14958 | cat confdefs.h >>conftest.$ac_ext | |
14959 | cat >>conftest.$ac_ext <<_ACEOF | |
14960 | /* end confdefs.h. */ | |
c0d27fcc MR |
14961 | $ac_includes_default |
14962 | #include <locale.h> | |
14963 | _ACEOF | |
14964 | rm -f conftest.$ac_objext | |
14965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14966 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14967 | ac_status=$? |
35996d22 AS |
14968 | grep -v '^ *+' conftest.er1 >conftest.err |
14969 | rm -f conftest.er1 | |
14970 | cat conftest.err >&5 | |
c0d27fcc MR |
14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14972 | (exit $ac_status); } && | |
35996d22 AS |
14973 | { ac_try='test -z "$ac_c_werror_flag" |
14974 | || test ! -s conftest.err' | |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; } && | |
14980 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14982 | (eval $ac_try) 2>&5 | |
14983 | ac_status=$? | |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14985 | (exit $ac_status); }; }; then | |
14986 | ac_header_compiler=yes | |
14987 | else | |
14988 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14989 | sed 's/^/| /' conftest.$ac_ext >&5 |
14990 | ||
c0d27fcc MR |
14991 | ac_header_compiler=no |
14992 | fi | |
35996d22 | 14993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14996 | ||
14997 | # Is the header present? | |
14998 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
14999 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
15000 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15001 | /* confdefs.h. */ |
15002 | _ACEOF | |
15003 | cat confdefs.h >>conftest.$ac_ext | |
15004 | cat >>conftest.$ac_ext <<_ACEOF | |
15005 | /* end confdefs.h. */ | |
98418dba | 15006 | #include <locale.h> |
503d2be0 | 15007 | _ACEOF |
c0d27fcc | 15008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 15009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 15010 | ac_status=$? |
6bae0ccf | 15011 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15012 | rm -f conftest.er1 |
15013 | cat conftest.err >&5 | |
c0d27fcc | 15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15015 | (exit $ac_status); } >/dev/null; then |
15016 | if test -s conftest.err; then | |
15017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15019 | else |
15020 | ac_cpp_err= | |
15021 | fi | |
503d2be0 | 15022 | else |
98418dba | 15023 | ac_cpp_err=yes |
503d2be0 | 15024 | fi |
98418dba | 15025 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15026 | ac_header_preproc=yes |
98418dba CW |
15027 | else |
15028 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15029 | sed 's/^/| /' conftest.$ac_ext >&5 |
15030 | ||
c0d27fcc | 15031 | ac_header_preproc=no |
ba4481b5 | 15032 | fi |
98418dba | 15033 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15036 | ||
15037 | # So? What about this header? | |
35996d22 AS |
15038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15039 | yes:no: ) | |
c0d27fcc MR |
15040 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15041 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15042 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
15043 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
15044 | ac_header_preproc=yes | |
19650fd6 | 15045 | ;; |
35996d22 | 15046 | no:yes:* ) |
c0d27fcc MR |
15047 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
15048 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15049 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
15050 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
15051 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
15052 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
15053 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15054 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15055 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15056 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15057 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
15058 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15059 | ( |
15060 | cat <<\_ASBOX | |
35996d22 AS |
15061 | ## ------------------------------------------ ## |
15062 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15063 | ## ------------------------------------------ ## | |
19650fd6 AS |
15064 | _ASBOX |
15065 | ) | | |
15066 | sed "s/^/$as_me: WARNING: /" >&2 | |
15067 | ;; | |
c0d27fcc MR |
15068 | esac |
15069 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
15070 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
15071 | if test "${ac_cv_header_locale_h+set}" = set; then | |
15072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15073 | else | |
15074 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 15075 | fi |
c0d27fcc | 15076 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
15077 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
15078 | ||
c0d27fcc MR |
15079 | fi |
15080 | ||
15081 | ||
15082 | ||
98418dba | 15083 | for ac_func in setlocale |
ba4481b5 | 15084 | do |
503d2be0 | 15085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 15086 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
15087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
15088 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 15090 | else |
503d2be0 | 15091 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15092 | /* confdefs.h. */ |
15093 | _ACEOF | |
15094 | cat confdefs.h >>conftest.$ac_ext | |
15095 | cat >>conftest.$ac_ext <<_ACEOF | |
15096 | /* end confdefs.h. */ | |
35996d22 AS |
15097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15099 | #define $ac_func innocuous_$ac_func | |
15100 | ||
ba4481b5 | 15101 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15102 | which can conflict with char $ac_func (); below. |
15103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15104 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 15105 | |
19650fd6 AS |
15106 | #ifdef __STDC__ |
15107 | # include <limits.h> | |
15108 | #else | |
15109 | # include <assert.h> | |
15110 | #endif | |
35996d22 AS |
15111 | |
15112 | #undef $ac_func | |
15113 | ||
ba4481b5 | 15114 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15115 | #ifdef __cplusplus |
15116 | extern "C" | |
19650fd6 | 15117 | { |
503d2be0 | 15118 | #endif |
ba4481b5 | 15119 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15120 | builtin and then its argument prototype would still apply. */ |
15121 | char $ac_func (); | |
ba4481b5 DL |
15122 | /* The GNU C library defines this for functions which it implements |
15123 | to always fail with ENOSYS. Some functions are actually named | |
15124 | something starting with __ and the normal name is an alias. */ | |
15125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15126 | choke me | |
15127 | #else | |
19650fd6 AS |
15128 | char (*f) () = $ac_func; |
15129 | #endif | |
15130 | #ifdef __cplusplus | |
15131 | } | |
ba4481b5 DL |
15132 | #endif |
15133 | ||
19650fd6 AS |
15134 | int |
15135 | main () | |
15136 | { | |
15137 | return f != $ac_func; | |
503d2be0 AS |
15138 | ; |
15139 | return 0; | |
15140 | } | |
15141 | _ACEOF | |
15142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 15144 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 15145 | ac_status=$? |
35996d22 AS |
15146 | grep -v '^ *+' conftest.er1 >conftest.err |
15147 | rm -f conftest.er1 | |
15148 | cat conftest.err >&5 | |
c0d27fcc | 15149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15150 | (exit $ac_status); } && |
35996d22 AS |
15151 | { ac_try='test -z "$ac_c_werror_flag" |
15152 | || test ! -s conftest.err' | |
15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15157 | (exit $ac_status); }; } && | |
15158 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15160 | (eval $ac_try) 2>&5 |
15161 | ac_status=$? | |
c0d27fcc | 15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15163 | (exit $ac_status); }; }; then |
15164 | eval "$as_ac_var=yes" | |
15165 | else | |
15166 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15167 | sed 's/^/| /' conftest.$ac_ext >&5 |
15168 | ||
503d2be0 AS |
15169 | eval "$as_ac_var=no" |
15170 | fi | |
35996d22 AS |
15171 | rm -f conftest.err conftest.$ac_objext \ |
15172 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 15173 | fi |
c0d27fcc | 15174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
15175 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15176 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 15177 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15179 | _ACEOF |
ba4481b5 | 15180 | |
ba4481b5 DL |
15181 | fi |
15182 | done | |
15183 | ||
c0d27fcc | 15184 | |
98418dba CW |
15185 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
15186 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
15187 | # Irix 4.0.5F has the header but not the library. | |
15188 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
15189 | ac_have_func=yes | |
15190 | ||
c0d27fcc | 15191 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15192 | #define SVR4 1 |
c0d27fcc | 15193 | _ACEOF |
98418dba CW |
15194 | |
15195 | fi | |
15196 | ||
15197 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15198 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
15199 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
15200 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
15201 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 15202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15203 | fi |
15204 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
15205 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 15206 | else |
c0d27fcc MR |
15207 | # Is the header compilable? |
15208 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
15209 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
15210 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15211 | /* confdefs.h. */ |
15212 | _ACEOF | |
15213 | cat confdefs.h >>conftest.$ac_ext | |
15214 | cat >>conftest.$ac_ext <<_ACEOF | |
15215 | /* end confdefs.h. */ | |
c0d27fcc MR |
15216 | $ac_includes_default |
15217 | #include <inq_stats/cpustats.h> | |
15218 | _ACEOF | |
15219 | rm -f conftest.$ac_objext | |
15220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15221 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15222 | ac_status=$? |
35996d22 AS |
15223 | grep -v '^ *+' conftest.er1 >conftest.err |
15224 | rm -f conftest.er1 | |
15225 | cat conftest.err >&5 | |
c0d27fcc MR |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15227 | (exit $ac_status); } && | |
35996d22 AS |
15228 | { ac_try='test -z "$ac_c_werror_flag" |
15229 | || test ! -s conftest.err' | |
15230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15231 | (eval $ac_try) 2>&5 | |
15232 | ac_status=$? | |
15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15234 | (exit $ac_status); }; } && | |
15235 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15237 | (eval $ac_try) 2>&5 | |
15238 | ac_status=$? | |
15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15240 | (exit $ac_status); }; }; then | |
15241 | ac_header_compiler=yes | |
15242 | else | |
15243 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15244 | sed 's/^/| /' conftest.$ac_ext >&5 |
15245 | ||
c0d27fcc MR |
15246 | ac_header_compiler=no |
15247 | fi | |
35996d22 | 15248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15251 | ||
15252 | # Is the header present? | |
15253 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
15254 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
15255 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15256 | /* confdefs.h. */ |
15257 | _ACEOF | |
15258 | cat confdefs.h >>conftest.$ac_ext | |
15259 | cat >>conftest.$ac_ext <<_ACEOF | |
15260 | /* end confdefs.h. */ | |
98418dba | 15261 | #include <inq_stats/cpustats.h> |
503d2be0 | 15262 | _ACEOF |
c0d27fcc | 15263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15265 | ac_status=$? | |
6bae0ccf | 15266 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15267 | rm -f conftest.er1 |
15268 | cat conftest.err >&5 | |
c0d27fcc | 15269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15270 | (exit $ac_status); } >/dev/null; then |
15271 | if test -s conftest.err; then | |
15272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15273 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15274 | else |
15275 | ac_cpp_err= | |
15276 | fi | |
15277 | else | |
15278 | ac_cpp_err=yes | |
15279 | fi | |
15280 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15281 | ac_header_preproc=yes |
503d2be0 AS |
15282 | else |
15283 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15284 | sed 's/^/| /' conftest.$ac_ext >&5 |
15285 | ||
c0d27fcc | 15286 | ac_header_preproc=no |
ba4481b5 | 15287 | fi |
503d2be0 | 15288 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15291 | ||
15292 | # So? What about this header? | |
35996d22 AS |
15293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15294 | yes:no: ) | |
c0d27fcc MR |
15295 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15296 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15297 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
15298 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
15299 | ac_header_preproc=yes | |
19650fd6 | 15300 | ;; |
35996d22 | 15301 | no:yes:* ) |
c0d27fcc MR |
15302 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
15303 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15304 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
15305 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15306 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
15307 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
15308 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15309 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15310 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15311 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15312 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
15313 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15314 | ( |
15315 | cat <<\_ASBOX | |
35996d22 AS |
15316 | ## ------------------------------------------ ## |
15317 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15318 | ## ------------------------------------------ ## | |
19650fd6 AS |
15319 | _ASBOX |
15320 | ) | | |
15321 | sed "s/^/$as_me: WARNING: /" >&2 | |
15322 | ;; | |
c0d27fcc MR |
15323 | esac |
15324 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
15325 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
15326 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
15327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15328 | else | |
15329 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 15330 | fi |
c0d27fcc | 15331 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 15332 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
15333 | |
15334 | fi | |
98418dba CW |
15335 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
15336 | ac_have_func=yes | |
ba4481b5 | 15337 | |
c0d27fcc | 15338 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15339 | #define UMAX 1 |
c0d27fcc | 15340 | _ACEOF |
98418dba | 15341 | |
c0d27fcc MR |
15342 | |
15343 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15344 | #define UMAX4_3 1 |
c0d27fcc | 15345 | _ACEOF |
98418dba CW |
15346 | |
15347 | fi | |
15348 | ||
c0d27fcc | 15349 | |
98418dba CW |
15350 | fi |
15351 | ||
15352 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15353 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
15354 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
15355 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
15356 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15358 | fi |
15359 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
15360 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 15361 | else |
c0d27fcc MR |
15362 | # Is the header compilable? |
15363 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
15364 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
15365 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15366 | /* confdefs.h. */ |
15367 | _ACEOF | |
15368 | cat confdefs.h >>conftest.$ac_ext | |
15369 | cat >>conftest.$ac_ext <<_ACEOF | |
15370 | /* end confdefs.h. */ | |
c0d27fcc MR |
15371 | $ac_includes_default |
15372 | #include <sys/cpustats.h> | |
15373 | _ACEOF | |
15374 | rm -f conftest.$ac_objext | |
15375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15376 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15377 | ac_status=$? |
35996d22 AS |
15378 | grep -v '^ *+' conftest.er1 >conftest.err |
15379 | rm -f conftest.er1 | |
15380 | cat conftest.err >&5 | |
c0d27fcc MR |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15382 | (exit $ac_status); } && | |
35996d22 AS |
15383 | { ac_try='test -z "$ac_c_werror_flag" |
15384 | || test ! -s conftest.err' | |
15385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15386 | (eval $ac_try) 2>&5 | |
15387 | ac_status=$? | |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 | (exit $ac_status); }; } && | |
15390 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); }; }; then | |
15396 | ac_header_compiler=yes | |
15397 | else | |
15398 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15399 | sed 's/^/| /' conftest.$ac_ext >&5 |
15400 | ||
c0d27fcc MR |
15401 | ac_header_compiler=no |
15402 | fi | |
35996d22 | 15403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15404 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15405 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15406 | ||
15407 | # Is the header present? | |
15408 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
15409 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
15410 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15411 | /* confdefs.h. */ |
15412 | _ACEOF | |
15413 | cat confdefs.h >>conftest.$ac_ext | |
15414 | cat >>conftest.$ac_ext <<_ACEOF | |
15415 | /* end confdefs.h. */ | |
98418dba CW |
15416 | #include <sys/cpustats.h> |
15417 | _ACEOF | |
c0d27fcc | 15418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
15419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15420 | ac_status=$? | |
6bae0ccf | 15421 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15422 | rm -f conftest.er1 |
15423 | cat conftest.err >&5 | |
c0d27fcc | 15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15425 | (exit $ac_status); } >/dev/null; then |
15426 | if test -s conftest.err; then | |
15427 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15429 | else |
15430 | ac_cpp_err= | |
15431 | fi | |
15432 | else | |
15433 | ac_cpp_err=yes | |
503d2be0 | 15434 | fi |
98418dba | 15435 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15436 | ac_header_preproc=yes |
98418dba CW |
15437 | else |
15438 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15439 | sed 's/^/| /' conftest.$ac_ext >&5 |
15440 | ||
c0d27fcc | 15441 | ac_header_preproc=no |
98418dba CW |
15442 | fi |
15443 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
15444 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15445 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15446 | ||
15447 | # So? What about this header? | |
35996d22 AS |
15448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15449 | yes:no: ) | |
c0d27fcc MR |
15450 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15451 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15452 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
15453 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
15454 | ac_header_preproc=yes | |
19650fd6 | 15455 | ;; |
35996d22 | 15456 | no:yes:* ) |
c0d27fcc MR |
15457 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
15458 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15459 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
15460 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15461 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
15462 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
15463 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15464 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15465 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15466 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15467 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
15468 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15469 | ( |
15470 | cat <<\_ASBOX | |
35996d22 AS |
15471 | ## ------------------------------------------ ## |
15472 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15473 | ## ------------------------------------------ ## | |
19650fd6 AS |
15474 | _ASBOX |
15475 | ) | | |
15476 | sed "s/^/$as_me: WARNING: /" >&2 | |
15477 | ;; | |
c0d27fcc MR |
15478 | esac |
15479 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
15480 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
15481 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
15482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15483 | else | |
15484 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 15485 | fi |
c0d27fcc | 15486 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 15487 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
15488 | |
15489 | fi | |
98418dba | 15490 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 15491 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 15492 | #define UMAX 1 |
c0d27fcc | 15493 | _ACEOF |
ba4481b5 | 15494 | |
98418dba CW |
15495 | fi |
15496 | ||
c0d27fcc | 15497 | |
98418dba CW |
15498 | fi |
15499 | ||
15500 | if test $ac_have_func = no; then | |
15501 | ||
15502 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
15503 | do |
15504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
15507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15510 | fi |
15511 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15512 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15513 | else |
c0d27fcc MR |
15514 | # Is the header compilable? |
15515 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15516 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15517 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15518 | /* confdefs.h. */ |
15519 | _ACEOF | |
15520 | cat confdefs.h >>conftest.$ac_ext | |
15521 | cat >>conftest.$ac_ext <<_ACEOF | |
15522 | /* end confdefs.h. */ | |
c0d27fcc MR |
15523 | $ac_includes_default |
15524 | #include <$ac_header> | |
15525 | _ACEOF | |
15526 | rm -f conftest.$ac_objext | |
15527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15528 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15529 | ac_status=$? |
35996d22 AS |
15530 | grep -v '^ *+' conftest.er1 >conftest.err |
15531 | rm -f conftest.er1 | |
15532 | cat conftest.err >&5 | |
c0d27fcc MR |
15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15534 | (exit $ac_status); } && | |
35996d22 AS |
15535 | { ac_try='test -z "$ac_c_werror_flag" |
15536 | || test ! -s conftest.err' | |
15537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15538 | (eval $ac_try) 2>&5 | |
15539 | ac_status=$? | |
15540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15541 | (exit $ac_status); }; } && | |
15542 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15544 | (eval $ac_try) 2>&5 | |
15545 | ac_status=$? | |
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15547 | (exit $ac_status); }; }; then | |
15548 | ac_header_compiler=yes | |
15549 | else | |
15550 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15551 | sed 's/^/| /' conftest.$ac_ext >&5 |
15552 | ||
c0d27fcc MR |
15553 | ac_header_compiler=no |
15554 | fi | |
35996d22 | 15555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15557 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15558 | ||
15559 | # Is the header present? | |
15560 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15561 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15562 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15563 | /* confdefs.h. */ |
15564 | _ACEOF | |
15565 | cat confdefs.h >>conftest.$ac_ext | |
15566 | cat >>conftest.$ac_ext <<_ACEOF | |
15567 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
15568 | #include <$ac_header> |
15569 | _ACEOF | |
c0d27fcc | 15570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
15571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15572 | ac_status=$? | |
6bae0ccf | 15573 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
15574 | rm -f conftest.er1 |
15575 | cat conftest.err >&5 | |
c0d27fcc | 15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
15577 | (exit $ac_status); } >/dev/null; then |
15578 | if test -s conftest.err; then | |
15579 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15580 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2c9dccc9 PJ |
15581 | else |
15582 | ac_cpp_err= | |
15583 | fi | |
15584 | else | |
15585 | ac_cpp_err=yes | |
15586 | fi | |
15587 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
15588 | ac_header_preproc=yes |
15589 | else | |
15590 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15591 | sed 's/^/| /' conftest.$ac_ext >&5 |
15592 | ||
c0d27fcc MR |
15593 | ac_header_preproc=no |
15594 | fi | |
15595 | rm -f conftest.err conftest.$ac_ext | |
15596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15597 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15598 | ||
15599 | # So? What about this header? | |
35996d22 AS |
15600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15601 | yes:no: ) | |
c0d27fcc MR |
15602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15605 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15606 | ac_header_preproc=yes | |
19650fd6 | 15607 | ;; |
35996d22 | 15608 | no:yes:* ) |
c0d27fcc MR |
15609 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15610 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15611 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15612 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15613 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15614 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15615 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15616 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15619 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15620 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15621 | ( |
15622 | cat <<\_ASBOX | |
35996d22 AS |
15623 | ## ------------------------------------------ ## |
15624 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15625 | ## ------------------------------------------ ## | |
19650fd6 AS |
15626 | _ASBOX |
15627 | ) | | |
15628 | sed "s/^/$as_me: WARNING: /" >&2 | |
15629 | ;; | |
c0d27fcc MR |
15630 | esac |
15631 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15635 | else | |
35996d22 | 15636 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc MR |
15637 | fi |
15638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15640 | ||
15641 | fi | |
15642 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15643 | cat >>confdefs.h <<_ACEOF | |
15644 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15645 | _ACEOF | |
15646 | ||
15647 | fi | |
15648 | ||
15649 | done | |
15650 | ||
15651 | fi | |
15652 | ||
15653 | ||
15654 | for ac_header in nlist.h | |
15655 | do | |
15656 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15662 | fi | |
15663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15664 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15665 | else | |
15666 | # Is the header compilable? | |
15667 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15668 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15669 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15670 | /* confdefs.h. */ |
15671 | _ACEOF | |
15672 | cat confdefs.h >>conftest.$ac_ext | |
15673 | cat >>conftest.$ac_ext <<_ACEOF | |
15674 | /* end confdefs.h. */ | |
c0d27fcc MR |
15675 | $ac_includes_default |
15676 | #include <$ac_header> | |
15677 | _ACEOF | |
15678 | rm -f conftest.$ac_objext | |
15679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15680 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15681 | ac_status=$? |
35996d22 AS |
15682 | grep -v '^ *+' conftest.er1 >conftest.err |
15683 | rm -f conftest.er1 | |
15684 | cat conftest.err >&5 | |
c0d27fcc MR |
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15686 | (exit $ac_status); } && | |
35996d22 AS |
15687 | { ac_try='test -z "$ac_c_werror_flag" |
15688 | || test ! -s conftest.err' | |
15689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15690 | (eval $ac_try) 2>&5 | |
15691 | ac_status=$? | |
15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15693 | (exit $ac_status); }; } && | |
15694 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15696 | (eval $ac_try) 2>&5 | |
15697 | ac_status=$? | |
15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15699 | (exit $ac_status); }; }; then | |
15700 | ac_header_compiler=yes | |
2c9dccc9 PJ |
15701 | else |
15702 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15703 | sed 's/^/| /' conftest.$ac_ext >&5 |
15704 | ||
c0d27fcc | 15705 | ac_header_compiler=no |
98418dba | 15706 | fi |
35996d22 | 15707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15708 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15709 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 15710 | |
c0d27fcc MR |
15711 | # Is the header present? |
15712 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15714 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15715 | /* confdefs.h. */ |
15716 | _ACEOF | |
15717 | cat confdefs.h >>conftest.$ac_ext | |
15718 | cat >>conftest.$ac_ext <<_ACEOF | |
15719 | /* end confdefs.h. */ | |
503d2be0 AS |
15720 | #include <$ac_header> |
15721 | _ACEOF | |
c0d27fcc | 15722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15724 | ac_status=$? | |
6bae0ccf | 15725 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15726 | rm -f conftest.er1 |
15727 | cat conftest.err >&5 | |
c0d27fcc | 15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15729 | (exit $ac_status); } >/dev/null; then |
15730 | if test -s conftest.err; then | |
15731 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15732 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15733 | else |
15734 | ac_cpp_err= | |
15735 | fi | |
15736 | else | |
15737 | ac_cpp_err=yes | |
15738 | fi | |
15739 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15740 | ac_header_preproc=yes |
503d2be0 AS |
15741 | else |
15742 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15743 | sed 's/^/| /' conftest.$ac_ext >&5 |
15744 | ||
c0d27fcc | 15745 | ac_header_preproc=no |
b5de8dc0 | 15746 | fi |
503d2be0 | 15747 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15748 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15749 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15750 | ||
15751 | # So? What about this header? | |
35996d22 AS |
15752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15753 | yes:no: ) | |
c0d27fcc MR |
15754 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15758 | ac_header_preproc=yes | |
19650fd6 | 15759 | ;; |
35996d22 | 15760 | no:yes:* ) |
c0d27fcc MR |
15761 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15763 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15764 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15765 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15767 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15768 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15771 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15773 | ( |
15774 | cat <<\_ASBOX | |
35996d22 AS |
15775 | ## ------------------------------------------ ## |
15776 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15777 | ## ------------------------------------------ ## | |
19650fd6 AS |
15778 | _ASBOX |
15779 | ) | | |
15780 | sed "s/^/$as_me: WARNING: /" >&2 | |
15781 | ;; | |
c0d27fcc MR |
15782 | esac |
15783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15787 | else | |
35996d22 | 15788 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 15789 | fi |
c0d27fcc | 15790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15792 | |
15793 | fi | |
98418dba | 15794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15795 | cat >>confdefs.h <<_ACEOF |
98418dba | 15796 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
15797 | _ACEOF |
15798 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
15799 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
15800 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 15801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 15802 | else |
503d2be0 | 15803 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15804 | /* confdefs.h. */ |
15805 | _ACEOF | |
15806 | cat confdefs.h >>conftest.$ac_ext | |
15807 | cat >>conftest.$ac_ext <<_ACEOF | |
15808 | /* end confdefs.h. */ | |
98418dba | 15809 | #include <nlist.h> |
b5de8dc0 | 15810 | |
503d2be0 AS |
15811 | int |
15812 | main () | |
15813 | { | |
98418dba CW |
15814 | static struct nlist ac_aggr; |
15815 | if (ac_aggr.n_un.n_name) | |
15816 | return 0; | |
503d2be0 AS |
15817 | ; |
15818 | return 0; | |
15819 | } | |
15820 | _ACEOF | |
98418dba | 15821 | rm -f conftest.$ac_objext |
c0d27fcc | 15822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 15823 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 15824 | ac_status=$? |
35996d22 AS |
15825 | grep -v '^ *+' conftest.er1 >conftest.err |
15826 | rm -f conftest.er1 | |
15827 | cat conftest.err >&5 | |
c0d27fcc | 15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15829 | (exit $ac_status); } && |
35996d22 AS |
15830 | { ac_try='test -z "$ac_c_werror_flag" |
15831 | || test ! -s conftest.err' | |
15832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); }; } && | |
15837 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15839 | (eval $ac_try) 2>&5 |
15840 | ac_status=$? | |
c0d27fcc | 15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15842 | (exit $ac_status); }; }; then |
98418dba | 15843 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
15844 | else |
15845 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15846 | sed 's/^/| /' conftest.$ac_ext >&5 |
15847 | ||
6bae0ccf | 15848 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15849 | /* confdefs.h. */ |
15850 | _ACEOF | |
15851 | cat confdefs.h >>conftest.$ac_ext | |
15852 | cat >>conftest.$ac_ext <<_ACEOF | |
15853 | /* end confdefs.h. */ | |
6bae0ccf DL |
15854 | #include <nlist.h> |
15855 | ||
15856 | int | |
15857 | main () | |
15858 | { | |
15859 | static struct nlist ac_aggr; | |
15860 | if (sizeof ac_aggr.n_un.n_name) | |
15861 | return 0; | |
15862 | ; | |
15863 | return 0; | |
15864 | } | |
15865 | _ACEOF | |
15866 | rm -f conftest.$ac_objext | |
15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15868 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 15869 | ac_status=$? |
35996d22 AS |
15870 | grep -v '^ *+' conftest.er1 >conftest.err |
15871 | rm -f conftest.er1 | |
15872 | cat conftest.err >&5 | |
6bae0ccf DL |
15873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15874 | (exit $ac_status); } && | |
35996d22 AS |
15875 | { ac_try='test -z "$ac_c_werror_flag" |
15876 | || test ! -s conftest.err' | |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; } && | |
15882 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
15883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15884 | (eval $ac_try) 2>&5 | |
15885 | ac_status=$? | |
15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15887 | (exit $ac_status); }; }; then | |
15888 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
15889 | else | |
15890 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15891 | sed 's/^/| /' conftest.$ac_ext >&5 |
15892 | ||
98418dba | 15893 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 15894 | fi |
35996d22 | 15895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 15896 | fi |
35996d22 | 15897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 15898 | fi |
c0d27fcc | 15899 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
15900 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
15901 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 15902 | |
c0d27fcc | 15903 | cat >>confdefs.h <<_ACEOF |
98418dba | 15904 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 15905 | _ACEOF |
b5de8dc0 | 15906 | |
c0d27fcc MR |
15907 | |
15908 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15909 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 15910 | _ACEOF |
b5de8dc0 | 15911 | |
98418dba | 15912 | fi |
b5de8dc0 | 15913 | |
c0d27fcc | 15914 | |
98418dba | 15915 | fi |
c0d27fcc | 15916 | |
98418dba | 15917 | done |
b5de8dc0 | 15918 | |
98418dba CW |
15919 | fi |
15920 | done | |
b5de8dc0 | 15921 | |
c0d27fcc | 15922 | |
98418dba | 15923 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 15924 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
15925 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
15926 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
15927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15928 | else | |
15929 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15930 | /* confdefs.h. */ |
15931 | _ACEOF | |
15932 | cat confdefs.h >>conftest.$ac_ext | |
15933 | cat >>conftest.$ac_ext <<_ACEOF | |
15934 | /* end confdefs.h. */ | |
6bae0ccf | 15935 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
15936 | #ifdef LDAV_PRIVILEGED |
15937 | Yowza Am I SETGID yet | |
15938 | #endif | |
15939 | _ACEOF | |
15940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 15941 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
15942 | ac_cv_func_getloadavg_setgid=yes |
15943 | else | |
15944 | ac_cv_func_getloadavg_setgid=no | |
15945 | fi | |
15946 | rm -f conftest* | |
b5de8dc0 | 15947 | |
98418dba | 15948 | fi |
c0d27fcc | 15949 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
15950 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
15951 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
15952 | NEED_SETGID=true | |
b5de8dc0 | 15953 | |
c0d27fcc | 15954 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15955 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 15956 | _ACEOF |
98418dba | 15957 | |
b5de8dc0 | 15958 | else |
98418dba | 15959 | NEED_SETGID=false |
b5de8dc0 | 15960 | fi |
98418dba CW |
15961 | |
15962 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 15963 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
15964 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
15965 | if test "${ac_cv_group_kmem+set}" = set; then | |
15966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15967 | else | |
15968 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
15969 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
15970 | # If we got an error (system does not support symlinks), try without -L. | |
15971 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
15972 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
35996d22 | 15973 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
15974 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
15975 | / /s/.* //;p;'` | |
15976 | ||
b5de8dc0 | 15977 | fi |
c0d27fcc | 15978 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
15979 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
15980 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 15981 | fi |
98418dba CW |
15982 | if test "x$ac_save_LIBS" = x; then |
15983 | GETLOADAVG_LIBS=$LIBS | |
15984 | else | |
15985 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 15986 | fi |
98418dba | 15987 | LIBS=$ac_save_LIBS |
b5de8dc0 | 15988 | |
c0d27fcc MR |
15989 | |
15990 | ||
15991 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
15992 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
15993 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 15994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 15995 | else |
b936fae4 AS |
15996 | while :; do |
15997 | ac_cv_sys_largefile_source=no | |
503d2be0 | 15998 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15999 | /* confdefs.h. */ |
16000 | _ACEOF | |
16001 | cat confdefs.h >>conftest.$ac_ext | |
16002 | cat >>conftest.$ac_ext <<_ACEOF | |
16003 | /* end confdefs.h. */ | |
b936fae4 | 16004 | #include <stdio.h> |
503d2be0 AS |
16005 | int |
16006 | main () | |
16007 | { | |
b936fae4 AS |
16008 | return !fseeko; |
16009 | ; | |
16010 | return 0; | |
16011 | } | |
16012 | _ACEOF | |
16013 | rm -f conftest.$ac_objext | |
c0d27fcc | 16014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16015 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16016 | ac_status=$? |
35996d22 AS |
16017 | grep -v '^ *+' conftest.er1 >conftest.err |
16018 | rm -f conftest.er1 | |
16019 | cat conftest.err >&5 | |
c0d27fcc | 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16021 | (exit $ac_status); } && |
35996d22 AS |
16022 | { ac_try='test -z "$ac_c_werror_flag" |
16023 | || test ! -s conftest.err' | |
16024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16025 | (eval $ac_try) 2>&5 | |
16026 | ac_status=$? | |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); }; } && | |
16029 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16031 | (eval $ac_try) 2>&5 |
16032 | ac_status=$? | |
c0d27fcc | 16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16034 | (exit $ac_status); }; }; then |
16035 | break | |
16036 | else | |
16037 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 |
16039 | ||
b936fae4 | 16040 | fi |
35996d22 | 16041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 | 16042 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16043 | /* confdefs.h. */ |
16044 | _ACEOF | |
16045 | cat confdefs.h >>conftest.$ac_ext | |
16046 | cat >>conftest.$ac_ext <<_ACEOF | |
16047 | /* end confdefs.h. */ | |
b936fae4 AS |
16048 | #define _LARGEFILE_SOURCE 1 |
16049 | #include <stdio.h> | |
b936fae4 AS |
16050 | int |
16051 | main () | |
16052 | { | |
16053 | return !fseeko; | |
16054 | ; | |
16055 | return 0; | |
16056 | } | |
16057 | _ACEOF | |
16058 | rm -f conftest.$ac_objext | |
c0d27fcc | 16059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16060 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16061 | ac_status=$? |
35996d22 AS |
16062 | grep -v '^ *+' conftest.er1 >conftest.err |
16063 | rm -f conftest.er1 | |
16064 | cat conftest.err >&5 | |
c0d27fcc | 16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16066 | (exit $ac_status); } && |
35996d22 AS |
16067 | { ac_try='test -z "$ac_c_werror_flag" |
16068 | || test ! -s conftest.err' | |
16069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16070 | (eval $ac_try) 2>&5 | |
16071 | ac_status=$? | |
16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16073 | (exit $ac_status); }; } && | |
16074 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16076 | (eval $ac_try) 2>&5 |
16077 | ac_status=$? | |
c0d27fcc | 16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16079 | (exit $ac_status); }; }; then |
16080 | ac_cv_sys_largefile_source=1; break | |
16081 | else | |
16082 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16083 | sed 's/^/| /' conftest.$ac_ext >&5 |
16084 | ||
b936fae4 | 16085 | fi |
35996d22 | 16086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 AS |
16087 | break |
16088 | done | |
16089 | fi | |
c0d27fcc | 16090 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
16091 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
16092 | if test "$ac_cv_sys_largefile_source" != no; then | |
16093 | ||
c0d27fcc | 16094 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 16095 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 16096 | _ACEOF |
b936fae4 AS |
16097 | |
16098 | fi | |
16099 | rm -f conftest* | |
4c343001 | 16100 | |
b936fae4 AS |
16101 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
16102 | # in glibc 2.1.3, but that breaks too many other things. | |
16103 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 16104 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
16105 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
16106 | if test "${ac_cv_func_fseeko+set}" = set; then | |
16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16108 | else | |
16109 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16110 | /* confdefs.h. */ |
16111 | _ACEOF | |
16112 | cat confdefs.h >>conftest.$ac_ext | |
16113 | cat >>conftest.$ac_ext <<_ACEOF | |
16114 | /* end confdefs.h. */ | |
b936fae4 | 16115 | #include <stdio.h> |
b936fae4 AS |
16116 | int |
16117 | main () | |
16118 | { | |
16119 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
16120 | ; |
16121 | return 0; | |
16122 | } | |
16123 | _ACEOF | |
16124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16126 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16127 | ac_status=$? |
35996d22 AS |
16128 | grep -v '^ *+' conftest.er1 >conftest.err |
16129 | rm -f conftest.er1 | |
16130 | cat conftest.err >&5 | |
c0d27fcc | 16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16132 | (exit $ac_status); } && |
35996d22 AS |
16133 | { ac_try='test -z "$ac_c_werror_flag" |
16134 | || test ! -s conftest.err' | |
16135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16136 | (eval $ac_try) 2>&5 | |
16137 | ac_status=$? | |
16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16139 | (exit $ac_status); }; } && | |
16140 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16142 | (eval $ac_try) 2>&5 |
16143 | ac_status=$? | |
c0d27fcc | 16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16145 | (exit $ac_status); }; }; then |
b936fae4 | 16146 | ac_cv_func_fseeko=yes |
503d2be0 AS |
16147 | else |
16148 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16149 | sed 's/^/| /' conftest.$ac_ext >&5 |
16150 | ||
b936fae4 | 16151 | ac_cv_func_fseeko=no |
503d2be0 | 16152 | fi |
35996d22 AS |
16153 | rm -f conftest.err conftest.$ac_objext \ |
16154 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16155 | fi |
c0d27fcc | 16156 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
16157 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
16158 | if test $ac_cv_func_fseeko = yes; then | |
16159 | ||
c0d27fcc | 16160 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 16161 | #define HAVE_FSEEKO 1 |
c0d27fcc | 16162 | _ACEOF |
b936fae4 | 16163 | |
4c343001 DL |
16164 | fi |
16165 | ||
c0d27fcc | 16166 | |
cd958eb3 MB |
16167 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
16168 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
16169 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
16170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16171 | else | |
16172 | # Use it with a single arg. | |
16173 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16174 | /* confdefs.h. */ |
16175 | _ACEOF | |
16176 | cat confdefs.h >>conftest.$ac_ext | |
16177 | cat >>conftest.$ac_ext <<_ACEOF | |
16178 | /* end confdefs.h. */ | |
cd958eb3 MB |
16179 | $ac_includes_default |
16180 | int | |
16181 | main () | |
16182 | { | |
16183 | getpgrp (0); | |
16184 | ; | |
16185 | return 0; | |
16186 | } | |
16187 | _ACEOF | |
16188 | rm -f conftest.$ac_objext | |
16189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 16190 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 16191 | ac_status=$? |
35996d22 AS |
16192 | grep -v '^ *+' conftest.er1 >conftest.err |
16193 | rm -f conftest.er1 | |
16194 | cat conftest.err >&5 | |
cd958eb3 MB |
16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16196 | (exit $ac_status); } && | |
35996d22 AS |
16197 | { ac_try='test -z "$ac_c_werror_flag" |
16198 | || test ! -s conftest.err' | |
16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16200 | (eval $ac_try) 2>&5 | |
16201 | ac_status=$? | |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16203 | (exit $ac_status); }; } && | |
16204 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; }; then | |
16210 | ac_cv_func_getpgrp_void=no | |
16211 | else | |
16212 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16213 | sed 's/^/| /' conftest.$ac_ext >&5 |
16214 | ||
cd958eb3 MB |
16215 | ac_cv_func_getpgrp_void=yes |
16216 | fi | |
35996d22 | 16217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
16218 | |
16219 | fi | |
16220 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
16221 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
16222 | if test $ac_cv_func_getpgrp_void = yes; then | |
16223 | ||
16224 | cat >>confdefs.h <<\_ACEOF | |
16225 | #define GETPGRP_VOID 1 | |
16226 | _ACEOF | |
16227 | ||
16228 | fi | |
16229 | ||
16230 | ||
973a76b1 DL |
16231 | |
16232 | for ac_func in strftime | |
16233 | do | |
16234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16239 | else | |
16240 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16241 | /* confdefs.h. */ |
16242 | _ACEOF | |
16243 | cat confdefs.h >>conftest.$ac_ext | |
16244 | cat >>conftest.$ac_ext <<_ACEOF | |
16245 | /* end confdefs.h. */ | |
35996d22 AS |
16246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16248 | #define $ac_func innocuous_$ac_func | |
16249 | ||
973a76b1 | 16250 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16251 | which can conflict with char $ac_func (); below. |
16252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16253 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16254 | |
19650fd6 AS |
16255 | #ifdef __STDC__ |
16256 | # include <limits.h> | |
16257 | #else | |
16258 | # include <assert.h> | |
16259 | #endif | |
35996d22 AS |
16260 | |
16261 | #undef $ac_func | |
16262 | ||
973a76b1 DL |
16263 | /* Override any gcc2 internal prototype to avoid an error. */ |
16264 | #ifdef __cplusplus | |
16265 | extern "C" | |
19650fd6 | 16266 | { |
973a76b1 DL |
16267 | #endif |
16268 | /* We use char because int might match the return type of a gcc2 | |
16269 | builtin and then its argument prototype would still apply. */ | |
16270 | char $ac_func (); | |
16271 | /* The GNU C library defines this for functions which it implements | |
16272 | to always fail with ENOSYS. Some functions are actually named | |
16273 | something starting with __ and the normal name is an alias. */ | |
16274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16275 | choke me | |
16276 | #else | |
19650fd6 AS |
16277 | char (*f) () = $ac_func; |
16278 | #endif | |
16279 | #ifdef __cplusplus | |
16280 | } | |
973a76b1 DL |
16281 | #endif |
16282 | ||
19650fd6 AS |
16283 | int |
16284 | main () | |
16285 | { | |
16286 | return f != $ac_func; | |
973a76b1 DL |
16287 | ; |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16293 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16294 | ac_status=$? |
35996d22 AS |
16295 | grep -v '^ *+' conftest.er1 >conftest.err |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
973a76b1 DL |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16299 | (exit $ac_status); } && | |
35996d22 AS |
16300 | { ac_try='test -z "$ac_c_werror_flag" |
16301 | || test ! -s conftest.err' | |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; } && | |
16307 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16309 | (eval $ac_try) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); }; }; then | |
16313 | eval "$as_ac_var=yes" | |
16314 | else | |
16315 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 |
16317 | ||
973a76b1 DL |
16318 | eval "$as_ac_var=no" |
16319 | fi | |
35996d22 AS |
16320 | rm -f conftest.err conftest.$ac_objext \ |
16321 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16322 | fi |
16323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16326 | cat >>confdefs.h <<_ACEOF | |
16327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16328 | _ACEOF | |
16329 | ||
16330 | else | |
16331 | # strftime is in -lintl on SCO UNIX. | |
16332 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
16333 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
16334 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
16335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16336 | else | |
16337 | ac_check_lib_save_LIBS=$LIBS | |
16338 | LIBS="-lintl $LIBS" | |
16339 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16340 | /* confdefs.h. */ |
16341 | _ACEOF | |
16342 | cat confdefs.h >>conftest.$ac_ext | |
16343 | cat >>conftest.$ac_ext <<_ACEOF | |
16344 | /* end confdefs.h. */ | |
973a76b1 DL |
16345 | |
16346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16347 | #ifdef __cplusplus | |
16348 | extern "C" | |
16349 | #endif | |
16350 | /* We use char because int might match the return type of a gcc2 | |
16351 | builtin and then its argument prototype would still apply. */ | |
16352 | char strftime (); | |
16353 | int | |
16354 | main () | |
16355 | { | |
16356 | strftime (); | |
16357 | ; | |
16358 | return 0; | |
16359 | } | |
16360 | _ACEOF | |
16361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16363 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16364 | ac_status=$? |
35996d22 AS |
16365 | grep -v '^ *+' conftest.er1 >conftest.err |
16366 | rm -f conftest.er1 | |
16367 | cat conftest.err >&5 | |
973a76b1 DL |
16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16369 | (exit $ac_status); } && | |
35996d22 AS |
16370 | { ac_try='test -z "$ac_c_werror_flag" |
16371 | || test ! -s conftest.err' | |
16372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16373 | (eval $ac_try) 2>&5 | |
16374 | ac_status=$? | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); }; } && | |
16377 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16379 | (eval $ac_try) 2>&5 | |
16380 | ac_status=$? | |
16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16382 | (exit $ac_status); }; }; then | |
16383 | ac_cv_lib_intl_strftime=yes | |
16384 | else | |
16385 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16386 | sed 's/^/| /' conftest.$ac_ext >&5 |
16387 | ||
973a76b1 DL |
16388 | ac_cv_lib_intl_strftime=no |
16389 | fi | |
35996d22 AS |
16390 | rm -f conftest.err conftest.$ac_objext \ |
16391 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16392 | LIBS=$ac_check_lib_save_LIBS |
16393 | fi | |
16394 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
16395 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
16396 | if test $ac_cv_lib_intl_strftime = yes; then | |
16397 | cat >>confdefs.h <<\_ACEOF | |
16398 | #define HAVE_STRFTIME 1 | |
16399 | _ACEOF | |
16400 | ||
16401 | LIBS="-lintl $LIBS" | |
16402 | fi | |
16403 | ||
16404 | fi | |
16405 | done | |
16406 | ||
16407 | ||
b936fae4 AS |
16408 | # UNIX98 PTYs. |
16409 | ||
16410 | for ac_func in grantpt | |
503d2be0 AS |
16411 | do |
16412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 16417 | else |
503d2be0 | 16418 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16419 | /* confdefs.h. */ |
16420 | _ACEOF | |
16421 | cat confdefs.h >>conftest.$ac_ext | |
16422 | cat >>conftest.$ac_ext <<_ACEOF | |
16423 | /* end confdefs.h. */ | |
35996d22 AS |
16424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16426 | #define $ac_func innocuous_$ac_func | |
16427 | ||
503d2be0 | 16428 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16429 | which can conflict with char $ac_func (); below. |
16430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16431 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16432 | |
19650fd6 AS |
16433 | #ifdef __STDC__ |
16434 | # include <limits.h> | |
16435 | #else | |
16436 | # include <assert.h> | |
16437 | #endif | |
35996d22 AS |
16438 | |
16439 | #undef $ac_func | |
16440 | ||
4c343001 | 16441 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16442 | #ifdef __cplusplus |
16443 | extern "C" | |
19650fd6 | 16444 | { |
503d2be0 | 16445 | #endif |
4c343001 | 16446 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16447 | builtin and then its argument prototype would still apply. */ |
16448 | char $ac_func (); | |
503d2be0 AS |
16449 | /* The GNU C library defines this for functions which it implements |
16450 | to always fail with ENOSYS. Some functions are actually named | |
16451 | something starting with __ and the normal name is an alias. */ | |
16452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16453 | choke me | |
16454 | #else | |
19650fd6 AS |
16455 | char (*f) () = $ac_func; |
16456 | #endif | |
16457 | #ifdef __cplusplus | |
16458 | } | |
503d2be0 | 16459 | #endif |
4c343001 | 16460 | |
19650fd6 AS |
16461 | int |
16462 | main () | |
16463 | { | |
16464 | return f != $ac_func; | |
503d2be0 AS |
16465 | ; |
16466 | return 0; | |
16467 | } | |
16468 | _ACEOF | |
16469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16471 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16472 | ac_status=$? |
35996d22 AS |
16473 | grep -v '^ *+' conftest.er1 >conftest.err |
16474 | rm -f conftest.er1 | |
16475 | cat conftest.err >&5 | |
c0d27fcc | 16476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16477 | (exit $ac_status); } && |
35996d22 AS |
16478 | { ac_try='test -z "$ac_c_werror_flag" |
16479 | || test ! -s conftest.err' | |
16480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16481 | (eval $ac_try) 2>&5 | |
16482 | ac_status=$? | |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16484 | (exit $ac_status); }; } && | |
16485 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16487 | (eval $ac_try) 2>&5 |
16488 | ac_status=$? | |
c0d27fcc | 16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16490 | (exit $ac_status); }; }; then |
16491 | eval "$as_ac_var=yes" | |
16492 | else | |
16493 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16494 | sed 's/^/| /' conftest.$ac_ext >&5 |
16495 | ||
503d2be0 AS |
16496 | eval "$as_ac_var=no" |
16497 | fi | |
35996d22 AS |
16498 | rm -f conftest.err conftest.$ac_objext \ |
16499 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16500 | fi |
c0d27fcc | 16501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16504 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16506 | _ACEOF |
4c343001 DL |
16507 | |
16508 | fi | |
503d2be0 AS |
16509 | done |
16510 | ||
c0d27fcc | 16511 | |
b936fae4 | 16512 | # PTY-related GNU extensions. |
4c343001 | 16513 | |
b936fae4 AS |
16514 | for ac_func in getpt |
16515 | do | |
16516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16517 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
16518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16519 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 16520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 16521 | else |
b936fae4 | 16522 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16523 | /* confdefs.h. */ |
16524 | _ACEOF | |
16525 | cat confdefs.h >>conftest.$ac_ext | |
16526 | cat >>conftest.$ac_ext <<_ACEOF | |
16527 | /* end confdefs.h. */ | |
35996d22 AS |
16528 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16530 | #define $ac_func innocuous_$ac_func | |
16531 | ||
087121cc | 16532 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16533 | which can conflict with char $ac_func (); below. |
16534 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16535 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16536 | |
19650fd6 AS |
16537 | #ifdef __STDC__ |
16538 | # include <limits.h> | |
16539 | #else | |
16540 | # include <assert.h> | |
16541 | #endif | |
35996d22 AS |
16542 | |
16543 | #undef $ac_func | |
16544 | ||
087121cc | 16545 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16546 | #ifdef __cplusplus |
16547 | extern "C" | |
19650fd6 | 16548 | { |
503d2be0 | 16549 | #endif |
087121cc | 16550 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16551 | builtin and then its argument prototype would still apply. */ |
16552 | char $ac_func (); | |
087121cc GM |
16553 | /* The GNU C library defines this for functions which it implements |
16554 | to always fail with ENOSYS. Some functions are actually named | |
16555 | something starting with __ and the normal name is an alias. */ | |
16556 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16557 | choke me | |
16558 | #else | |
19650fd6 AS |
16559 | char (*f) () = $ac_func; |
16560 | #endif | |
16561 | #ifdef __cplusplus | |
16562 | } | |
087121cc GM |
16563 | #endif |
16564 | ||
19650fd6 AS |
16565 | int |
16566 | main () | |
16567 | { | |
16568 | return f != $ac_func; | |
503d2be0 AS |
16569 | ; |
16570 | return 0; | |
16571 | } | |
16572 | _ACEOF | |
16573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16575 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16576 | ac_status=$? |
35996d22 AS |
16577 | grep -v '^ *+' conftest.er1 >conftest.err |
16578 | rm -f conftest.er1 | |
16579 | cat conftest.err >&5 | |
c0d27fcc | 16580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16581 | (exit $ac_status); } && |
35996d22 AS |
16582 | { ac_try='test -z "$ac_c_werror_flag" |
16583 | || test ! -s conftest.err' | |
16584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16585 | (eval $ac_try) 2>&5 | |
16586 | ac_status=$? | |
16587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16588 | (exit $ac_status); }; } && | |
16589 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16591 | (eval $ac_try) 2>&5 |
16592 | ac_status=$? | |
c0d27fcc | 16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16594 | (exit $ac_status); }; }; then |
16595 | eval "$as_ac_var=yes" | |
16596 | else | |
16597 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16598 | sed 's/^/| /' conftest.$ac_ext >&5 |
16599 | ||
503d2be0 AS |
16600 | eval "$as_ac_var=no" |
16601 | fi | |
35996d22 AS |
16602 | rm -f conftest.err conftest.$ac_objext \ |
16603 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16604 | fi |
c0d27fcc | 16605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16606 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16607 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16608 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16609 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16610 | _ACEOF |
087121cc | 16611 | |
087121cc GM |
16612 | fi |
16613 | done | |
16614 | ||
c0d27fcc | 16615 | |
ba4481b5 DL |
16616 | # Check this now, so that we will NOT find the above functions in ncurses. |
16617 | # That is because we have not set up to link ncurses in lib-src. | |
16618 | # It's better to believe a function is not available | |
16619 | # than to expect to find it in ncurses. | |
503d2be0 | 16620 | |
c0d27fcc | 16621 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
16622 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
16623 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
16624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16625 | else |
503d2be0 | 16626 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16627 | LIBS="-lncurses $LIBS" |
503d2be0 | 16628 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16629 | /* confdefs.h. */ |
16630 | _ACEOF | |
16631 | cat confdefs.h >>conftest.$ac_ext | |
16632 | cat >>conftest.$ac_ext <<_ACEOF | |
16633 | /* end confdefs.h. */ | |
503d2be0 | 16634 | |
ba4481b5 | 16635 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16636 | #ifdef __cplusplus |
16637 | extern "C" | |
16638 | #endif | |
ba4481b5 | 16639 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16640 | builtin and then its argument prototype would still apply. */ |
16641 | char tparm (); | |
16642 | int | |
16643 | main () | |
16644 | { | |
16645 | tparm (); | |
16646 | ; | |
16647 | return 0; | |
16648 | } | |
16649 | _ACEOF | |
16650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16652 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16653 | ac_status=$? |
35996d22 AS |
16654 | grep -v '^ *+' conftest.er1 >conftest.err |
16655 | rm -f conftest.er1 | |
16656 | cat conftest.err >&5 | |
c0d27fcc | 16657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16658 | (exit $ac_status); } && |
35996d22 AS |
16659 | { ac_try='test -z "$ac_c_werror_flag" |
16660 | || test ! -s conftest.err' | |
16661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16662 | (eval $ac_try) 2>&5 | |
16663 | ac_status=$? | |
16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16665 | (exit $ac_status); }; } && | |
16666 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16668 | (eval $ac_try) 2>&5 |
16669 | ac_status=$? | |
c0d27fcc | 16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16671 | (exit $ac_status); }; }; then |
16672 | ac_cv_lib_ncurses_tparm=yes | |
16673 | else | |
16674 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16675 | sed 's/^/| /' conftest.$ac_ext >&5 |
16676 | ||
503d2be0 AS |
16677 | ac_cv_lib_ncurses_tparm=no |
16678 | fi | |
35996d22 AS |
16679 | rm -f conftest.err conftest.$ac_objext \ |
16680 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
16681 | LIBS=$ac_check_lib_save_LIBS |
16682 | fi | |
c0d27fcc | 16683 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
16684 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
16685 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 16686 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16687 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 16688 | _ACEOF |
ba4481b5 DL |
16689 | |
16690 | LIBS="-lncurses $LIBS" | |
16691 | ||
ba4481b5 DL |
16692 | fi |
16693 | ||
c0d27fcc | 16694 | |
84e70f78 KR |
16695 | # Do we need the Hesiod library to provide the support routines? |
16696 | if test "$with_hesiod" = yes ; then | |
16697 | # Don't set $LIBS here -- see comments above. | |
16698 | resolv=no | |
c0d27fcc | 16699 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
16700 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
16701 | if test "${ac_cv_func_res_send+set}" = set; then | |
16702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16703 | else | |
16704 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16705 | /* confdefs.h. */ |
16706 | _ACEOF | |
16707 | cat confdefs.h >>conftest.$ac_ext | |
16708 | cat >>conftest.$ac_ext <<_ACEOF | |
16709 | /* end confdefs.h. */ | |
35996d22 AS |
16710 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
16711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16712 | #define res_send innocuous_res_send | |
16713 | ||
84e70f78 | 16714 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16715 | which can conflict with char res_send (); below. |
16716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16717 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16718 | |
19650fd6 AS |
16719 | #ifdef __STDC__ |
16720 | # include <limits.h> | |
16721 | #else | |
16722 | # include <assert.h> | |
16723 | #endif | |
35996d22 AS |
16724 | |
16725 | #undef res_send | |
16726 | ||
84e70f78 KR |
16727 | /* Override any gcc2 internal prototype to avoid an error. */ |
16728 | #ifdef __cplusplus | |
16729 | extern "C" | |
19650fd6 | 16730 | { |
84e70f78 KR |
16731 | #endif |
16732 | /* We use char because int might match the return type of a gcc2 | |
16733 | builtin and then its argument prototype would still apply. */ | |
16734 | char res_send (); | |
84e70f78 KR |
16735 | /* The GNU C library defines this for functions which it implements |
16736 | to always fail with ENOSYS. Some functions are actually named | |
16737 | something starting with __ and the normal name is an alias. */ | |
16738 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
16739 | choke me | |
16740 | #else | |
19650fd6 AS |
16741 | char (*f) () = res_send; |
16742 | #endif | |
16743 | #ifdef __cplusplus | |
16744 | } | |
cd958eb3 MB |
16745 | #endif |
16746 | ||
19650fd6 AS |
16747 | int |
16748 | main () | |
16749 | { | |
16750 | return f != res_send; | |
84e70f78 KR |
16751 | ; |
16752 | return 0; | |
16753 | } | |
16754 | _ACEOF | |
16755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16757 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16758 | ac_status=$? |
35996d22 AS |
16759 | grep -v '^ *+' conftest.er1 >conftest.err |
16760 | rm -f conftest.er1 | |
16761 | cat conftest.err >&5 | |
c0d27fcc | 16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16763 | (exit $ac_status); } && |
35996d22 AS |
16764 | { ac_try='test -z "$ac_c_werror_flag" |
16765 | || test ! -s conftest.err' | |
16766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16767 | (eval $ac_try) 2>&5 | |
16768 | ac_status=$? | |
16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16770 | (exit $ac_status); }; } && | |
16771 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16773 | (eval $ac_try) 2>&5 |
16774 | ac_status=$? | |
c0d27fcc | 16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16776 | (exit $ac_status); }; }; then |
16777 | ac_cv_func_res_send=yes | |
16778 | else | |
16779 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16780 | sed 's/^/| /' conftest.$ac_ext >&5 |
16781 | ||
84e70f78 KR |
16782 | ac_cv_func_res_send=no |
16783 | fi | |
35996d22 AS |
16784 | rm -f conftest.err conftest.$ac_objext \ |
16785 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16786 | fi |
c0d27fcc | 16787 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
16788 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
16789 | if test $ac_cv_func_res_send = yes; then | |
16790 | : | |
16791 | else | |
c0d27fcc | 16792 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
16793 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
16794 | if test "${ac_cv_func___res_send+set}" = set; then | |
16795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16796 | else | |
16797 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16798 | /* confdefs.h. */ |
16799 | _ACEOF | |
16800 | cat confdefs.h >>conftest.$ac_ext | |
16801 | cat >>conftest.$ac_ext <<_ACEOF | |
16802 | /* end confdefs.h. */ | |
35996d22 AS |
16803 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
16804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16805 | #define __res_send innocuous___res_send | |
16806 | ||
84e70f78 | 16807 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16808 | which can conflict with char __res_send (); below. |
16809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16810 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16811 | |
19650fd6 AS |
16812 | #ifdef __STDC__ |
16813 | # include <limits.h> | |
16814 | #else | |
16815 | # include <assert.h> | |
16816 | #endif | |
35996d22 AS |
16817 | |
16818 | #undef __res_send | |
16819 | ||
84e70f78 KR |
16820 | /* Override any gcc2 internal prototype to avoid an error. */ |
16821 | #ifdef __cplusplus | |
16822 | extern "C" | |
19650fd6 | 16823 | { |
84e70f78 KR |
16824 | #endif |
16825 | /* We use char because int might match the return type of a gcc2 | |
16826 | builtin and then its argument prototype would still apply. */ | |
16827 | char __res_send (); | |
84e70f78 KR |
16828 | /* The GNU C library defines this for functions which it implements |
16829 | to always fail with ENOSYS. Some functions are actually named | |
16830 | something starting with __ and the normal name is an alias. */ | |
16831 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
16832 | choke me | |
16833 | #else | |
19650fd6 AS |
16834 | char (*f) () = __res_send; |
16835 | #endif | |
16836 | #ifdef __cplusplus | |
16837 | } | |
84e70f78 KR |
16838 | #endif |
16839 | ||
19650fd6 AS |
16840 | int |
16841 | main () | |
16842 | { | |
16843 | return f != __res_send; | |
84e70f78 KR |
16844 | ; |
16845 | return 0; | |
16846 | } | |
16847 | _ACEOF | |
16848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16850 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16851 | ac_status=$? |
35996d22 AS |
16852 | grep -v '^ *+' conftest.er1 >conftest.err |
16853 | rm -f conftest.er1 | |
16854 | cat conftest.err >&5 | |
c0d27fcc | 16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16856 | (exit $ac_status); } && |
35996d22 AS |
16857 | { ac_try='test -z "$ac_c_werror_flag" |
16858 | || test ! -s conftest.err' | |
16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16860 | (eval $ac_try) 2>&5 | |
16861 | ac_status=$? | |
16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16863 | (exit $ac_status); }; } && | |
16864 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16866 | (eval $ac_try) 2>&5 |
16867 | ac_status=$? | |
c0d27fcc | 16868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16869 | (exit $ac_status); }; }; then |
16870 | ac_cv_func___res_send=yes | |
16871 | else | |
16872 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16873 | sed 's/^/| /' conftest.$ac_ext >&5 |
16874 | ||
84e70f78 KR |
16875 | ac_cv_func___res_send=no |
16876 | fi | |
35996d22 AS |
16877 | rm -f conftest.err conftest.$ac_objext \ |
16878 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16879 | fi |
c0d27fcc | 16880 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
16881 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
16882 | if test $ac_cv_func___res_send = yes; then | |
16883 | : | |
16884 | else | |
c0d27fcc | 16885 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
16886 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
16887 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
16888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16889 | else | |
16890 | ac_check_lib_save_LIBS=$LIBS | |
16891 | LIBS="-lresolv $LIBS" | |
16892 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16893 | /* confdefs.h. */ |
16894 | _ACEOF | |
16895 | cat confdefs.h >>conftest.$ac_ext | |
16896 | cat >>conftest.$ac_ext <<_ACEOF | |
16897 | /* end confdefs.h. */ | |
84e70f78 KR |
16898 | |
16899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16900 | #ifdef __cplusplus | |
16901 | extern "C" | |
16902 | #endif | |
16903 | /* We use char because int might match the return type of a gcc2 | |
16904 | builtin and then its argument prototype would still apply. */ | |
16905 | char res_send (); | |
16906 | int | |
16907 | main () | |
16908 | { | |
16909 | res_send (); | |
16910 | ; | |
16911 | return 0; | |
16912 | } | |
16913 | _ACEOF | |
16914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16916 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16917 | ac_status=$? |
35996d22 AS |
16918 | grep -v '^ *+' conftest.er1 >conftest.err |
16919 | rm -f conftest.er1 | |
16920 | cat conftest.err >&5 | |
c0d27fcc | 16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16922 | (exit $ac_status); } && |
35996d22 AS |
16923 | { ac_try='test -z "$ac_c_werror_flag" |
16924 | || test ! -s conftest.err' | |
16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16926 | (eval $ac_try) 2>&5 | |
16927 | ac_status=$? | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; } && | |
16930 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16932 | (eval $ac_try) 2>&5 |
16933 | ac_status=$? | |
c0d27fcc | 16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16935 | (exit $ac_status); }; }; then |
16936 | ac_cv_lib_resolv_res_send=yes | |
16937 | else | |
16938 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16939 | sed 's/^/| /' conftest.$ac_ext >&5 |
16940 | ||
84e70f78 KR |
16941 | ac_cv_lib_resolv_res_send=no |
16942 | fi | |
35996d22 AS |
16943 | rm -f conftest.err conftest.$ac_objext \ |
16944 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
16945 | LIBS=$ac_check_lib_save_LIBS |
16946 | fi | |
c0d27fcc | 16947 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
16948 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
16949 | if test $ac_cv_lib_resolv_res_send = yes; then | |
16950 | resolv=yes | |
16951 | else | |
c0d27fcc | 16952 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
16953 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
16954 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
16955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16956 | else | |
16957 | ac_check_lib_save_LIBS=$LIBS | |
16958 | LIBS="-lresolv $LIBS" | |
16959 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16960 | /* confdefs.h. */ |
16961 | _ACEOF | |
16962 | cat confdefs.h >>conftest.$ac_ext | |
16963 | cat >>conftest.$ac_ext <<_ACEOF | |
16964 | /* end confdefs.h. */ | |
84e70f78 KR |
16965 | |
16966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16967 | #ifdef __cplusplus | |
16968 | extern "C" | |
16969 | #endif | |
16970 | /* We use char because int might match the return type of a gcc2 | |
16971 | builtin and then its argument prototype would still apply. */ | |
16972 | char __res_send (); | |
16973 | int | |
16974 | main () | |
16975 | { | |
16976 | __res_send (); | |
16977 | ; | |
16978 | return 0; | |
16979 | } | |
16980 | _ACEOF | |
16981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16983 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16984 | ac_status=$? |
35996d22 AS |
16985 | grep -v '^ *+' conftest.er1 >conftest.err |
16986 | rm -f conftest.er1 | |
16987 | cat conftest.err >&5 | |
c0d27fcc | 16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16989 | (exit $ac_status); } && |
35996d22 AS |
16990 | { ac_try='test -z "$ac_c_werror_flag" |
16991 | || test ! -s conftest.err' | |
16992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16993 | (eval $ac_try) 2>&5 | |
16994 | ac_status=$? | |
16995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16996 | (exit $ac_status); }; } && | |
16997 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16999 | (eval $ac_try) 2>&5 |
17000 | ac_status=$? | |
c0d27fcc | 17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17002 | (exit $ac_status); }; }; then |
17003 | ac_cv_lib_resolv___res_send=yes | |
17004 | else | |
17005 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17006 | sed 's/^/| /' conftest.$ac_ext >&5 |
17007 | ||
84e70f78 KR |
17008 | ac_cv_lib_resolv___res_send=no |
17009 | fi | |
35996d22 AS |
17010 | rm -f conftest.err conftest.$ac_objext \ |
17011 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17012 | LIBS=$ac_check_lib_save_LIBS |
17013 | fi | |
c0d27fcc | 17014 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
17015 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
17016 | if test $ac_cv_lib_resolv___res_send = yes; then | |
17017 | resolv=yes | |
17018 | fi | |
17019 | ||
17020 | fi | |
17021 | ||
17022 | fi | |
17023 | ||
17024 | fi | |
17025 | ||
17026 | if test "$resolv" = yes ; then | |
17027 | RESOLVLIB=-lresolv | |
b936fae4 | 17028 | |
c0d27fcc | 17029 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17030 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 17031 | _ACEOF |
84e70f78 KR |
17032 | |
17033 | else | |
17034 | RESOLVLIB= | |
17035 | fi | |
c0d27fcc | 17036 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
17037 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
17038 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
17039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17040 | else | |
17041 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17042 | /* confdefs.h. */ |
17043 | _ACEOF | |
17044 | cat confdefs.h >>conftest.$ac_ext | |
17045 | cat >>conftest.$ac_ext <<_ACEOF | |
17046 | /* end confdefs.h. */ | |
35996d22 AS |
17047 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
17048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17049 | #define hes_getmailhost innocuous_hes_getmailhost | |
17050 | ||
84e70f78 | 17051 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17052 | which can conflict with char hes_getmailhost (); below. |
17053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17054 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 17055 | |
19650fd6 AS |
17056 | #ifdef __STDC__ |
17057 | # include <limits.h> | |
17058 | #else | |
17059 | # include <assert.h> | |
17060 | #endif | |
35996d22 AS |
17061 | |
17062 | #undef hes_getmailhost | |
17063 | ||
84e70f78 KR |
17064 | /* Override any gcc2 internal prototype to avoid an error. */ |
17065 | #ifdef __cplusplus | |
17066 | extern "C" | |
19650fd6 | 17067 | { |
84e70f78 KR |
17068 | #endif |
17069 | /* We use char because int might match the return type of a gcc2 | |
17070 | builtin and then its argument prototype would still apply. */ | |
17071 | char hes_getmailhost (); | |
84e70f78 KR |
17072 | /* The GNU C library defines this for functions which it implements |
17073 | to always fail with ENOSYS. Some functions are actually named | |
17074 | something starting with __ and the normal name is an alias. */ | |
17075 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
17076 | choke me | |
17077 | #else | |
19650fd6 AS |
17078 | char (*f) () = hes_getmailhost; |
17079 | #endif | |
17080 | #ifdef __cplusplus | |
17081 | } | |
cd958eb3 MB |
17082 | #endif |
17083 | ||
19650fd6 AS |
17084 | int |
17085 | main () | |
17086 | { | |
17087 | return f != hes_getmailhost; | |
84e70f78 KR |
17088 | ; |
17089 | return 0; | |
17090 | } | |
17091 | _ACEOF | |
17092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17094 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17095 | ac_status=$? |
35996d22 AS |
17096 | grep -v '^ *+' conftest.er1 >conftest.err |
17097 | rm -f conftest.er1 | |
17098 | cat conftest.err >&5 | |
c0d27fcc | 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17100 | (exit $ac_status); } && |
35996d22 AS |
17101 | { ac_try='test -z "$ac_c_werror_flag" |
17102 | || test ! -s conftest.err' | |
17103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17104 | (eval $ac_try) 2>&5 | |
17105 | ac_status=$? | |
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17107 | (exit $ac_status); }; } && | |
17108 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17110 | (eval $ac_try) 2>&5 |
17111 | ac_status=$? | |
c0d27fcc | 17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17113 | (exit $ac_status); }; }; then |
17114 | ac_cv_func_hes_getmailhost=yes | |
17115 | else | |
17116 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17117 | sed 's/^/| /' conftest.$ac_ext >&5 |
17118 | ||
84e70f78 KR |
17119 | ac_cv_func_hes_getmailhost=no |
17120 | fi | |
35996d22 AS |
17121 | rm -f conftest.err conftest.$ac_objext \ |
17122 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 17123 | fi |
c0d27fcc | 17124 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
17125 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
17126 | if test $ac_cv_func_hes_getmailhost = yes; then | |
17127 | : | |
17128 | else | |
c0d27fcc | 17129 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
17130 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
17131 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
17132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17133 | else | |
17134 | ac_check_lib_save_LIBS=$LIBS | |
17135 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
17136 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17137 | /* confdefs.h. */ |
17138 | _ACEOF | |
17139 | cat confdefs.h >>conftest.$ac_ext | |
17140 | cat >>conftest.$ac_ext <<_ACEOF | |
17141 | /* end confdefs.h. */ | |
84e70f78 KR |
17142 | |
17143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17144 | #ifdef __cplusplus | |
17145 | extern "C" | |
17146 | #endif | |
17147 | /* We use char because int might match the return type of a gcc2 | |
17148 | builtin and then its argument prototype would still apply. */ | |
17149 | char hes_getmailhost (); | |
17150 | int | |
17151 | main () | |
17152 | { | |
17153 | hes_getmailhost (); | |
17154 | ; | |
17155 | return 0; | |
17156 | } | |
17157 | _ACEOF | |
17158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17160 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17161 | ac_status=$? |
35996d22 AS |
17162 | grep -v '^ *+' conftest.er1 >conftest.err |
17163 | rm -f conftest.er1 | |
17164 | cat conftest.err >&5 | |
c0d27fcc | 17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17166 | (exit $ac_status); } && |
35996d22 AS |
17167 | { ac_try='test -z "$ac_c_werror_flag" |
17168 | || test ! -s conftest.err' | |
17169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17170 | (eval $ac_try) 2>&5 | |
17171 | ac_status=$? | |
17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17173 | (exit $ac_status); }; } && | |
17174 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17176 | (eval $ac_try) 2>&5 |
17177 | ac_status=$? | |
c0d27fcc | 17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17179 | (exit $ac_status); }; }; then |
17180 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
17181 | else | |
17182 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17183 | sed 's/^/| /' conftest.$ac_ext >&5 |
17184 | ||
84e70f78 KR |
17185 | ac_cv_lib_hesiod_hes_getmailhost=no |
17186 | fi | |
35996d22 AS |
17187 | rm -f conftest.err conftest.$ac_objext \ |
17188 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17189 | LIBS=$ac_check_lib_save_LIBS |
17190 | fi | |
c0d27fcc | 17191 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
17192 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
17193 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 17194 | |
c0d27fcc | 17195 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17196 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 17197 | _ACEOF |
84e70f78 KR |
17198 | |
17199 | else | |
17200 | : | |
17201 | fi | |
17202 | ||
17203 | fi | |
17204 | ||
17205 | fi | |
17206 | ||
a21616bd KR |
17207 | # These tell us which Kerberos-related libraries to use. |
17208 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 17209 | |
c0d27fcc | 17210 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
17211 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
17212 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
17213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17214 | else |
503d2be0 | 17215 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17216 | LIBS="-lcom_err $LIBS" |
503d2be0 | 17217 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17218 | /* confdefs.h. */ |
17219 | _ACEOF | |
17220 | cat confdefs.h >>conftest.$ac_ext | |
17221 | cat >>conftest.$ac_ext <<_ACEOF | |
17222 | /* end confdefs.h. */ | |
503d2be0 | 17223 | |
a21616bd | 17224 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17225 | #ifdef __cplusplus |
17226 | extern "C" | |
17227 | #endif | |
a21616bd | 17228 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17229 | builtin and then its argument prototype would still apply. */ |
17230 | char com_err (); | |
17231 | int | |
17232 | main () | |
17233 | { | |
17234 | com_err (); | |
17235 | ; | |
17236 | return 0; | |
17237 | } | |
17238 | _ACEOF | |
17239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17241 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17242 | ac_status=$? |
35996d22 AS |
17243 | grep -v '^ *+' conftest.er1 >conftest.err |
17244 | rm -f conftest.er1 | |
17245 | cat conftest.err >&5 | |
c0d27fcc | 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17247 | (exit $ac_status); } && |
35996d22 AS |
17248 | { ac_try='test -z "$ac_c_werror_flag" |
17249 | || test ! -s conftest.err' | |
17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17251 | (eval $ac_try) 2>&5 | |
17252 | ac_status=$? | |
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17254 | (exit $ac_status); }; } && | |
17255 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17257 | (eval $ac_try) 2>&5 |
17258 | ac_status=$? | |
c0d27fcc | 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17260 | (exit $ac_status); }; }; then |
17261 | ac_cv_lib_com_err_com_err=yes | |
17262 | else | |
17263 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17264 | sed 's/^/| /' conftest.$ac_ext >&5 |
17265 | ||
503d2be0 AS |
17266 | ac_cv_lib_com_err_com_err=no |
17267 | fi | |
35996d22 AS |
17268 | rm -f conftest.err conftest.$ac_objext \ |
17269 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17270 | LIBS=$ac_check_lib_save_LIBS |
17271 | fi | |
c0d27fcc | 17272 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
17273 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
17274 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 17275 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17276 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 17277 | _ACEOF |
a21616bd KR |
17278 | |
17279 | LIBS="-lcom_err $LIBS" | |
17280 | ||
a21616bd KR |
17281 | fi |
17282 | ||
c0d27fcc MR |
17283 | |
17284 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
17285 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
17286 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
17287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17288 | else |
503d2be0 | 17289 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17290 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 17291 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17292 | /* confdefs.h. */ |
17293 | _ACEOF | |
17294 | cat confdefs.h >>conftest.$ac_ext | |
17295 | cat >>conftest.$ac_ext <<_ACEOF | |
17296 | /* end confdefs.h. */ | |
503d2be0 | 17297 | |
a21616bd | 17298 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17299 | #ifdef __cplusplus |
17300 | extern "C" | |
17301 | #endif | |
a21616bd | 17302 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17303 | builtin and then its argument prototype would still apply. */ |
17304 | char mit_des_cbc_encrypt (); | |
17305 | int | |
17306 | main () | |
17307 | { | |
17308 | mit_des_cbc_encrypt (); | |
17309 | ; | |
17310 | return 0; | |
17311 | } | |
17312 | _ACEOF | |
17313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17315 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17316 | ac_status=$? |
35996d22 AS |
17317 | grep -v '^ *+' conftest.er1 >conftest.err |
17318 | rm -f conftest.er1 | |
17319 | cat conftest.err >&5 | |
c0d27fcc | 17320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17321 | (exit $ac_status); } && |
35996d22 AS |
17322 | { ac_try='test -z "$ac_c_werror_flag" |
17323 | || test ! -s conftest.err' | |
17324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17325 | (eval $ac_try) 2>&5 | |
17326 | ac_status=$? | |
17327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17328 | (exit $ac_status); }; } && | |
17329 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17331 | (eval $ac_try) 2>&5 |
17332 | ac_status=$? | |
c0d27fcc | 17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17334 | (exit $ac_status); }; }; then |
17335 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
17336 | else | |
17337 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17338 | sed 's/^/| /' conftest.$ac_ext >&5 |
17339 | ||
503d2be0 AS |
17340 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
17341 | fi | |
35996d22 AS |
17342 | rm -f conftest.err conftest.$ac_objext \ |
17343 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17344 | LIBS=$ac_check_lib_save_LIBS |
17345 | fi | |
c0d27fcc | 17346 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17347 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
17348 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17349 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17350 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 17351 | _ACEOF |
a21616bd KR |
17352 | |
17353 | LIBS="-lk5crypto $LIBS" | |
17354 | ||
a21616bd KR |
17355 | fi |
17356 | ||
c0d27fcc MR |
17357 | |
17358 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
17359 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
17360 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
17361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17362 | else |
503d2be0 | 17363 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17364 | LIBS="-lcrypto $LIBS" |
503d2be0 | 17365 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17366 | /* confdefs.h. */ |
17367 | _ACEOF | |
17368 | cat confdefs.h >>conftest.$ac_ext | |
17369 | cat >>conftest.$ac_ext <<_ACEOF | |
17370 | /* end confdefs.h. */ | |
503d2be0 | 17371 | |
a21616bd | 17372 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17373 | #ifdef __cplusplus |
17374 | extern "C" | |
17375 | #endif | |
a21616bd | 17376 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17377 | builtin and then its argument prototype would still apply. */ |
17378 | char mit_des_cbc_encrypt (); | |
17379 | int | |
17380 | main () | |
17381 | { | |
17382 | mit_des_cbc_encrypt (); | |
17383 | ; | |
17384 | return 0; | |
17385 | } | |
17386 | _ACEOF | |
17387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17389 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17390 | ac_status=$? |
35996d22 AS |
17391 | grep -v '^ *+' conftest.er1 >conftest.err |
17392 | rm -f conftest.er1 | |
17393 | cat conftest.err >&5 | |
c0d27fcc | 17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17395 | (exit $ac_status); } && |
35996d22 AS |
17396 | { ac_try='test -z "$ac_c_werror_flag" |
17397 | || test ! -s conftest.err' | |
17398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17399 | (eval $ac_try) 2>&5 | |
17400 | ac_status=$? | |
17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17402 | (exit $ac_status); }; } && | |
17403 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17405 | (eval $ac_try) 2>&5 |
17406 | ac_status=$? | |
c0d27fcc | 17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17408 | (exit $ac_status); }; }; then |
17409 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
17410 | else | |
17411 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17412 | sed 's/^/| /' conftest.$ac_ext >&5 |
17413 | ||
503d2be0 AS |
17414 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
17415 | fi | |
35996d22 AS |
17416 | rm -f conftest.err conftest.$ac_objext \ |
17417 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17418 | LIBS=$ac_check_lib_save_LIBS |
17419 | fi | |
c0d27fcc | 17420 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17421 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
17422 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17423 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17424 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 17425 | _ACEOF |
a21616bd KR |
17426 | |
17427 | LIBS="-lcrypto $LIBS" | |
17428 | ||
a21616bd KR |
17429 | fi |
17430 | ||
c0d27fcc MR |
17431 | |
17432 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
17433 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
17434 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
17435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17436 | else |
503d2be0 | 17437 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17438 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 17439 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17440 | /* confdefs.h. */ |
17441 | _ACEOF | |
17442 | cat confdefs.h >>conftest.$ac_ext | |
17443 | cat >>conftest.$ac_ext <<_ACEOF | |
17444 | /* end confdefs.h. */ | |
a21616bd | 17445 | |
503d2be0 AS |
17446 | /* Override any gcc2 internal prototype to avoid an error. */ |
17447 | #ifdef __cplusplus | |
17448 | extern "C" | |
17449 | #endif | |
17450 | /* We use char because int might match the return type of a gcc2 | |
17451 | builtin and then its argument prototype would still apply. */ | |
17452 | char krb5_init_context (); | |
17453 | int | |
17454 | main () | |
17455 | { | |
17456 | krb5_init_context (); | |
17457 | ; | |
17458 | return 0; | |
17459 | } | |
17460 | _ACEOF | |
17461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17463 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17464 | ac_status=$? |
35996d22 AS |
17465 | grep -v '^ *+' conftest.er1 >conftest.err |
17466 | rm -f conftest.er1 | |
17467 | cat conftest.err >&5 | |
c0d27fcc | 17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17469 | (exit $ac_status); } && |
35996d22 AS |
17470 | { ac_try='test -z "$ac_c_werror_flag" |
17471 | || test ! -s conftest.err' | |
17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17473 | (eval $ac_try) 2>&5 | |
17474 | ac_status=$? | |
17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17476 | (exit $ac_status); }; } && | |
17477 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17479 | (eval $ac_try) 2>&5 |
17480 | ac_status=$? | |
c0d27fcc | 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17482 | (exit $ac_status); }; }; then |
17483 | ac_cv_lib_krb5_krb5_init_context=yes | |
17484 | else | |
17485 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17486 | sed 's/^/| /' conftest.$ac_ext >&5 |
17487 | ||
503d2be0 AS |
17488 | ac_cv_lib_krb5_krb5_init_context=no |
17489 | fi | |
35996d22 AS |
17490 | rm -f conftest.err conftest.$ac_objext \ |
17491 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17492 | LIBS=$ac_check_lib_save_LIBS |
17493 | fi | |
c0d27fcc | 17494 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
17495 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
17496 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 17497 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17498 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 17499 | _ACEOF |
a21616bd KR |
17500 | |
17501 | LIBS="-lkrb5 $LIBS" | |
17502 | ||
a21616bd KR |
17503 | fi |
17504 | ||
17505 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 17506 | |
c0d27fcc | 17507 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
17508 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
17509 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
17510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17511 | else |
503d2be0 | 17512 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17513 | LIBS="-ldes425 $LIBS" |
503d2be0 | 17514 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17515 | /* confdefs.h. */ |
17516 | _ACEOF | |
17517 | cat confdefs.h >>conftest.$ac_ext | |
17518 | cat >>conftest.$ac_ext <<_ACEOF | |
17519 | /* end confdefs.h. */ | |
503d2be0 | 17520 | |
a21616bd | 17521 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17522 | #ifdef __cplusplus |
17523 | extern "C" | |
17524 | #endif | |
a21616bd | 17525 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17526 | builtin and then its argument prototype would still apply. */ |
17527 | char des_cbc_encrypt (); | |
17528 | int | |
17529 | main () | |
17530 | { | |
17531 | des_cbc_encrypt (); | |
17532 | ; | |
17533 | return 0; | |
17534 | } | |
17535 | _ACEOF | |
17536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17538 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17539 | ac_status=$? |
35996d22 AS |
17540 | grep -v '^ *+' conftest.er1 >conftest.err |
17541 | rm -f conftest.er1 | |
17542 | cat conftest.err >&5 | |
c0d27fcc | 17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17544 | (exit $ac_status); } && |
35996d22 AS |
17545 | { ac_try='test -z "$ac_c_werror_flag" |
17546 | || test ! -s conftest.err' | |
17547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); }; } && | |
17552 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17554 | (eval $ac_try) 2>&5 |
17555 | ac_status=$? | |
c0d27fcc | 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17557 | (exit $ac_status); }; }; then |
17558 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
17559 | else | |
17560 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17561 | sed 's/^/| /' conftest.$ac_ext >&5 |
17562 | ||
503d2be0 AS |
17563 | ac_cv_lib_des425_des_cbc_encrypt=no |
17564 | fi | |
35996d22 AS |
17565 | rm -f conftest.err conftest.$ac_objext \ |
17566 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17567 | LIBS=$ac_check_lib_save_LIBS |
17568 | fi | |
c0d27fcc | 17569 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
17570 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
17571 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 17572 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17573 | #define HAVE_LIBDES425 1 |
c0d27fcc | 17574 | _ACEOF |
a21616bd KR |
17575 | |
17576 | LIBS="-ldes425 $LIBS" | |
17577 | ||
17578 | else | |
503d2be0 | 17579 | |
c0d27fcc | 17580 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
17581 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
17582 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
17583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17584 | else |
503d2be0 | 17585 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17586 | LIBS="-ldes $LIBS" |
503d2be0 | 17587 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17588 | /* confdefs.h. */ |
17589 | _ACEOF | |
17590 | cat confdefs.h >>conftest.$ac_ext | |
17591 | cat >>conftest.$ac_ext <<_ACEOF | |
17592 | /* end confdefs.h. */ | |
503d2be0 | 17593 | |
a21616bd | 17594 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17595 | #ifdef __cplusplus |
17596 | extern "C" | |
17597 | #endif | |
a21616bd | 17598 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17599 | builtin and then its argument prototype would still apply. */ |
17600 | char des_cbc_encrypt (); | |
17601 | int | |
17602 | main () | |
17603 | { | |
17604 | des_cbc_encrypt (); | |
17605 | ; | |
17606 | return 0; | |
17607 | } | |
17608 | _ACEOF | |
17609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17611 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17612 | ac_status=$? |
35996d22 AS |
17613 | grep -v '^ *+' conftest.er1 >conftest.err |
17614 | rm -f conftest.er1 | |
17615 | cat conftest.err >&5 | |
c0d27fcc | 17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17617 | (exit $ac_status); } && |
35996d22 AS |
17618 | { ac_try='test -z "$ac_c_werror_flag" |
17619 | || test ! -s conftest.err' | |
17620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); }; } && | |
17625 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17627 | (eval $ac_try) 2>&5 |
17628 | ac_status=$? | |
c0d27fcc | 17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17630 | (exit $ac_status); }; }; then |
17631 | ac_cv_lib_des_des_cbc_encrypt=yes | |
17632 | else | |
17633 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17634 | sed 's/^/| /' conftest.$ac_ext >&5 |
17635 | ||
503d2be0 AS |
17636 | ac_cv_lib_des_des_cbc_encrypt=no |
17637 | fi | |
35996d22 AS |
17638 | rm -f conftest.err conftest.$ac_objext \ |
17639 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17640 | LIBS=$ac_check_lib_save_LIBS |
17641 | fi | |
c0d27fcc | 17642 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
17643 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
17644 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 17645 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17646 | #define HAVE_LIBDES 1 |
c0d27fcc | 17647 | _ACEOF |
a21616bd KR |
17648 | |
17649 | LIBS="-ldes $LIBS" | |
17650 | ||
a21616bd KR |
17651 | fi |
17652 | ||
17653 | fi | |
17654 | ||
c0d27fcc MR |
17655 | |
17656 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
17657 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
17658 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
17659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17660 | else |
503d2be0 | 17661 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17662 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 17663 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17664 | /* confdefs.h. */ |
17665 | _ACEOF | |
17666 | cat confdefs.h >>conftest.$ac_ext | |
17667 | cat >>conftest.$ac_ext <<_ACEOF | |
17668 | /* end confdefs.h. */ | |
503d2be0 | 17669 | |
a21616bd | 17670 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17671 | #ifdef __cplusplus |
17672 | extern "C" | |
17673 | #endif | |
a21616bd | 17674 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17675 | builtin and then its argument prototype would still apply. */ |
17676 | char krb_get_cred (); | |
17677 | int | |
17678 | main () | |
17679 | { | |
17680 | krb_get_cred (); | |
17681 | ; | |
17682 | return 0; | |
17683 | } | |
17684 | _ACEOF | |
17685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17687 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17688 | ac_status=$? |
35996d22 AS |
17689 | grep -v '^ *+' conftest.er1 >conftest.err |
17690 | rm -f conftest.er1 | |
17691 | cat conftest.err >&5 | |
c0d27fcc | 17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17693 | (exit $ac_status); } && |
35996d22 AS |
17694 | { ac_try='test -z "$ac_c_werror_flag" |
17695 | || test ! -s conftest.err' | |
17696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17697 | (eval $ac_try) 2>&5 | |
17698 | ac_status=$? | |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17700 | (exit $ac_status); }; } && | |
17701 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17703 | (eval $ac_try) 2>&5 |
17704 | ac_status=$? | |
c0d27fcc | 17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17706 | (exit $ac_status); }; }; then |
17707 | ac_cv_lib_krb4_krb_get_cred=yes | |
17708 | else | |
17709 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17710 | sed 's/^/| /' conftest.$ac_ext >&5 |
17711 | ||
503d2be0 AS |
17712 | ac_cv_lib_krb4_krb_get_cred=no |
17713 | fi | |
35996d22 AS |
17714 | rm -f conftest.err conftest.$ac_objext \ |
17715 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17716 | LIBS=$ac_check_lib_save_LIBS |
17717 | fi | |
c0d27fcc | 17718 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
17719 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
17720 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 17721 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17722 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 17723 | _ACEOF |
a21616bd KR |
17724 | |
17725 | LIBS="-lkrb4 $LIBS" | |
17726 | ||
17727 | else | |
503d2be0 | 17728 | |
c0d27fcc | 17729 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
17730 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
17731 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
17732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17733 | else |
503d2be0 | 17734 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17735 | LIBS="-lkrb $LIBS" |
503d2be0 | 17736 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17737 | /* confdefs.h. */ |
17738 | _ACEOF | |
17739 | cat confdefs.h >>conftest.$ac_ext | |
17740 | cat >>conftest.$ac_ext <<_ACEOF | |
17741 | /* end confdefs.h. */ | |
503d2be0 | 17742 | |
a21616bd | 17743 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17744 | #ifdef __cplusplus |
17745 | extern "C" | |
17746 | #endif | |
a21616bd | 17747 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17748 | builtin and then its argument prototype would still apply. */ |
17749 | char krb_get_cred (); | |
17750 | int | |
17751 | main () | |
17752 | { | |
17753 | krb_get_cred (); | |
17754 | ; | |
17755 | return 0; | |
17756 | } | |
17757 | _ACEOF | |
17758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17760 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17761 | ac_status=$? |
35996d22 AS |
17762 | grep -v '^ *+' conftest.er1 >conftest.err |
17763 | rm -f conftest.er1 | |
17764 | cat conftest.err >&5 | |
c0d27fcc | 17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17766 | (exit $ac_status); } && |
35996d22 AS |
17767 | { ac_try='test -z "$ac_c_werror_flag" |
17768 | || test ! -s conftest.err' | |
17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17770 | (eval $ac_try) 2>&5 | |
17771 | ac_status=$? | |
17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17773 | (exit $ac_status); }; } && | |
17774 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17776 | (eval $ac_try) 2>&5 |
17777 | ac_status=$? | |
c0d27fcc | 17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17779 | (exit $ac_status); }; }; then |
17780 | ac_cv_lib_krb_krb_get_cred=yes | |
17781 | else | |
17782 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17783 | sed 's/^/| /' conftest.$ac_ext >&5 |
17784 | ||
503d2be0 AS |
17785 | ac_cv_lib_krb_krb_get_cred=no |
17786 | fi | |
35996d22 AS |
17787 | rm -f conftest.err conftest.$ac_objext \ |
17788 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17789 | LIBS=$ac_check_lib_save_LIBS |
17790 | fi | |
c0d27fcc | 17791 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
17792 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
17793 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 17794 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17795 | #define HAVE_LIBKRB 1 |
c0d27fcc | 17796 | _ACEOF |
a21616bd KR |
17797 | |
17798 | LIBS="-lkrb $LIBS" | |
17799 | ||
a21616bd KR |
17800 | fi |
17801 | ||
17802 | fi | |
17803 | ||
17804 | fi | |
17805 | ||
17806 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
17807 | |
17808 | for ac_header in krb5.h | |
a21616bd | 17809 | do |
503d2be0 | 17810 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17816 | fi |
17817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17818 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17819 | else |
c0d27fcc MR |
17820 | # Is the header compilable? |
17821 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17822 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17823 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17824 | /* confdefs.h. */ |
17825 | _ACEOF | |
17826 | cat confdefs.h >>conftest.$ac_ext | |
17827 | cat >>conftest.$ac_ext <<_ACEOF | |
17828 | /* end confdefs.h. */ | |
c0d27fcc MR |
17829 | $ac_includes_default |
17830 | #include <$ac_header> | |
17831 | _ACEOF | |
17832 | rm -f conftest.$ac_objext | |
17833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17834 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17835 | ac_status=$? |
35996d22 AS |
17836 | grep -v '^ *+' conftest.er1 >conftest.err |
17837 | rm -f conftest.er1 | |
17838 | cat conftest.err >&5 | |
c0d27fcc MR |
17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17840 | (exit $ac_status); } && | |
35996d22 AS |
17841 | { ac_try='test -z "$ac_c_werror_flag" |
17842 | || test ! -s conftest.err' | |
17843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17844 | (eval $ac_try) 2>&5 | |
17845 | ac_status=$? | |
17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17847 | (exit $ac_status); }; } && | |
17848 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
17849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17850 | (eval $ac_try) 2>&5 | |
17851 | ac_status=$? | |
17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17853 | (exit $ac_status); }; }; then | |
17854 | ac_header_compiler=yes | |
17855 | else | |
17856 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17857 | sed 's/^/| /' conftest.$ac_ext >&5 |
17858 | ||
c0d27fcc MR |
17859 | ac_header_compiler=no |
17860 | fi | |
35996d22 | 17861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
17862 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17863 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17864 | ||
17865 | # Is the header present? | |
17866 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17867 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17868 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17869 | /* confdefs.h. */ |
17870 | _ACEOF | |
17871 | cat confdefs.h >>conftest.$ac_ext | |
17872 | cat >>conftest.$ac_ext <<_ACEOF | |
17873 | /* end confdefs.h. */ | |
503d2be0 AS |
17874 | #include <$ac_header> |
17875 | _ACEOF | |
c0d27fcc | 17876 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17877 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17878 | ac_status=$? | |
6bae0ccf | 17879 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17880 | rm -f conftest.er1 |
17881 | cat conftest.err >&5 | |
c0d27fcc | 17882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17883 | (exit $ac_status); } >/dev/null; then |
17884 | if test -s conftest.err; then | |
17885 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 17886 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
17887 | else |
17888 | ac_cpp_err= | |
17889 | fi | |
17890 | else | |
17891 | ac_cpp_err=yes | |
17892 | fi | |
17893 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17894 | ac_header_preproc=yes |
503d2be0 AS |
17895 | else |
17896 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17897 | sed 's/^/| /' conftest.$ac_ext >&5 |
17898 | ||
c0d27fcc | 17899 | ac_header_preproc=no |
a21616bd | 17900 | fi |
503d2be0 | 17901 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17902 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17903 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17904 | ||
17905 | # So? What about this header? | |
35996d22 AS |
17906 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17907 | yes:no: ) | |
c0d27fcc MR |
17908 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17909 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
17910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17911 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17912 | ac_header_preproc=yes | |
19650fd6 | 17913 | ;; |
35996d22 | 17914 | no:yes:* ) |
c0d27fcc MR |
17915 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17916 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
17917 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17918 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17919 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17920 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17921 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17922 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17923 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17924 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
17925 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17926 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
17927 | ( |
17928 | cat <<\_ASBOX | |
35996d22 AS |
17929 | ## ------------------------------------------ ## |
17930 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17931 | ## ------------------------------------------ ## | |
19650fd6 AS |
17932 | _ASBOX |
17933 | ) | | |
17934 | sed "s/^/$as_me: WARNING: /" >&2 | |
17935 | ;; | |
c0d27fcc MR |
17936 | esac |
17937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17941 | else | |
35996d22 | 17942 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 17943 | fi |
c0d27fcc | 17944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 17945 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17946 | |
17947 | fi | |
503d2be0 | 17948 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17949 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17950 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17951 | _ACEOF |
503d2be0 | 17952 | |
a21616bd | 17953 | fi |
c0d27fcc | 17954 | |
a21616bd KR |
17955 | done |
17956 | ||
17957 | else | |
503d2be0 AS |
17958 | |
17959 | for ac_header in des.h | |
a21616bd | 17960 | do |
503d2be0 | 17961 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17963 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17967 | fi |
17968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17969 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17970 | else |
c0d27fcc MR |
17971 | # Is the header compilable? |
17972 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17973 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17974 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17975 | /* confdefs.h. */ |
17976 | _ACEOF | |
17977 | cat confdefs.h >>conftest.$ac_ext | |
17978 | cat >>conftest.$ac_ext <<_ACEOF | |
17979 | /* end confdefs.h. */ | |
c0d27fcc MR |
17980 | $ac_includes_default |
17981 | #include <$ac_header> | |
17982 | _ACEOF | |
17983 | rm -f conftest.$ac_objext | |
17984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17985 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17986 | ac_status=$? |
35996d22 AS |
17987 | grep -v '^ *+' conftest.er1 >conftest.err |
17988 | rm -f conftest.er1 | |
17989 | cat conftest.err >&5 | |
c0d27fcc MR |
17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17991 | (exit $ac_status); } && | |
35996d22 AS |
17992 | { ac_try='test -z "$ac_c_werror_flag" |
17993 | || test ! -s conftest.err' | |
17994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17995 | (eval $ac_try) 2>&5 | |
17996 | ac_status=$? | |
17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17998 | (exit $ac_status); }; } && | |
17999 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18001 | (eval $ac_try) 2>&5 | |
18002 | ac_status=$? | |
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18004 | (exit $ac_status); }; }; then | |
18005 | ac_header_compiler=yes | |
18006 | else | |
18007 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18008 | sed 's/^/| /' conftest.$ac_ext >&5 |
18009 | ||
c0d27fcc MR |
18010 | ac_header_compiler=no |
18011 | fi | |
35996d22 | 18012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18013 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18014 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18015 | ||
18016 | # Is the header present? | |
18017 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18018 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18019 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18020 | /* confdefs.h. */ |
18021 | _ACEOF | |
18022 | cat confdefs.h >>conftest.$ac_ext | |
18023 | cat >>conftest.$ac_ext <<_ACEOF | |
18024 | /* end confdefs.h. */ | |
503d2be0 AS |
18025 | #include <$ac_header> |
18026 | _ACEOF | |
c0d27fcc | 18027 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18028 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18029 | ac_status=$? | |
6bae0ccf | 18030 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18031 | rm -f conftest.er1 |
18032 | cat conftest.err >&5 | |
c0d27fcc | 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18034 | (exit $ac_status); } >/dev/null; then |
18035 | if test -s conftest.err; then | |
18036 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18037 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18038 | else |
18039 | ac_cpp_err= | |
18040 | fi | |
18041 | else | |
18042 | ac_cpp_err=yes | |
18043 | fi | |
18044 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18045 | ac_header_preproc=yes |
503d2be0 AS |
18046 | else |
18047 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18048 | sed 's/^/| /' conftest.$ac_ext >&5 |
18049 | ||
c0d27fcc | 18050 | ac_header_preproc=no |
a21616bd | 18051 | fi |
503d2be0 | 18052 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18053 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18054 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18055 | ||
18056 | # So? What about this header? | |
35996d22 AS |
18057 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18058 | yes:no: ) | |
c0d27fcc MR |
18059 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18060 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18062 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18063 | ac_header_preproc=yes | |
19650fd6 | 18064 | ;; |
35996d22 | 18065 | no:yes:* ) |
c0d27fcc MR |
18066 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18067 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18068 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18069 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18070 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18071 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18072 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18073 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18075 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18076 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18077 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18078 | ( |
18079 | cat <<\_ASBOX | |
35996d22 AS |
18080 | ## ------------------------------------------ ## |
18081 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18082 | ## ------------------------------------------ ## | |
19650fd6 AS |
18083 | _ASBOX |
18084 | ) | | |
18085 | sed "s/^/$as_me: WARNING: /" >&2 | |
18086 | ;; | |
c0d27fcc MR |
18087 | esac |
18088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18092 | else | |
35996d22 | 18093 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18094 | fi |
c0d27fcc | 18095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18096 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18097 | |
18098 | fi | |
503d2be0 | 18099 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18100 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18101 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18102 | _ACEOF |
503d2be0 | 18103 | |
a21616bd | 18104 | else |
503d2be0 AS |
18105 | |
18106 | for ac_header in kerberosIV/des.h | |
a21616bd | 18107 | do |
503d2be0 | 18108 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18114 | fi |
18115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18117 | else |
c0d27fcc MR |
18118 | # Is the header compilable? |
18119 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18120 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18121 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18122 | /* confdefs.h. */ |
18123 | _ACEOF | |
18124 | cat confdefs.h >>conftest.$ac_ext | |
18125 | cat >>conftest.$ac_ext <<_ACEOF | |
18126 | /* end confdefs.h. */ | |
c0d27fcc MR |
18127 | $ac_includes_default |
18128 | #include <$ac_header> | |
18129 | _ACEOF | |
18130 | rm -f conftest.$ac_objext | |
18131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18132 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18133 | ac_status=$? |
35996d22 AS |
18134 | grep -v '^ *+' conftest.er1 >conftest.err |
18135 | rm -f conftest.er1 | |
18136 | cat conftest.err >&5 | |
c0d27fcc MR |
18137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18138 | (exit $ac_status); } && | |
35996d22 AS |
18139 | { ac_try='test -z "$ac_c_werror_flag" |
18140 | || test ! -s conftest.err' | |
18141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18142 | (eval $ac_try) 2>&5 | |
18143 | ac_status=$? | |
18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18145 | (exit $ac_status); }; } && | |
18146 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18148 | (eval $ac_try) 2>&5 | |
18149 | ac_status=$? | |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18151 | (exit $ac_status); }; }; then | |
18152 | ac_header_compiler=yes | |
18153 | else | |
18154 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18155 | sed 's/^/| /' conftest.$ac_ext >&5 |
18156 | ||
c0d27fcc MR |
18157 | ac_header_compiler=no |
18158 | fi | |
35996d22 | 18159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18160 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18161 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18162 | ||
18163 | # Is the header present? | |
18164 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18165 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18166 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18167 | /* confdefs.h. */ |
18168 | _ACEOF | |
18169 | cat confdefs.h >>conftest.$ac_ext | |
18170 | cat >>conftest.$ac_ext <<_ACEOF | |
18171 | /* end confdefs.h. */ | |
503d2be0 AS |
18172 | #include <$ac_header> |
18173 | _ACEOF | |
c0d27fcc | 18174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18176 | ac_status=$? | |
6bae0ccf | 18177 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18178 | rm -f conftest.er1 |
18179 | cat conftest.err >&5 | |
c0d27fcc | 18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18181 | (exit $ac_status); } >/dev/null; then |
18182 | if test -s conftest.err; then | |
18183 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18185 | else |
18186 | ac_cpp_err= | |
18187 | fi | |
18188 | else | |
18189 | ac_cpp_err=yes | |
18190 | fi | |
18191 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18192 | ac_header_preproc=yes |
503d2be0 AS |
18193 | else |
18194 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18195 | sed 's/^/| /' conftest.$ac_ext >&5 |
18196 | ||
c0d27fcc | 18197 | ac_header_preproc=no |
a21616bd | 18198 | fi |
503d2be0 | 18199 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18200 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18201 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18202 | ||
18203 | # So? What about this header? | |
35996d22 AS |
18204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18205 | yes:no: ) | |
c0d27fcc MR |
18206 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18207 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18209 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18210 | ac_header_preproc=yes | |
19650fd6 | 18211 | ;; |
35996d22 | 18212 | no:yes:* ) |
c0d27fcc MR |
18213 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18214 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18215 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18216 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18217 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18218 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18219 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18220 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18222 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18223 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18224 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18225 | ( |
18226 | cat <<\_ASBOX | |
35996d22 AS |
18227 | ## ------------------------------------------ ## |
18228 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18229 | ## ------------------------------------------ ## | |
19650fd6 AS |
18230 | _ASBOX |
18231 | ) | | |
18232 | sed "s/^/$as_me: WARNING: /" >&2 | |
18233 | ;; | |
c0d27fcc MR |
18234 | esac |
18235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18239 | else | |
35996d22 | 18240 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18241 | fi |
c0d27fcc | 18242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18244 | |
18245 | fi | |
503d2be0 | 18246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18247 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18249 | _ACEOF |
503d2be0 | 18250 | |
a21616bd | 18251 | else |
503d2be0 AS |
18252 | |
18253 | for ac_header in kerberos/des.h | |
a21616bd | 18254 | do |
503d2be0 | 18255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18261 | fi |
18262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18264 | else |
c0d27fcc MR |
18265 | # Is the header compilable? |
18266 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18267 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18268 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18269 | /* confdefs.h. */ |
18270 | _ACEOF | |
18271 | cat confdefs.h >>conftest.$ac_ext | |
18272 | cat >>conftest.$ac_ext <<_ACEOF | |
18273 | /* end confdefs.h. */ | |
c0d27fcc MR |
18274 | $ac_includes_default |
18275 | #include <$ac_header> | |
18276 | _ACEOF | |
18277 | rm -f conftest.$ac_objext | |
18278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18279 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18280 | ac_status=$? |
35996d22 AS |
18281 | grep -v '^ *+' conftest.er1 >conftest.err |
18282 | rm -f conftest.er1 | |
18283 | cat conftest.err >&5 | |
c0d27fcc MR |
18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18285 | (exit $ac_status); } && | |
35996d22 AS |
18286 | { ac_try='test -z "$ac_c_werror_flag" |
18287 | || test ! -s conftest.err' | |
18288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18289 | (eval $ac_try) 2>&5 | |
18290 | ac_status=$? | |
18291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18292 | (exit $ac_status); }; } && | |
18293 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18295 | (eval $ac_try) 2>&5 | |
18296 | ac_status=$? | |
18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18298 | (exit $ac_status); }; }; then | |
18299 | ac_header_compiler=yes | |
18300 | else | |
18301 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18302 | sed 's/^/| /' conftest.$ac_ext >&5 |
18303 | ||
c0d27fcc MR |
18304 | ac_header_compiler=no |
18305 | fi | |
35996d22 | 18306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18309 | ||
18310 | # Is the header present? | |
18311 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18313 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18314 | /* confdefs.h. */ |
18315 | _ACEOF | |
18316 | cat confdefs.h >>conftest.$ac_ext | |
18317 | cat >>conftest.$ac_ext <<_ACEOF | |
18318 | /* end confdefs.h. */ | |
503d2be0 AS |
18319 | #include <$ac_header> |
18320 | _ACEOF | |
c0d27fcc | 18321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18323 | ac_status=$? | |
6bae0ccf | 18324 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18325 | rm -f conftest.er1 |
18326 | cat conftest.err >&5 | |
c0d27fcc | 18327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18328 | (exit $ac_status); } >/dev/null; then |
18329 | if test -s conftest.err; then | |
18330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18332 | else |
18333 | ac_cpp_err= | |
18334 | fi | |
18335 | else | |
18336 | ac_cpp_err=yes | |
18337 | fi | |
18338 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18339 | ac_header_preproc=yes |
503d2be0 AS |
18340 | else |
18341 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18342 | sed 's/^/| /' conftest.$ac_ext >&5 |
18343 | ||
c0d27fcc | 18344 | ac_header_preproc=no |
a21616bd | 18345 | fi |
503d2be0 | 18346 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18349 | ||
18350 | # So? What about this header? | |
35996d22 AS |
18351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18352 | yes:no: ) | |
c0d27fcc MR |
18353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18357 | ac_header_preproc=yes | |
19650fd6 | 18358 | ;; |
35996d22 | 18359 | no:yes:* ) |
c0d27fcc MR |
18360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18372 | ( |
18373 | cat <<\_ASBOX | |
35996d22 AS |
18374 | ## ------------------------------------------ ## |
18375 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18376 | ## ------------------------------------------ ## | |
19650fd6 AS |
18377 | _ASBOX |
18378 | ) | | |
18379 | sed "s/^/$as_me: WARNING: /" >&2 | |
18380 | ;; | |
c0d27fcc MR |
18381 | esac |
18382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18386 | else | |
35996d22 | 18387 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18388 | fi |
c0d27fcc | 18389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18391 | |
18392 | fi | |
503d2be0 | 18393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18394 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18396 | _ACEOF |
a21616bd KR |
18397 | |
18398 | fi | |
c0d27fcc | 18399 | |
a21616bd KR |
18400 | done |
18401 | ||
98418dba | 18402 | fi |
c0d27fcc | 18403 | |
925c2f3f EZ |
18404 | done |
18405 | ||
98418dba | 18406 | fi |
c0d27fcc | 18407 | |
925c2f3f | 18408 | done |
98418dba | 18409 | |
c0d27fcc | 18410 | |
925c2f3f EZ |
18411 | for ac_header in krb.h |
18412 | do | |
18413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
18414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
18416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18419 | fi |
18420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18422 | else | |
18423 | # Is the header compilable? | |
18424 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18426 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18427 | /* confdefs.h. */ |
18428 | _ACEOF | |
18429 | cat confdefs.h >>conftest.$ac_ext | |
18430 | cat >>conftest.$ac_ext <<_ACEOF | |
18431 | /* end confdefs.h. */ | |
c0d27fcc MR |
18432 | $ac_includes_default |
18433 | #include <$ac_header> | |
18434 | _ACEOF | |
18435 | rm -f conftest.$ac_objext | |
18436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18437 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18438 | ac_status=$? |
35996d22 AS |
18439 | grep -v '^ *+' conftest.er1 >conftest.err |
18440 | rm -f conftest.er1 | |
18441 | cat conftest.err >&5 | |
c0d27fcc MR |
18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18443 | (exit $ac_status); } && | |
35996d22 AS |
18444 | { ac_try='test -z "$ac_c_werror_flag" |
18445 | || test ! -s conftest.err' | |
18446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18447 | (eval $ac_try) 2>&5 | |
18448 | ac_status=$? | |
18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18450 | (exit $ac_status); }; } && | |
18451 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18453 | (eval $ac_try) 2>&5 | |
18454 | ac_status=$? | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); }; }; then | |
18457 | ac_header_compiler=yes | |
925c2f3f | 18458 | else |
c0d27fcc | 18459 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
18460 | sed 's/^/| /' conftest.$ac_ext >&5 |
18461 | ||
c0d27fcc MR |
18462 | ac_header_compiler=no |
18463 | fi | |
35996d22 | 18464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18466 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18467 | ||
18468 | # Is the header present? | |
18469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18471 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18472 | /* confdefs.h. */ |
18473 | _ACEOF | |
18474 | cat confdefs.h >>conftest.$ac_ext | |
18475 | cat >>conftest.$ac_ext <<_ACEOF | |
18476 | /* end confdefs.h. */ | |
503d2be0 AS |
18477 | #include <$ac_header> |
18478 | _ACEOF | |
c0d27fcc | 18479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18481 | ac_status=$? | |
6bae0ccf | 18482 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18483 | rm -f conftest.er1 |
18484 | cat conftest.err >&5 | |
c0d27fcc | 18485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18486 | (exit $ac_status); } >/dev/null; then |
18487 | if test -s conftest.err; then | |
18488 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18490 | else |
18491 | ac_cpp_err= | |
18492 | fi | |
18493 | else | |
18494 | ac_cpp_err=yes | |
18495 | fi | |
18496 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18497 | ac_header_preproc=yes |
503d2be0 AS |
18498 | else |
18499 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18500 | sed 's/^/| /' conftest.$ac_ext >&5 |
18501 | ||
c0d27fcc | 18502 | ac_header_preproc=no |
a21616bd | 18503 | fi |
503d2be0 | 18504 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18506 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18507 | ||
18508 | # So? What about this header? | |
35996d22 AS |
18509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18510 | yes:no: ) | |
c0d27fcc MR |
18511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18514 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18515 | ac_header_preproc=yes | |
19650fd6 | 18516 | ;; |
35996d22 | 18517 | no:yes:* ) |
c0d27fcc MR |
18518 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18519 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18520 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18521 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18522 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18523 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18524 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18525 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18527 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18528 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18529 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18530 | ( |
18531 | cat <<\_ASBOX | |
35996d22 AS |
18532 | ## ------------------------------------------ ## |
18533 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18534 | ## ------------------------------------------ ## | |
19650fd6 AS |
18535 | _ASBOX |
18536 | ) | | |
18537 | sed "s/^/$as_me: WARNING: /" >&2 | |
18538 | ;; | |
c0d27fcc MR |
18539 | esac |
18540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18544 | else | |
35996d22 | 18545 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18546 | fi |
c0d27fcc | 18547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18549 | |
18550 | fi | |
503d2be0 | 18551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18552 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18554 | _ACEOF |
503d2be0 | 18555 | |
a21616bd | 18556 | else |
503d2be0 AS |
18557 | |
18558 | for ac_header in kerberosIV/krb.h | |
a21616bd | 18559 | do |
503d2be0 | 18560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18566 | fi |
18567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18569 | else |
c0d27fcc MR |
18570 | # Is the header compilable? |
18571 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18573 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18574 | /* confdefs.h. */ |
18575 | _ACEOF | |
18576 | cat confdefs.h >>conftest.$ac_ext | |
18577 | cat >>conftest.$ac_ext <<_ACEOF | |
18578 | /* end confdefs.h. */ | |
c0d27fcc MR |
18579 | $ac_includes_default |
18580 | #include <$ac_header> | |
18581 | _ACEOF | |
18582 | rm -f conftest.$ac_objext | |
18583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18584 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18585 | ac_status=$? |
35996d22 AS |
18586 | grep -v '^ *+' conftest.er1 >conftest.err |
18587 | rm -f conftest.er1 | |
18588 | cat conftest.err >&5 | |
c0d27fcc MR |
18589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18590 | (exit $ac_status); } && | |
35996d22 AS |
18591 | { ac_try='test -z "$ac_c_werror_flag" |
18592 | || test ! -s conftest.err' | |
18593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18594 | (eval $ac_try) 2>&5 | |
18595 | ac_status=$? | |
18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18597 | (exit $ac_status); }; } && | |
18598 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18600 | (eval $ac_try) 2>&5 | |
18601 | ac_status=$? | |
18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18603 | (exit $ac_status); }; }; then | |
18604 | ac_header_compiler=yes | |
18605 | else | |
18606 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18607 | sed 's/^/| /' conftest.$ac_ext >&5 |
18608 | ||
c0d27fcc MR |
18609 | ac_header_compiler=no |
18610 | fi | |
35996d22 | 18611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18612 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18613 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18614 | ||
18615 | # Is the header present? | |
18616 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18617 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18618 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18619 | /* confdefs.h. */ |
18620 | _ACEOF | |
18621 | cat confdefs.h >>conftest.$ac_ext | |
18622 | cat >>conftest.$ac_ext <<_ACEOF | |
18623 | /* end confdefs.h. */ | |
503d2be0 AS |
18624 | #include <$ac_header> |
18625 | _ACEOF | |
c0d27fcc | 18626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18628 | ac_status=$? | |
6bae0ccf | 18629 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18630 | rm -f conftest.er1 |
18631 | cat conftest.err >&5 | |
c0d27fcc | 18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18633 | (exit $ac_status); } >/dev/null; then |
18634 | if test -s conftest.err; then | |
18635 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18637 | else |
18638 | ac_cpp_err= | |
18639 | fi | |
18640 | else | |
18641 | ac_cpp_err=yes | |
18642 | fi | |
18643 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18644 | ac_header_preproc=yes |
503d2be0 AS |
18645 | else |
18646 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18647 | sed 's/^/| /' conftest.$ac_ext >&5 |
18648 | ||
c0d27fcc | 18649 | ac_header_preproc=no |
a21616bd | 18650 | fi |
503d2be0 | 18651 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18652 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18653 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18654 | ||
18655 | # So? What about this header? | |
35996d22 AS |
18656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18657 | yes:no: ) | |
c0d27fcc MR |
18658 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18659 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18660 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18661 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18662 | ac_header_preproc=yes | |
19650fd6 | 18663 | ;; |
35996d22 | 18664 | no:yes:* ) |
c0d27fcc MR |
18665 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18666 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18667 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18668 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18669 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18670 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18671 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18672 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18674 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18675 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18676 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18677 | ( |
18678 | cat <<\_ASBOX | |
35996d22 AS |
18679 | ## ------------------------------------------ ## |
18680 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18681 | ## ------------------------------------------ ## | |
19650fd6 AS |
18682 | _ASBOX |
18683 | ) | | |
18684 | sed "s/^/$as_me: WARNING: /" >&2 | |
18685 | ;; | |
c0d27fcc MR |
18686 | esac |
18687 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18689 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18691 | else | |
35996d22 | 18692 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18693 | fi |
c0d27fcc | 18694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18696 | |
18697 | fi | |
503d2be0 | 18698 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18699 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18700 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18701 | _ACEOF |
503d2be0 | 18702 | |
a21616bd | 18703 | else |
503d2be0 AS |
18704 | |
18705 | for ac_header in kerberos/krb.h | |
a21616bd | 18706 | do |
503d2be0 | 18707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18708 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18713 | fi |
18714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18716 | else |
c0d27fcc MR |
18717 | # Is the header compilable? |
18718 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18720 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18721 | /* confdefs.h. */ |
18722 | _ACEOF | |
18723 | cat confdefs.h >>conftest.$ac_ext | |
18724 | cat >>conftest.$ac_ext <<_ACEOF | |
18725 | /* end confdefs.h. */ | |
c0d27fcc MR |
18726 | $ac_includes_default |
18727 | #include <$ac_header> | |
18728 | _ACEOF | |
18729 | rm -f conftest.$ac_objext | |
18730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18731 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18732 | ac_status=$? |
35996d22 AS |
18733 | grep -v '^ *+' conftest.er1 >conftest.err |
18734 | rm -f conftest.er1 | |
18735 | cat conftest.err >&5 | |
c0d27fcc MR |
18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18737 | (exit $ac_status); } && | |
35996d22 AS |
18738 | { ac_try='test -z "$ac_c_werror_flag" |
18739 | || test ! -s conftest.err' | |
18740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18741 | (eval $ac_try) 2>&5 | |
18742 | ac_status=$? | |
18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18744 | (exit $ac_status); }; } && | |
18745 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18747 | (eval $ac_try) 2>&5 | |
18748 | ac_status=$? | |
18749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18750 | (exit $ac_status); }; }; then | |
18751 | ac_header_compiler=yes | |
18752 | else | |
18753 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18754 | sed 's/^/| /' conftest.$ac_ext >&5 |
18755 | ||
c0d27fcc MR |
18756 | ac_header_compiler=no |
18757 | fi | |
35996d22 | 18758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18760 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18761 | ||
18762 | # Is the header present? | |
18763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18765 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18766 | /* confdefs.h. */ |
18767 | _ACEOF | |
18768 | cat confdefs.h >>conftest.$ac_ext | |
18769 | cat >>conftest.$ac_ext <<_ACEOF | |
18770 | /* end confdefs.h. */ | |
503d2be0 AS |
18771 | #include <$ac_header> |
18772 | _ACEOF | |
c0d27fcc | 18773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18775 | ac_status=$? | |
6bae0ccf | 18776 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18777 | rm -f conftest.er1 |
18778 | cat conftest.err >&5 | |
c0d27fcc | 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18780 | (exit $ac_status); } >/dev/null; then |
18781 | if test -s conftest.err; then | |
18782 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18784 | else |
18785 | ac_cpp_err= | |
18786 | fi | |
18787 | else | |
18788 | ac_cpp_err=yes | |
18789 | fi | |
18790 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18791 | ac_header_preproc=yes |
503d2be0 AS |
18792 | else |
18793 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18794 | sed 's/^/| /' conftest.$ac_ext >&5 |
18795 | ||
c0d27fcc | 18796 | ac_header_preproc=no |
a21616bd | 18797 | fi |
503d2be0 | 18798 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18800 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35996d22 AS |
18801 | |
18802 | # So? What about this header? | |
18803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18804 | yes:no: ) | |
18805 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18806 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18808 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18809 | ac_header_preproc=yes | |
19650fd6 | 18810 | ;; |
35996d22 | 18811 | no:yes:* ) |
c0d27fcc MR |
18812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18816 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18817 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18818 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18819 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18821 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18822 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18823 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18824 | ( |
18825 | cat <<\_ASBOX | |
35996d22 AS |
18826 | ## ------------------------------------------ ## |
18827 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18828 | ## ------------------------------------------ ## | |
19650fd6 AS |
18829 | _ASBOX |
18830 | ) | | |
18831 | sed "s/^/$as_me: WARNING: /" >&2 | |
18832 | ;; | |
c0d27fcc MR |
18833 | esac |
18834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18838 | else | |
35996d22 | 18839 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18840 | fi |
c0d27fcc | 18841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18843 | |
18844 | fi | |
503d2be0 | 18845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18846 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18848 | _ACEOF |
503d2be0 | 18849 | |
a21616bd | 18850 | fi |
c0d27fcc | 18851 | |
a21616bd KR |
18852 | done |
18853 | ||
18854 | fi | |
c0d27fcc | 18855 | |
a21616bd KR |
18856 | done |
18857 | ||
18858 | fi | |
c0d27fcc | 18859 | |
a21616bd KR |
18860 | done |
18861 | ||
18862 | fi | |
503d2be0 AS |
18863 | |
18864 | for ac_header in com_err.h | |
a21616bd | 18865 | do |
503d2be0 | 18866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18868 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18872 | fi |
18873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18875 | else |
c0d27fcc MR |
18876 | # Is the header compilable? |
18877 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18879 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18880 | /* confdefs.h. */ |
18881 | _ACEOF | |
18882 | cat confdefs.h >>conftest.$ac_ext | |
18883 | cat >>conftest.$ac_ext <<_ACEOF | |
18884 | /* end confdefs.h. */ | |
c0d27fcc MR |
18885 | $ac_includes_default |
18886 | #include <$ac_header> | |
18887 | _ACEOF | |
18888 | rm -f conftest.$ac_objext | |
18889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18890 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18891 | ac_status=$? |
35996d22 AS |
18892 | grep -v '^ *+' conftest.er1 >conftest.err |
18893 | rm -f conftest.er1 | |
18894 | cat conftest.err >&5 | |
c0d27fcc MR |
18895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18896 | (exit $ac_status); } && | |
35996d22 AS |
18897 | { ac_try='test -z "$ac_c_werror_flag" |
18898 | || test ! -s conftest.err' | |
18899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18900 | (eval $ac_try) 2>&5 | |
18901 | ac_status=$? | |
18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18903 | (exit $ac_status); }; } && | |
18904 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18906 | (eval $ac_try) 2>&5 | |
18907 | ac_status=$? | |
18908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18909 | (exit $ac_status); }; }; then | |
18910 | ac_header_compiler=yes | |
18911 | else | |
18912 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18913 | sed 's/^/| /' conftest.$ac_ext >&5 |
18914 | ||
c0d27fcc MR |
18915 | ac_header_compiler=no |
18916 | fi | |
35996d22 | 18917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18918 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18919 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18920 | ||
18921 | # Is the header present? | |
18922 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18923 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18924 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18925 | /* confdefs.h. */ |
18926 | _ACEOF | |
18927 | cat confdefs.h >>conftest.$ac_ext | |
18928 | cat >>conftest.$ac_ext <<_ACEOF | |
18929 | /* end confdefs.h. */ | |
503d2be0 AS |
18930 | #include <$ac_header> |
18931 | _ACEOF | |
c0d27fcc | 18932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18934 | ac_status=$? | |
6bae0ccf | 18935 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18936 | rm -f conftest.er1 |
18937 | cat conftest.err >&5 | |
c0d27fcc | 18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18939 | (exit $ac_status); } >/dev/null; then |
18940 | if test -s conftest.err; then | |
18941 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18942 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18943 | else |
18944 | ac_cpp_err= | |
18945 | fi | |
18946 | else | |
18947 | ac_cpp_err=yes | |
18948 | fi | |
18949 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18950 | ac_header_preproc=yes |
503d2be0 AS |
18951 | else |
18952 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18953 | sed 's/^/| /' conftest.$ac_ext >&5 |
18954 | ||
c0d27fcc | 18955 | ac_header_preproc=no |
a21616bd | 18956 | fi |
503d2be0 | 18957 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18958 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18959 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18960 | ||
18961 | # So? What about this header? | |
35996d22 AS |
18962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18963 | yes:no: ) | |
c0d27fcc MR |
18964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18968 | ac_header_preproc=yes | |
19650fd6 | 18969 | ;; |
35996d22 | 18970 | no:yes:* ) |
c0d27fcc MR |
18971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18978 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18980 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18982 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18983 | ( |
18984 | cat <<\_ASBOX | |
35996d22 AS |
18985 | ## ------------------------------------------ ## |
18986 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18987 | ## ------------------------------------------ ## | |
19650fd6 AS |
18988 | _ASBOX |
18989 | ) | | |
18990 | sed "s/^/$as_me: WARNING: /" >&2 | |
18991 | ;; | |
c0d27fcc MR |
18992 | esac |
18993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18997 | else | |
35996d22 | 18998 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18999 | fi |
c0d27fcc | 19000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 19001 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
19002 | |
19003 | fi | |
503d2be0 | 19004 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 19005 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19006 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 19007 | _ACEOF |
503d2be0 | 19008 | |
a21616bd | 19009 | fi |
c0d27fcc | 19010 | |
a21616bd KR |
19011 | done |
19012 | ||
19013 | fi | |
19014 | ||
ba4481b5 DL |
19015 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
19016 | # to return localized messages. | |
503d2be0 | 19017 | |
c0d27fcc | 19018 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
19019 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
19020 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
19021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19022 | else |
503d2be0 | 19023 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 19024 | LIBS="-lintl $LIBS" |
503d2be0 | 19025 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19026 | /* confdefs.h. */ |
19027 | _ACEOF | |
19028 | cat confdefs.h >>conftest.$ac_ext | |
19029 | cat >>conftest.$ac_ext <<_ACEOF | |
19030 | /* end confdefs.h. */ | |
503d2be0 | 19031 | |
ba4481b5 | 19032 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19033 | #ifdef __cplusplus |
19034 | extern "C" | |
19035 | #endif | |
ba4481b5 | 19036 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19037 | builtin and then its argument prototype would still apply. */ |
19038 | char dgettext (); | |
19039 | int | |
19040 | main () | |
19041 | { | |
19042 | dgettext (); | |
19043 | ; | |
19044 | return 0; | |
19045 | } | |
19046 | _ACEOF | |
19047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19049 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19050 | ac_status=$? |
35996d22 AS |
19051 | grep -v '^ *+' conftest.er1 >conftest.err |
19052 | rm -f conftest.er1 | |
19053 | cat conftest.err >&5 | |
c0d27fcc | 19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19055 | (exit $ac_status); } && |
35996d22 AS |
19056 | { ac_try='test -z "$ac_c_werror_flag" |
19057 | || test ! -s conftest.err' | |
19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19059 | (eval $ac_try) 2>&5 | |
19060 | ac_status=$? | |
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19062 | (exit $ac_status); }; } && | |
19063 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19065 | (eval $ac_try) 2>&5 |
19066 | ac_status=$? | |
c0d27fcc | 19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19068 | (exit $ac_status); }; }; then |
19069 | ac_cv_lib_intl_dgettext=yes | |
19070 | else | |
19071 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19072 | sed 's/^/| /' conftest.$ac_ext >&5 |
19073 | ||
503d2be0 AS |
19074 | ac_cv_lib_intl_dgettext=no |
19075 | fi | |
35996d22 AS |
19076 | rm -f conftest.err conftest.$ac_objext \ |
19077 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
19078 | LIBS=$ac_check_lib_save_LIBS |
19079 | fi | |
c0d27fcc | 19080 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
19081 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
19082 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 19083 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19084 | #define HAVE_LIBINTL 1 |
c0d27fcc | 19085 | _ACEOF |
ba4481b5 DL |
19086 | |
19087 | LIBS="-lintl $LIBS" | |
19088 | ||
ba4481b5 DL |
19089 | fi |
19090 | ||
c0d27fcc MR |
19091 | |
19092 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
19093 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
19094 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
19095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
19096 | else |
19097 | if test x$ac_cv_func_tzset = xyes; then | |
19098 | if test "$cross_compiling" = yes; then | |
19099 | # If we have tzset, assume the worst when cross-compiling. | |
19100 | emacs_cv_localtime_cache=yes | |
19101 | else | |
503d2be0 | 19102 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19103 | /* confdefs.h. */ |
19104 | _ACEOF | |
19105 | cat confdefs.h >>conftest.$ac_ext | |
19106 | cat >>conftest.$ac_ext <<_ACEOF | |
19107 | /* end confdefs.h. */ | |
ba4481b5 | 19108 | #include <time.h> |
ba4481b5 DL |
19109 | extern char **environ; |
19110 | unset_TZ () | |
19111 | { | |
19112 | char **from, **to; | |
19113 | for (to = from = environ; (*to = *from); from++) | |
19114 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
19115 | to++; | |
19116 | } | |
19117 | char TZ_GMT0[] = "TZ=GMT0"; | |
19118 | char TZ_PST8[] = "TZ=PST8"; | |
19119 | main() | |
19120 | { | |
19121 | time_t now = time ((time_t *) 0); | |
19122 | int hour_GMT0, hour_unset; | |
19123 | if (putenv (TZ_GMT0) != 0) | |
19124 | exit (1); | |
19125 | hour_GMT0 = localtime (&now)->tm_hour; | |
19126 | unset_TZ (); | |
19127 | hour_unset = localtime (&now)->tm_hour; | |
19128 | if (putenv (TZ_PST8) != 0) | |
19129 | exit (1); | |
19130 | if (localtime (&now)->tm_hour == hour_GMT0) | |
19131 | exit (1); | |
19132 | unset_TZ (); | |
19133 | if (localtime (&now)->tm_hour != hour_unset) | |
19134 | exit (1); | |
19135 | exit (0); | |
19136 | } | |
503d2be0 AS |
19137 | _ACEOF |
19138 | rm -f conftest$ac_exeext | |
c0d27fcc | 19139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19140 | (eval $ac_link) 2>&5 |
19141 | ac_status=$? | |
c0d27fcc | 19142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19145 | (eval $ac_try) 2>&5 |
19146 | ac_status=$? | |
c0d27fcc | 19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19148 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19149 | emacs_cv_localtime_cache=no |
19150 | else | |
503d2be0 AS |
19151 | echo "$as_me: program exited with status $ac_status" >&5 |
19152 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19153 | sed 's/^/| /' conftest.$ac_ext >&5 |
19154 | ||
c0d27fcc | 19155 | ( exit $ac_status ) |
503d2be0 | 19156 | emacs_cv_localtime_cache=yes |
ba4481b5 | 19157 | fi |
35996d22 | 19158 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19159 | fi |
ba4481b5 DL |
19160 | else |
19161 | # If we lack tzset, report that localtime does not cache TZ, | |
19162 | # since we can't invalidate the cache if we don't have tzset. | |
19163 | emacs_cv_localtime_cache=no | |
19164 | fi | |
19165 | fi | |
c0d27fcc | 19166 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 19167 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 19168 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 19169 | |
c0d27fcc | 19170 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19171 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 19172 | _ACEOF |
ba4481b5 DL |
19173 | |
19174 | fi | |
19175 | ||
19176 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
19177 | |
19178 | for ac_func in gettimeofday | |
48d4b120 | 19179 | do |
503d2be0 | 19180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 19181 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
19182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19183 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19185 | else |
503d2be0 | 19186 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19187 | /* confdefs.h. */ |
19188 | _ACEOF | |
19189 | cat confdefs.h >>conftest.$ac_ext | |
19190 | cat >>conftest.$ac_ext <<_ACEOF | |
19191 | /* end confdefs.h. */ | |
35996d22 AS |
19192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19194 | #define $ac_func innocuous_$ac_func | |
19195 | ||
48d4b120 | 19196 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19197 | which can conflict with char $ac_func (); below. |
19198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19199 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19200 | |
19650fd6 AS |
19201 | #ifdef __STDC__ |
19202 | # include <limits.h> | |
19203 | #else | |
19204 | # include <assert.h> | |
19205 | #endif | |
35996d22 AS |
19206 | |
19207 | #undef $ac_func | |
19208 | ||
48d4b120 | 19209 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19210 | #ifdef __cplusplus |
19211 | extern "C" | |
19650fd6 | 19212 | { |
503d2be0 | 19213 | #endif |
48d4b120 | 19214 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19215 | builtin and then its argument prototype would still apply. */ |
19216 | char $ac_func (); | |
48d4b120 DL |
19217 | /* The GNU C library defines this for functions which it implements |
19218 | to always fail with ENOSYS. Some functions are actually named | |
19219 | something starting with __ and the normal name is an alias. */ | |
19220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19221 | choke me | |
19222 | #else | |
19650fd6 AS |
19223 | char (*f) () = $ac_func; |
19224 | #endif | |
19225 | #ifdef __cplusplus | |
19226 | } | |
cd958eb3 MB |
19227 | #endif |
19228 | ||
19650fd6 AS |
19229 | int |
19230 | main () | |
19231 | { | |
19232 | return f != $ac_func; | |
503d2be0 AS |
19233 | ; |
19234 | return 0; | |
19235 | } | |
19236 | _ACEOF | |
19237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19239 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19240 | ac_status=$? |
35996d22 AS |
19241 | grep -v '^ *+' conftest.er1 >conftest.err |
19242 | rm -f conftest.er1 | |
19243 | cat conftest.err >&5 | |
c0d27fcc | 19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19245 | (exit $ac_status); } && |
35996d22 AS |
19246 | { ac_try='test -z "$ac_c_werror_flag" |
19247 | || test ! -s conftest.err' | |
19248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19249 | (eval $ac_try) 2>&5 | |
19250 | ac_status=$? | |
19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19252 | (exit $ac_status); }; } && | |
19253 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19255 | (eval $ac_try) 2>&5 |
19256 | ac_status=$? | |
c0d27fcc | 19257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19258 | (exit $ac_status); }; }; then |
19259 | eval "$as_ac_var=yes" | |
19260 | else | |
19261 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19262 | sed 's/^/| /' conftest.$ac_ext >&5 |
19263 | ||
503d2be0 AS |
19264 | eval "$as_ac_var=no" |
19265 | fi | |
35996d22 AS |
19266 | rm -f conftest.err conftest.$ac_objext \ |
19267 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19268 | fi |
c0d27fcc | 19269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
19270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 19272 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19274 | _ACEOF |
48d4b120 | 19275 | |
48d4b120 DL |
19276 | fi |
19277 | done | |
19278 | ||
b936fae4 | 19279 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 19280 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
19281 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
19282 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
19283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19284 | else |
503d2be0 | 19285 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19286 | /* confdefs.h. */ |
19287 | _ACEOF | |
19288 | cat confdefs.h >>conftest.$ac_ext | |
19289 | cat >>conftest.$ac_ext <<_ACEOF | |
19290 | /* end confdefs.h. */ | |
ba4481b5 | 19291 | |
a3f08d9e DL |
19292 | #ifdef TIME_WITH_SYS_TIME |
19293 | #include <sys/time.h> | |
19294 | #include <time.h> | |
19295 | #else | |
19296 | #ifdef HAVE_SYS_TIME_H | |
19297 | #include <sys/time.h> | |
19298 | #else | |
19299 | #include <time.h> | |
19300 | #endif | |
19301 | #endif | |
503d2be0 AS |
19302 | int |
19303 | main () | |
19304 | { | |
a3f08d9e | 19305 | struct timeval time; |
b936fae4 | 19306 | gettimeofday (&time, 0); |
503d2be0 AS |
19307 | ; |
19308 | return 0; | |
19309 | } | |
19310 | _ACEOF | |
19311 | rm -f conftest.$ac_objext | |
c0d27fcc | 19312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19313 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19314 | ac_status=$? |
35996d22 AS |
19315 | grep -v '^ *+' conftest.er1 >conftest.err |
19316 | rm -f conftest.er1 | |
19317 | cat conftest.err >&5 | |
c0d27fcc | 19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19319 | (exit $ac_status); } && |
35996d22 AS |
19320 | { ac_try='test -z "$ac_c_werror_flag" |
19321 | || test ! -s conftest.err' | |
19322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19323 | (eval $ac_try) 2>&5 | |
19324 | ac_status=$? | |
19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19326 | (exit $ac_status); }; } && | |
19327 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19329 | (eval $ac_try) 2>&5 |
19330 | ac_status=$? | |
c0d27fcc | 19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19332 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19333 | emacs_cv_gettimeofday_two_arguments=yes |
19334 | else | |
503d2be0 | 19335 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19336 | sed 's/^/| /' conftest.$ac_ext >&5 |
19337 | ||
503d2be0 | 19338 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 19339 | fi |
35996d22 | 19340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19341 | fi |
c0d27fcc | 19342 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 19343 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
19344 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
19345 | ||
c0d27fcc | 19346 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19347 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 19348 | _ACEOF |
ba4481b5 | 19349 | |
b936fae4 | 19350 | fi |
ba4481b5 DL |
19351 | fi |
19352 | fi | |
19353 | ||
973a76b1 DL |
19354 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
19355 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
19356 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
19357 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
19358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19359 | else | |
19360 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19361 | /* confdefs.h. */ |
19362 | _ACEOF | |
19363 | cat confdefs.h >>conftest.$ac_ext | |
19364 | cat >>conftest.$ac_ext <<_ACEOF | |
19365 | /* end confdefs.h. */ | |
973a76b1 DL |
19366 | #include <sys/types.h> |
19367 | #include <$ac_cv_struct_tm> | |
19368 | ||
19369 | ||
19370 | int | |
19371 | main () | |
19372 | { | |
19373 | static struct tm ac_aggr; | |
19374 | if (ac_aggr.tm_zone) | |
19375 | return 0; | |
19376 | ; | |
19377 | return 0; | |
19378 | } | |
19379 | _ACEOF | |
19380 | rm -f conftest.$ac_objext | |
19381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19382 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19383 | ac_status=$? |
35996d22 AS |
19384 | grep -v '^ *+' conftest.er1 >conftest.err |
19385 | rm -f conftest.er1 | |
19386 | cat conftest.err >&5 | |
973a76b1 DL |
19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19388 | (exit $ac_status); } && | |
35996d22 AS |
19389 | { ac_try='test -z "$ac_c_werror_flag" |
19390 | || test ! -s conftest.err' | |
19391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19392 | (eval $ac_try) 2>&5 | |
19393 | ac_status=$? | |
19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19395 | (exit $ac_status); }; } && | |
19396 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19398 | (eval $ac_try) 2>&5 | |
19399 | ac_status=$? | |
19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19401 | (exit $ac_status); }; }; then | |
19402 | ac_cv_member_struct_tm_tm_zone=yes | |
19403 | else | |
19404 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19405 | sed 's/^/| /' conftest.$ac_ext >&5 |
19406 | ||
973a76b1 | 19407 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19408 | /* confdefs.h. */ |
19409 | _ACEOF | |
19410 | cat confdefs.h >>conftest.$ac_ext | |
19411 | cat >>conftest.$ac_ext <<_ACEOF | |
19412 | /* end confdefs.h. */ | |
973a76b1 DL |
19413 | #include <sys/types.h> |
19414 | #include <$ac_cv_struct_tm> | |
19415 | ||
19416 | ||
19417 | int | |
19418 | main () | |
19419 | { | |
19420 | static struct tm ac_aggr; | |
19421 | if (sizeof ac_aggr.tm_zone) | |
19422 | return 0; | |
19423 | ; | |
19424 | return 0; | |
19425 | } | |
19426 | _ACEOF | |
19427 | rm -f conftest.$ac_objext | |
19428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19429 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19430 | ac_status=$? |
35996d22 AS |
19431 | grep -v '^ *+' conftest.er1 >conftest.err |
19432 | rm -f conftest.er1 | |
19433 | cat conftest.err >&5 | |
973a76b1 DL |
19434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19435 | (exit $ac_status); } && | |
35996d22 AS |
19436 | { ac_try='test -z "$ac_c_werror_flag" |
19437 | || test ! -s conftest.err' | |
19438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19439 | (eval $ac_try) 2>&5 | |
19440 | ac_status=$? | |
19441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19442 | (exit $ac_status); }; } && | |
19443 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19445 | (eval $ac_try) 2>&5 | |
19446 | ac_status=$? | |
19447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19448 | (exit $ac_status); }; }; then | |
19449 | ac_cv_member_struct_tm_tm_zone=yes | |
19450 | else | |
19451 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19452 | sed 's/^/| /' conftest.$ac_ext >&5 |
19453 | ||
973a76b1 DL |
19454 | ac_cv_member_struct_tm_tm_zone=no |
19455 | fi | |
35996d22 | 19456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 | 19457 | fi |
35996d22 | 19458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
19459 | fi |
19460 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
19461 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
19462 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
19463 | ||
19464 | cat >>confdefs.h <<_ACEOF | |
19465 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
19466 | _ACEOF | |
19467 | ||
19468 | ||
19469 | fi | |
19470 | ||
19471 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
19472 | ||
19473 | cat >>confdefs.h <<\_ACEOF | |
19474 | #define HAVE_TM_ZONE 1 | |
19475 | _ACEOF | |
19476 | ||
19477 | else | |
19478 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
19479 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
19480 | if test "${ac_cv_var_tzname+set}" = set; then | |
19481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19482 | else | |
19483 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19484 | /* confdefs.h. */ |
19485 | _ACEOF | |
19486 | cat confdefs.h >>conftest.$ac_ext | |
19487 | cat >>conftest.$ac_ext <<_ACEOF | |
19488 | /* end confdefs.h. */ | |
973a76b1 DL |
19489 | #include <time.h> |
19490 | #ifndef tzname /* For SGI. */ | |
19491 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
19492 | #endif | |
19493 | ||
19494 | int | |
19495 | main () | |
19496 | { | |
19497 | atoi(*tzname); | |
19498 | ; | |
19499 | return 0; | |
19500 | } | |
19501 | _ACEOF | |
19502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 19504 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 19505 | ac_status=$? |
35996d22 AS |
19506 | grep -v '^ *+' conftest.er1 >conftest.err |
19507 | rm -f conftest.er1 | |
19508 | cat conftest.err >&5 | |
973a76b1 DL |
19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19510 | (exit $ac_status); } && | |
35996d22 AS |
19511 | { ac_try='test -z "$ac_c_werror_flag" |
19512 | || test ! -s conftest.err' | |
19513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19514 | (eval $ac_try) 2>&5 | |
19515 | ac_status=$? | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); }; } && | |
19518 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
19519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19520 | (eval $ac_try) 2>&5 | |
19521 | ac_status=$? | |
19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19523 | (exit $ac_status); }; }; then | |
19524 | ac_cv_var_tzname=yes | |
19525 | else | |
19526 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19527 | sed 's/^/| /' conftest.$ac_ext >&5 |
19528 | ||
973a76b1 DL |
19529 | ac_cv_var_tzname=no |
19530 | fi | |
35996d22 AS |
19531 | rm -f conftest.err conftest.$ac_objext \ |
19532 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
19533 | fi |
19534 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
19535 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
19536 | if test $ac_cv_var_tzname = yes; then | |
19537 | ||
19538 | cat >>confdefs.h <<\_ACEOF | |
19539 | #define HAVE_TZNAME 1 | |
19540 | _ACEOF | |
19541 | ||
19542 | fi | |
19543 | fi | |
19544 | ||
19545 | ||
48d4b120 | 19546 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 19547 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
19548 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
19549 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
19550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19551 | else |
503d2be0 | 19552 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19553 | /* confdefs.h. */ |
19554 | _ACEOF | |
19555 | cat confdefs.h >>conftest.$ac_ext | |
19556 | cat >>conftest.$ac_ext <<_ACEOF | |
19557 | /* end confdefs.h. */ | |
48d4b120 | 19558 | #include <sys/time.h> |
503d2be0 AS |
19559 | int |
19560 | main () | |
19561 | { | |
48d4b120 | 19562 | struct timezone tz; |
503d2be0 AS |
19563 | ; |
19564 | return 0; | |
19565 | } | |
19566 | _ACEOF | |
19567 | rm -f conftest.$ac_objext | |
c0d27fcc | 19568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19569 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19570 | ac_status=$? |
35996d22 AS |
19571 | grep -v '^ *+' conftest.er1 >conftest.err |
19572 | rm -f conftest.er1 | |
19573 | cat conftest.err >&5 | |
c0d27fcc | 19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19575 | (exit $ac_status); } && |
35996d22 AS |
19576 | { ac_try='test -z "$ac_c_werror_flag" |
19577 | || test ! -s conftest.err' | |
19578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19579 | (eval $ac_try) 2>&5 | |
19580 | ac_status=$? | |
19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19582 | (exit $ac_status); }; } && | |
19583 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19585 | (eval $ac_try) 2>&5 |
19586 | ac_status=$? | |
c0d27fcc | 19587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19588 | (exit $ac_status); }; }; then |
48d4b120 DL |
19589 | if test "$cross_compiling" = yes; then |
19590 | emacs_cv_struct_timezone=yes | |
19591 | else | |
503d2be0 | 19592 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19593 | /* confdefs.h. */ |
19594 | _ACEOF | |
19595 | cat confdefs.h >>conftest.$ac_ext | |
19596 | cat >>conftest.$ac_ext <<_ACEOF | |
19597 | /* end confdefs.h. */ | |
48d4b120 DL |
19598 | |
19599 | #ifdef TIME_WITH_SYS_TIME | |
19600 | #include <sys/time.h> | |
19601 | #include <time.h> | |
19602 | #else | |
19603 | #ifdef HAVE_SYS_TIME_H | |
19604 | #include <sys/time.h> | |
19605 | #else | |
19606 | #include <time.h> | |
19607 | #endif | |
19608 | #endif | |
19609 | main () { | |
19610 | struct timeval time; | |
19611 | struct timezone dummy; | |
19612 | exit (gettimeofday (&time, &dummy)); | |
19613 | } | |
503d2be0 AS |
19614 | _ACEOF |
19615 | rm -f conftest$ac_exeext | |
c0d27fcc | 19616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19617 | (eval $ac_link) 2>&5 |
19618 | ac_status=$? | |
c0d27fcc | 19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19622 | (eval $ac_try) 2>&5 |
19623 | ac_status=$? | |
c0d27fcc | 19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19625 | (exit $ac_status); }; }; then |
48d4b120 DL |
19626 | emacs_cv_struct_timezone=yes |
19627 | else | |
503d2be0 AS |
19628 | echo "$as_me: program exited with status $ac_status" >&5 |
19629 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19630 | sed 's/^/| /' conftest.$ac_ext >&5 |
19631 | ||
c0d27fcc | 19632 | ( exit $ac_status ) |
503d2be0 | 19633 | emacs_cv_struct_timezone=no |
48d4b120 | 19634 | fi |
35996d22 | 19635 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19636 | fi |
48d4b120 | 19637 | else |
503d2be0 | 19638 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19639 | sed 's/^/| /' conftest.$ac_ext >&5 |
19640 | ||
503d2be0 | 19641 | emacs_cv_struct_timezone=no |
48d4b120 | 19642 | fi |
35996d22 | 19643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19644 | fi |
c0d27fcc | 19645 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 19646 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
19647 | fi |
19648 | ||
ba4481b5 | 19649 | ok_so_far=yes |
c0d27fcc | 19650 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
19651 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
19652 | if test "${ac_cv_func_socket+set}" = set; then | |
19653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19654 | else |
503d2be0 | 19655 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19656 | /* confdefs.h. */ |
19657 | _ACEOF | |
19658 | cat confdefs.h >>conftest.$ac_ext | |
19659 | cat >>conftest.$ac_ext <<_ACEOF | |
19660 | /* end confdefs.h. */ | |
35996d22 AS |
19661 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
19662 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19663 | #define socket innocuous_socket | |
19664 | ||
ba4481b5 | 19665 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19666 | which can conflict with char socket (); below. |
19667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19668 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19669 | |
19650fd6 AS |
19670 | #ifdef __STDC__ |
19671 | # include <limits.h> | |
19672 | #else | |
19673 | # include <assert.h> | |
19674 | #endif | |
35996d22 AS |
19675 | |
19676 | #undef socket | |
19677 | ||
ba4481b5 | 19678 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19679 | #ifdef __cplusplus |
19680 | extern "C" | |
19650fd6 | 19681 | { |
503d2be0 | 19682 | #endif |
ba4481b5 | 19683 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19684 | builtin and then its argument prototype would still apply. */ |
19685 | char socket (); | |
ba4481b5 DL |
19686 | /* The GNU C library defines this for functions which it implements |
19687 | to always fail with ENOSYS. Some functions are actually named | |
19688 | something starting with __ and the normal name is an alias. */ | |
19689 | #if defined (__stub_socket) || defined (__stub___socket) | |
19690 | choke me | |
19691 | #else | |
19650fd6 AS |
19692 | char (*f) () = socket; |
19693 | #endif | |
19694 | #ifdef __cplusplus | |
19695 | } | |
cd958eb3 MB |
19696 | #endif |
19697 | ||
19650fd6 AS |
19698 | int |
19699 | main () | |
19700 | { | |
19701 | return f != socket; | |
503d2be0 AS |
19702 | ; |
19703 | return 0; | |
19704 | } | |
19705 | _ACEOF | |
19706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19708 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19709 | ac_status=$? |
35996d22 AS |
19710 | grep -v '^ *+' conftest.er1 >conftest.err |
19711 | rm -f conftest.er1 | |
19712 | cat conftest.err >&5 | |
c0d27fcc | 19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19714 | (exit $ac_status); } && |
35996d22 AS |
19715 | { ac_try='test -z "$ac_c_werror_flag" |
19716 | || test ! -s conftest.err' | |
19717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19718 | (eval $ac_try) 2>&5 | |
19719 | ac_status=$? | |
19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19721 | (exit $ac_status); }; } && | |
19722 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19724 | (eval $ac_try) 2>&5 |
19725 | ac_status=$? | |
c0d27fcc | 19726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19727 | (exit $ac_status); }; }; then |
19728 | ac_cv_func_socket=yes | |
19729 | else | |
19730 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19731 | sed 's/^/| /' conftest.$ac_ext >&5 |
19732 | ||
503d2be0 AS |
19733 | ac_cv_func_socket=no |
19734 | fi | |
35996d22 AS |
19735 | rm -f conftest.err conftest.$ac_objext \ |
19736 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19737 | fi |
c0d27fcc | 19738 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
19739 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
19740 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
19741 | : |
19742 | else | |
503d2be0 | 19743 | ok_so_far=no |
ba4481b5 DL |
19744 | fi |
19745 | ||
19746 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19747 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
19748 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
19749 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
19750 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19752 | fi |
19753 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
19754 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 19755 | else |
c0d27fcc MR |
19756 | # Is the header compilable? |
19757 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
19758 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
19759 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19760 | /* confdefs.h. */ |
19761 | _ACEOF | |
19762 | cat confdefs.h >>conftest.$ac_ext | |
19763 | cat >>conftest.$ac_ext <<_ACEOF | |
19764 | /* end confdefs.h. */ | |
c0d27fcc MR |
19765 | $ac_includes_default |
19766 | #include <netinet/in.h> | |
19767 | _ACEOF | |
19768 | rm -f conftest.$ac_objext | |
19769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19770 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19771 | ac_status=$? |
35996d22 AS |
19772 | grep -v '^ *+' conftest.er1 >conftest.err |
19773 | rm -f conftest.er1 | |
19774 | cat conftest.err >&5 | |
c0d27fcc MR |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19776 | (exit $ac_status); } && | |
35996d22 AS |
19777 | { ac_try='test -z "$ac_c_werror_flag" |
19778 | || test ! -s conftest.err' | |
19779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19780 | (eval $ac_try) 2>&5 | |
19781 | ac_status=$? | |
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19783 | (exit $ac_status); }; } && | |
19784 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19786 | (eval $ac_try) 2>&5 | |
19787 | ac_status=$? | |
19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19789 | (exit $ac_status); }; }; then | |
19790 | ac_header_compiler=yes | |
19791 | else | |
19792 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19793 | sed 's/^/| /' conftest.$ac_ext >&5 |
19794 | ||
c0d27fcc MR |
19795 | ac_header_compiler=no |
19796 | fi | |
35996d22 | 19797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19799 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19800 | ||
19801 | # Is the header present? | |
19802 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
19803 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
19804 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19805 | /* confdefs.h. */ |
19806 | _ACEOF | |
19807 | cat confdefs.h >>conftest.$ac_ext | |
19808 | cat >>conftest.$ac_ext <<_ACEOF | |
19809 | /* end confdefs.h. */ | |
ba4481b5 | 19810 | #include <netinet/in.h> |
503d2be0 | 19811 | _ACEOF |
c0d27fcc | 19812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19814 | ac_status=$? | |
6bae0ccf | 19815 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19816 | rm -f conftest.er1 |
19817 | cat conftest.err >&5 | |
c0d27fcc | 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19819 | (exit $ac_status); } >/dev/null; then |
19820 | if test -s conftest.err; then | |
19821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19823 | else |
19824 | ac_cpp_err= | |
19825 | fi | |
19826 | else | |
19827 | ac_cpp_err=yes | |
19828 | fi | |
19829 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19830 | ac_header_preproc=yes |
ba4481b5 | 19831 | else |
503d2be0 | 19832 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19833 | sed 's/^/| /' conftest.$ac_ext >&5 |
19834 | ||
c0d27fcc | 19835 | ac_header_preproc=no |
ba4481b5 | 19836 | fi |
503d2be0 | 19837 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19839 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19840 | ||
19841 | # So? What about this header? | |
35996d22 AS |
19842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19843 | yes:no: ) | |
c0d27fcc MR |
19844 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19845 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19846 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
19847 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
19848 | ac_header_preproc=yes | |
19650fd6 | 19849 | ;; |
35996d22 | 19850 | no:yes:* ) |
c0d27fcc MR |
19851 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
19852 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19853 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
19854 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
19855 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
19856 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
19857 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19858 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19859 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19860 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19861 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
19862 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19863 | ( |
19864 | cat <<\_ASBOX | |
35996d22 AS |
19865 | ## ------------------------------------------ ## |
19866 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19867 | ## ------------------------------------------ ## | |
19650fd6 AS |
19868 | _ASBOX |
19869 | ) | | |
19870 | sed "s/^/$as_me: WARNING: /" >&2 | |
19871 | ;; | |
c0d27fcc MR |
19872 | esac |
19873 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
19874 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
19875 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19877 | else | |
19878 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 19879 | fi |
c0d27fcc | 19880 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 19881 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
19882 | |
19883 | fi | |
503d2be0 | 19884 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
19885 | : |
19886 | else | |
503d2be0 | 19887 | ok_so_far=no |
ba4481b5 DL |
19888 | fi |
19889 | ||
c0d27fcc | 19890 | |
ba4481b5 DL |
19891 | fi |
19892 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19893 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
19894 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
19895 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
19896 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
19897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19898 | fi |
19899 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
19900 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 19901 | else |
c0d27fcc MR |
19902 | # Is the header compilable? |
19903 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
19904 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
19905 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19906 | /* confdefs.h. */ |
19907 | _ACEOF | |
19908 | cat confdefs.h >>conftest.$ac_ext | |
19909 | cat >>conftest.$ac_ext <<_ACEOF | |
19910 | /* end confdefs.h. */ | |
c0d27fcc MR |
19911 | $ac_includes_default |
19912 | #include <arpa/inet.h> | |
19913 | _ACEOF | |
19914 | rm -f conftest.$ac_objext | |
19915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19916 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19917 | ac_status=$? |
35996d22 AS |
19918 | grep -v '^ *+' conftest.er1 >conftest.err |
19919 | rm -f conftest.er1 | |
19920 | cat conftest.err >&5 | |
c0d27fcc MR |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19922 | (exit $ac_status); } && | |
35996d22 AS |
19923 | { ac_try='test -z "$ac_c_werror_flag" |
19924 | || test ! -s conftest.err' | |
19925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19926 | (eval $ac_try) 2>&5 | |
19927 | ac_status=$? | |
19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19929 | (exit $ac_status); }; } && | |
19930 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19932 | (eval $ac_try) 2>&5 | |
19933 | ac_status=$? | |
19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19935 | (exit $ac_status); }; }; then | |
19936 | ac_header_compiler=yes | |
19937 | else | |
19938 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19939 | sed 's/^/| /' conftest.$ac_ext >&5 |
19940 | ||
c0d27fcc MR |
19941 | ac_header_compiler=no |
19942 | fi | |
35996d22 | 19943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19944 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19945 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19946 | ||
19947 | # Is the header present? | |
19948 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
19949 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
19950 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19951 | /* confdefs.h. */ |
19952 | _ACEOF | |
19953 | cat confdefs.h >>conftest.$ac_ext | |
19954 | cat >>conftest.$ac_ext <<_ACEOF | |
19955 | /* end confdefs.h. */ | |
ba4481b5 | 19956 | #include <arpa/inet.h> |
503d2be0 | 19957 | _ACEOF |
c0d27fcc | 19958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19960 | ac_status=$? | |
6bae0ccf | 19961 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19962 | rm -f conftest.er1 |
19963 | cat conftest.err >&5 | |
c0d27fcc | 19964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19965 | (exit $ac_status); } >/dev/null; then |
19966 | if test -s conftest.err; then | |
19967 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19969 | else |
19970 | ac_cpp_err= | |
19971 | fi | |
19972 | else | |
19973 | ac_cpp_err=yes | |
19974 | fi | |
19975 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19976 | ac_header_preproc=yes |
ba4481b5 | 19977 | else |
503d2be0 | 19978 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19979 | sed 's/^/| /' conftest.$ac_ext >&5 |
19980 | ||
c0d27fcc | 19981 | ac_header_preproc=no |
ba4481b5 | 19982 | fi |
503d2be0 | 19983 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19985 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19986 | ||
19987 | # So? What about this header? | |
35996d22 AS |
19988 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19989 | yes:no: ) | |
c0d27fcc MR |
19990 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19991 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19992 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
19993 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
19994 | ac_header_preproc=yes | |
19650fd6 | 19995 | ;; |
35996d22 | 19996 | no:yes:* ) |
c0d27fcc MR |
19997 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
19998 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19999 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
20000 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
20001 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
20002 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
20003 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20004 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20005 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20006 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20007 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
20008 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20009 | ( |
20010 | cat <<\_ASBOX | |
35996d22 AS |
20011 | ## ------------------------------------------ ## |
20012 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20013 | ## ------------------------------------------ ## | |
19650fd6 AS |
20014 | _ASBOX |
20015 | ) | | |
20016 | sed "s/^/$as_me: WARNING: /" >&2 | |
20017 | ;; | |
c0d27fcc MR |
20018 | esac |
20019 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
20020 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
20021 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
20022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20023 | else | |
20024 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 20025 | fi |
c0d27fcc | 20026 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 20027 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
20028 | |
20029 | fi | |
503d2be0 | 20030 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
20031 | : |
20032 | else | |
503d2be0 | 20033 | ok_so_far=no |
ba4481b5 DL |
20034 | fi |
20035 | ||
c0d27fcc | 20036 | |
ba4481b5 DL |
20037 | fi |
20038 | if test $ok_so_far = yes; then | |
b936fae4 | 20039 | |
c0d27fcc | 20040 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20041 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 20042 | _ACEOF |
ba4481b5 DL |
20043 | |
20044 | fi | |
20045 | ||
2d2b6695 | 20046 | |
7862d3a8 | 20047 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
20048 | do |
20049 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20055 | fi | |
20056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20058 | else | |
20059 | # Is the header compilable? | |
20060 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20062 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20063 | /* confdefs.h. */ |
20064 | _ACEOF | |
20065 | cat confdefs.h >>conftest.$ac_ext | |
20066 | cat >>conftest.$ac_ext <<_ACEOF | |
20067 | /* end confdefs.h. */ | |
20068 | $ac_includes_default | |
20069 | #include <$ac_header> | |
20070 | _ACEOF | |
20071 | rm -f conftest.$ac_objext | |
20072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20073 | (eval $ac_compile) 2>conftest.er1 |
2d2b6695 | 20074 | ac_status=$? |
35996d22 AS |
20075 | grep -v '^ *+' conftest.er1 >conftest.err |
20076 | rm -f conftest.er1 | |
20077 | cat conftest.err >&5 | |
2d2b6695 KS |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20079 | (exit $ac_status); } && | |
35996d22 AS |
20080 | { ac_try='test -z "$ac_c_werror_flag" |
20081 | || test ! -s conftest.err' | |
20082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20083 | (eval $ac_try) 2>&5 | |
20084 | ac_status=$? | |
20085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20086 | (exit $ac_status); }; } && | |
20087 | { ac_try='test -s conftest.$ac_objext' | |
2d2b6695 KS |
20088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20089 | (eval $ac_try) 2>&5 | |
20090 | ac_status=$? | |
20091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20092 | (exit $ac_status); }; }; then | |
20093 | ac_header_compiler=yes | |
20094 | else | |
20095 | echo "$as_me: failed program was:" >&5 | |
20096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20097 | ||
20098 | ac_header_compiler=no | |
20099 | fi | |
35996d22 | 20100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2d2b6695 KS |
20101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20102 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20103 | ||
20104 | # Is the header present? | |
20105 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20106 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20107 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20108 | /* confdefs.h. */ |
20109 | _ACEOF | |
20110 | cat confdefs.h >>conftest.$ac_ext | |
20111 | cat >>conftest.$ac_ext <<_ACEOF | |
20112 | /* end confdefs.h. */ | |
20113 | #include <$ac_header> | |
20114 | _ACEOF | |
20115 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20116 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20117 | ac_status=$? | |
20118 | grep -v '^ *+' conftest.er1 >conftest.err | |
20119 | rm -f conftest.er1 | |
20120 | cat conftest.err >&5 | |
20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20122 | (exit $ac_status); } >/dev/null; then | |
20123 | if test -s conftest.err; then | |
20124 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20125 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2d2b6695 KS |
20126 | else |
20127 | ac_cpp_err= | |
20128 | fi | |
20129 | else | |
20130 | ac_cpp_err=yes | |
20131 | fi | |
20132 | if test -z "$ac_cpp_err"; then | |
20133 | ac_header_preproc=yes | |
20134 | else | |
20135 | echo "$as_me: failed program was:" >&5 | |
20136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20137 | ||
20138 | ac_header_preproc=no | |
20139 | fi | |
20140 | rm -f conftest.err conftest.$ac_ext | |
20141 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20142 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20143 | ||
20144 | # So? What about this header? | |
35996d22 AS |
20145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20146 | yes:no: ) | |
2d2b6695 KS |
20147 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20148 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20150 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20151 | ac_header_preproc=yes | |
2d2b6695 | 20152 | ;; |
35996d22 | 20153 | no:yes:* ) |
2d2b6695 KS |
20154 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20155 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20156 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20157 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20158 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20159 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20160 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20161 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
20162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20163 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
35996d22 AS |
20164 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20165 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2d2b6695 KS |
20166 | ( |
20167 | cat <<\_ASBOX | |
35996d22 AS |
20168 | ## ------------------------------------------ ## |
20169 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20170 | ## ------------------------------------------ ## | |
2d2b6695 KS |
20171 | _ASBOX |
20172 | ) | | |
20173 | sed "s/^/$as_me: WARNING: /" >&2 | |
20174 | ;; | |
20175 | esac | |
20176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20180 | else | |
35996d22 | 20181 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 KS |
20182 | fi |
20183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20185 | ||
20186 | fi | |
20187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20188 | cat >>confdefs.h <<_ACEOF | |
20189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20190 | _ACEOF | |
20191 | ||
20192 | fi | |
20193 | ||
20194 | done | |
20195 | ||
20196 | ||
ba4481b5 | 20197 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 20198 | |
c0d27fcc | 20199 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20200 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 20201 | _ACEOF |
ba4481b5 DL |
20202 | |
20203 | fi | |
20204 | ||
c0d27fcc | 20205 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 20206 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 20207 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 20208 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 20209 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 20210 | |
c0d27fcc | 20211 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 20212 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 20213 | _ACEOF |
3d9fec71 DL |
20214 | |
20215 | else | |
c0d27fcc | 20216 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 20217 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
20218 | fi |
20219 | ||
c0d27fcc | 20220 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
20221 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
20222 | if test "${ac_cv_type_pid_t+set}" = set; then | |
20223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 20224 | else |
503d2be0 | 20225 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20226 | /* confdefs.h. */ |
20227 | _ACEOF | |
20228 | cat confdefs.h >>conftest.$ac_ext | |
20229 | cat >>conftest.$ac_ext <<_ACEOF | |
20230 | /* end confdefs.h. */ | |
503d2be0 AS |
20231 | $ac_includes_default |
20232 | int | |
20233 | main () | |
20234 | { | |
20235 | if ((pid_t *) 0) | |
20236 | return 0; | |
20237 | if (sizeof (pid_t)) | |
20238 | return 0; | |
20239 | ; | |
20240 | return 0; | |
20241 | } | |
20242 | _ACEOF | |
20243 | rm -f conftest.$ac_objext | |
c0d27fcc | 20244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20245 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20246 | ac_status=$? |
35996d22 AS |
20247 | grep -v '^ *+' conftest.er1 >conftest.err |
20248 | rm -f conftest.er1 | |
20249 | cat conftest.err >&5 | |
c0d27fcc | 20250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20251 | (exit $ac_status); } && |
35996d22 AS |
20252 | { ac_try='test -z "$ac_c_werror_flag" |
20253 | || test ! -s conftest.err' | |
20254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20255 | (eval $ac_try) 2>&5 | |
20256 | ac_status=$? | |
20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20258 | (exit $ac_status); }; } && | |
20259 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20261 | (eval $ac_try) 2>&5 |
20262 | ac_status=$? | |
c0d27fcc | 20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20264 | (exit $ac_status); }; }; then |
647847ea DL |
20265 | ac_cv_type_pid_t=yes |
20266 | else | |
503d2be0 | 20267 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20268 | sed 's/^/| /' conftest.$ac_ext >&5 |
20269 | ||
503d2be0 | 20270 | ac_cv_type_pid_t=no |
647847ea | 20271 | fi |
35996d22 | 20272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
647847ea | 20273 | fi |
c0d27fcc | 20274 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
20275 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
20276 | if test $ac_cv_type_pid_t = yes; then | |
20277 | : | |
20278 | else | |
20279 | ||
c0d27fcc | 20280 | cat >>confdefs.h <<_ACEOF |
647847ea | 20281 | #define pid_t int |
c0d27fcc | 20282 | _ACEOF |
647847ea DL |
20283 | |
20284 | fi | |
20285 | ||
c0d27fcc MR |
20286 | |
20287 | ||
503d2be0 AS |
20288 | for ac_header in unistd.h vfork.h |
20289 | do | |
20290 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
20291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
20293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
20296 | fi |
20297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 20299 | else |
c0d27fcc MR |
20300 | # Is the header compilable? |
20301 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20302 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20303 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20304 | /* confdefs.h. */ |
20305 | _ACEOF | |
20306 | cat confdefs.h >>conftest.$ac_ext | |
20307 | cat >>conftest.$ac_ext <<_ACEOF | |
20308 | /* end confdefs.h. */ | |
c0d27fcc MR |
20309 | $ac_includes_default |
20310 | #include <$ac_header> | |
20311 | _ACEOF | |
20312 | rm -f conftest.$ac_objext | |
20313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20314 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 20315 | ac_status=$? |
35996d22 AS |
20316 | grep -v '^ *+' conftest.er1 >conftest.err |
20317 | rm -f conftest.er1 | |
20318 | cat conftest.err >&5 | |
c0d27fcc MR |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20320 | (exit $ac_status); } && | |
35996d22 AS |
20321 | { ac_try='test -z "$ac_c_werror_flag" |
20322 | || test ! -s conftest.err' | |
20323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20324 | (eval $ac_try) 2>&5 | |
20325 | ac_status=$? | |
20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20327 | (exit $ac_status); }; } && | |
20328 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
20329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20330 | (eval $ac_try) 2>&5 | |
20331 | ac_status=$? | |
20332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20333 | (exit $ac_status); }; }; then | |
20334 | ac_header_compiler=yes | |
20335 | else | |
20336 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20337 | sed 's/^/| /' conftest.$ac_ext >&5 |
20338 | ||
c0d27fcc MR |
20339 | ac_header_compiler=no |
20340 | fi | |
35996d22 | 20341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
20342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20343 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20344 | ||
20345 | # Is the header present? | |
20346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20348 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20349 | /* confdefs.h. */ |
20350 | _ACEOF | |
20351 | cat confdefs.h >>conftest.$ac_ext | |
20352 | cat >>conftest.$ac_ext <<_ACEOF | |
20353 | /* end confdefs.h. */ | |
503d2be0 AS |
20354 | #include <$ac_header> |
20355 | _ACEOF | |
c0d27fcc | 20356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20358 | ac_status=$? | |
6bae0ccf | 20359 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20360 | rm -f conftest.er1 |
20361 | cat conftest.err >&5 | |
c0d27fcc | 20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20363 | (exit $ac_status); } >/dev/null; then |
20364 | if test -s conftest.err; then | |
20365 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20367 | else |
20368 | ac_cpp_err= | |
20369 | fi | |
647847ea | 20370 | else |
503d2be0 AS |
20371 | ac_cpp_err=yes |
20372 | fi | |
20373 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20374 | ac_header_preproc=yes |
647847ea | 20375 | else |
503d2be0 | 20376 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20377 | sed 's/^/| /' conftest.$ac_ext >&5 |
20378 | ||
c0d27fcc | 20379 | ac_header_preproc=no |
647847ea | 20380 | fi |
503d2be0 | 20381 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20383 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20384 | ||
20385 | # So? What about this header? | |
35996d22 AS |
20386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20387 | yes:no: ) | |
c0d27fcc MR |
20388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20392 | ac_header_preproc=yes | |
19650fd6 | 20393 | ;; |
35996d22 | 20394 | no:yes:* ) |
c0d27fcc MR |
20395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20407 | ( |
20408 | cat <<\_ASBOX | |
35996d22 AS |
20409 | ## ------------------------------------------ ## |
20410 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20411 | ## ------------------------------------------ ## | |
19650fd6 AS |
20412 | _ASBOX |
20413 | ) | | |
20414 | sed "s/^/$as_me: WARNING: /" >&2 | |
20415 | ;; | |
c0d27fcc MR |
20416 | esac |
20417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20421 | else | |
35996d22 | 20422 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 20423 | fi |
c0d27fcc | 20424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 20425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
20426 | |
20427 | fi | |
503d2be0 | 20428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20429 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20431 | _ACEOF |
647847ea | 20432 | |
73b77ee5 | 20433 | fi |
c0d27fcc | 20434 | |
503d2be0 | 20435 | done |
73b77ee5 | 20436 | |
c0d27fcc MR |
20437 | |
20438 | ||
503d2be0 AS |
20439 | for ac_func in fork vfork |
20440 | do | |
20441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 20442 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
20443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
20444 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20446 | else |
503d2be0 | 20447 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20448 | /* confdefs.h. */ |
20449 | _ACEOF | |
20450 | cat confdefs.h >>conftest.$ac_ext | |
20451 | cat >>conftest.$ac_ext <<_ACEOF | |
20452 | /* end confdefs.h. */ | |
35996d22 AS |
20453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20455 | #define $ac_func innocuous_$ac_func | |
20456 | ||
fa0b693c | 20457 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20458 | which can conflict with char $ac_func (); below. |
20459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20460 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 20461 | |
19650fd6 AS |
20462 | #ifdef __STDC__ |
20463 | # include <limits.h> | |
20464 | #else | |
20465 | # include <assert.h> | |
20466 | #endif | |
35996d22 AS |
20467 | |
20468 | #undef $ac_func | |
20469 | ||
fa0b693c | 20470 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
20471 | #ifdef __cplusplus |
20472 | extern "C" | |
19650fd6 | 20473 | { |
503d2be0 | 20474 | #endif |
fa0b693c | 20475 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
20476 | builtin and then its argument prototype would still apply. */ |
20477 | char $ac_func (); | |
fa0b693c GM |
20478 | /* The GNU C library defines this for functions which it implements |
20479 | to always fail with ENOSYS. Some functions are actually named | |
20480 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 20481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
20482 | choke me |
20483 | #else | |
19650fd6 AS |
20484 | char (*f) () = $ac_func; |
20485 | #endif | |
20486 | #ifdef __cplusplus | |
20487 | } | |
fa0b693c GM |
20488 | #endif |
20489 | ||
19650fd6 AS |
20490 | int |
20491 | main () | |
20492 | { | |
20493 | return f != $ac_func; | |
503d2be0 AS |
20494 | ; |
20495 | return 0; | |
20496 | } | |
20497 | _ACEOF | |
20498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 20499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 20500 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 20501 | ac_status=$? |
35996d22 AS |
20502 | grep -v '^ *+' conftest.er1 >conftest.err |
20503 | rm -f conftest.er1 | |
20504 | cat conftest.err >&5 | |
c0d27fcc | 20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20506 | (exit $ac_status); } && |
35996d22 AS |
20507 | { ac_try='test -z "$ac_c_werror_flag" |
20508 | || test ! -s conftest.err' | |
20509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20510 | (eval $ac_try) 2>&5 | |
20511 | ac_status=$? | |
20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20513 | (exit $ac_status); }; } && | |
20514 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 20515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20516 | (eval $ac_try) 2>&5 |
20517 | ac_status=$? | |
c0d27fcc | 20518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20519 | (exit $ac_status); }; }; then |
20520 | eval "$as_ac_var=yes" | |
20521 | else | |
20522 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20523 | sed 's/^/| /' conftest.$ac_ext >&5 |
20524 | ||
503d2be0 AS |
20525 | eval "$as_ac_var=no" |
20526 | fi | |
35996d22 AS |
20527 | rm -f conftest.err conftest.$ac_objext \ |
20528 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 20529 | fi |
c0d27fcc | 20530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
20531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
20532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 20533 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 20535 | _ACEOF |
503d2be0 | 20536 | |
fa0b693c | 20537 | fi |
503d2be0 | 20538 | done |
fa0b693c | 20539 | |
503d2be0 | 20540 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 20541 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
20542 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
20543 | if test "${ac_cv_func_fork_works+set}" = set; then | |
20544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20545 | else |
503d2be0 AS |
20546 | if test "$cross_compiling" = yes; then |
20547 | ac_cv_func_fork_works=cross | |
20548 | else | |
20549 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 20550 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
20551 | #include <sys/types.h> |
20552 | #if HAVE_UNISTD_H | |
20553 | # include <unistd.h> | |
20554 | #endif | |
20555 | /* Some systems only have a dummy stub for fork() */ | |
20556 | int main () | |
20557 | { | |
35996d22 AS |
20558 | if (fork() < 0) |
20559 | exit (1); | |
20560 | exit (0); | |
503d2be0 AS |
20561 | } |
20562 | _ACEOF | |
20563 | rm -f conftest$ac_exeext | |
c0d27fcc | 20564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20565 | (eval $ac_link) 2>&5 |
20566 | ac_status=$? | |
c0d27fcc | 20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20570 | (eval $ac_try) 2>&5 |
20571 | ac_status=$? | |
c0d27fcc | 20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20573 | (exit $ac_status); }; }; then |
20574 | ac_cv_func_fork_works=yes | |
20575 | else | |
20576 | echo "$as_me: program exited with status $ac_status" >&5 | |
20577 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20578 | sed 's/^/| /' conftest.$ac_ext >&5 |
20579 | ||
c0d27fcc | 20580 | ( exit $ac_status ) |
503d2be0 AS |
20581 | ac_cv_func_fork_works=no |
20582 | fi | |
35996d22 | 20583 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
20584 | fi |
20585 | fi | |
c0d27fcc | 20586 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
20587 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
20588 | ||
6bae0ccf DL |
20589 | else |
20590 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
20591 | fi |
20592 | if test "x$ac_cv_func_fork_works" = xcross; then | |
20593 | case $host in | |
20594 | *-*-amigaos* | *-*-msdosdjgpp*) | |
20595 | # Override, as these systems have only a dummy fork() stub | |
20596 | ac_cv_func_fork_works=no | |
20597 | ;; | |
20598 | *) | |
20599 | ac_cv_func_fork_works=yes | |
20600 | ;; | |
20601 | esac | |
c0d27fcc MR |
20602 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
20603 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 20604 | fi |
73b77ee5 | 20605 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 20606 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 20607 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
20608 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
20609 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
20610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20611 | else | |
20612 | if test "$cross_compiling" = yes; then | |
20613 | ac_cv_func_vfork_works=cross | |
fa0b693c | 20614 | else |
503d2be0 | 20615 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20616 | /* confdefs.h. */ |
20617 | _ACEOF | |
20618 | cat confdefs.h >>conftest.$ac_ext | |
20619 | cat >>conftest.$ac_ext <<_ACEOF | |
20620 | /* end confdefs.h. */ | |
73b77ee5 GM |
20621 | /* Thanks to Paul Eggert for this test. */ |
20622 | #include <stdio.h> | |
19650fd6 | 20623 | #include <stdlib.h> |
fa0b693c | 20624 | #include <sys/types.h> |
73b77ee5 | 20625 | #include <sys/stat.h> |
19650fd6 | 20626 | #include <sys/wait.h> |
503d2be0 AS |
20627 | #if HAVE_UNISTD_H |
20628 | # include <unistd.h> | |
73b77ee5 | 20629 | #endif |
503d2be0 AS |
20630 | #if HAVE_VFORK_H |
20631 | # include <vfork.h> | |
73b77ee5 GM |
20632 | #endif |
20633 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
20634 | argument registers are propagated back to the parent. The compiler |
20635 | is told about this with #include <vfork.h>, but some compilers | |
20636 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
20637 | static variable whose address is put into a register that is | |
20638 | clobbered by the vfork. */ | |
19650fd6 | 20639 | static void |
fa0b693c | 20640 | #ifdef __cplusplus |
73b77ee5 | 20641 | sparc_address_test (int arg) |
503d2be0 | 20642 | # else |
73b77ee5 | 20643 | sparc_address_test (arg) int arg; |
fa0b693c | 20644 | #endif |
fa0b693c | 20645 | { |
73b77ee5 GM |
20646 | static pid_t child; |
20647 | if (!child) { | |
20648 | child = vfork (); | |
20649 | if (child < 0) { | |
20650 | perror ("vfork"); | |
20651 | _exit(2); | |
20652 | } | |
20653 | if (!child) { | |
20654 | arg = getpid(); | |
20655 | write(-1, "", 0); | |
20656 | _exit (arg); | |
20657 | } | |
20658 | } | |
20659 | } | |
503d2be0 AS |
20660 | |
20661 | int | |
20662 | main () | |
20663 | { | |
73b77ee5 GM |
20664 | pid_t parent = getpid (); |
20665 | pid_t child; | |
fa0b693c | 20666 | |
19650fd6 | 20667 | sparc_address_test (0); |
fa0b693c | 20668 | |
73b77ee5 | 20669 | child = vfork (); |
fa0b693c | 20670 | |
73b77ee5 | 20671 | if (child == 0) { |
503d2be0 AS |
20672 | /* Here is another test for sparc vfork register problems. This |
20673 | test uses lots of local variables, at least as many local | |
20674 | variables as main has allocated so far including compiler | |
20675 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
20676 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
20677 | reuse the register of parent for one of the local variables, | |
20678 | since it will think that parent can't possibly be used any more | |
20679 | in this routine. Assigning to the local variable will thus | |
20680 | munge parent in the parent process. */ | |
73b77ee5 GM |
20681 | pid_t |
20682 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
20683 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
20684 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
20685 | use the same hardware register for all 8 local variables. */ | |
20686 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
20687 | || p != p5 || p != p6 || p != p7) | |
20688 | _exit(1); | |
fa0b693c | 20689 | |
503d2be0 AS |
20690 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
20691 | from child file descriptors. If the child closes a descriptor | |
20692 | before it execs or exits, this munges the parent's descriptor | |
20693 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
20694 | _exit(close(fileno(stdout)) != 0); |
20695 | } else { | |
20696 | int status; | |
20697 | struct stat st; | |
20698 | ||
20699 | while (wait(&status) != child) | |
20700 | ; | |
20701 | exit( | |
20702 | /* Was there some problem with vforking? */ | |
20703 | child < 0 | |
20704 | ||
20705 | /* Did the child fail? (This shouldn't happen.) */ | |
20706 | || status | |
20707 | ||
20708 | /* Did the vfork/compiler bug occur? */ | |
20709 | || parent != getpid() | |
fa0b693c | 20710 | |
73b77ee5 GM |
20711 | /* Did the file descriptor bug occur? */ |
20712 | || fstat(fileno(stdout), &st) != 0 | |
20713 | ); | |
20714 | } | |
20715 | } | |
503d2be0 AS |
20716 | _ACEOF |
20717 | rm -f conftest$ac_exeext | |
c0d27fcc | 20718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20719 | (eval $ac_link) 2>&5 |
20720 | ac_status=$? | |
c0d27fcc | 20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20722 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20724 | (eval $ac_try) 2>&5 |
20725 | ac_status=$? | |
c0d27fcc | 20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20727 | (exit $ac_status); }; }; then |
73b77ee5 | 20728 | ac_cv_func_vfork_works=yes |
fa0b693c | 20729 | else |
503d2be0 AS |
20730 | echo "$as_me: program exited with status $ac_status" >&5 |
20731 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20732 | sed 's/^/| /' conftest.$ac_ext >&5 |
20733 | ||
c0d27fcc | 20734 | ( exit $ac_status ) |
503d2be0 AS |
20735 | ac_cv_func_vfork_works=no |
20736 | fi | |
35996d22 | 20737 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 20738 | fi |
fa0b693c | 20739 | fi |
c0d27fcc | 20740 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 20741 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 20742 | |
503d2be0 AS |
20743 | fi; |
20744 | if test "x$ac_cv_func_fork_works" = xcross; then | |
35996d22 | 20745 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
20746 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
20747 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
20748 | fi |
20749 | ||
503d2be0 AS |
20750 | if test "x$ac_cv_func_vfork_works" = xyes; then |
20751 | ||
c0d27fcc | 20752 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20753 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 20754 | _ACEOF |
503d2be0 AS |
20755 | |
20756 | else | |
20757 | ||
c0d27fcc | 20758 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 20759 | #define vfork fork |
c0d27fcc | 20760 | _ACEOF |
fa0b693c GM |
20761 | |
20762 | fi | |
503d2be0 AS |
20763 | if test "x$ac_cv_func_fork_works" = xyes; then |
20764 | ||
c0d27fcc | 20765 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20766 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 20767 | _ACEOF |
fa0b693c | 20768 | |
503d2be0 | 20769 | fi |
647847ea | 20770 | |
c0d27fcc | 20771 | |
6a3a24fa JD |
20772 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
20773 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
20774 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
20775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20776 | else | |
20777 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20778 | /* confdefs.h. */ |
20779 | _ACEOF | |
20780 | cat confdefs.h >>conftest.$ac_ext | |
20781 | cat >>conftest.$ac_ext <<_ACEOF | |
20782 | /* end confdefs.h. */ | |
6a3a24fa JD |
20783 | #include <langinfo.h> |
20784 | int | |
20785 | main () | |
20786 | { | |
20787 | char* cs = nl_langinfo(CODESET); | |
20788 | ; | |
20789 | return 0; | |
20790 | } | |
20791 | _ACEOF | |
20792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 20794 | (eval $ac_link) 2>conftest.er1 |
6a3a24fa | 20795 | ac_status=$? |
35996d22 AS |
20796 | grep -v '^ *+' conftest.er1 >conftest.err |
20797 | rm -f conftest.er1 | |
20798 | cat conftest.err >&5 | |
6a3a24fa JD |
20799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20800 | (exit $ac_status); } && | |
35996d22 AS |
20801 | { ac_try='test -z "$ac_c_werror_flag" |
20802 | || test ! -s conftest.err' | |
20803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20804 | (eval $ac_try) 2>&5 | |
20805 | ac_status=$? | |
20806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20807 | (exit $ac_status); }; } && | |
20808 | { ac_try='test -s conftest$ac_exeext' | |
6a3a24fa JD |
20809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20810 | (eval $ac_try) 2>&5 | |
20811 | ac_status=$? | |
20812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20813 | (exit $ac_status); }; }; then | |
20814 | emacs_cv_langinfo_codeset=yes | |
20815 | else | |
20816 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20817 | sed 's/^/| /' conftest.$ac_ext >&5 |
20818 | ||
6a3a24fa JD |
20819 | emacs_cv_langinfo_codeset=no |
20820 | fi | |
35996d22 AS |
20821 | rm -f conftest.err conftest.$ac_objext \ |
20822 | conftest$ac_exeext conftest.$ac_ext | |
6a3a24fa JD |
20823 | |
20824 | fi | |
20825 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
20826 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
20827 | if test $emacs_cv_langinfo_codeset = yes; then | |
20828 | ||
20829 | cat >>confdefs.h <<\_ACEOF | |
20830 | #define HAVE_LANGINFO_CODESET 1 | |
20831 | _ACEOF | |
20832 | ||
20833 | fi | |
20834 | ||
c0d27fcc | 20835 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
20836 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
20837 | if test "${ac_cv_type_size_t+set}" = set; then | |
20838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 20839 | else |
503d2be0 | 20840 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20841 | /* confdefs.h. */ |
20842 | _ACEOF | |
20843 | cat confdefs.h >>conftest.$ac_ext | |
20844 | cat >>conftest.$ac_ext <<_ACEOF | |
20845 | /* end confdefs.h. */ | |
503d2be0 AS |
20846 | $ac_includes_default |
20847 | int | |
20848 | main () | |
20849 | { | |
20850 | if ((size_t *) 0) | |
20851 | return 0; | |
20852 | if (sizeof (size_t)) | |
20853 | return 0; | |
20854 | ; | |
20855 | return 0; | |
20856 | } | |
20857 | _ACEOF | |
20858 | rm -f conftest.$ac_objext | |
c0d27fcc | 20859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20860 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20861 | ac_status=$? |
35996d22 AS |
20862 | grep -v '^ *+' conftest.er1 >conftest.err |
20863 | rm -f conftest.er1 | |
20864 | cat conftest.err >&5 | |
c0d27fcc | 20865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20866 | (exit $ac_status); } && |
35996d22 AS |
20867 | { ac_try='test -z "$ac_c_werror_flag" |
20868 | || test ! -s conftest.err' | |
20869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20870 | (eval $ac_try) 2>&5 | |
20871 | ac_status=$? | |
20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20873 | (exit $ac_status); }; } && | |
20874 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20876 | (eval $ac_try) 2>&5 |
20877 | ac_status=$? | |
c0d27fcc | 20878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20879 | (exit $ac_status); }; }; then |
8730a8da DL |
20880 | ac_cv_type_size_t=yes |
20881 | else | |
503d2be0 | 20882 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20883 | sed 's/^/| /' conftest.$ac_ext >&5 |
20884 | ||
503d2be0 | 20885 | ac_cv_type_size_t=no |
8730a8da | 20886 | fi |
35996d22 | 20887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8730a8da | 20888 | fi |
c0d27fcc | 20889 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
20890 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
20891 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 20892 | |
c0d27fcc MR |
20893 | cat >>confdefs.h <<_ACEOF |
20894 | #define HAVE_SIZE_T 1 | |
20895 | _ACEOF | |
20896 | ||
8730a8da DL |
20897 | |
20898 | fi | |
20899 | ||
c0d27fcc | 20900 | |
973a76b1 DL |
20901 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
20902 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
20903 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
20904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20905 | else | |
20906 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20907 | /* confdefs.h. */ |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
973a76b1 DL |
20912 | $ac_includes_default |
20913 | # include <wchar.h> | |
20914 | int | |
20915 | main () | |
20916 | { | |
20917 | mbstate_t x; return sizeof x; | |
20918 | ; | |
20919 | return 0; | |
20920 | } | |
20921 | _ACEOF | |
20922 | rm -f conftest.$ac_objext | |
20923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20924 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 20925 | ac_status=$? |
35996d22 AS |
20926 | grep -v '^ *+' conftest.er1 >conftest.err |
20927 | rm -f conftest.er1 | |
20928 | cat conftest.err >&5 | |
973a76b1 DL |
20929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20930 | (exit $ac_status); } && | |
35996d22 AS |
20931 | { ac_try='test -z "$ac_c_werror_flag" |
20932 | || test ! -s conftest.err' | |
20933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20934 | (eval $ac_try) 2>&5 | |
20935 | ac_status=$? | |
20936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20937 | (exit $ac_status); }; } && | |
20938 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
20939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20940 | (eval $ac_try) 2>&5 | |
20941 | ac_status=$? | |
20942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20943 | (exit $ac_status); }; }; then | |
20944 | ac_cv_type_mbstate_t=yes | |
20945 | else | |
20946 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20947 | sed 's/^/| /' conftest.$ac_ext >&5 |
20948 | ||
973a76b1 DL |
20949 | ac_cv_type_mbstate_t=no |
20950 | fi | |
35996d22 | 20951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
20952 | fi |
20953 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
20954 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
20955 | if test $ac_cv_type_mbstate_t = yes; then | |
20956 | ||
20957 | cat >>confdefs.h <<\_ACEOF | |
20958 | #define HAVE_MBSTATE_T 1 | |
20959 | _ACEOF | |
20960 | ||
20961 | else | |
20962 | ||
20963 | cat >>confdefs.h <<\_ACEOF | |
20964 | #define mbstate_t int | |
20965 | _ACEOF | |
20966 | ||
20967 | fi | |
20968 | ||
22044edf DL |
20969 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
20970 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
20971 | if test "${emacs_cv_c_restrict+set}" = set; then | |
20972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20973 | else | |
20974 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20975 | /* confdefs.h. */ |
20976 | _ACEOF | |
20977 | cat confdefs.h >>conftest.$ac_ext | |
20978 | cat >>conftest.$ac_ext <<_ACEOF | |
20979 | /* end confdefs.h. */ | |
22044edf DL |
20980 | void fred (int *restrict x); |
20981 | int | |
20982 | main () | |
20983 | { | |
b936fae4 | 20984 | |
22044edf DL |
20985 | ; |
20986 | return 0; | |
20987 | } | |
c0d27fcc | 20988 | _ACEOF |
22044edf DL |
20989 | rm -f conftest.$ac_objext |
20990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20991 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 20992 | ac_status=$? |
35996d22 AS |
20993 | grep -v '^ *+' conftest.er1 >conftest.err |
20994 | rm -f conftest.er1 | |
20995 | cat conftest.err >&5 | |
22044edf DL |
20996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20997 | (exit $ac_status); } && | |
35996d22 AS |
20998 | { ac_try='test -z "$ac_c_werror_flag" |
20999 | || test ! -s conftest.err' | |
21000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21001 | (eval $ac_try) 2>&5 | |
21002 | ac_status=$? | |
21003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21004 | (exit $ac_status); }; } && | |
21005 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21007 | (eval $ac_try) 2>&5 | |
21008 | ac_status=$? | |
21009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21010 | (exit $ac_status); }; }; then | |
21011 | emacs_cv_c_restrict=yes | |
21012 | else | |
21013 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21014 | sed 's/^/| /' conftest.$ac_ext >&5 |
21015 | ||
22044edf | 21016 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21017 | /* confdefs.h. */ |
21018 | _ACEOF | |
21019 | cat confdefs.h >>conftest.$ac_ext | |
21020 | cat >>conftest.$ac_ext <<_ACEOF | |
21021 | /* end confdefs.h. */ | |
22044edf DL |
21022 | void fred (int *__restrict x); |
21023 | int | |
21024 | main () | |
21025 | { | |
c0d27fcc | 21026 | |
22044edf DL |
21027 | ; |
21028 | return 0; | |
21029 | } | |
c0d27fcc | 21030 | _ACEOF |
22044edf DL |
21031 | rm -f conftest.$ac_objext |
21032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21033 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21034 | ac_status=$? |
35996d22 AS |
21035 | grep -v '^ *+' conftest.er1 >conftest.err |
21036 | rm -f conftest.er1 | |
21037 | cat conftest.err >&5 | |
22044edf DL |
21038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21039 | (exit $ac_status); } && | |
35996d22 AS |
21040 | { ac_try='test -z "$ac_c_werror_flag" |
21041 | || test ! -s conftest.err' | |
21042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21043 | (eval $ac_try) 2>&5 | |
21044 | ac_status=$? | |
21045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21046 | (exit $ac_status); }; } && | |
21047 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21049 | (eval $ac_try) 2>&5 | |
21050 | ac_status=$? | |
21051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21052 | (exit $ac_status); }; }; then | |
21053 | emacs_cv_c_restrict=__restrict | |
21054 | else | |
21055 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21056 | sed 's/^/| /' conftest.$ac_ext >&5 |
21057 | ||
22044edf | 21058 | emacs_cv_c_restrict=no |
ba4481b5 | 21059 | fi |
35996d22 | 21060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21061 | fi |
35996d22 | 21062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21063 | fi |
22044edf DL |
21064 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
21065 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
21066 | case "$emacs_cv_c_restrict" in | |
21067 | yes) emacs_restrict=restrict;; | |
21068 | no) emacs_restrict="";; | |
21069 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
21070 | esac | |
21071 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 21072 | |
22044edf DL |
21073 | cat >>confdefs.h <<_ACEOF |
21074 | #define __restrict $emacs_restrict | |
c0d27fcc | 21075 | _ACEOF |
ba4481b5 DL |
21076 | |
21077 | fi | |
ba4481b5 | 21078 | |
22044edf DL |
21079 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
21080 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
21081 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
21082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21083 | else | |
21084 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21085 | /* confdefs.h. */ |
21086 | _ACEOF | |
21087 | cat confdefs.h >>conftest.$ac_ext | |
21088 | cat >>conftest.$ac_ext <<_ACEOF | |
21089 | /* end confdefs.h. */ | |
22044edf DL |
21090 | void fred (int x[__restrict]); |
21091 | int | |
21092 | main () | |
21093 | { | |
b936fae4 | 21094 | |
22044edf DL |
21095 | ; |
21096 | return 0; | |
21097 | } | |
c0d27fcc | 21098 | _ACEOF |
22044edf DL |
21099 | rm -f conftest.$ac_objext |
21100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21101 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21102 | ac_status=$? |
35996d22 AS |
21103 | grep -v '^ *+' conftest.er1 >conftest.err |
21104 | rm -f conftest.er1 | |
21105 | cat conftest.err >&5 | |
22044edf DL |
21106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21107 | (exit $ac_status); } && | |
35996d22 AS |
21108 | { ac_try='test -z "$ac_c_werror_flag" |
21109 | || test ! -s conftest.err' | |
21110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21111 | (eval $ac_try) 2>&5 | |
21112 | ac_status=$? | |
21113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21114 | (exit $ac_status); }; } && | |
21115 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21117 | (eval $ac_try) 2>&5 | |
21118 | ac_status=$? | |
21119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21120 | (exit $ac_status); }; }; then | |
21121 | emacs_cv_c_restrict_arr=yes | |
21122 | else | |
21123 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21124 | sed 's/^/| /' conftest.$ac_ext >&5 |
21125 | ||
22044edf | 21126 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 21127 | fi |
35996d22 | 21128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22044edf DL |
21129 | fi |
21130 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
21131 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
21132 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 21133 | |
c0d27fcc | 21134 | cat >>confdefs.h <<\_ACEOF |
22044edf | 21135 | #define __restrict_arr __restrict |
c0d27fcc | 21136 | _ACEOF |
ba4481b5 | 21137 | |
ba4481b5 DL |
21138 | fi |
21139 | ||
c0d27fcc | 21140 | |
c0d27fcc | 21141 | |
22044edf DL |
21142 | # Set up the CFLAGS for real compilation, so we can substitute it. |
21143 | CFLAGS="$REAL_CFLAGS" | |
21144 | CPPFLAGS="$REAL_CPPFLAGS" | |
21145 | ||
21146 | #### Find out which version of Emacs this is. | |
21147 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
21148 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
21149 | if test x"${version}" = x; then | |
21150 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
21151 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
21152 | { (exit 1); exit 1; }; } | |
21153 | fi | |
21154 | ||
21155 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
21156 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
21157 | ||
21158 | ||
21159 | ||
21160 | ||
21161 | ||
21162 | ||
21163 | ||
21164 | ||
21165 | ||
21166 | ||
21167 | ||
21168 | ||
21169 | ||
21170 | ||
21171 | ||
21172 | ||
21173 | ||
21174 | ||
21175 | ||
21176 | ||
21177 | ||
21178 | ||
21179 | ||
21180 | ||
21181 | ||
21182 | ||
21183 | ||
21184 | ||
21185 | ||
21186 | ||
21187 | ||
21188 | ||
6a3a24fa | 21189 | |
22044edf DL |
21190 | |
21191 | ||
21192 | cat >>confdefs.h <<_ACEOF | |
21193 | #define EMACS_CONFIGURATION "${canonical}" | |
21194 | _ACEOF | |
21195 | ||
21196 | ||
21197 | cat >>confdefs.h <<_ACEOF | |
21198 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
21199 | _ACEOF | |
21200 | ||
21201 | ||
21202 | cat >>confdefs.h <<_ACEOF | |
21203 | #define config_machfile "${machfile}" | |
21204 | _ACEOF | |
21205 | ||
21206 | ||
21207 | cat >>confdefs.h <<_ACEOF | |
21208 | #define config_opsysfile "${opsysfile}" | |
21209 | _ACEOF | |
21210 | ||
21211 | ||
21212 | cat >>confdefs.h <<_ACEOF | |
21213 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
21214 | _ACEOF | |
21215 | ||
21216 | ||
21217 | cat >>confdefs.h <<_ACEOF | |
21218 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
21219 | _ACEOF | |
21220 | ||
21221 | ||
21222 | cat >>confdefs.h <<_ACEOF | |
21223 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
21224 | _ACEOF | |
21225 | ||
21226 | ||
21227 | cat >>confdefs.h <<_ACEOF | |
21228 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
21229 | _ACEOF | |
21230 | ||
21231 | ||
21232 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
21233 | ||
21234 | cat >>confdefs.h <<\_ACEOF | |
21235 | #define HAVE_X_WINDOWS 1 | |
21236 | _ACEOF | |
21237 | ||
21238 | fi | |
21239 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
21240 | ||
21241 | cat >>confdefs.h <<\_ACEOF | |
21242 | #define USE_X_TOOLKIT 1 | |
21243 | _ACEOF | |
21244 | ||
21245 | fi | |
21246 | if test "${HAVE_X11}" = "yes" ; then | |
21247 | ||
21248 | cat >>confdefs.h <<\_ACEOF | |
21249 | #define HAVE_X11 1 | |
21250 | _ACEOF | |
21251 | ||
21252 | fi | |
21253 | if test "${HAVE_XFREE386}" = "yes" ; then | |
21254 | ||
21255 | cat >>confdefs.h <<\_ACEOF | |
21256 | #define HAVE_XFREE386 1 | |
21257 | _ACEOF | |
21258 | ||
21259 | fi | |
21260 | if test "${HAVE_MENUS}" = "yes" ; then | |
21261 | ||
21262 | cat >>confdefs.h <<\_ACEOF | |
21263 | #define HAVE_MENUS 1 | |
21264 | _ACEOF | |
21265 | ||
21266 | fi | |
21267 | if test "${GNU_MALLOC}" = "yes" ; then | |
21268 | ||
21269 | cat >>confdefs.h <<\_ACEOF | |
21270 | #define GNU_MALLOC 1 | |
21271 | _ACEOF | |
21272 | ||
21273 | fi | |
21274 | if test "${REL_ALLOC}" = "yes" ; then | |
21275 | ||
21276 | cat >>confdefs.h <<\_ACEOF | |
21277 | #define REL_ALLOC 1 | |
21278 | _ACEOF | |
21279 | ||
21280 | fi | |
21281 | ||
21282 | ||
21283 | ||
c0d27fcc MR |
21284 | |
21285 | ||
ba4481b5 | 21286 | #### Report on what we decided to do. |
488dd4c4 JD |
21287 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
21288 | #### It makes printing result more understandable as using GTK sets | |
21289 | #### toolkit_scroll_bars to yes by default. | |
21290 | if test "${HAVE_GTK}" = "yes"; then | |
21291 | USE_X_TOOLKIT=GTK | |
21292 | fi | |
21293 | ||
ba4481b5 DL |
21294 | echo " |
21295 | Configured for \`${canonical}'. | |
21296 | ||
21297 | Where should the build process find the source code? ${srcdir} | |
21298 | What operating system and machine description files should Emacs use? | |
21299 | \`${opsysfile}' and \`${machfile}' | |
21300 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
21301 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 21302 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 21303 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 21304 | What window system should Emacs use? ${window_system} |
8e967cf7 | 21305 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
21306 | |
21307 | if test -n "${x_includes}"; then | |
21308 | echo " Where do we find X Windows header files? ${x_includes}" | |
21309 | else | |
21310 | echo " Where do we find X Windows header files? Standard dirs" | |
21311 | fi | |
21312 | if test -n "${x_libraries}"; then | |
21313 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
21314 | else | |
21315 | echo " Where do we find X Windows libraries? Standard dirs" | |
21316 | fi | |
21317 | ||
21318 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
21319 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
21320 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
21321 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
21322 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
21323 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
21324 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
21325 | echo | |
21326 | ||
21327 | # Remove any trailing slashes in these variables. | |
21328 | test "${prefix}" != NONE && | |
21329 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21330 | test "${exec_prefix}" != NONE && | |
21331 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21332 | ||
d0e9bfd2 GM |
21333 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
21334 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
21335 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
21336 | ## C preprocessor. | |
21337 | ||
503d2be0 | 21338 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21339 | /* confdefs.h. */ |
21340 | _ACEOF | |
21341 | cat confdefs.h >>conftest.$ac_ext | |
21342 | cat >>conftest.$ac_ext <<_ACEOF | |
21343 | /* end confdefs.h. */ | |
d0e9bfd2 | 21344 | yes..yes |
503d2be0 | 21345 | _ACEOF |
d0e9bfd2 | 21346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 21347 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
21348 | CPP_NEED_TRADITIONAL=no |
21349 | else | |
d0e9bfd2 GM |
21350 | CPP_NEED_TRADITIONAL=yes |
21351 | fi | |
21352 | rm -f conftest* | |
21353 | ||
c0d27fcc | 21354 | |
6bae0ccf DL |
21355 | 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" |
21356 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 21357 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
21358 | # This file is a shell script that caches the results of configure |
21359 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
21360 | # scripts and configure runs, see configure's option --config-cache. |
21361 | # It is not useful on other systems. If it contains results you don't | |
21362 | # want to keep, you may remove or edit it. | |
ba4481b5 | 21363 | # |
503d2be0 AS |
21364 | # config.status only pays attention to the cache file if you give it |
21365 | # the --recheck option to rerun configure. | |
ba4481b5 | 21366 | # |
6bae0ccf | 21367 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
21368 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21369 | # following values. | |
21370 | ||
21371 | _ACEOF | |
21372 | ||
ba4481b5 DL |
21373 | # The following way of writing the cache mishandles newlines in values, |
21374 | # but we know of no workaround that is simple, portable, and efficient. | |
21375 | # So, don't put newlines in cache variables' values. | |
21376 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21377 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
21378 | { |
21379 | (set) 2>&1 | | |
21380 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21381 | *ac_space=\ *) | |
21382 | # `set' does not quote correctly, so add quotes (double-quote | |
21383 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21384 | sed -n \ | |
35996d22 AS |
21385 | "s/'/'\\\\''/g; |
21386 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
503d2be0 AS |
21387 | ;; |
21388 | *) | |
21389 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21390 | sed -n \ | |
35996d22 | 21391 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
21392 | ;; |
21393 | esac; | |
21394 | } | | |
21395 | sed ' | |
21396 | t clear | |
21397 | : clear | |
21398 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21399 | t end | |
21400 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21401 | : end' >>confcache | |
19650fd6 | 21402 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 21403 | if test -w $cache_file; then |
503d2be0 AS |
21404 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
21405 | cat confcache >$cache_file | |
ba4481b5 DL |
21406 | else |
21407 | echo "not updating unwritable cache $cache_file" | |
21408 | fi | |
21409 | fi | |
21410 | rm -f confcache | |
21411 | ||
ba4481b5 DL |
21412 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21413 | # Let make expand exec_prefix. | |
21414 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21415 | ||
503d2be0 AS |
21416 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21417 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21418 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21419 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 21420 | if test "x$srcdir" = x.; then |
35996d22 | 21421 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
503d2be0 AS |
21422 | s/:*\$(srcdir):*/:/; |
21423 | s/:*\${srcdir}:*/:/; | |
21424 | s/:*@srcdir@:*/:/; | |
35996d22 | 21425 | s/^\([^=]*=[ ]*\):*/\1/; |
503d2be0 | 21426 | s/:*$//; |
35996d22 | 21427 | s/^[^=]*=[ ]*$//; |
503d2be0 | 21428 | }' |
ba4481b5 DL |
21429 | fi |
21430 | ||
ba4481b5 DL |
21431 | DEFS=-DHAVE_CONFIG_H |
21432 | ||
6bae0ccf DL |
21433 | ac_libobjs= |
21434 | ac_ltlibobjs= | |
21435 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21436 | # 1. Remove the extension, and $U if already installed. | |
21437 | ac_i=`echo "$ac_i" | | |
35996d22 | 21438 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6bae0ccf DL |
21439 | # 2. Add them. |
21440 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21441 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21442 | done | |
21443 | LIBOBJS=$ac_libobjs | |
21444 | ||
21445 | LTLIBOBJS=$ac_ltlibobjs | |
21446 | ||
21447 | ||
c0d27fcc | 21448 | |
ba4481b5 | 21449 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
21450 | ac_clean_files_save=$ac_clean_files |
21451 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 21452 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
21453 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21454 | cat >$CONFIG_STATUS <<_ACEOF | |
21455 | #! $SHELL | |
c0d27fcc | 21456 | # Generated by $as_me. |
ba4481b5 | 21457 | # Run this file to recreate the current configuration. |
ba4481b5 | 21458 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 21459 | # configure, is in config.log if it exists. |
ba4481b5 | 21460 | |
503d2be0 | 21461 | debug=false |
19650fd6 AS |
21462 | ac_cs_recheck=false |
21463 | ac_cs_silent=false | |
503d2be0 | 21464 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
21465 | _ACEOF |
21466 | ||
21467 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
21468 | ## --------------------- ## |
21469 | ## M4sh Initialization. ## | |
21470 | ## --------------------- ## | |
21471 | ||
503d2be0 AS |
21472 | # Be Bourne compatible |
21473 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21474 | emulate sh | |
21475 | NULLCMD=: | |
6bae0ccf DL |
21476 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21477 | # is contrary to our usage. Disable this feature. | |
21478 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
21479 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21480 | set -o posix | |
21481 | fi | |
35996d22 | 21482 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 21483 | |
c0d27fcc | 21484 | # Support unset when possible. |
35996d22 | 21485 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
21486 | as_unset=unset |
21487 | else | |
21488 | as_unset=false | |
21489 | fi | |
21490 | ||
6bae0ccf DL |
21491 | |
21492 | # Work around bugs in pre-3.0 UWIN ksh. | |
21493 | $as_unset ENV MAIL MAILPATH | |
21494 | PS1='$ ' | |
21495 | PS2='> ' | |
21496 | PS4='+ ' | |
21497 | ||
21498 | # NLS nuisances. | |
19650fd6 AS |
21499 | for as_var in \ |
21500 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21501 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21502 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 21503 | do |
35996d22 | 21504 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
21505 | eval $as_var=C; export $as_var |
21506 | else | |
21507 | $as_unset $as_var | |
21508 | fi | |
21509 | done | |
21510 | ||
21511 | # Required to use basename. | |
21512 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21513 | as_expr=expr | |
21514 | else | |
21515 | as_expr=false | |
21516 | fi | |
21517 | ||
21518 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21519 | as_basename=basename | |
21520 | else | |
21521 | as_basename=false | |
21522 | fi | |
c0d27fcc MR |
21523 | |
21524 | ||
503d2be0 | 21525 | # Name of the executable. |
6bae0ccf | 21526 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
21527 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21528 | X"$0" : 'X\(//\)$' \| \ | |
21529 | X"$0" : 'X\(/\)$' \| \ | |
21530 | . : '\(.\)' 2>/dev/null || | |
21531 | echo X/"$0" | | |
21532 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21533 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21534 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21535 | s/.*/./; q'` | |
21536 | ||
6bae0ccf | 21537 | |
c0d27fcc MR |
21538 | # PATH needs CR, and LINENO needs CR and PATH. |
21539 | # Avoid depending upon Character Ranges. | |
21540 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21541 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21542 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21543 | as_cr_digits='0123456789' | |
21544 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21545 | ||
21546 | # The user is always right. | |
21547 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
21548 | echo "#! /bin/sh" >conf$$.sh |
21549 | echo "exit 0" >>conf$$.sh | |
21550 | chmod +x conf$$.sh | |
21551 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
21552 | PATH_SEPARATOR=';' |
21553 | else | |
21554 | PATH_SEPARATOR=: | |
21555 | fi | |
19650fd6 | 21556 | rm -f conf$$.sh |
c0d27fcc MR |
21557 | fi |
21558 | ||
21559 | ||
21560 | as_lineno_1=$LINENO | |
21561 | as_lineno_2=$LINENO | |
21562 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21563 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21564 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21565 | # Find who we are. Look in the path if we contain no path at all | |
21566 | # relative or not. | |
21567 | case $0 in | |
21568 | *[\\/]* ) as_myself=$0 ;; | |
21569 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21570 | for as_dir in $PATH | |
21571 | do | |
21572 | IFS=$as_save_IFS | |
21573 | test -z "$as_dir" && as_dir=. | |
21574 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21575 | done | |
21576 | ||
21577 | ;; | |
21578 | esac | |
21579 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21580 | # in which case we are not to be found in the path. | |
21581 | if test "x$as_myself" = x; then | |
21582 | as_myself=$0 | |
21583 | fi | |
21584 | if test ! -f "$as_myself"; then | |
21585 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21586 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21587 | { (exit 1); exit 1; }; } | |
21588 | fi | |
21589 | case $CONFIG_SHELL in | |
21590 | '') | |
21591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21592 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21593 | do | |
21594 | IFS=$as_save_IFS | |
21595 | test -z "$as_dir" && as_dir=. | |
21596 | for as_base in sh bash ksh sh5; do | |
21597 | case $as_dir in | |
21598 | /*) | |
21599 | if ("$as_dir/$as_base" -c ' | |
21600 | as_lineno_1=$LINENO | |
21601 | as_lineno_2=$LINENO | |
21602 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21603 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21604 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
21605 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
21606 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
21607 | CONFIG_SHELL=$as_dir/$as_base |
21608 | export CONFIG_SHELL | |
21609 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21610 | fi;; | |
21611 | esac | |
21612 | done | |
21613 | done | |
21614 | ;; | |
21615 | esac | |
21616 | ||
21617 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21618 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21619 | # line-number line before each line; the second 'sed' does the real | |
21620 | # work. The second script uses 'N' to pair each line-number line | |
21621 | # with the numbered line, and appends trailing '-' during | |
21622 | # substitution so that $LINENO is not a special case at line end. | |
21623 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21624 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21625 | sed '=' <$as_myself | | |
21626 | sed ' | |
21627 | N | |
21628 | s,$,-, | |
21629 | : loop | |
21630 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21631 | t loop | |
21632 | s,-$,, | |
21633 | s,^['$as_cr_digits']*\n,, | |
21634 | ' >$as_me.lineno && | |
21635 | chmod +x $as_me.lineno || | |
21636 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21637 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21638 | { (exit 1); exit 1; }; } | |
21639 | ||
21640 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21641 | # (the dirname of $[0] is not the place where we might find the | |
21642 | # original and so on. Autoconf is especially sensible to this). | |
21643 | . ./$as_me.lineno | |
21644 | # Exit status is that of the last command. | |
21645 | exit | |
21646 | } | |
21647 | ||
21648 | ||
21649 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21650 | *c*,-n*) ECHO_N= ECHO_C=' | |
21651 | ' ECHO_T=' ' ;; | |
21652 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21653 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21654 | esac | |
503d2be0 AS |
21655 | |
21656 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21657 | as_expr=expr | |
21658 | else | |
21659 | as_expr=false | |
21660 | fi | |
21661 | ||
21662 | rm -f conf$$ conf$$.exe conf$$.file | |
21663 | echo >conf$$.file | |
21664 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21665 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21666 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21667 | if test -f conf$$.exe; then | |
21668 | # Don't use ln at all; we don't have any links | |
21669 | as_ln_s='cp -p' | |
21670 | else | |
21671 | as_ln_s='ln -s' | |
21672 | fi | |
21673 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21674 | as_ln_s=ln | |
21675 | else | |
21676 | as_ln_s='cp -p' | |
21677 | fi | |
21678 | rm -f conf$$ conf$$.exe conf$$.file | |
21679 | ||
6bae0ccf DL |
21680 | if mkdir -p . 2>/dev/null; then |
21681 | as_mkdir_p=: | |
21682 | else | |
35996d22 | 21683 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
21684 | as_mkdir_p=false |
21685 | fi | |
21686 | ||
503d2be0 AS |
21687 | as_executable_p="test -f" |
21688 | ||
c0d27fcc | 21689 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 21690 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
21691 | |
21692 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 21693 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 21694 | |
503d2be0 AS |
21695 | |
21696 | # IFS | |
21697 | # We need space, tab and new line, in precisely that order. | |
21698 | as_nl=' | |
21699 | ' | |
21700 | IFS=" $as_nl" | |
21701 | ||
21702 | # CDPATH. | |
6bae0ccf | 21703 | $as_unset CDPATH |
503d2be0 AS |
21704 | |
21705 | exec 6>&1 | |
21706 | ||
c0d27fcc MR |
21707 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
21708 | # report actual input values of CONFIG_FILES etc. instead of their | |
21709 | # values after options handling. Logging --version etc. is OK. | |
21710 | exec 5>>config.log | |
21711 | { | |
21712 | echo | |
21713 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21714 | ## Running $as_me. ## | |
21715 | _ASBOX | |
21716 | } >&5 | |
21717 | cat >&5 <<_CSEOF | |
21718 | ||
21719 | This file was extended by $as_me, which was | |
35996d22 | 21720 | generated by GNU Autoconf 2.59. Invocation command line was |
c0d27fcc MR |
21721 | |
21722 | CONFIG_FILES = $CONFIG_FILES | |
21723 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21724 | CONFIG_LINKS = $CONFIG_LINKS | |
21725 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21726 | $ $0 $@ | |
21727 | ||
21728 | _CSEOF | |
21729 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21730 | echo >&5 | |
503d2be0 AS |
21731 | _ACEOF |
21732 | ||
21733 | # Files that config.status was made for. | |
21734 | if test -n "$ac_config_files"; then | |
21735 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21736 | fi | |
21737 | ||
21738 | if test -n "$ac_config_headers"; then | |
21739 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21740 | fi | |
21741 | ||
21742 | if test -n "$ac_config_links"; then | |
21743 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21744 | fi | |
21745 | ||
21746 | if test -n "$ac_config_commands"; then | |
21747 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21748 | fi | |
21749 | ||
c0d27fcc | 21750 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21751 | |
21752 | ac_cs_usage="\ | |
21753 | \`$as_me' instantiates files from templates according to the | |
21754 | current configuration. | |
21755 | ||
21756 | Usage: $0 [OPTIONS] [FILE]... | |
21757 | ||
21758 | -h, --help print this help, then exit | |
21759 | -V, --version print version number, then exit | |
19650fd6 | 21760 | -q, --quiet do not print progress messages |
503d2be0 AS |
21761 | -d, --debug don't remove temporary files |
21762 | --recheck update $as_me by reconfiguring in the same conditions | |
21763 | --file=FILE[:TEMPLATE] | |
35996d22 | 21764 | instantiate the configuration file FILE |
503d2be0 | 21765 | --header=FILE[:TEMPLATE] |
35996d22 | 21766 | instantiate the configuration header FILE |
503d2be0 AS |
21767 | |
21768 | Configuration files: | |
21769 | $config_files | |
21770 | ||
21771 | Configuration headers: | |
21772 | $config_headers | |
21773 | ||
21774 | Configuration commands: | |
21775 | $config_commands | |
21776 | ||
21777 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 21778 | _ACEOF |
503d2be0 | 21779 | |
c0d27fcc | 21780 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21781 | ac_cs_version="\\ |
21782 | config.status | |
35996d22 | 21783 | configured by $0, generated by GNU Autoconf 2.59, |
503d2be0 AS |
21784 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
21785 | ||
35996d22 | 21786 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
21787 | This config.status script is free software; the Free Software Foundation |
21788 | gives unlimited permission to copy, distribute and modify it." | |
21789 | srcdir=$srcdir | |
21790 | INSTALL="$INSTALL" | |
c0d27fcc | 21791 | _ACEOF |
503d2be0 | 21792 | |
c0d27fcc | 21793 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21794 | # If no file are specified by the user, then we need to provide default |
21795 | # value. By we need to know if files were specified by the user. | |
21796 | ac_need_defaults=: | |
21797 | while test $# != 0 | |
ba4481b5 | 21798 | do |
503d2be0 AS |
21799 | case $1 in |
21800 | --*=*) | |
21801 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21802 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
21803 | ac_shift=: |
21804 | ;; | |
21805 | -*) | |
21806 | ac_option=$1 | |
21807 | ac_optarg=$2 | |
21808 | ac_shift=shift | |
503d2be0 | 21809 | ;; |
503d2be0 AS |
21810 | *) # This is not an option, so the user has probably given explicit |
21811 | # arguments. | |
6bae0ccf | 21812 | ac_option=$1 |
503d2be0 AS |
21813 | ac_need_defaults=false;; |
21814 | esac | |
21815 | ||
6bae0ccf | 21816 | case $ac_option in |
503d2be0 | 21817 | # Handling of the options. |
c0d27fcc | 21818 | _ACEOF |
f57bd967 | 21819 | cat >>$CONFIG_STATUS <<\_ACEOF |
19650fd6 AS |
21820 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21821 | ac_cs_recheck=: ;; | |
503d2be0 AS |
21822 | --version | --vers* | -V ) |
21823 | echo "$ac_cs_version"; exit 0 ;; | |
21824 | --he | --h) | |
21825 | # Conflict between --help and --header | |
c0d27fcc | 21826 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
21827 | Try \`$0 --help' for more information." >&5 |
21828 | echo "$as_me: error: ambiguous option: $1 | |
21829 | Try \`$0 --help' for more information." >&2;} | |
21830 | { (exit 1); exit 1; }; };; | |
21831 | --help | --hel | -h ) | |
21832 | echo "$ac_cs_usage"; exit 0 ;; | |
21833 | --debug | --d* | -d ) | |
21834 | debug=: ;; | |
21835 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
21836 | $ac_shift |
21837 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
21838 | ac_need_defaults=false;; |
21839 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
21840 | $ac_shift |
21841 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 21842 | ac_need_defaults=false;; |
19650fd6 AS |
21843 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21844 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21845 | ac_cs_silent=: ;; | |
503d2be0 AS |
21846 | |
21847 | # This is an error. | |
c0d27fcc | 21848 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
21849 | Try \`$0 --help' for more information." >&5 |
21850 | echo "$as_me: error: unrecognized option: $1 | |
21851 | Try \`$0 --help' for more information." >&2;} | |
21852 | { (exit 1); exit 1; }; } ;; | |
21853 | ||
21854 | *) ac_config_targets="$ac_config_targets $1" ;; | |
21855 | ||
ba4481b5 | 21856 | esac |
503d2be0 | 21857 | shift |
ba4481b5 DL |
21858 | done |
21859 | ||
19650fd6 AS |
21860 | ac_configure_extra_args= |
21861 | ||
21862 | if $ac_cs_silent; then | |
21863 | exec 6>/dev/null | |
21864 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21865 | fi | |
21866 | ||
21867 | _ACEOF | |
21868 | cat >>$CONFIG_STATUS <<_ACEOF | |
21869 | if \$ac_cs_recheck; then | |
21870 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21871 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21872 | fi | |
21873 | ||
503d2be0 | 21874 | _ACEOF |
ba4481b5 | 21875 | |
c0d27fcc | 21876 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21877 | # |
21878 | # INIT-COMMANDS section. | |
21879 | # | |
ba4481b5 | 21880 | |
503d2be0 AS |
21881 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
21882 | ||
c0d27fcc MR |
21883 | _ACEOF |
21884 | ||
503d2be0 | 21885 | |
c0d27fcc MR |
21886 | |
21887 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
21888 | for ac_config_target in $ac_config_targets |
21889 | do | |
21890 | case "$ac_config_target" in | |
21891 | # Handling of arguments. | |
21892 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21893 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
21894 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
21895 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
21896 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
21897 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
21898 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 21899 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 21900 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
21901 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
21902 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
21903 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 21904 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
21905 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21906 | { (exit 1); exit 1; }; };; | |
21907 | esac | |
ba4481b5 | 21908 | done |
503d2be0 AS |
21909 | |
21910 | # If the user did not use the arguments to specify the items to instantiate, | |
21911 | # then the envvar interface is used. Set only those that are not. | |
21912 | # We use the long form for the default assignment because of an extremely | |
21913 | # bizarre bug on SunOS 4.1.3. | |
21914 | if $ac_need_defaults; then | |
21915 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21916 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21917 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 21918 | fi |
503d2be0 | 21919 | |
19650fd6 AS |
21920 | # Have a temporary directory for convenience. Make it in the build tree |
21921 | # simply because there is no reason to put it here, and in addition, | |
21922 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
21923 | # Create a temporary directory, and hook for its removal unless debugging. |
21924 | $debug || | |
21925 | { | |
21926 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21927 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21928 | } | |
21929 | ||
21930 | # Create a (secure) tmp directory for tmp files. | |
19650fd6 | 21931 | |
503d2be0 | 21932 | { |
19650fd6 | 21933 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
21934 | test -n "$tmp" && test -d "$tmp" |
21935 | } || | |
21936 | { | |
19650fd6 | 21937 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
21938 | (umask 077 && mkdir $tmp) |
21939 | } || | |
21940 | { | |
19650fd6 | 21941 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
21942 | { (exit 1); exit 1; } |
21943 | } | |
21944 | ||
c0d27fcc | 21945 | _ACEOF |
503d2be0 | 21946 | |
c0d27fcc | 21947 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21948 | |
21949 | # | |
21950 | # CONFIG_FILES section. | |
21951 | # | |
21952 | ||
21953 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21954 | # This happens for instance when ./config.status config.h | |
21955 | if test -n "\$CONFIG_FILES"; then | |
21956 | # Protect against being on the right side of a sed subst in config.status. | |
21957 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21958 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21959 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
21960 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
21961 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21962 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21963 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21964 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21965 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
21966 | s,@exec_prefix@,$exec_prefix,;t t |
21967 | s,@prefix@,$prefix,;t t | |
21968 | s,@program_transform_name@,$program_transform_name,;t t | |
21969 | s,@bindir@,$bindir,;t t | |
21970 | s,@sbindir@,$sbindir,;t t | |
21971 | s,@libexecdir@,$libexecdir,;t t | |
21972 | s,@datadir@,$datadir,;t t | |
21973 | s,@sysconfdir@,$sysconfdir,;t t | |
21974 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21975 | s,@localstatedir@,$localstatedir,;t t | |
21976 | s,@libdir@,$libdir,;t t | |
21977 | s,@includedir@,$includedir,;t t | |
21978 | s,@oldincludedir@,$oldincludedir,;t t | |
21979 | s,@infodir@,$infodir,;t t | |
21980 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
21981 | s,@build_alias@,$build_alias,;t t |
21982 | s,@host_alias@,$host_alias,;t t | |
21983 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 21984 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
21985 | s,@ECHO_C@,$ECHO_C,;t t |
21986 | s,@ECHO_N@,$ECHO_N,;t t | |
21987 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 | 21988 | s,@LIBS@,$LIBS,;t t |
19650fd6 | 21989 | s,@MAINT@,$MAINT,;t t |
503d2be0 AS |
21990 | s,@build@,$build,;t t |
21991 | s,@build_cpu@,$build_cpu,;t t | |
21992 | s,@build_vendor@,$build_vendor,;t t | |
21993 | s,@build_os@,$build_os,;t t | |
21994 | s,@host@,$host,;t t | |
21995 | s,@host_cpu@,$host_cpu,;t t | |
21996 | s,@host_vendor@,$host_vendor,;t t | |
21997 | s,@host_os@,$host_os,;t t | |
21998 | s,@CC@,$CC,;t t | |
21999 | s,@CFLAGS@,$CFLAGS,;t t | |
22000 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22001 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22002 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22003 | s,@EXEEXT@,$EXEEXT,;t t | |
22004 | s,@OBJEXT@,$OBJEXT,;t t | |
22005 | s,@LN_S@,$LN_S,;t t | |
22006 | s,@CPP@,$CPP,;t t | |
22007 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22008 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22009 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
22010 | s,@RANLIB@,$RANLIB,;t t |
22011 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 22012 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 22013 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
22014 | s,@LIBSOUND@,$LIBSOUND,;t t |
22015 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
22016 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
22017 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
22018 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
22019 | s,@ALLOCA@,$ALLOCA,;t t |
22020 | s,@liblockfile@,$liblockfile,;t t | |
22021 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22022 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
22023 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
22024 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
22025 | s,@version@,$version,;t t | |
22026 | s,@configuration@,$configuration,;t t | |
22027 | s,@canonical@,$canonical,;t t | |
22028 | s,@srcdir@,$srcdir,;t t | |
22029 | s,@lispdir@,$lispdir,;t t | |
22030 | s,@locallisppath@,$locallisppath,;t t | |
22031 | s,@lisppath@,$lisppath,;t t | |
22032 | s,@x_default_search_path@,$x_default_search_path,;t t | |
22033 | s,@etcdir@,$etcdir,;t t | |
22034 | s,@archlibdir@,$archlibdir,;t t | |
22035 | s,@docdir@,$docdir,;t t | |
22036 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
22037 | s,@gamedir@,$gamedir,;t t |
22038 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
22039 | s,@c_switch_system@,$c_switch_system,;t t |
22040 | s,@c_switch_machine@,$c_switch_machine,;t t | |
22041 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
22042 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
22043 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
22044 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
22045 | s,@machfile@,$machfile,;t t | |
22046 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 22047 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 22048 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
22049 | CEOF |
22050 | ||
c0d27fcc | 22051 | _ACEOF |
ba4481b5 | 22052 | |
c0d27fcc | 22053 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22054 | # Split the substitutions into bite-sized pieces for seds with |
22055 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22056 | ac_max_sed_lines=48 | |
22057 | ac_sed_frag=1 # Number of current file. | |
22058 | ac_beg=1 # First line for current file. | |
22059 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22060 | ac_more_lines=: | |
22061 | ac_sed_cmds= | |
22062 | while $ac_more_lines; do | |
22063 | if test $ac_beg -gt 1; then | |
22064 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22065 | else | |
22066 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22067 | fi | |
22068 | if test ! -s $tmp/subs.frag; then | |
22069 | ac_more_lines=false | |
22070 | else | |
22071 | # The purpose of the label and of the branching condition is to | |
22072 | # speed up the sed processing (if there are no `@' at all, there | |
22073 | # is no need to browse any of the substitutions). | |
22074 | # These are the two extra sed commands mentioned above. | |
22075 | (echo ':t | |
22076 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22077 | if test -z "$ac_sed_cmds"; then | |
35996d22 | 22078 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 | 22079 | else |
35996d22 | 22080 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 AS |
22081 | fi |
22082 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22083 | ac_beg=$ac_end | |
22084 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22085 | fi | |
22086 | done | |
22087 | if test -z "$ac_sed_cmds"; then | |
22088 | ac_sed_cmds=cat | |
22089 | fi | |
22090 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 22091 | |
c0d27fcc MR |
22092 | _ACEOF |
22093 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 22094 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 22095 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22096 | case $ac_file in |
22097 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22098 | cat >$tmp/stdin |
22099 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22100 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22101 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22102 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22103 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22104 | esac |
22105 | ||
503d2be0 | 22106 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
22107 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22108 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22109 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22110 | X"$ac_file" : 'X\(//\)$' \| \ | |
22111 | X"$ac_file" : 'X\(/\)' \| \ | |
22112 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22113 | echo X"$ac_file" | |
22114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22116 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22117 | /^X\(\/\).*/{ s//\1/; q; } | |
22118 | s/.*/./; q'` | |
6bae0ccf DL |
22119 | { if $as_mkdir_p; then |
22120 | mkdir -p "$ac_dir" | |
22121 | else | |
22122 | as_dir="$ac_dir" | |
22123 | as_dirs= | |
22124 | while test ! -d "$as_dir"; do | |
22125 | as_dirs="$as_dir $as_dirs" | |
22126 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22129 | X"$as_dir" : 'X\(//\)$' \| \ | |
22130 | X"$as_dir" : 'X\(/\)' \| \ | |
22131 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22132 | echo X"$as_dir" | |
22133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22135 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22136 | /^X\(\/\).*/{ s//\1/; q; } | |
22137 | s/.*/./; q'` | |
22138 | done | |
22139 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22142 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22143 | |
c0d27fcc | 22144 | ac_builddir=. |
98418dba | 22145 | |
c0d27fcc MR |
22146 | if test "$ac_dir" != .; then |
22147 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22148 | # A "../" for each directory in $ac_dir_suffix. | |
22149 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22150 | else | |
22151 | ac_dir_suffix= ac_top_builddir= | |
22152 | fi | |
22153 | ||
22154 | case $srcdir in | |
22155 | .) # No --srcdir option. We are building in place. | |
22156 | ac_srcdir=. | |
22157 | if test -z "$ac_top_builddir"; then | |
22158 | ac_top_srcdir=. | |
22159 | else | |
22160 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22161 | fi ;; | |
22162 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22163 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22164 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 22165 | *) # Relative path. |
c0d27fcc MR |
22166 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22167 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22168 | esac | |
35996d22 AS |
22169 | |
22170 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22171 | # the directories may not exist. | |
22172 | case `pwd` in | |
22173 | .) ac_abs_builddir="$ac_dir";; | |
22174 | *) | |
22175 | case "$ac_dir" in | |
22176 | .) ac_abs_builddir=`pwd`;; | |
22177 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22178 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22179 | esac;; | |
22180 | esac | |
22181 | case $ac_abs_builddir in | |
22182 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22183 | *) | |
22184 | case ${ac_top_builddir}. in | |
22185 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22186 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22187 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22188 | esac;; | |
22189 | esac | |
22190 | case $ac_abs_builddir in | |
22191 | .) ac_abs_srcdir=$ac_srcdir;; | |
22192 | *) | |
22193 | case $ac_srcdir in | |
22194 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22195 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22196 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22197 | esac;; | |
22198 | esac | |
22199 | case $ac_abs_builddir in | |
22200 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22201 | *) | |
22202 | case $ac_top_srcdir in | |
22203 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22204 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22205 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22206 | esac;; | |
22207 | esac | |
c0d27fcc | 22208 | |
ba4481b5 | 22209 | |
503d2be0 AS |
22210 | case $INSTALL in |
22211 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 22212 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
22213 | esac |
22214 | ||
503d2be0 | 22215 | if test x"$ac_file" != x-; then |
c0d27fcc | 22216 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22217 | echo "$as_me: creating $ac_file" >&6;} |
22218 | rm -f "$ac_file" | |
22219 | fi | |
22220 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22221 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
22222 | # /* config.h. Generated by config.status. */ |
22223 | if test x"$ac_file" = x-; then | |
22224 | configure_input= | |
22225 | else | |
22226 | configure_input="$ac_file. " | |
22227 | fi | |
22228 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35996d22 | 22229 | sed 's,.*/,,'` by configure." |
503d2be0 AS |
22230 | |
22231 | # First look for the input files in the build tree, otherwise in the | |
22232 | # src tree. | |
22233 | ac_file_inputs=`IFS=: | |
22234 | for f in $ac_file_in; do | |
22235 | case $f in | |
22236 | -) echo $tmp/stdin ;; | |
22237 | [\\/$]*) | |
35996d22 AS |
22238 | # Absolute (can't be DOS-style, as IFS=:) |
22239 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22240 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22241 | { (exit 1); exit 1; }; } | |
35996d22 | 22242 | echo "$f";; |
503d2be0 | 22243 | *) # Relative |
35996d22 AS |
22244 | if test -f "$f"; then |
22245 | # Build tree | |
22246 | echo "$f" | |
22247 | elif test -f "$srcdir/$f"; then | |
22248 | # Source tree | |
22249 | echo "$srcdir/$f" | |
22250 | else | |
22251 | # /dev/null tree | |
22252 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22253 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22254 | { (exit 1); exit 1; }; } | |
35996d22 | 22255 | fi;; |
503d2be0 AS |
22256 | esac |
22257 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
22258 | _ACEOF |
22259 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
22260 | sed "$ac_vpsub |
22261 | $extrasub | |
c0d27fcc MR |
22262 | _ACEOF |
22263 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22264 | :t |
22265 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22266 | s,@configure_input@,$configure_input,;t t | |
22267 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 22268 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 22269 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
22270 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
22271 | s,@builddir@,$ac_builddir,;t t | |
22272 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22273 | s,@top_builddir@,$ac_top_builddir,;t t | |
22274 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
22275 | s,@INSTALL@,$ac_INSTALL,;t t |
22276 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22277 | rm -f $tmp/stdin | |
22278 | if test x"$ac_file" != x-; then | |
22279 | mv $tmp/out $ac_file | |
22280 | else | |
22281 | cat $tmp/out | |
22282 | rm -f $tmp/out | |
22283 | fi | |
22284 | ||
22285 | done | |
c0d27fcc MR |
22286 | _ACEOF |
22287 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 22288 | |
503d2be0 AS |
22289 | # |
22290 | # CONFIG_HEADER section. | |
22291 | # | |
ba4481b5 DL |
22292 | |
22293 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22294 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22295 | # | |
22296 | # ac_d sets the value in "#define NAME VALUE" lines. | |
35996d22 AS |
22297 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22298 | ac_dB='[ ].*$,\1#\2' | |
503d2be0 AS |
22299 | ac_dC=' ' |
22300 | ac_dD=',;t' | |
22301 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35996d22 | 22302 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
503d2be0 | 22303 | ac_uB='$,\1#\2define\3' |
ba4481b5 | 22304 | ac_uC=' ' |
503d2be0 | 22305 | ac_uD=',;t' |
ba4481b5 | 22306 | |
503d2be0 | 22307 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 22308 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22309 | case $ac_file in |
22310 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22311 | cat >$tmp/stdin |
22312 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22313 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22314 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22315 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22316 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22317 | esac |
22318 | ||
c0d27fcc | 22319 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22320 | echo "$as_me: creating $ac_file" >&6;} |
22321 | ||
22322 | # First look for the input files in the build tree, otherwise in the | |
22323 | # src tree. | |
22324 | ac_file_inputs=`IFS=: | |
22325 | for f in $ac_file_in; do | |
22326 | case $f in | |
22327 | -) echo $tmp/stdin ;; | |
22328 | [\\/$]*) | |
35996d22 AS |
22329 | # Absolute (can't be DOS-style, as IFS=:) |
22330 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22331 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22332 | { (exit 1); exit 1; }; } | |
35996d22 AS |
22333 | # Do quote $f, to prevent DOS paths from being IFS'd. |
22334 | echo "$f";; | |
503d2be0 | 22335 | *) # Relative |
35996d22 AS |
22336 | if test -f "$f"; then |
22337 | # Build tree | |
22338 | echo "$f" | |
22339 | elif test -f "$srcdir/$f"; then | |
22340 | # Source tree | |
22341 | echo "$srcdir/$f" | |
22342 | else | |
22343 | # /dev/null tree | |
22344 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22345 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22346 | { (exit 1); exit 1; }; } | |
35996d22 | 22347 | fi;; |
503d2be0 AS |
22348 | esac |
22349 | done` || { (exit 1); exit 1; } | |
22350 | # Remove the trailing spaces. | |
35996d22 | 22351 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
503d2be0 | 22352 | |
c0d27fcc | 22353 | _ACEOF |
503d2be0 AS |
22354 | |
22355 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22356 | # `conftest.undefs', that substitutes the proper values into | |
22357 | # config.h.in to produce config.h. The first handles `#define' | |
22358 | # templates, and the second `#undef' templates. | |
22359 | # And first: Protect against being on the right side of a sed subst in | |
22360 | # config.status. Protect against being in an unquoted here document | |
22361 | # in config.status. | |
22362 | rm -f conftest.defines conftest.undefs | |
22363 | # Using a here document instead of a string reduces the quoting nightmare. | |
22364 | # Putting comments in sed scripts is not portable. | |
22365 | # | |
22366 | # `end' is used to avoid that the second main sed command (meant for | |
22367 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22368 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 22369 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
22370 | s/[\\&,]/\\&/g |
22371 | s,[\\$`],\\&,g | |
22372 | t clear | |
22373 | : clear | |
35996d22 | 22374 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 | 22375 | t end |
35996d22 | 22376 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
503d2be0 | 22377 | : end |
c0d27fcc | 22378 | _ACEOF |
503d2be0 AS |
22379 | # If some macros were called several times there might be several times |
22380 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22381 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22382 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22383 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22384 | rm -f confdef2sed.sed | |
ba4481b5 DL |
22385 | |
22386 | # This sed command replaces #undef with comments. This is necessary, for | |
22387 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22388 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 22389 | cat >>conftest.undefs <<\_ACEOF |
35996d22 | 22390 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 22391 | _ACEOF |
ba4481b5 | 22392 | |
503d2be0 AS |
22393 | # Break up conftest.defines because some shells have a limit on the size |
22394 | # of here documents, and old seds have small limits too (100 cmds). | |
22395 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35996d22 | 22396 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
22397 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
22398 | echo ' :' >>$CONFIG_STATUS | |
22399 | rm -f conftest.tail | |
22400 | while grep . conftest.defines >/dev/null | |
22401 | do | |
22402 | # Write a limited-size here document to $tmp/defines.sed. | |
22403 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22404 | # Speed up: don't consider the non `#define' lines. | |
35996d22 | 22405 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22406 | # Work around the forget-to-reset-the-flag bug. |
22407 | echo 't clr' >>$CONFIG_STATUS | |
22408 | echo ': clr' >>$CONFIG_STATUS | |
22409 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22410 | echo 'CEOF | |
22411 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22412 | rm -f $tmp/in | |
22413 | mv $tmp/out $tmp/in | |
22414 | ' >>$CONFIG_STATUS | |
22415 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22416 | rm -f conftest.defines | |
22417 | mv conftest.tail conftest.defines | |
22418 | done | |
22419 | rm -f conftest.defines | |
6bae0ccf | 22420 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 22421 | echo >>$CONFIG_STATUS |
ba4481b5 | 22422 | |
503d2be0 AS |
22423 | # Break up conftest.undefs because some shells have a limit on the size |
22424 | # of here documents, and old seds have small limits too (100 cmds). | |
22425 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 22426 | rm -f conftest.tail |
503d2be0 | 22427 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 22428 | do |
503d2be0 AS |
22429 | # Write a limited-size here document to $tmp/undefs.sed. |
22430 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22431 | # Speed up: don't consider the non `#undef' | |
35996d22 | 22432 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22433 | # Work around the forget-to-reset-the-flag bug. |
22434 | echo 't clr' >>$CONFIG_STATUS | |
22435 | echo ': clr' >>$CONFIG_STATUS | |
22436 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 22437 | echo 'CEOF |
503d2be0 AS |
22438 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22439 | rm -f $tmp/in | |
22440 | mv $tmp/out $tmp/in | |
22441 | ' >>$CONFIG_STATUS | |
22442 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22443 | rm -f conftest.undefs | |
22444 | mv conftest.tail conftest.undefs | |
ba4481b5 | 22445 | done |
503d2be0 AS |
22446 | rm -f conftest.undefs |
22447 | ||
c0d27fcc | 22448 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22449 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22450 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 22451 | # /* config.h. Generated by config.status. */ |
503d2be0 | 22452 | if test x"$ac_file" = x-; then |
c0d27fcc | 22453 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 22454 | else |
c0d27fcc | 22455 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
22456 | fi |
22457 | cat $tmp/in >>$tmp/config.h | |
22458 | rm -f $tmp/in | |
22459 | if test x"$ac_file" != x-; then | |
19650fd6 | 22460 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 22461 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
22462 | echo "$as_me: $ac_file is unchanged" >&6;} |
22463 | else | |
c0d27fcc MR |
22464 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22465 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22466 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22467 | X"$ac_file" : 'X\(//\)$' \| \ | |
22468 | X"$ac_file" : 'X\(/\)' \| \ | |
22469 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22470 | echo X"$ac_file" | |
22471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22473 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22474 | /^X\(\/\).*/{ s//\1/; q; } | |
22475 | s/.*/./; q'` | |
6bae0ccf DL |
22476 | { if $as_mkdir_p; then |
22477 | mkdir -p "$ac_dir" | |
22478 | else | |
22479 | as_dir="$ac_dir" | |
22480 | as_dirs= | |
22481 | while test ! -d "$as_dir"; do | |
22482 | as_dirs="$as_dir $as_dirs" | |
22483 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22485 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22486 | X"$as_dir" : 'X\(//\)$' \| \ | |
22487 | X"$as_dir" : 'X\(/\)' \| \ | |
22488 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22489 | echo X"$as_dir" | |
22490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22491 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22492 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22493 | /^X\(\/\).*/{ s//\1/; q; } | |
22494 | s/.*/./; q'` | |
22495 | done | |
22496 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22497 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22498 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22499 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22500 | |
503d2be0 AS |
22501 | rm -f $ac_file |
22502 | mv $tmp/config.h $ac_file | |
ba4481b5 | 22503 | fi |
503d2be0 AS |
22504 | else |
22505 | cat $tmp/config.h | |
22506 | rm -f $tmp/config.h | |
ba4481b5 | 22507 | fi |
503d2be0 | 22508 | done |
c0d27fcc MR |
22509 | _ACEOF |
22510 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22511 | |
22512 | # | |
22513 | # CONFIG_COMMANDS section. | |
22514 | # | |
22515 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22516 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22517 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
22518 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
22519 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22520 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
22521 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22522 | X"$ac_dest" : 'X\(/\)' \| \ | |
22523 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
22524 | echo X"$ac_dest" | |
22525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22526 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22527 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22528 | /^X\(\/\).*/{ s//\1/; q; } | |
22529 | s/.*/./; q'` | |
35996d22 AS |
22530 | { if $as_mkdir_p; then |
22531 | mkdir -p "$ac_dir" | |
22532 | else | |
22533 | as_dir="$ac_dir" | |
22534 | as_dirs= | |
22535 | while test ! -d "$as_dir"; do | |
22536 | as_dirs="$as_dir $as_dirs" | |
22537 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22538 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22539 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22540 | X"$as_dir" : 'X\(//\)$' \| \ | |
22541 | X"$as_dir" : 'X\(/\)' \| \ | |
22542 | . : '\(.\)' 2>/dev/null || | |
22543 | echo X"$as_dir" | | |
22544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22545 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22546 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22547 | /^X\(\/\).*/{ s//\1/; q; } | |
22548 | s/.*/./; q'` | |
22549 | done | |
22550 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22551 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22552 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22553 | { (exit 1); exit 1; }; }; } | |
22554 | ||
c0d27fcc MR |
22555 | ac_builddir=. |
22556 | ||
22557 | if test "$ac_dir" != .; then | |
22558 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22559 | # A "../" for each directory in $ac_dir_suffix. | |
22560 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22561 | else | |
22562 | ac_dir_suffix= ac_top_builddir= | |
22563 | fi | |
22564 | ||
22565 | case $srcdir in | |
22566 | .) # No --srcdir option. We are building in place. | |
22567 | ac_srcdir=. | |
22568 | if test -z "$ac_top_builddir"; then | |
22569 | ac_top_srcdir=. | |
22570 | else | |
22571 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22572 | fi ;; | |
22573 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22574 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22575 | ac_top_srcdir=$srcdir ;; | |
22576 | *) # Relative path. | |
22577 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22578 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22579 | esac | |
35996d22 AS |
22580 | |
22581 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22582 | # the directories may not exist. | |
22583 | case `pwd` in | |
22584 | .) ac_abs_builddir="$ac_dir";; | |
22585 | *) | |
22586 | case "$ac_dir" in | |
22587 | .) ac_abs_builddir=`pwd`;; | |
22588 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22589 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22590 | esac;; | |
22591 | esac | |
22592 | case $ac_abs_builddir in | |
22593 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22594 | *) | |
22595 | case ${ac_top_builddir}. in | |
22596 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22597 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22598 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22599 | esac;; | |
22600 | esac | |
22601 | case $ac_abs_builddir in | |
22602 | .) ac_abs_srcdir=$ac_srcdir;; | |
22603 | *) | |
22604 | case $ac_srcdir in | |
22605 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22606 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22607 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22608 | esac;; | |
22609 | esac | |
22610 | case $ac_abs_builddir in | |
22611 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22612 | *) | |
22613 | case $ac_top_srcdir in | |
22614 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22615 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22616 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22617 | esac;; | |
22618 | esac | |
ba4481b5 | 22619 | |
c0d27fcc MR |
22620 | |
22621 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22622 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
22623 | case $ac_dest in |
22624 | default ) | |
ba4481b5 DL |
22625 | |
22626 | ### Make the necessary directories, if they don't exist. | |
22627 | for dir in etc lisp ; do | |
22628 | test -d ${dir} || mkdir ${dir} | |
22629 | done | |
22630 | ||
22631 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
22632 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
22633 | # This must be done after src/config.h is built, since we rely on that file. | |
22634 | ||
22635 | # Now get this: Some word that is part of the ${srcdir} directory name | |
22636 | # or the ${configuration} value might, just might, happen to be an | |
22637 | # identifier like `sun4' or `i386' or something, and be predefined by | |
22638 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
22639 | # string. Needless to say consequent macro substitutions are less | |
22640 | # than conducive to the makefile finding the correct directory. | |
22641 | undefs="`echo $top_srcdir $configuration $canonical | | |
22642 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
22643 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
22644 | `" | |
22645 | ||
22646 | echo creating src/epaths.h | |
4aa6b955 | 22647 | ${MAKE-make} epaths-force |
ba4481b5 | 22648 | |
1c203d4c DL |
22649 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
22650 | # `..' to `. .' unless invoked with -traditional | |
22651 | ||
d0e9bfd2 | 22652 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
22653 | CPPFLAGS="$CPPFLAGS -traditional" |
22654 | fi | |
22655 | ||
ba4481b5 DL |
22656 | echo creating lib-src/Makefile |
22657 | ( cd lib-src | |
22658 | rm -f junk.c junk1.c junk2.c | |
22659 | sed -e '/start of cpp stuff/q' \ | |
22660 | < Makefile.c > junk1.c | |
22661 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22662 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22663 | < Makefile.c > junk.c |
503d2be0 | 22664 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22665 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22666 | cat junk1.c junk2.c > Makefile.new | |
22667 | rm -f junk.c junk1.c junk2.c | |
22668 | chmod 444 Makefile.new | |
22669 | mv -f Makefile.new Makefile | |
22670 | ) | |
22671 | ||
22672 | echo creating src/Makefile | |
22673 | ( cd src | |
22674 | rm -f junk.c junk1.c junk2.c | |
22675 | sed -e '/start of cpp stuff/q' \ | |
22676 | < Makefile.c > junk1.c | |
22677 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22678 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22679 | < Makefile.c > junk.c |
503d2be0 | 22680 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22681 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22682 | cat junk1.c junk2.c > Makefile.new | |
22683 | rm -f junk.c junk1.c junk2.c | |
22684 | chmod 444 Makefile.new | |
22685 | mv -f Makefile.new Makefile | |
22686 | ) | |
22687 | ||
503d2be0 | 22688 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 22689 | echo creating src/.gdbinit |
503d2be0 | 22690 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
22691 | fi |
22692 | ||
22693 | # This is how we know whether to re-run configure in certain cases. | |
22694 | touch src/config.stamp | |
22695 | ||
503d2be0 AS |
22696 | ;; |
22697 | esac | |
22698 | done | |
c0d27fcc | 22699 | _ACEOF |
503d2be0 | 22700 | |
c0d27fcc | 22701 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 22702 | |
503d2be0 | 22703 | { (exit 0); exit 0; } |
c0d27fcc | 22704 | _ACEOF |
ba4481b5 | 22705 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
22706 | ac_clean_files=$ac_clean_files_save |
22707 | ||
c0d27fcc | 22708 | |
503d2be0 AS |
22709 | # configure is writing to config.log, and then calls config.status. |
22710 | # config.status does its own redirection, appending to config.log. | |
22711 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22712 | # by configure, so config.status won't be able to write to it; its | |
22713 | # output is simply discarded. So we exec the FD to /dev/null, | |
22714 | # effectively closing config.log, so it can be properly (re)opened and | |
22715 | # appended to by config.status. When coming back to configure, we | |
22716 | # need to make the FD available again. | |
22717 | if test "$no_create" != yes; then | |
22718 | ac_cs_success=: | |
19650fd6 AS |
22719 | ac_config_status_args= |
22720 | test "$silent" = yes && | |
22721 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 22722 | exec 5>/dev/null |
19650fd6 | 22723 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
22724 | exec 5>>config.log |
22725 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22726 | # would make configure fail if this is the last instruction. | |
22727 | $ac_cs_success || { (exit 1); exit 1; } | |
22728 | fi | |
f5f47add | 22729 | |
c0d27fcc | 22730 |