Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
9e71690e | 3 | # Generated by GNU Autoconf 2.57. |
ba4481b5 | 4 | # |
c0d27fcc | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
503d2be0 | 6 | # Free Software Foundation, Inc. |
ba4481b5 DL |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
503d2be0 AS |
12 | |
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
6bae0ccf DL |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 | set -o posix | |
22 | fi | |
23 | ||
c0d27fcc MR |
24 | # Support unset when possible. |
25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
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. | |
cd958eb3 MB |
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 DL |
43 | do |
44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
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 | |
cd958eb3 MB |
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 | |
cd958eb3 | 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 | |
221 | as_mkdir_p=false | |
222 | fi | |
223 | ||
503d2be0 AS |
224 | as_executable_p="test -f" |
225 | ||
c0d27fcc MR |
226 | # Sed expression to map a string onto a valid CPP name. |
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
228 | ||
229 | # Sed expression to map a string onto a valid variable name. | |
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
503d2be0 | 231 | |
503d2be0 AS |
232 | |
233 | # IFS | |
234 | # We need space, tab and new line, in precisely that order. | |
235 | as_nl=' | |
236 | ' | |
237 | IFS=" $as_nl" | |
238 | ||
239 | # CDPATH. | |
6bae0ccf | 240 | $as_unset CDPATH |
c0d27fcc | 241 | |
503d2be0 AS |
242 | |
243 | # Name of the host. | |
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
245 | # so uname gets run too. | |
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
247 | ||
248 | exec 6>&1 | |
249 | ||
250 | # | |
251 | # Initializations. | |
252 | # | |
ba4481b5 | 253 | ac_default_prefix=/usr/local |
6bae0ccf | 254 | ac_config_libobj_dir=. |
503d2be0 AS |
255 | cross_compiling=no |
256 | subdirs= | |
c0d27fcc MR |
257 | MFLAGS= |
258 | MAKEFLAGS= | |
503d2be0 AS |
259 | SHELL=${CONFIG_SHELL-/bin/sh} |
260 | ||
261 | # Maximum number of lines to put in a shell here document. | |
262 | # This variable seems obsolete. It should probably be removed, and | |
263 | # only ac_max_sed_lines should be used. | |
264 | : ${ac_max_here_lines=38} | |
265 | ||
c0d27fcc MR |
266 | # Identity of this package. |
267 | PACKAGE_NAME= | |
268 | PACKAGE_TARNAME= | |
269 | PACKAGE_VERSION= | |
270 | PACKAGE_STRING= | |
271 | PACKAGE_BUGREPORT= | |
272 | ||
503d2be0 | 273 | ac_unique_file="src/lisp.h" |
6bae0ccf | 274 | ac_config_libobj_dir=src |
503d2be0 AS |
275 | # Factoring default headers for most tests. |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
ba4481b5 | 311 | |
488dd4c4 | 312 | 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 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 | 313 | ac_subst_files='' |
c0d27fcc | 314 | |
ba4481b5 | 315 | # Initialize some variables set by options. |
503d2be0 AS |
316 | ac_init_help= |
317 | ac_init_version=false | |
ba4481b5 DL |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
503d2be0 | 320 | cache_file=/dev/null |
ba4481b5 | 321 | exec_prefix=NONE |
ba4481b5 | 322 | no_create= |
ba4481b5 DL |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
ba4481b5 DL |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
503d2be0 AS |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ba4481b5 DL |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
ba4481b5 DL |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
ba4481b5 DL |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
503d2be0 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
503d2be0 | 367 | case $ac_option in |
ba4481b5 DL |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 372 | bindir=$ac_optarg ;; |
ba4481b5 DL |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 375 | ac_prev=build_alias ;; |
ba4481b5 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 377 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
ba4481b5 DL |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
503d2be0 | 393 | datadir=$ac_optarg ;; |
ba4481b5 DL |
394 | |
395 | -disable-* | --disable-*) | |
503d2be0 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 397 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
403 | |
404 | -enable-* | --enable-*) | |
503d2be0 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 406 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
413 | *) ac_optarg=yes ;; |
414 | esac | |
503d2be0 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 424 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
503d2be0 AS |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
ba4481b5 DL |
436 | |
437 | -host | --host | --hos | --ho) | |
503d2be0 | 438 | ac_prev=host_alias ;; |
ba4481b5 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 440 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 447 | includedir=$ac_optarg ;; |
ba4481b5 DL |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 452 | infodir=$ac_optarg ;; |
ba4481b5 DL |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 457 | libdir=$ac_optarg ;; |
ba4481b5 DL |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 464 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 473 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 478 | mandir=$ac_optarg ;; |
ba4481b5 DL |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 485 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 499 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 504 | prefix=$ac_optarg ;; |
ba4481b5 DL |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 511 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 518 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 535 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
503d2be0 | 545 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
503d2be0 | 556 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
503d2be0 | 561 | site=$ac_optarg ;; |
ba4481b5 DL |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 566 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 573 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 576 | ac_prev=target_alias ;; |
ba4481b5 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 578 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
503d2be0 AS |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
ba4481b5 DL |
585 | |
586 | -with-* | --with-*) | |
503d2be0 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 588 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
ba4481b5 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
595 | *) ac_optarg=yes ;; |
596 | esac | |
503d2be0 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
598 | |
599 | -without-* | --without-*) | |
503d2be0 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 601 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 617 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 624 | x_libraries=$ac_optarg ;; |
ba4481b5 | 625 | |
503d2be0 AS |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
629 | ;; |
630 | ||
503d2be0 AS |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
ba4481b5 | 641 | *) |
503d2be0 AS |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
503d2be0 AS |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
ba4481b5 | 656 | fi |
ba4481b5 | 657 | |
503d2be0 AS |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
c0d27fcc | 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
665 | { (exit 1); exit 1; }; };; |
666 | esac | |
667 | done | |
ba4481b5 | 668 | |
503d2be0 AS |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
ba4481b5 | 672 | do |
503d2be0 AS |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
c0d27fcc | 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 | 677 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
678 | esac |
679 | done | |
680 | ||
503d2be0 AS |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
c0d27fcc | 683 | # FIXME: To remove some day. |
503d2be0 AS |
684 | build=$build_alias |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
c0d27fcc | 688 | # FIXME: To remove some day. |
503d2be0 AS |
689 | if test "x$host_alias" != x; then |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
ba4481b5 | 698 | |
503d2be0 AS |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 701 | |
503d2be0 | 702 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 703 | |
c0d27fcc | 704 | |
ba4481b5 DL |
705 | # Find the source files, if location was not specified. |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
c0d27fcc MR |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
ba4481b5 DL |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
c0d27fcc | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
503d2be0 | 731 | { (exit 1); exit 1; }; } |
ba4481b5 | 732 | else |
c0d27fcc | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
503d2be0 | 734 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
735 | fi |
736 | fi | |
6bae0ccf DL |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 780 | cat <<_ACEOF |
503d2be0 AS |
781 | \`configure' configures this package to adapt to many kinds of systems. |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
c0d27fcc | 801 | _ACEOF |
503d2be0 | 802 | |
c0d27fcc | 803 | cat <<_ACEOF |
503d2be0 AS |
804 | Installation directories: |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
809 | ||
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
c0d27fcc | 830 | _ACEOF |
503d2be0 | 831 | |
c0d27fcc | 832 | cat <<\_ACEOF |
503d2be0 | 833 | |
ba5da88a PJ |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | ||
503d2be0 AS |
839 | X features: |
840 | --x-includes=DIR X include files are in DIR | |
841 | --x-libraries=DIR X library files are in DIR | |
842 | ||
843 | System types: | |
844 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
845 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
846 | _ACEOF | |
503d2be0 AS |
847 | fi |
848 | ||
849 | if test -n "$ac_init_help"; then | |
850 | ||
c0d27fcc | 851 | cat <<\_ACEOF |
503d2be0 AS |
852 | |
853 | Optional Features: | |
854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
856 | --enable-carbon-app[=DIR] [DIR=/Application] |
857 | specify install directory for Emacs.app on Mac OS X | |
503d2be0 AS |
858 | --disable-largefile omit support for large files |
859 | ||
860 | Optional Packages: | |
861 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
862 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
863 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
864 | --without-pop don't support POP mail retrieval with movemail | |
865 | --with-kerberos support Kerberos-authenticated POP | |
866 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
867 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 868 | --without-sound don't compile with sound support |
488dd4c4 JD |
869 | --with-x-toolkit=KIT use an X toolkit |
870 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
871 | --with-xpm use -lXpm for displaying XPM images |
872 | --with-jpeg use -ljpeg for displaying JPEG images | |
873 | --with-tiff use -ltiff for displaying TIFF images | |
874 | --with-gif use -lungif for displaying GIF images | |
875 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
876 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
877 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 878 | --without-toolkit-scroll-bars |
cc227489 MB |
879 | don't use Motif or Xaw3d scroll bars |
880 | --without-xim don't use X11 XIM | |
e0f712ba | 881 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
882 | --with-x use the X Window System |
883 | ||
884 | Some influential environment variables: | |
885 | CC C compiler command | |
886 | CFLAGS C compiler flags | |
887 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
888 | nonstandard directory <lib dir> | |
889 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
890 | headers in a nonstandard directory <include dir> | |
891 | CPP C preprocessor | |
892 | ||
893 | Use these variables to override the choices made by `configure' or to help | |
894 | it to find libraries and programs with nonstandard names/locations. | |
895 | ||
c0d27fcc | 896 | _ACEOF |
503d2be0 AS |
897 | fi |
898 | ||
899 | if test "$ac_init_help" = "recursive"; then | |
900 | # If there are subdirs, report their specific --help. | |
901 | ac_popdir=`pwd` | |
c0d27fcc MR |
902 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
903 | test -d $ac_dir || continue | |
904 | ac_builddir=. | |
905 | ||
906 | if test "$ac_dir" != .; then | |
907 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
908 | # A "../" for each directory in $ac_dir_suffix. | |
909 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
910 | else | |
911 | ac_dir_suffix= ac_top_builddir= | |
912 | fi | |
503d2be0 | 913 | |
c0d27fcc MR |
914 | case $srcdir in |
915 | .) # No --srcdir option. We are building in place. | |
916 | ac_srcdir=. | |
917 | if test -z "$ac_top_builddir"; then | |
918 | ac_top_srcdir=. | |
919 | else | |
920 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
921 | fi ;; | |
922 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
923 | ac_srcdir=$srcdir$ac_dir_suffix; | |
924 | ac_top_srcdir=$srcdir ;; | |
925 | *) # Relative path. | |
926 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
927 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
928 | esac | |
929 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
930 | # absolute. | |
931 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 932 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
933 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
934 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
935 | ||
936 | cd $ac_dir | |
503d2be0 | 937 | # Check for guested configure; otherwise get Cygnus style configure. |
c0d27fcc | 938 | if test -f $ac_srcdir/configure.gnu; then |
503d2be0 | 939 | echo |
c0d27fcc MR |
940 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
941 | elif test -f $ac_srcdir/configure; then | |
503d2be0 | 942 | echo |
c0d27fcc MR |
943 | $SHELL $ac_srcdir/configure --help=recursive |
944 | elif test -f $ac_srcdir/configure.ac || | |
945 | test -f $ac_srcdir/configure.in; then | |
503d2be0 AS |
946 | echo |
947 | $ac_configure --help | |
948 | else | |
c0d27fcc | 949 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
503d2be0 AS |
950 | fi |
951 | cd $ac_popdir | |
952 | done | |
953 | fi | |
954 | ||
955 | test -n "$ac_init_help" && exit 0 | |
956 | if $ac_init_version; then | |
c0d27fcc | 957 | cat <<\_ACEOF |
503d2be0 | 958 | |
c0d27fcc | 959 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
503d2be0 AS |
960 | Free Software Foundation, Inc. |
961 | This configure script is free software; the Free Software Foundation | |
962 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 963 | _ACEOF |
503d2be0 AS |
964 | exit 0 |
965 | fi | |
966 | exec 5>config.log | |
c0d27fcc | 967 | cat >&5 <<_ACEOF |
503d2be0 AS |
968 | This file contains any messages produced by compilers while |
969 | running configure, to aid debugging if configure makes a mistake. | |
970 | ||
971 | It was created by $as_me, which was | |
9e71690e | 972 | generated by GNU Autoconf 2.57. Invocation command line was |
503d2be0 AS |
973 | |
974 | $ $0 $@ | |
975 | ||
c0d27fcc | 976 | _ACEOF |
503d2be0 AS |
977 | { |
978 | cat <<_ASUNAME | |
c0d27fcc MR |
979 | ## --------- ## |
980 | ## Platform. ## | |
981 | ## --------- ## | |
503d2be0 AS |
982 | |
983 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
984 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
985 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
986 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
987 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
988 | ||
989 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
990 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
991 | ||
992 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
993 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
994 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
995 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
996 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
997 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
998 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
999 | ||
925c2f3f | 1000 | _ASUNAME |
c0d27fcc MR |
1001 | |
1002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1003 | for as_dir in $PATH | |
1004 | do | |
1005 | IFS=$as_save_IFS | |
1006 | test -z "$as_dir" && as_dir=. | |
1007 | echo "PATH: $as_dir" | |
1008 | done | |
1009 | ||
503d2be0 AS |
1010 | } >&5 |
1011 | ||
c0d27fcc MR |
1012 | cat >&5 <<_ACEOF |
1013 | ||
1014 | ||
1015 | ## ----------- ## | |
1016 | ## Core tests. ## | |
1017 | ## ----------- ## | |
1018 | ||
1019 | _ACEOF | |
503d2be0 | 1020 | |
503d2be0 AS |
1021 | |
1022 | # Keep a trace of the command line. | |
1023 | # Strip out --no-create and --no-recursion so they do not pile up. | |
cd958eb3 | 1024 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1025 | # Also quote any args containing shell meta-characters. |
cd958eb3 | 1026 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1027 | ac_configure_args= |
cd958eb3 MB |
1028 | ac_configure_args0= |
1029 | ac_configure_args1= | |
503d2be0 | 1030 | ac_sep= |
cd958eb3 MB |
1031 | ac_must_keep_next=false |
1032 | for ac_pass in 1 2 | |
503d2be0 | 1033 | do |
cd958eb3 MB |
1034 | for ac_arg |
1035 | do | |
1036 | case $ac_arg in | |
1037 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1038 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1039 | | -silent | --silent | --silen | --sile | --sil) | |
1040 | continue ;; | |
1041 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1042 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1043 | esac | |
1044 | case $ac_pass in | |
1045 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1046 | 2) | |
1047 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1048 | if test $ac_must_keep_next = true; then | |
1049 | ac_must_keep_next=false # Got value, back to normal. | |
1050 | else | |
1051 | case $ac_arg in | |
1052 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1053 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1054 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1055 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1056 | case "$ac_configure_args0 " in | |
1057 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1058 | esac | |
1059 | ;; | |
1060 | -* ) ac_must_keep_next=true ;; | |
1061 | esac | |
1062 | fi | |
1063 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1064 | # Get rid of the leading space. | |
1065 | ac_sep=" " | |
1066 | ;; | |
1067 | esac | |
1068 | done | |
503d2be0 | 1069 | done |
cd958eb3 MB |
1070 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1071 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1072 | |
1073 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1074 | # config.log. We remove comments because anyway the quotes in there | |
1075 | # would cause problems or look ugly. | |
c0d27fcc MR |
1076 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1077 | # such as our DU 5.0 friend, will then `close' the trap. | |
503d2be0 AS |
1078 | trap 'exit_status=$? |
1079 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1080 | { |
1081 | echo | |
6bae0ccf | 1082 | |
c0d27fcc MR |
1083 | cat <<\_ASBOX |
1084 | ## ---------------- ## | |
1085 | ## Cache variables. ## | |
1086 | ## ---------------- ## | |
1087 | _ASBOX | |
1088 | echo | |
1089 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
1090 | { |
1091 | (set) 2>&1 | | |
1092 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1093 | *ac_space=\ *) | |
1094 | sed -n \ | |
1095 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1097 | ;; | |
1098 | *) | |
1099 | sed -n \ | |
1100 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1101 | ;; | |
1102 | esac; | |
c0d27fcc MR |
1103 | } |
1104 | echo | |
6bae0ccf DL |
1105 | |
1106 | cat <<\_ASBOX | |
1107 | ## ----------------- ## | |
1108 | ## Output variables. ## | |
1109 | ## ----------------- ## | |
1110 | _ASBOX | |
1111 | echo | |
1112 | for ac_var in $ac_subst_vars | |
1113 | do | |
1114 | eval ac_val=$`echo $ac_var` | |
1115 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1116 | done | sort | |
1117 | echo | |
1118 | ||
1119 | if test -n "$ac_subst_files"; then | |
1120 | cat <<\_ASBOX | |
1121 | ## ------------- ## | |
1122 | ## Output files. ## | |
1123 | ## ------------- ## | |
1124 | _ASBOX | |
1125 | echo | |
1126 | for ac_var in $ac_subst_files | |
1127 | do | |
1128 | eval ac_val=$`echo $ac_var` | |
1129 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1130 | done | sort | |
1131 | echo | |
1132 | fi | |
1133 | ||
c0d27fcc MR |
1134 | if test -s confdefs.h; then |
1135 | cat <<\_ASBOX | |
1136 | ## ----------- ## | |
1137 | ## confdefs.h. ## | |
1138 | ## ----------- ## | |
1139 | _ASBOX | |
1140 | echo | |
6bae0ccf | 1141 | sed "/^$/d" confdefs.h | sort |
c0d27fcc MR |
1142 | echo |
1143 | fi | |
1144 | test "$ac_signal" != 0 && | |
1145 | echo "$as_me: caught signal $ac_signal" | |
1146 | echo "$as_me: exit $exit_status" | |
1147 | } >&5 | |
1148 | rm -f core core.* *.core && | |
1149 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 AS |
1150 | exit $exit_status |
1151 | ' 0 | |
1152 | for ac_signal in 1 2 13 15; do | |
1153 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1154 | done | |
1155 | ac_signal=0 | |
1156 | ||
1157 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1158 | rm -rf conftest* confdefs.h | |
1159 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1160 | echo >confdefs.h | |
ba4481b5 | 1161 | |
c0d27fcc MR |
1162 | # Predefined preprocessor variables. |
1163 | ||
1164 | cat >>confdefs.h <<_ACEOF | |
1165 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1166 | _ACEOF | |
1167 | ||
1168 | ||
1169 | cat >>confdefs.h <<_ACEOF | |
1170 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1171 | _ACEOF | |
1172 | ||
1173 | ||
1174 | cat >>confdefs.h <<_ACEOF | |
1175 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1176 | _ACEOF | |
1177 | ||
1178 | ||
1179 | cat >>confdefs.h <<_ACEOF | |
1180 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1181 | _ACEOF | |
1182 | ||
1183 | ||
1184 | cat >>confdefs.h <<_ACEOF | |
1185 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1186 | _ACEOF | |
1187 | ||
1188 | ||
503d2be0 | 1189 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
1190 | # Prefer explicitly selected file to automatically selected ones. |
1191 | if test -z "$CONFIG_SITE"; then | |
1192 | if test "x$prefix" != xNONE; then | |
1193 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1194 | else | |
1195 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1196 | fi | |
1197 | fi | |
1198 | for ac_site_file in $CONFIG_SITE; do | |
1199 | if test -r "$ac_site_file"; then | |
c0d27fcc | 1200 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1201 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1202 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1203 | . "$ac_site_file" |
1204 | fi | |
1205 | done | |
1206 | ||
1207 | if test -r "$cache_file"; then | |
503d2be0 AS |
1208 | # Some versions of bash will fail to source /dev/null (special |
1209 | # files actually), so we avoid doing that. | |
1210 | if test -f "$cache_file"; then | |
c0d27fcc | 1211 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1212 | echo "$as_me: loading cache $cache_file" >&6;} |
1213 | case $cache_file in | |
1214 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1215 | *) . ./$cache_file;; | |
1216 | esac | |
1217 | fi | |
ba4481b5 | 1218 | else |
c0d27fcc | 1219 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1220 | echo "$as_me: creating cache $cache_file" >&6;} |
1221 | >$cache_file | |
1222 | fi | |
1223 | ||
1224 | # Check that the precious variables saved in the cache have kept the same | |
1225 | # value. | |
1226 | ac_cache_corrupted=false | |
1227 | for ac_var in `(set) 2>&1 | | |
1228 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1229 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1230 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1231 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1232 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1233 | case $ac_old_set,$ac_new_set in | |
1234 | set,) | |
c0d27fcc | 1235 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1236 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1237 | ac_cache_corrupted=: ;; | |
1238 | ,set) | |
c0d27fcc | 1239 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1240 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1241 | ac_cache_corrupted=: ;; | |
1242 | ,);; | |
1243 | *) | |
1244 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
c0d27fcc | 1245 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1246 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
c0d27fcc | 1247 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1248 | echo "$as_me: former value: $ac_old_val" >&2;} |
c0d27fcc | 1249 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 AS |
1250 | echo "$as_me: current value: $ac_new_val" >&2;} |
1251 | ac_cache_corrupted=: | |
1252 | fi;; | |
1253 | esac | |
c0d27fcc | 1254 | # Pass precious variables to config.status. |
503d2be0 AS |
1255 | if test "$ac_new_set" = set; then |
1256 | case $ac_new_val in | |
1257 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
c0d27fcc MR |
1258 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1259 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1260 | esac | |
1261 | case " $ac_configure_args " in | |
1262 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1263 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1264 | esac |
1265 | fi | |
1266 | done | |
1267 | if $ac_cache_corrupted; then | |
c0d27fcc | 1268 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1269 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1270 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1271 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1272 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1273 | fi |
1274 | ||
1275 | ac_ext=c | |
ba4481b5 | 1276 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
1277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1280 | ||
c0d27fcc MR |
1281 | |
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
ba4481b5 | 1297 | |
6bae0ccf DL |
1298 | |
1299 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
ba4481b5 | 1300 | |
c0d27fcc | 1301 | |
ba5da88a PJ |
1302 | test "$program_prefix" != NONE && |
1303 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1304 | # Use a double $ so make ignores it. | |
1305 | test "$program_suffix" != NONE && | |
1306 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1307 | # Double any \ or $. echo might interpret backslashes. | |
1308 | # By default was `s,x,x', remove it if useless. | |
1309 | cat <<\_ACEOF >conftest.sed | |
1310 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1311 | _ACEOF | |
1312 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1313 | rm conftest.sed | |
1314 | ||
c0d27fcc | 1315 | |
ba4481b5 DL |
1316 | lispdir='${datadir}/emacs/${version}/lisp' |
1317 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1318 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1319 | lisppath='${locallisppath}:${lispdir}' | |
1320 | etcdir='${datadir}/emacs/${version}/etc' | |
1321 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1322 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1323 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1324 | |
1325 | gameuser=games | |
1326 | ||
c0d27fcc | 1327 | |
ba4481b5 DL |
1328 | # Check whether --with-gcc or --without-gcc was given. |
1329 | if test "${with_gcc+set}" = set; then | |
1330 | withval="$with_gcc" | |
503d2be0 AS |
1331 | |
1332 | fi; | |
ba4481b5 DL |
1333 | |
1334 | # Check whether --with-pop or --without-pop was given. | |
1335 | if test "${with_pop+set}" = set; then | |
1336 | withval="$with_pop" | |
243cf185 | 1337 | if test "$withval" = yes; then |
c0d27fcc | 1338 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1339 | #define MAIL_USE_POP 1 |
c0d27fcc | 1340 | _ACEOF |
ba4481b5 | 1341 | |
243cf185 DL |
1342 | else : |
1343 | fi | |
3d9fec71 | 1344 | else |
c0d27fcc | 1345 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1346 | #define MAIL_USE_POP 1 |
c0d27fcc | 1347 | _ACEOF |
3d9fec71 | 1348 | |
503d2be0 | 1349 | fi; |
ba4481b5 | 1350 | |
c0d27fcc | 1351 | |
a21616bd KR |
1352 | # Check whether --with-kerberos or --without-kerberos was given. |
1353 | if test "${with_kerberos+set}" = set; then | |
1354 | withval="$with_kerberos" | |
c0d27fcc | 1355 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1356 | #define KERBEROS 1 |
c0d27fcc | 1357 | _ACEOF |
a21616bd | 1358 | |
503d2be0 | 1359 | fi; |
a21616bd | 1360 | |
c0d27fcc | 1361 | |
a21616bd KR |
1362 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1363 | if test "${with_kerberos5+set}" = set; then | |
1364 | withval="$with_kerberos5" | |
1365 | if test "${with_kerberos5+set}" = set; then | |
1366 | if test "${with_kerberos+set}" != set; then | |
1367 | with_kerberos=yes | |
c0d27fcc | 1368 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1369 | #define KERBEROS 1 |
c0d27fcc | 1370 | _ACEOF |
a21616bd KR |
1371 | |
1372 | fi | |
1373 | fi | |
b936fae4 | 1374 | |
c0d27fcc | 1375 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1376 | #define KERBEROS5 1 |
c0d27fcc | 1377 | _ACEOF |
a21616bd | 1378 | |
503d2be0 | 1379 | fi; |
a21616bd | 1380 | |
ba4481b5 DL |
1381 | # Check whether --with-hesiod or --without-hesiod was given. |
1382 | if test "${with_hesiod+set}" = set; then | |
1383 | withval="$with_hesiod" | |
b936fae4 | 1384 | |
c0d27fcc | 1385 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1386 | #define HESIOD 1 |
c0d27fcc | 1387 | _ACEOF |
ba4481b5 | 1388 | |
503d2be0 | 1389 | fi; |
ba4481b5 | 1390 | |
c0d27fcc | 1391 | |
2c9dccc9 PJ |
1392 | # Check whether --with-sound or --without-sound was given. |
1393 | if test "${with_sound+set}" = set; then | |
1394 | withval="$with_sound" | |
1395 | ||
1396 | fi; | |
1397 | ||
c0d27fcc | 1398 | |
ba4481b5 DL |
1399 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1400 | if test "${with_x_toolkit+set}" = set; then | |
1401 | withval="$with_x_toolkit" | |
1402 | case "${withval}" in | |
1403 | y | ye | yes ) val=athena ;; | |
1404 | n | no ) val=no ;; | |
1405 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1406 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1407 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1408 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1409 | * ) |
c0d27fcc | 1410 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1411 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1412 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1413 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1414 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1415 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1416 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1417 | ;; |
1418 | esac | |
1419 | with_x_toolkit=$val | |
1420 | ||
503d2be0 | 1421 | fi; |
ba4481b5 DL |
1422 | |
1423 | # Check whether --with-xpm or --without-xpm was given. | |
1424 | if test "${with_xpm+set}" = set; then | |
1425 | withval="$with_xpm" | |
503d2be0 AS |
1426 | |
1427 | fi; | |
ba4481b5 DL |
1428 | |
1429 | # Check whether --with-jpeg or --without-jpeg was given. | |
1430 | if test "${with_jpeg+set}" = set; then | |
1431 | withval="$with_jpeg" | |
503d2be0 AS |
1432 | |
1433 | fi; | |
ba4481b5 DL |
1434 | |
1435 | # Check whether --with-tiff or --without-tiff was given. | |
1436 | if test "${with_tiff+set}" = set; then | |
1437 | withval="$with_tiff" | |
503d2be0 AS |
1438 | |
1439 | fi; | |
ba4481b5 DL |
1440 | |
1441 | # Check whether --with-gif or --without-gif was given. | |
1442 | if test "${with_gif+set}" = set; then | |
1443 | withval="$with_gif" | |
503d2be0 AS |
1444 | |
1445 | fi; | |
ba4481b5 DL |
1446 | |
1447 | # Check whether --with-png or --without-png was given. | |
1448 | if test "${with_png+set}" = set; then | |
1449 | withval="$with_png" | |
503d2be0 AS |
1450 | |
1451 | fi; | |
ba4481b5 | 1452 | |
488dd4c4 JD |
1453 | # Check whether --with-gtk or --without-gtk was given. |
1454 | if test "${with_gtk+set}" = set; then | |
1455 | withval="$with_gtk" | |
1456 | ||
1457 | fi; | |
1458 | ||
1459 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. | |
1460 | if test "${with_pkg_config_prog+set}" = set; then | |
1461 | withval="$with_pkg_config_prog" | |
1462 | ||
1463 | fi; | |
1464 | ||
ba4481b5 DL |
1465 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
1466 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1467 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1468 | |
1469 | fi; | |
ba4481b5 | 1470 | |
1d36487c GM |
1471 | # Check whether --with-xim or --without-xim was given. |
1472 | if test "${with_xim+set}" = set; then | |
1473 | withval="$with_xim" | |
1d36487c | 1474 | |
503d2be0 | 1475 | fi; |
ba4481b5 | 1476 | |
e0f712ba AC |
1477 | # Check whether --with-carbon or --without-carbon was given. |
1478 | if test "${with_carbon+set}" = set; then | |
1479 | withval="$with_carbon" | |
1480 | ||
1481 | fi; | |
6a3a24fa JD |
1482 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1483 | if test "${enable_carbon_app+set}" = set; then | |
1484 | enableval="$enable_carbon_app" | |
1485 | carbon_appdir_x=${enableval} | |
1486 | fi; | |
e0f712ba | 1487 | |
ba4481b5 | 1488 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1489 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1490 | #### give you automounter prefixes, which can go away. We do all this |
1491 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1492 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1493 | unset CDPATH | |
ba4481b5 DL |
1494 | case "${srcdir}" in |
1495 | /* ) ;; | |
1496 | . ) | |
1497 | ## We may be able to use the $PWD environment variable to make this | |
1498 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1499 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1500 | ## but that tested only for a well-formed and valid PWD, | |
1501 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1502 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1503 | then |
1504 | srcdir="$PWD" | |
1505 | else | |
1506 | srcdir="`(cd ${srcdir}; pwd)`" | |
1507 | fi | |
1508 | ;; | |
1509 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1510 | esac | |
1511 | ||
1512 | #### Check if the source directory already has a configured system in it. | |
1513 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1514 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 1515 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1516 | as a build directory right now; it has been configured in its own |
1517 | right. To configure in another directory as well, you MUST | |
1518 | use GNU make. If you do not have GNU make, then you must | |
1519 | now do \`make distclean' in ${srcdir}, | |
1520 | and then run $0 again." >&5 | |
1521 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1522 | as a build directory right now; it has been configured in its own |
1523 | right. To configure in another directory as well, you MUST | |
1524 | use GNU make. If you do not have GNU make, then you must | |
1525 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1526 | and then run $0 again." >&2;} |
ba4481b5 | 1527 | |
22044edf | 1528 | extrasub='/^VPATH[ ]*=/c\ |
ba4481b5 DL |
1529 | vpath %.c $(srcdir)\ |
1530 | vpath %.h $(srcdir)\ | |
1531 | vpath %.y $(srcdir)\ | |
1532 | vpath %.l $(srcdir)\ | |
1533 | vpath %.s $(srcdir)\ | |
1534 | vpath %.in $(srcdir)\ | |
1535 | vpath %.texi $(srcdir)' | |
1536 | fi | |
1537 | ||
1538 | #### Given the configuration name, set machfile and opsysfile to the | |
1539 | #### names of the m/*.h and s/*.h files we should use. | |
1540 | ||
1541 | ### Canonicalize the configuration name. | |
1542 | ||
1543 | ac_aux_dir= | |
1544 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1545 | if test -f $ac_dir/install-sh; then | |
1546 | ac_aux_dir=$ac_dir | |
1547 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1548 | break | |
1549 | elif test -f $ac_dir/install.sh; then | |
1550 | ac_aux_dir=$ac_dir | |
1551 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1552 | break | |
503d2be0 AS |
1553 | elif test -f $ac_dir/shtool; then |
1554 | ac_aux_dir=$ac_dir | |
1555 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1556 | break | |
ba4481b5 DL |
1557 | fi |
1558 | done | |
1559 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1560 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1561 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1562 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1563 | fi |
503d2be0 AS |
1564 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1565 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1566 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1567 | |
1568 | # Make sure we can run config.sub. | |
503d2be0 | 1569 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1570 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1571 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1572 | { (exit 1); exit 1; }; } | |
1573 | ||
c0d27fcc | 1574 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1575 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1576 | if test "${ac_cv_build+set}" = set; then | |
1577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1578 | else | |
1579 | ac_cv_build_alias=$build_alias | |
1580 | test -z "$ac_cv_build_alias" && | |
1581 | ac_cv_build_alias=`$ac_config_guess` | |
1582 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1583 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1584 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1585 | { (exit 1); exit 1; }; } | |
1586 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1587 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1588 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1589 | { (exit 1); exit 1; }; } |
1590 | ||
1591 | fi | |
c0d27fcc | 1592 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1593 | echo "${ECHO_T}$ac_cv_build" >&6 |
1594 | build=$ac_cv_build | |
1595 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1596 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1597 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1598 | ||
c0d27fcc MR |
1599 | |
1600 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1601 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1602 | if test "${ac_cv_host+set}" = set; then | |
1603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1604 | else | |
1605 | ac_cv_host_alias=$host_alias | |
1606 | test -z "$ac_cv_host_alias" && | |
1607 | ac_cv_host_alias=$ac_cv_build_alias | |
1608 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1609 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1610 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1611 | { (exit 1); exit 1; }; } | |
1612 | ||
1613 | fi | |
c0d27fcc | 1614 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1615 | echo "${ECHO_T}$ac_cv_host" >&6 |
1616 | host=$ac_cv_host | |
1617 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1618 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1619 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1620 | |
c0d27fcc | 1621 | |
ba4481b5 | 1622 | canonical=$host |
531a3336 | 1623 | configuration=${host_alias-$host} |
ba4481b5 | 1624 | |
c0d27fcc | 1625 | |
22044edf | 1626 | |
ba4481b5 DL |
1627 | ### If you add support for a new configuration, add code to this |
1628 | ### switch statement to recognize your configuration name and select | |
1629 | ### the appropriate operating system and machine description files. | |
1630 | ||
1631 | ### You would hope that you could choose an m/*.h file pretty much | |
1632 | ### based on the machine portion of the configuration name, and an s- | |
1633 | ### file based on the operating system portion. However, it turns out | |
1634 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1635 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1636 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1637 | ### machines. So we basically have to have a special case for each | |
1638 | ### configuration name. | |
1639 | ### | |
1640 | ### As far as handling version numbers on operating systems is | |
1641 | ### concerned, make sure things will fail in a fixable way. If | |
1642 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1643 | ### prepared to handle anything reasonably. If version numbers | |
1644 | ### matter, be sure /etc/MACHINES says something about it. | |
1645 | ### | |
1646 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1647 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1648 | ### confusion between `system' and `release' levels'." | |
1649 | ||
1650 | machine='' opsys='' unported=no | |
1651 | case "${canonical}" in | |
1652 | ||
1096bcc0 GM |
1653 | ## FreeBSD ports |
1654 | *-*-freebsd* ) | |
1655 | opsys=freebsd | |
1656 | case "${canonical}" in | |
1657 | alpha*-*-freebsd*) machine=alpha ;; | |
1658 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1659 | esac | |
1660 | ;; | |
1661 | ||
ba4481b5 DL |
1662 | ## NetBSD ports |
1663 | *-*-netbsd* ) | |
1664 | opsys=netbsd | |
1665 | case "${canonical}" in | |
1666 | alpha*-*-netbsd*) machine=alpha ;; | |
1667 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1668 | m68k-*-netbsd*) | |
1669 | # This is somewhat bogus. | |
1670 | machine=hp9000s300 ;; | |
1671 | powerpc-apple-netbsd*) machine=macppc ;; | |
1672 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1673 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1674 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1675 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1676 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1677 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1678 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1679 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1680 | esac |
1681 | ;; | |
1682 | ||
1683 | ## OpenBSD ports | |
1684 | *-*-openbsd* ) | |
1685 | opsys=openbsd | |
1686 | case "${canonical}" in | |
1687 | alpha*-*-openbsd*) machine=alpha ;; | |
1688 | i386-*-openbsd*) machine=intel386 ;; | |
1689 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1690 | mipsel-*-openbsd*) machine=pmax ;; | |
1691 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1692 | sparc-*-openbsd*) machine=sparc ;; | |
1693 | vax-*-openbsd*) machine=vax ;; | |
1694 | esac | |
1695 | ;; | |
1696 | ||
1697 | ## Acorn RISCiX: | |
1698 | arm-acorn-riscix1.1* ) | |
1699 | machine=acorn opsys=riscix1-1 | |
1700 | ;; | |
1701 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1702 | ## This name is riscix12 instead of riscix1.2 | |
1703 | ## to avoid a file name conflict on MSDOS. | |
1704 | machine=acorn opsys=riscix12 | |
1705 | ;; | |
1706 | ||
1707 | ## BSDI ports | |
1708 | *-*-bsdi* ) | |
1709 | opsys=bsdi | |
1710 | case "${canonical}" in | |
1711 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1712 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1713 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1714 | esac |
1715 | case "${canonical}" in | |
1716 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1717 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1718 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1719 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1720 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1721 | esac |
1722 | ;; | |
1723 | ||
1724 | ## Alliant machines | |
1725 | ## Strictly speaking, we need the version of the alliant operating | |
1726 | ## system to choose the right machine file, but currently the | |
1727 | ## configuration name doesn't tell us enough to choose the right | |
1728 | ## one; we need to give alliants their own operating system name to | |
1729 | ## do this right. When someone cares, they can help us. | |
1730 | fx80-alliant-* ) | |
1731 | machine=alliant4 opsys=bsd4-2 | |
1732 | ;; | |
1733 | i860-alliant-* ) | |
1734 | machine=alliant-2800 opsys=bsd4-3 | |
1735 | ;; | |
1736 | ||
1737 | ## Alpha (DEC) machines. | |
1738 | alpha*-dec-osf* ) | |
1739 | machine=alpha opsys=osf1 | |
1740 | # This is needed to find X11R6.1 libraries for certain tests. | |
1741 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1742 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1743 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1744 | # due to non-traditional preprocessing with the current compiler | |
1745 | # defaults. OSF 4 can also have that compiler version, and there | |
1746 | # seems always to have been a usable /usr/bin/cpp. | |
1747 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1748 | case "${canonical}" in |
a55b799a | 1749 | alpha*-dec-osf[5-9]*) |
bb17930d | 1750 | opsys=osf5-0 ;; |
ca512671 | 1751 | esac |
ba4481b5 DL |
1752 | ;; |
1753 | ||
1754 | alpha*-*-linux-gnu* ) | |
1755 | machine=alpha opsys=gnu-linux | |
1756 | ;; | |
1757 | ||
c4bb2108 DL |
1758 | arm*-*-linux-gnu* ) |
1759 | machine=arm opsys=gnu-linux | |
1760 | ;; | |
1761 | ||
1762 | ppc-*-linux | \ | |
1763 | powerpc-*-linux* ) | |
3aeecf97 | 1764 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1765 | ;; |
1766 | ||
ba4481b5 DL |
1767 | ## Altos 3068 |
1768 | m68*-altos-sysv* ) | |
1769 | machine=altos opsys=usg5-2 | |
1770 | ;; | |
1771 | ||
1772 | ## Amdahl UTS | |
1773 | 580-amdahl-sysv* ) | |
1774 | machine=amdahl opsys=usg5-2-2 | |
1775 | ;; | |
1776 | ||
1777 | ## Apollo, Domain/OS | |
1778 | m68*-apollo-* ) | |
1779 | machine=apollo opsys=bsd4-3 | |
1780 | ;; | |
1781 | ||
1782 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1783 | we32k-att-sysv* ) | |
1784 | machine=att3b opsys=usg5-2-2 | |
1785 | ;; | |
1786 | ||
1787 | ## AT&T 3b1 - The Mighty Unix PC! | |
1788 | m68*-att-sysv* ) | |
1789 | machine=7300 opsys=usg5-2-2 | |
1790 | ;; | |
1791 | ||
1792 | ## Bull dpx20 | |
1793 | rs6000-bull-bosx* ) | |
1794 | machine=ibmrs6000 opsys=aix3-2 | |
1795 | ;; | |
1796 | ||
1797 | ## Bull dpx2 | |
1798 | m68*-bull-sysv3* ) | |
1799 | machine=dpx2 opsys=usg5-3 | |
1800 | ;; | |
1801 | ||
1802 | ## Bull sps7 | |
1803 | m68*-bull-sysv2* ) | |
1804 | machine=sps7 opsys=usg5-2 | |
1805 | ;; | |
1806 | ||
1807 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1808 | ||
1809 | ## Celerity | |
1810 | ## I don't know what configuration name to use for this; config.sub | |
1811 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1812 | ## in touch with us! | |
1813 | celerity-celerity-bsd* ) | |
1814 | machine=celerity opsys=bsd4-2 | |
1815 | ;; | |
1816 | ||
1817 | ## Clipper | |
1818 | ## What operating systems does this chip run that Emacs has been | |
1819 | ## tested on? | |
1820 | clipper-* ) | |
1821 | machine=clipper | |
1822 | ## We'll use the catch-all code at the bottom to guess the | |
1823 | ## operating system. | |
1824 | ;; | |
1825 | ||
df645f7c AS |
1826 | ## Compaq Nonstop |
1827 | mips-compaq-nonstopux* ) | |
1828 | machine=nonstopux opsys=nonstopux | |
1829 | ;; | |
1830 | ||
ba4481b5 DL |
1831 | ## Convex |
1832 | *-convex-bsd* | *-convex-convexos* ) | |
1833 | machine=convex opsys=bsd4-3 | |
1834 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1835 | NON_GNU_CPP="cc -E -P" | |
1836 | ;; | |
1837 | ||
1838 | ## Cubix QBx/386 | |
1839 | i[3456]86-cubix-sysv* ) | |
1840 | machine=intel386 opsys=usg5-3 | |
1841 | ;; | |
1842 | ||
1843 | ## Cydra 5 | |
1844 | cydra*-cydrome-sysv* ) | |
1845 | machine=cydra5 opsys=usg5-3 | |
1846 | ;; | |
1847 | ||
1848 | ## Data General AViiON Machines | |
1849 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1850 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1851 | ## R this shouldn't conflict with older versions of the OS (which I | |
1852 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1853 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1854 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1855 | machine=aviion opsys=dgux4 | |
1856 | ;; | |
1857 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1858 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1859 | ## to avoid a file name conflict on MSDOS. | |
1860 | machine=aviion opsys=dgux5-4-3 | |
1861 | ;; | |
1862 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1863 | machine=aviion opsys=dgux5-4r2 | |
1864 | ;; | |
1865 | m88k-dg-dgux* ) | |
1866 | machine=aviion opsys=dgux | |
1867 | ;; | |
1868 | ||
1869 | ## Data General AViiON Intel (x86) Machines | |
1870 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1871 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1872 | i[345]86-dg-dguxR4* ) | |
1873 | machine=aviion-intel opsys=dgux4 | |
1874 | ;; | |
1875 | ||
1876 | ## DECstations | |
1877 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1878 | machine=pmax opsys=bsd4-2 | |
1879 | ;; | |
1880 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1881 | machine=pmax opsys=bsd4-3 | |
1882 | ;; | |
1883 | mips-dec-ultrix* ) | |
1884 | machine=pmax opsys=ultrix4-3 | |
1885 | ;; | |
1886 | mips-dec-osf* ) | |
1887 | machine=pmax opsys=osf1 | |
1888 | ;; | |
1889 | mips-dec-mach_bsd4.3* ) | |
1890 | machine=pmax opsys=mach-bsd4-3 | |
1891 | ;; | |
1892 | ||
cd890796 JD |
1893 | ## Motorola Delta machines |
1894 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1895 | machine=delta opsys=usg5-3 | |
1896 | if test -z "`type gnucc | grep 'not found'`" | |
1897 | then | |
1898 | if test -s /etc/167config | |
1899 | then CC="gnucc -m68040" | |
1900 | else CC="gnucc -m68881" | |
1901 | fi | |
1902 | else | |
1903 | if test -z "`type gcc | grep 'not found'`" | |
1904 | then CC=gcc | |
1905 | else CC=cc | |
1906 | fi | |
1907 | fi | |
1908 | ;; | |
ba4481b5 DL |
1909 | m88k-motorola-sysv4* ) |
1910 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1911 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1912 | # I hope there are not other 4.0 versions for this machine | |
1913 | # which really need usg5-4 instead. | |
1914 | machine=delta88k opsys=usg5-4-2 | |
1915 | ;; | |
1916 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1917 | machine=delta88k opsys=usg5-3 | |
1918 | ;; | |
1919 | ||
1920 | ## Dual machines | |
1921 | m68*-dual-sysv* ) | |
1922 | machine=dual opsys=usg5-2 | |
1923 | ;; | |
1924 | m68*-dual-uniplus* ) | |
1925 | machine=dual opsys=unipl5-2 | |
1926 | ;; | |
1927 | ||
1928 | ## Elxsi 6400 | |
1929 | elxsi-elxsi-sysv* ) | |
1930 | machine=elxsi opsys=usg5-2 | |
1931 | ;; | |
1932 | ||
1933 | ## Encore machines | |
1934 | ns16k-encore-bsd* ) | |
1935 | machine=ns16000 opsys=umax | |
1936 | ;; | |
1937 | ||
65171e3a DL |
1938 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1939 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1940 | |
1941 | ## Gould Power Node and NP1 | |
1942 | pn-gould-bsd4.2* ) | |
1943 | machine=gould opsys=bsd4-2 | |
1944 | ;; | |
1945 | pn-gould-bsd4.3* ) | |
1946 | machine=gould opsys=bsd4-3 | |
1947 | ;; | |
1948 | np1-gould-bsd* ) | |
1949 | machine=gould-np1 opsys=bsd4-3 | |
1950 | ;; | |
1951 | ||
1952 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1953 | ## as far as Emacs is concerned). | |
1954 | m88k-harris-cxux* ) | |
1955 | # Build needs to be different on 7.0 and later releases | |
1956 | case "`uname -r`" in | |
1957 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1958 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1959 | esac | |
1960 | NON_GNU_CPP="/lib/cpp" | |
1961 | ;; | |
1962 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1963 | m68k-harris-cxux* ) | |
1964 | machine=nh3000 opsys=cxux | |
1965 | ;; | |
1966 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1967 | powerpc-harris-powerunix ) | |
1968 | machine=nh6000 opsys=powerunix | |
1969 | NON_GNU_CPP="cc -Xo -E -P" | |
1970 | ;; | |
1971 | ## SR2001/SR2201 running HI-UX/MPP | |
1972 | hppa1.1-hitachi-hiuxmpp* ) | |
1973 | machine=sr2k opsys=hiuxmpp | |
1974 | ;; | |
89a336fa GM |
1975 | hppa1.1-hitachi-hiuxwe2* ) |
1976 | machine=sr2k opsys=hiuxwe2 | |
1977 | ;; | |
ba4481b5 DL |
1978 | ## Honeywell XPS100 |
1979 | xps*-honeywell-sysv* ) | |
1980 | machine=xps100 opsys=usg5-2 | |
1981 | ;; | |
1982 | ||
1983 | ## HP 9000 series 200 or 300 | |
1984 | m68*-hp-bsd* ) | |
1985 | machine=hp9000s300 opsys=bsd4-3 | |
1986 | ;; | |
1987 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1988 | m68*-hp-hpux* ) | |
1989 | case "`uname -r`" in | |
1990 | ## Someone's system reports A.B8.05 for this. | |
1991 | ## I wonder what other possibilities there are. | |
1992 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1993 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1994 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1995 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1996 | *) machine=hp9000s300 opsys=hpux ;; | |
1997 | esac | |
1998 | ;; | |
1999 | ||
2000 | ## HP 9000 series 700 and 800, running HP/UX | |
2001 | hppa*-hp-hpux7* ) | |
2002 | machine=hp800 opsys=hpux | |
2003 | ;; | |
2004 | hppa*-hp-hpux8* ) | |
2005 | machine=hp800 opsys=hpux8 | |
2006 | ;; | |
2007 | hppa*-hp-hpux9shr* ) | |
2008 | machine=hp800 opsys=hpux9shr | |
2009 | ;; | |
2010 | hppa*-hp-hpux9* ) | |
2011 | machine=hp800 opsys=hpux9 | |
2012 | ;; | |
cc227489 | 2013 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2014 | machine=hp800 opsys=hpux10 |
2015 | ;; | |
cc227489 MB |
2016 | hppa*-hp-hpux1[1-9]* ) |
2017 | machine=hp800 opsys=hpux11 | |
2018 | ;; | |
ba4481b5 | 2019 | |
409d9577 GM |
2020 | hppa*-*-linux-gnu* ) |
2021 | machine=hp800 opsys=gnu-linux | |
2022 | ;; | |
2023 | ||
ba4481b5 DL |
2024 | ## HP 9000 series 700 and 800, running HP/UX |
2025 | hppa*-hp-hpux* ) | |
2026 | ## Cross-compilation? Nah! | |
2027 | case "`uname -r`" in | |
2028 | ## Someone's system reports A.B8.05 for this. | |
2029 | ## I wonder what other possibilities there are. | |
2030 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2031 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2032 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2033 | *) machine=hp800 opsys=hpux10 ;; | |
2034 | esac | |
2035 | ;; | |
2036 | hppa*-*-nextstep* ) | |
2037 | machine=hp800 opsys=nextstep | |
2038 | ;; | |
2039 | ||
2040 | ## Orion machines | |
2041 | orion-orion-bsd* ) | |
2042 | machine=orion opsys=bsd4-2 | |
2043 | ;; | |
2044 | clipper-orion-bsd* ) | |
2045 | machine=orion105 opsys=bsd4-2 | |
2046 | ;; | |
2047 | ||
2048 | ## IBM machines | |
2049 | i[3456]86-ibm-aix1.1* ) | |
2050 | machine=ibmps2-aix opsys=usg5-2-2 | |
2051 | ;; | |
2052 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2053 | machine=ibmps2-aix opsys=usg5-3 | |
2054 | ;; | |
2055 | i370-ibm-aix*) | |
2056 | machine=ibm370aix opsys=usg5-3 | |
2057 | ;; | |
138f0859 GM |
2058 | s390-*-linux-gnu) |
2059 | machine=ibms390 opsys=gnu-linux | |
2060 | ;; | |
ba4481b5 DL |
2061 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2062 | machine=ibmrs6000 opsys=aix3-1 | |
2063 | ;; | |
2064 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2065 | machine=ibmrs6000 opsys=aix3-2-5 | |
2066 | ;; | |
2067 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2068 | machine=ibmrs6000 opsys=aix4-1 | |
2069 | ;; | |
2070 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2071 | machine=ibmrs6000 opsys=aix4-2 | |
2072 | ;; | |
d6b82250 EZ |
2073 | rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
2074 | machine=ibmrs6000 opsys=aix4-2 | |
2075 | ;; | |
ba4481b5 DL |
2076 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2077 | machine=ibmrs6000 opsys=aix4 | |
2078 | ;; | |
2079 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2080 | machine=ibmrs6000 opsys=aix4-1 | |
2081 | ;; | |
2082 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2083 | machine=ibmrs6000 opsys=aix3-2 | |
2084 | ;; | |
2085 | romp-ibm-bsd4.3* ) | |
2086 | machine=ibmrt opsys=bsd4-3 | |
2087 | ;; | |
2088 | romp-ibm-bsd4.2* ) | |
2089 | machine=ibmrt opsys=bsd4-2 | |
2090 | ;; | |
2091 | romp-ibm-aos4.3* ) | |
2092 | machine=ibmrt opsys=bsd4-3 | |
2093 | ;; | |
2094 | romp-ibm-aos4.2* ) | |
2095 | machine=ibmrt opsys=bsd4-2 | |
2096 | ;; | |
2097 | romp-ibm-aos* ) | |
2098 | machine=ibmrt opsys=bsd4-3 | |
2099 | ;; | |
2100 | romp-ibm-bsd* ) | |
2101 | machine=ibmrt opsys=bsd4-3 | |
2102 | ;; | |
2103 | romp-ibm-aix* ) | |
2104 | machine=ibmrt-aix opsys=usg5-2-2 | |
2105 | ;; | |
2106 | ||
2107 | ## Integrated Solutions `Optimum V' | |
2108 | m68*-isi-bsd4.2* ) | |
2109 | machine=isi-ov opsys=bsd4-2 | |
2110 | ;; | |
2111 | m68*-isi-bsd4.3* ) | |
2112 | machine=isi-ov opsys=bsd4-3 | |
2113 | ;; | |
2114 | ||
2115 | ## Intel 386 machines where we do care about the manufacturer | |
2116 | i[3456]86-intsys-sysv* ) | |
2117 | machine=is386 opsys=usg5-2-2 | |
2118 | ;; | |
2119 | ||
2120 | ## Prime EXL | |
2121 | i[3456]86-prime-sysv* ) | |
2122 | machine=i386 opsys=usg5-3 | |
2123 | ;; | |
2124 | ||
2125 | ## Sequent Symmetry running Dynix | |
2126 | i[3456]86-sequent-bsd* ) | |
2127 | machine=symmetry opsys=bsd4-3 | |
2128 | ;; | |
2129 | ||
2130 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2131 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2132 | machine=sequent-ptx opsys=ptx4 | |
2133 | NON_GNU_CPP=/lib/cpp | |
2134 | ;; | |
2135 | ||
2136 | ## Sequent Symmetry running DYNIX/ptx | |
2137 | ## Use the old cpp rather than the newer ANSI one. | |
2138 | i[3456]86-sequent-ptx* ) | |
2139 | machine=sequent-ptx opsys=ptx | |
2140 | NON_GNU_CPP="/lib/cpp" | |
2141 | ;; | |
2142 | ||
2143 | ## ncr machine running svr4.3. | |
2144 | i[3456]86-ncr-sysv4.3 ) | |
2145 | machine=ncr386 opsys=usg5-4-3 | |
2146 | ;; | |
2147 | ||
2148 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2149 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2150 | i[3456]86-ncr-sysv* ) | |
2151 | machine=ncr386 opsys=usg5-4-2 | |
2152 | ;; | |
2153 | ||
2154 | ## Intel Paragon OSF/1 | |
2155 | i860-intel-osf1* ) | |
2156 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2157 | ;; | |
2158 | ||
2159 | ## Intel 860 | |
2160 | i860-*-sysv4* ) | |
2161 | machine=i860 opsys=usg5-4 | |
2162 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2163 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2164 | ;; | |
2165 | ||
c76e04a8 GM |
2166 | ## Macintosh PowerPC |
2167 | powerpc*-*-linux-gnu* ) | |
2168 | machine=macppc opsys=gnu-linux | |
2169 | ;; | |
2170 | ||
ba4481b5 DL |
2171 | ## Masscomp machines |
2172 | m68*-masscomp-rtu* ) | |
2173 | machine=masscomp opsys=rtu | |
2174 | ;; | |
2175 | ||
2176 | ## Megatest machines | |
2177 | m68*-megatest-bsd* ) | |
2178 | machine=mega68 opsys=bsd4-2 | |
2179 | ;; | |
2180 | ||
2181 | ## Workstations sold by MIPS | |
2182 | ## This is not necessarily all workstations using the MIPS processor - | |
2183 | ## Irises are produced by SGI, and DECstations by DEC. | |
2184 | ||
2185 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2186 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2187 | ## it gives for choosing between the alternatives seems to be "Use | |
2188 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2189 | ## the BSD world." I'll assume that these are instructions for | |
2190 | ## handling two odd situations, and that every other situation | |
2191 | ## should use mips.h and usg5-2-2, they being listed first. | |
2192 | mips-mips-usg* ) | |
2193 | machine=mips4 | |
2194 | ## Fall through to the general code at the bottom to decide on the OS. | |
2195 | ;; | |
2196 | mips-mips-riscos4* ) | |
2197 | machine=mips4 opsys=bsd4-3 | |
2198 | NON_GNU_CC="cc -systype bsd43" | |
2199 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2200 | ;; | |
2201 | mips-mips-riscos5* ) | |
2202 | machine=mips4 opsys=riscos5 | |
2203 | NON_GNU_CC="cc -systype bsd43" | |
2204 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2205 | ;; | |
2206 | mips-mips-bsd* ) | |
2207 | machine=mips opsys=bsd4-3 | |
2208 | ;; | |
2209 | mips-mips-* ) | |
2210 | machine=mips opsys=usg5-2-2 | |
2211 | ;; | |
2212 | ||
2213 | ## NeXT | |
2214 | m68*-next-* | m68k-*-nextstep* ) | |
2215 | machine=m68k opsys=nextstep | |
2216 | ;; | |
2217 | ||
2218 | ## The complete machine from National Semiconductor | |
2219 | ns32k-ns-genix* ) | |
2220 | machine=ns32000 opsys=usg5-2 | |
2221 | ;; | |
2222 | ||
2223 | ## NCR machines | |
2224 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2225 | machine=tower32 opsys=usg5-2-2 | |
2226 | ;; | |
2227 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2228 | machine=tower32v3 opsys=usg5-3 | |
2229 | ;; | |
2230 | ||
2231 | ## NEC EWS4800 | |
2232 | mips-nec-sysv4*) | |
2233 | machine=ews4800 opsys=ux4800 | |
2234 | ;; | |
2235 | ||
2236 | ## Nixdorf Targon 31 | |
2237 | m68*-nixdorf-sysv* ) | |
2238 | machine=targon31 opsys=usg5-2-2 | |
2239 | ;; | |
2240 | ||
2241 | ## Nu (TI or LMI) | |
2242 | m68*-nu-sysv* ) | |
2243 | machine=nu opsys=usg5-2 | |
2244 | ;; | |
2245 | ||
2246 | ## Plexus | |
2247 | m68*-plexus-sysv* ) | |
2248 | machine=plexus opsys=usg5-2 | |
2249 | ;; | |
2250 | ||
ba4481b5 DL |
2251 | ## Pyramid machines |
2252 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2253 | ## so I'm assuming it is its own architecture. | |
2254 | pyramid-pyramid-bsd* ) | |
2255 | machine=pyramid opsys=bsd4-2 | |
2256 | ;; | |
2257 | ||
2258 | ## Sequent Balance | |
2259 | ns32k-sequent-bsd4.2* ) | |
2260 | machine=sequent opsys=bsd4-2 | |
2261 | ;; | |
2262 | ns32k-sequent-bsd4.3* ) | |
2263 | machine=sequent opsys=bsd4-3 | |
2264 | ;; | |
2265 | ||
2266 | ## Siemens Nixdorf | |
2267 | mips-siemens-sysv* | mips-sni-sysv*) | |
2268 | machine=mips-siemens opsys=usg5-4 | |
2269 | NON_GNU_CC=/usr/ccs/bin/cc | |
2270 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2271 | ;; | |
2272 | ||
2273 | ## Silicon Graphics machines | |
2274 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2275 | m68*-sgi-iris3.5* ) | |
2276 | machine=irist opsys=iris3-5 | |
2277 | ;; | |
2278 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2279 | machine=irist opsys=iris3-6 | |
2280 | ;; | |
2281 | ## Iris 4D | |
2282 | mips-sgi-irix3* ) | |
2283 | machine=iris4d opsys=irix3-3 | |
2284 | ;; | |
2285 | mips-sgi-irix4* ) | |
2286 | machine=iris4d opsys=irix4-0 | |
2287 | ;; | |
2288 | mips-sgi-irix6.5 ) | |
2289 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2290 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2291 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2292 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2293 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2294 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2295 | ;; |
2296 | mips-sgi-irix6* ) | |
2297 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2298 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2299 | # but presumably it does no harm. |
2300 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2301 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2302 | NON_GCC_TEST_OPTIONS=-32 |
2303 | ;; | |
2304 | mips-sgi-irix5.[01]* ) | |
2305 | machine=iris4d opsys=irix5-0 | |
2306 | ;; | |
2307 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2308 | machine=iris4d opsys=irix5-2 | |
2309 | ;; | |
2310 | ||
2311 | ## SONY machines | |
2312 | m68*-sony-bsd4.2* ) | |
2313 | machine=news opsys=bsd4-2 | |
2314 | ;; | |
2315 | m68*-sony-bsd4.3* ) | |
2316 | machine=news opsys=bsd4-3 | |
2317 | ;; | |
2318 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2319 | machine=news opsys=bsd4-3 | |
2320 | ;; | |
2321 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2322 | machine=news-risc opsys=bsd4-3 | |
2323 | ;; | |
2324 | mips-sony-newsos6* ) | |
2325 | machine=news-r6 opsys=newsos6 | |
2326 | ;; | |
2327 | mips-sony-news* ) | |
2328 | machine=news-risc opsys=newsos5 | |
2329 | ;; | |
2330 | ||
2331 | ## Stride | |
2332 | m68*-stride-sysv* ) | |
2333 | machine=stride opsys=usg5-2 | |
2334 | ;; | |
2335 | ||
2336 | ## Suns | |
2337 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2338 | machine=sparc opsys=gnu-linux | |
2339 | ;; | |
2340 | ||
d054101f | 2341 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2342 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2343 | | rs6000-*-solaris2*) | |
2344 | case "${canonical}" in | |
2345 | m68*-sunos1* ) machine=sun1 ;; | |
2346 | m68*-sunos2* ) machine=sun2 ;; | |
2347 | m68* ) machine=sun3 ;; | |
2348 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2349 | i[3456]86-*-* ) machine=intel386 ;; | |
2350 | powerpcle* ) machine=powerpcle ;; | |
2351 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2352 | sparc* ) machine=sparc ;; | |
2353 | * ) unported=yes ;; | |
2354 | esac | |
2355 | case "${canonical}" in | |
2356 | ## The Sun386 didn't get past 4.0. | |
2357 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2358 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2359 | *-sunos4.1.[3-9]*noshare ) | |
2360 | ## This name is sunos413 instead of sunos4-1-3 | |
2361 | ## to avoid a file name conflict on MSDOS. | |
2362 | opsys=sunos413 | |
2363 | NON_GNU_CPP=/usr/lib/cpp | |
2364 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2365 | GCC_TEST_OPTIONS=-static | |
2366 | ;; | |
2367 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2368 | opsys=sunos4shr | |
2369 | NON_GNU_CPP=/usr/lib/cpp | |
2370 | ;; | |
2371 | *-sunos4* | *-sunos ) | |
2372 | opsys=sunos4-1 | |
2373 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2374 | GCC_TEST_OPTIONS=-static | |
2375 | ;; | |
2376 | *-sunos5.3* | *-solaris2.3* ) | |
2377 | opsys=sol2-3 | |
2378 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2379 | ;; | |
2380 | *-sunos5.4* | *-solaris2.4* ) | |
2381 | opsys=sol2-4 | |
2382 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2383 | RANLIB="ar -ts" | |
2384 | ;; | |
2385 | *-sunos5.5* | *-solaris2.5* ) | |
2386 | opsys=sol2-5 | |
2387 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2388 | RANLIB="ar -ts" | |
2389 | ;; | |
8e967cf7 MR |
2390 | *-sunos5.6* | *-solaris2.6* ) |
2391 | opsys=sol2-6 | |
2392 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2393 | RANLIB="ar -ts" | |
2394 | ;; | |
ba4481b5 | 2395 | *-sunos5* | *-solaris* ) |
9e71690e | 2396 | opsys=sol2-6 |
ba4481b5 DL |
2397 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2398 | ;; | |
2399 | * ) opsys=bsd4-2 ;; | |
2400 | esac | |
2401 | ## Watch out for a compiler that we know will not work. | |
2402 | case "${canonical}" in | |
2403 | *-solaris* | *-sunos5* ) | |
2404 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2405 | ## /usr/ucb/cc doesn't work; | |
2406 | ## we should find some other compiler that does work. | |
2407 | unset CC | |
2408 | fi | |
2409 | ;; | |
2410 | *) ;; | |
2411 | esac | |
2412 | ;; | |
2413 | sparc-*-nextstep* ) | |
2414 | machine=sparc opsys=nextstep | |
2415 | ;; | |
2416 | ||
2417 | ## Tadpole 68k | |
2418 | m68*-tadpole-sysv* ) | |
2419 | machine=tad68k opsys=usg5-3 | |
2420 | ;; | |
2421 | ||
2422 | ## Tahoe machines | |
2423 | tahoe-tahoe-bsd4.2* ) | |
2424 | machine=tahoe opsys=bsd4-2 | |
2425 | ;; | |
2426 | tahoe-tahoe-bsd4.3* ) | |
2427 | machine=tahoe opsys=bsd4-3 | |
2428 | ;; | |
2429 | ||
2430 | ## Tandem Integrity S2 | |
2431 | mips-tandem-sysv* ) | |
2432 | machine=tandem-s2 opsys=usg5-3 | |
2433 | ;; | |
2434 | ||
2435 | ## Tektronix XD88 | |
2436 | m88k-tektronix-sysv3* ) | |
2437 | machine=tekxd88 opsys=usg5-3 | |
2438 | ;; | |
2439 | ||
2440 | ## Tektronix 16000 box (6130?) | |
2441 | ns16k-tektronix-bsd* ) | |
2442 | machine=ns16000 opsys=bsd4-2 | |
2443 | ;; | |
2444 | ## Tektronix 4300 | |
2445 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2446 | m68*-tektronix-bsd* ) | |
2447 | machine=tek4300 opsys=bsd4-3 | |
2448 | ;; | |
2449 | ||
2450 | ## Titan P2 or P3 | |
2451 | ## We seem to have lost the machine-description file titan.h! | |
2452 | titan-titan-sysv* ) | |
2453 | machine=titan opsys=usg5-3 | |
2454 | ;; | |
2455 | ||
2456 | ## Ustation E30 (SS5E) | |
2457 | m68*-unisys-uniplus* ) | |
2458 | machine=ustation opsystem=unipl5-2 | |
2459 | ;; | |
2460 | ||
2461 | ## Vaxen. | |
2462 | vax-dec-* ) | |
2463 | machine=vax | |
2464 | case "${canonical}" in | |
2465 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2466 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2467 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2468 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2469 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2470 | *-vms* ) opsys=vms ;; | |
2471 | * ) unported=yes | |
2472 | esac | |
2473 | ;; | |
2474 | ||
2475 | ## Whitechapel MG1 | |
2476 | ns16k-whitechapel-* ) | |
2477 | machine=mg1 | |
2478 | ## We don't know what sort of OS runs on these; we'll let the | |
2479 | ## operating system guessing code below try. | |
2480 | ;; | |
2481 | ||
2482 | ## Wicat | |
2483 | m68*-wicat-sysv* ) | |
2484 | machine=wicat opsys=usg5-2 | |
2485 | ;; | |
2486 | ||
f4988be7 GM |
2487 | ## IA-64 |
2488 | ia64*-*-linux* ) | |
2489 | machine=ia64 opsys=gnu-linux | |
2490 | ;; | |
2491 | ||
ba4481b5 DL |
2492 | ## Intel 386 machines where we don't care about the manufacturer |
2493 | i[3456]86-*-* ) | |
2494 | machine=intel386 | |
2495 | case "${canonical}" in | |
c60ee5e7 | 2496 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2497 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2498 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2499 | *-isc2.2* ) opsys=isc2-2 ;; | |
2500 | *-isc4.0* ) opsys=isc4-0 ;; | |
2501 | *-isc4.* ) opsys=isc4-1 | |
2502 | GCC_TEST_OPTIONS=-posix | |
2503 | NON_GCC_TEST_OPTIONS=-Xp | |
2504 | ;; | |
2505 | *-isc* ) opsys=isc3-0 ;; | |
2506 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2507 | *-esix* ) opsys=esix ;; | |
2508 | *-xenix* ) opsys=xenix ;; | |
2509 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2510 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2511 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2512 | NON_GNU_CPP=/lib/cpp |
2513 | # Prevent -belf from being passed to $CPP. | |
2514 | # /lib/cpp does not accept it. | |
2515 | OVERRIDE_CPPFLAGS=" " | |
2516 | ;; | |
2517 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2518 | *-386bsd* ) opsys=386bsd ;; | |
ba4481b5 DL |
2519 | *-nextstep* ) opsys=nextstep ;; |
2520 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2521 | esac | |
2522 | ;; | |
2523 | ||
2524 | ## m68k Linux-based GNU system | |
2525 | m68k-*-linux-gnu* ) | |
2526 | machine=m68k opsys=gnu-linux | |
2527 | ;; | |
2528 | ||
2529 | ## Mips Linux-based GNU system | |
cd958eb3 | 2530 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2531 | machine=mips opsys=gnu-linux |
2532 | ;; | |
2533 | ||
2534 | ## UXP/DS | |
2535 | sparc-fujitsu-sysv4* ) | |
2536 | machine=sparc opsys=uxpds | |
2537 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2538 | RANLIB="ar -ts" | |
2539 | ;; | |
2540 | ||
2541 | ## UXP/V | |
2542 | f301-fujitsu-uxpv4.1) | |
2543 | machine=f301 opsys=uxpv | |
2544 | ;; | |
2545 | ||
e0f712ba AC |
2546 | ## Darwin / Mac OS X |
2547 | powerpc-apple-darwin* ) | |
2548 | machine=powermac opsys=darwin | |
2549 | # Define CPP as follows to make autoconf work correctly. | |
2550 | CPP="cc -E -traditional-cpp" | |
2551 | ;; | |
2552 | ||
598a2813 AS |
2553 | ## AMD x86-64 Linux-based GNU system |
2554 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2555 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2556 | ;; |
2557 | ||
ba4481b5 DL |
2558 | * ) |
2559 | unported=yes | |
2560 | ;; | |
2561 | esac | |
2562 | ||
2563 | ### If the code above didn't choose an operating system, just choose | |
2564 | ### an operating system based on the configuration name. You really | |
2565 | ### only want to use this when you have no idea what the right | |
2566 | ### operating system is; if you know what operating systems a machine | |
2567 | ### runs, it's cleaner to make it explicit in the case statement | |
2568 | ### above. | |
2569 | if test x"${opsys}" = x; then | |
2570 | case "${canonical}" in | |
2571 | *-gnu* ) opsys=gnu ;; | |
2572 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2573 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2574 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2575 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2576 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2577 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2578 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2579 | *-sysv4.2uw* ) opsys=unixware ;; | |
2580 | *-sysv4.1* | *-sysvr4.1* ) | |
2581 | NON_GNU_CPP=/usr/lib/cpp | |
2582 | opsys=usg5-4 ;; | |
2583 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2584 | if [ x$NON_GNU_CPP = x ]; then | |
2585 | if [ -f /usr/ccs/lib/cpp ]; then | |
2586 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2587 | else | |
2588 | NON_GNU_CPP=/lib/cpp | |
2589 | fi | |
2590 | fi | |
2591 | opsys=usg5-4-2 ;; | |
2592 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2593 | * ) | |
2594 | unported=yes | |
2595 | ;; | |
2596 | esac | |
2597 | fi | |
2598 | ||
c0d27fcc | 2599 | |
22044edf | 2600 | |
ba4481b5 | 2601 | if test $unported = yes; then |
c0d27fcc | 2602 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2603 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2604 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2605 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2606 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2607 | fi |
2608 | ||
2609 | machfile="m/${machine}.h" | |
2610 | opsysfile="s/${opsys}.h" | |
2611 | ||
c0d27fcc | 2612 | |
ba4481b5 DL |
2613 | #### Choose a compiler. |
2614 | test -n "$CC" && cc_specified=yes | |
2615 | ||
2616 | # Save the value of CFLAGS that the user specified. | |
2617 | SPECIFIED_CFLAGS="$CFLAGS" | |
2618 | ||
2619 | case ${with_gcc} in | |
2620 | "yes" ) CC="gcc" GCC=yes ;; | |
2621 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2622 | * ) |
2623 | esac | |
2624 | ac_ext=c | |
2625 | ac_cpp='$CPP $CPPFLAGS' | |
2626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2629 | if test -n "$ac_tool_prefix"; then | |
2630 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2631 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2634 | if test "${ac_cv_prog_CC+set}" = set; then | |
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2636 | else |
2637 | if test -n "$CC"; then | |
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2639 | else | |
c0d27fcc MR |
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2641 | for as_dir in $PATH | |
2642 | do | |
2643 | IFS=$as_save_IFS | |
2644 | test -z "$as_dir" && as_dir=. | |
2645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2647 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2649 | break 2 | |
2650 | fi | |
2651 | done | |
503d2be0 AS |
2652 | done |
2653 | ||
ba4481b5 DL |
2654 | fi |
2655 | fi | |
503d2be0 | 2656 | CC=$ac_cv_prog_CC |
ba4481b5 | 2657 | if test -n "$CC"; then |
c0d27fcc | 2658 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2659 | echo "${ECHO_T}$CC" >&6 |
2660 | else | |
c0d27fcc | 2661 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2662 | echo "${ECHO_T}no" >&6 |
2663 | fi | |
2664 | ||
2665 | fi | |
2666 | if test -z "$ac_cv_prog_CC"; then | |
2667 | ac_ct_CC=$CC | |
2668 | # Extract the first word of "gcc", so it can be a program name with args. | |
2669 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2672 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2674 | else | |
2675 | if test -n "$ac_ct_CC"; then | |
2676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2677 | else | |
c0d27fcc MR |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2685 | ac_cv_prog_ac_ct_CC="gcc" | |
2686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2687 | break 2 | |
2688 | fi | |
2689 | done | |
503d2be0 AS |
2690 | done |
2691 | ||
2692 | fi | |
2693 | fi | |
2694 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2695 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2696 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2697 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2698 | else |
c0d27fcc | 2699 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2700 | echo "${ECHO_T}no" >&6 |
2701 | fi | |
2702 | ||
2703 | CC=$ac_ct_CC | |
2704 | else | |
2705 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2706 | fi |
2707 | ||
2708 | if test -z "$CC"; then | |
503d2be0 AS |
2709 | if test -n "$ac_tool_prefix"; then |
2710 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2711 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2714 | if test "${ac_cv_prog_CC+set}" = set; then | |
2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2716 | else |
2717 | if test -n "$CC"; then | |
2718 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2719 | else | |
c0d27fcc MR |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2721 | for as_dir in $PATH | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2727 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2729 | break 2 | |
2730 | fi | |
2731 | done | |
503d2be0 AS |
2732 | done |
2733 | ||
2734 | fi | |
2735 | fi | |
2736 | CC=$ac_cv_prog_CC | |
2737 | if test -n "$CC"; then | |
c0d27fcc | 2738 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2739 | echo "${ECHO_T}$CC" >&6 |
2740 | else | |
c0d27fcc | 2741 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2742 | echo "${ECHO_T}no" >&6 |
2743 | fi | |
2744 | ||
2745 | fi | |
2746 | if test -z "$ac_cv_prog_CC"; then | |
2747 | ac_ct_CC=$CC | |
2748 | # Extract the first word of "cc", so it can be a program name with args. | |
2749 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2752 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2754 | else | |
2755 | if test -n "$ac_ct_CC"; then | |
2756 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2757 | else | |
c0d27fcc MR |
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2759 | for as_dir in $PATH | |
2760 | do | |
2761 | IFS=$as_save_IFS | |
2762 | test -z "$as_dir" && as_dir=. | |
2763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2765 | ac_cv_prog_ac_ct_CC="cc" | |
2766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2767 | break 2 | |
2768 | fi | |
2769 | done | |
503d2be0 AS |
2770 | done |
2771 | ||
2772 | fi | |
2773 | fi | |
2774 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2775 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2776 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2777 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2778 | else | |
c0d27fcc | 2779 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2780 | echo "${ECHO_T}no" >&6 |
2781 | fi | |
2782 | ||
2783 | CC=$ac_ct_CC | |
2784 | else | |
2785 | CC="$ac_cv_prog_CC" | |
2786 | fi | |
2787 | ||
2788 | fi | |
2789 | if test -z "$CC"; then | |
2790 | # Extract the first word of "cc", so it can be a program name with args. | |
2791 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2794 | if test "${ac_cv_prog_CC+set}" = set; then | |
2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2796 | else | |
2797 | if test -n "$CC"; then | |
2798 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2799 | else | |
2800 | ac_prog_rejected=no | |
c0d27fcc MR |
2801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2802 | for as_dir in $PATH | |
2803 | do | |
2804 | IFS=$as_save_IFS | |
2805 | test -z "$as_dir" && as_dir=. | |
2806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2808 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2809 | ac_prog_rejected=yes | |
2810 | continue | |
2811 | fi | |
2812 | ac_cv_prog_CC="cc" | |
2813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2814 | break 2 | |
2815 | fi | |
2816 | done | |
503d2be0 AS |
2817 | done |
2818 | ||
ba4481b5 DL |
2819 | if test $ac_prog_rejected = yes; then |
2820 | # We found a bogon in the path, so make sure we never use it. | |
2821 | set dummy $ac_cv_prog_CC | |
2822 | shift | |
503d2be0 | 2823 | if test $# != 0; then |
ba4481b5 DL |
2824 | # We chose a different compiler from the bogus one. |
2825 | # However, it has the same basename, so the bogon will be chosen | |
2826 | # first if we set CC to just the basename; use the full file name. | |
2827 | shift | |
6bae0ccf | 2828 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2829 | fi |
2830 | fi | |
2831 | fi | |
2832 | fi | |
503d2be0 | 2833 | CC=$ac_cv_prog_CC |
ba4481b5 | 2834 | if test -n "$CC"; then |
c0d27fcc | 2835 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2836 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2837 | else |
c0d27fcc | 2838 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2839 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2840 | fi |
2841 | ||
503d2be0 AS |
2842 | fi |
2843 | if test -z "$CC"; then | |
2844 | if test -n "$ac_tool_prefix"; then | |
2845 | for ac_prog in cl | |
2846 | do | |
2847 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2848 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2851 | if test "${ac_cv_prog_CC+set}" = set; then | |
2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2853 | else |
2854 | if test -n "$CC"; then | |
2855 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2856 | else | |
c0d27fcc MR |
2857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2858 | for as_dir in $PATH | |
2859 | do | |
2860 | IFS=$as_save_IFS | |
2861 | test -z "$as_dir" && as_dir=. | |
2862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2864 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2866 | break 2 | |
2867 | fi | |
2868 | done | |
503d2be0 AS |
2869 | done |
2870 | ||
c4bb2108 DL |
2871 | fi |
2872 | fi | |
503d2be0 | 2873 | CC=$ac_cv_prog_CC |
c4bb2108 | 2874 | if test -n "$CC"; then |
c0d27fcc | 2875 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2876 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2877 | else |
c0d27fcc | 2878 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2879 | echo "${ECHO_T}no" >&6 |
2880 | fi | |
2881 | ||
2882 | test -n "$CC" && break | |
2883 | done | |
2884 | fi | |
2885 | if test -z "$CC"; then | |
2886 | ac_ct_CC=$CC | |
2887 | for ac_prog in cl | |
2888 | do | |
2889 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2890 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2893 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2895 | else | |
2896 | if test -n "$ac_ct_CC"; then | |
2897 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2898 | else | |
c0d27fcc MR |
2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2900 | for as_dir in $PATH | |
2901 | do | |
2902 | IFS=$as_save_IFS | |
2903 | test -z "$as_dir" && as_dir=. | |
2904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2906 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2908 | break 2 | |
2909 | fi | |
2910 | done | |
503d2be0 AS |
2911 | done |
2912 | ||
c4bb2108 | 2913 | fi |
503d2be0 AS |
2914 | fi |
2915 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2916 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2917 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2918 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2919 | else | |
c0d27fcc | 2920 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2921 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2922 | fi |
2923 | ||
503d2be0 AS |
2924 | test -n "$ac_ct_CC" && break |
2925 | done | |
ba4481b5 | 2926 | |
503d2be0 AS |
2927 | CC=$ac_ct_CC |
2928 | fi | |
2929 | ||
2930 | fi | |
ba4481b5 | 2931 | |
c0d27fcc | 2932 | |
cd958eb3 MB |
2933 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2934 | See \`config.log' for more details." >&5 | |
2935 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2936 | See \`config.log' for more details." >&2;} | |
503d2be0 | 2937 | { (exit 1); exit 1; }; } |
c4bb2108 | 2938 | |
503d2be0 | 2939 | # Provide some information about the compiler. |
c0d27fcc | 2940 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
2941 | "checking for C compiler version" >&5 |
2942 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 2943 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
2944 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2945 | ac_status=$? | |
c0d27fcc | 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 2947 | (exit $ac_status); } |
c0d27fcc | 2948 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
2949 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2950 | ac_status=$? | |
c0d27fcc | 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 2952 | (exit $ac_status); } |
c0d27fcc | 2953 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
2954 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2955 | ac_status=$? | |
c0d27fcc | 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
2957 | (exit $ac_status); } |
2958 | ||
2959 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 2960 | #line $LINENO "configure" |
cd958eb3 MB |
2961 | /* confdefs.h. */ |
2962 | _ACEOF | |
2963 | cat confdefs.h >>conftest.$ac_ext | |
2964 | cat >>conftest.$ac_ext <<_ACEOF | |
2965 | /* end confdefs.h. */ | |
c4bb2108 | 2966 | |
503d2be0 AS |
2967 | int |
2968 | main () | |
2969 | { | |
2970 | ||
2971 | ; | |
2972 | return 0; | |
2973 | } | |
2974 | _ACEOF | |
2975 | ac_clean_files_save=$ac_clean_files | |
cd958eb3 | 2976 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
2977 | # Try to create an executable without -o first, disregard a.out. |
2978 | # It will help us diagnose broken compilers, and finding out an intuition | |
2979 | # of exeext. | |
c0d27fcc | 2980 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
503d2be0 AS |
2981 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2982 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c0d27fcc | 2983 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
2984 | (eval $ac_link_default) 2>&5 |
2985 | ac_status=$? | |
c0d27fcc | 2986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
2987 | (exit $ac_status); }; then |
2988 | # Find the output, starting from the most likely. This scheme is | |
2989 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2990 | # resort. | |
c0d27fcc MR |
2991 | |
2992 | # Be careful to initialize this variable, since it used to be cached. | |
2993 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2994 | ac_cv_exeext= | |
cd958eb3 MB |
2995 | # b.out is created by i960 compilers. |
2996 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2997 | do | |
6bae0ccf | 2998 | test -f "$ac_file" || continue |
503d2be0 | 2999 | case $ac_file in |
cd958eb3 MB |
3000 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
3001 | ;; | |
3002 | conftest.$ac_ext ) | |
3003 | # This is the source file. | |
3004 | ;; | |
3005 | [ab].out ) | |
3006 | # We found the default executable, but exeext='' is most | |
3007 | # certainly right. | |
3008 | break;; | |
3009 | *.* ) | |
3010 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3011 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3012 | # but it would be cool to find out if it's true. Does anybody | |
3013 | # maintain Libtool? --akim. | |
3014 | export ac_cv_exeext | |
3015 | break;; | |
3016 | * ) | |
3017 | break;; | |
503d2be0 AS |
3018 | esac |
3019 | done | |
3020 | else | |
3021 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3022 | sed 's/^/| /' conftest.$ac_ext >&5 |
3023 | ||
6bae0ccf | 3024 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
cd958eb3 | 3025 | See \`config.log' for more details." >&5 |
6bae0ccf | 3026 | echo "$as_me: error: C compiler cannot create executables |
cd958eb3 | 3027 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3028 | { (exit 77); exit 77; }; } |
3029 | fi | |
3030 | ||
3031 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3032 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3033 | echo "${ECHO_T}$ac_file" >&6 |
3034 | ||
3035 | # Check the compiler produces executables we can run. If not, either | |
3036 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3037 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3038 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3039 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3040 | # If not cross compiling, check that we can run a simple program. | |
3041 | if test "$cross_compiling" != yes; then | |
3042 | if { ac_try='./$ac_file' | |
c0d27fcc | 3043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3044 | (eval $ac_try) 2>&5 |
3045 | ac_status=$? | |
c0d27fcc | 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3047 | (exit $ac_status); }; }; then |
3048 | cross_compiling=no | |
ba4481b5 | 3049 | else |
503d2be0 AS |
3050 | if test "$cross_compiling" = maybe; then |
3051 | cross_compiling=yes | |
3052 | else | |
c0d27fcc | 3053 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
cd958eb3 MB |
3054 | If you meant to cross compile, use \`--host'. |
3055 | See \`config.log' for more details." >&5 | |
503d2be0 | 3056 | echo "$as_me: error: cannot run C compiled programs. |
cd958eb3 MB |
3057 | If you meant to cross compile, use \`--host'. |
3058 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3059 | { (exit 1); exit 1; }; } |
3060 | fi | |
ba4481b5 | 3061 | fi |
503d2be0 | 3062 | fi |
c0d27fcc | 3063 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3064 | echo "${ECHO_T}yes" >&6 |
3065 | ||
cd958eb3 | 3066 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3067 | ac_clean_files=$ac_clean_files_save |
3068 | # Check the compiler produces executables we can run. If not, either | |
3069 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3070 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3071 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3072 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3073 | echo "${ECHO_T}$cross_compiling" >&6 |
3074 | ||
c0d27fcc MR |
3075 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3076 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3078 | (eval $ac_link) 2>&5 |
3079 | ac_status=$? | |
c0d27fcc | 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3081 | (exit $ac_status); }; then |
3082 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3083 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3084 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3085 | # `rm'. | |
6bae0ccf DL |
3086 | for ac_file in conftest.exe conftest conftest.*; do |
3087 | test -f "$ac_file" || continue | |
503d2be0 | 3088 | case $ac_file in |
6bae0ccf | 3089 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 AS |
3090 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3091 | export ac_cv_exeext | |
3092 | break;; | |
3093 | * ) break;; | |
3094 | esac | |
3095 | done | |
ba4481b5 | 3096 | else |
cd958eb3 MB |
3097 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3098 | See \`config.log' for more details." >&5 | |
3099 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3100 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3101 | { (exit 1); exit 1; }; } |
ba4481b5 | 3102 | fi |
ba4481b5 | 3103 | |
503d2be0 | 3104 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3105 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3106 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3107 | |
503d2be0 AS |
3108 | rm -f conftest.$ac_ext |
3109 | EXEEXT=$ac_cv_exeext | |
3110 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3111 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3112 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3113 | if test "${ac_cv_objext+set}" = set; then |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3115 | else |
503d2be0 | 3116 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 3117 | #line $LINENO "configure" |
cd958eb3 MB |
3118 | /* confdefs.h. */ |
3119 | _ACEOF | |
3120 | cat confdefs.h >>conftest.$ac_ext | |
3121 | cat >>conftest.$ac_ext <<_ACEOF | |
3122 | /* end confdefs.h. */ | |
ba4481b5 | 3123 | |
503d2be0 AS |
3124 | int |
3125 | main () | |
3126 | { | |
ba4481b5 | 3127 | |
503d2be0 AS |
3128 | ; |
3129 | return 0; | |
3130 | } | |
3131 | _ACEOF | |
3132 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3134 | (eval $ac_compile) 2>&5 |
3135 | ac_status=$? | |
c0d27fcc | 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3137 | (exit $ac_status); }; then |
3138 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3139 | case $ac_file in | |
6bae0ccf | 3140 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3141 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3142 | break;; | |
3143 | esac | |
3144 | done | |
c4bb2108 | 3145 | else |
503d2be0 | 3146 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
3148 | ||
3149 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3150 | See \`config.log' for more details." >&5 | |
3151 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3152 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3153 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3154 | fi |
3155 | ||
503d2be0 AS |
3156 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3157 | fi | |
c0d27fcc | 3158 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3159 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3160 | OBJEXT=$ac_cv_objext | |
3161 | ac_objext=$OBJEXT | |
c0d27fcc | 3162 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3163 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3164 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3166 | else |
503d2be0 | 3167 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 3168 | #line $LINENO "configure" |
cd958eb3 MB |
3169 | /* confdefs.h. */ |
3170 | _ACEOF | |
3171 | cat confdefs.h >>conftest.$ac_ext | |
3172 | cat >>conftest.$ac_ext <<_ACEOF | |
3173 | /* end confdefs.h. */ | |
503d2be0 AS |
3174 | |
3175 | int | |
3176 | main () | |
3177 | { | |
3178 | #ifndef __GNUC__ | |
3179 | choke me | |
3180 | #endif | |
3181 | ||
3182 | ; | |
3183 | return 0; | |
3184 | } | |
3185 | _ACEOF | |
3186 | rm -f conftest.$ac_objext | |
c0d27fcc | 3187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3188 | (eval $ac_compile) 2>&5 |
3189 | ac_status=$? | |
c0d27fcc | 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3191 | (exit $ac_status); } && |
3192 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3194 | (eval $ac_try) 2>&5 |
3195 | ac_status=$? | |
c0d27fcc | 3196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3197 | (exit $ac_status); }; }; then |
3198 | ac_compiler_gnu=yes | |
3199 | else | |
3200 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3201 | sed 's/^/| /' conftest.$ac_ext >&5 |
3202 | ||
503d2be0 AS |
3203 | ac_compiler_gnu=no |
3204 | fi | |
3205 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3206 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3207 | ||
3208 | fi | |
c0d27fcc | 3209 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3210 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3211 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3212 | ac_test_CFLAGS=${CFLAGS+set} | |
3213 | ac_save_CFLAGS=$CFLAGS | |
3214 | CFLAGS="-g" | |
c0d27fcc | 3215 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3216 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3217 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3219 | else | |
3220 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3221 | #line $LINENO "configure" |
cd958eb3 MB |
3222 | /* confdefs.h. */ |
3223 | _ACEOF | |
3224 | cat confdefs.h >>conftest.$ac_ext | |
3225 | cat >>conftest.$ac_ext <<_ACEOF | |
3226 | /* end confdefs.h. */ | |
503d2be0 AS |
3227 | |
3228 | int | |
3229 | main () | |
3230 | { | |
3231 | ||
3232 | ; | |
3233 | return 0; | |
3234 | } | |
3235 | _ACEOF | |
3236 | rm -f conftest.$ac_objext | |
c0d27fcc | 3237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3238 | (eval $ac_compile) 2>&5 |
3239 | ac_status=$? | |
c0d27fcc | 3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3241 | (exit $ac_status); } && |
3242 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3244 | (eval $ac_try) 2>&5 |
3245 | ac_status=$? | |
c0d27fcc | 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3247 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3248 | ac_cv_prog_cc_g=yes |
3249 | else | |
503d2be0 | 3250 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
3251 | sed 's/^/| /' conftest.$ac_ext >&5 |
3252 | ||
503d2be0 | 3253 | ac_cv_prog_cc_g=no |
ba4481b5 | 3254 | fi |
503d2be0 | 3255 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3256 | fi |
c0d27fcc | 3257 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3258 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3259 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3260 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3261 | elif test $ac_cv_prog_cc_g = yes; then |
3262 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3263 | CFLAGS="-g -O2" |
3264 | else | |
c4bb2108 | 3265 | CFLAGS="-g" |
ba4481b5 | 3266 | fi |
22afa6e8 | 3267 | else |
c4bb2108 DL |
3268 | if test "$GCC" = yes; then |
3269 | CFLAGS="-O2" | |
3270 | else | |
3271 | CFLAGS= | |
3272 | fi | |
ba4481b5 | 3273 | fi |
6bae0ccf DL |
3274 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3275 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3276 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3278 | else | |
3279 | ac_cv_prog_cc_stdc=no | |
3280 | ac_save_CC=$CC | |
3281 | cat >conftest.$ac_ext <<_ACEOF | |
3282 | #line $LINENO "configure" | |
cd958eb3 MB |
3283 | /* confdefs.h. */ |
3284 | _ACEOF | |
3285 | cat confdefs.h >>conftest.$ac_ext | |
3286 | cat >>conftest.$ac_ext <<_ACEOF | |
3287 | /* end confdefs.h. */ | |
6bae0ccf DL |
3288 | #include <stdarg.h> |
3289 | #include <stdio.h> | |
3290 | #include <sys/types.h> | |
3291 | #include <sys/stat.h> | |
3292 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3293 | struct buf { int x; }; | |
3294 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3295 | static char *e (p, i) | |
3296 | char **p; | |
3297 | int i; | |
3298 | { | |
3299 | return p[i]; | |
3300 | } | |
3301 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3302 | { | |
3303 | char *s; | |
3304 | va_list v; | |
3305 | va_start (v,p); | |
3306 | s = g (p, va_arg (v,int)); | |
3307 | va_end (v); | |
3308 | return s; | |
3309 | } | |
3310 | int test (int i, double x); | |
3311 | struct s1 {int (*f) (int a);}; | |
3312 | struct s2 {int (*f) (double a);}; | |
3313 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3314 | int argc; | |
3315 | char **argv; | |
3316 | int | |
3317 | main () | |
3318 | { | |
3319 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3320 | ; | |
3321 | return 0; | |
3322 | } | |
3323 | _ACEOF | |
3324 | # Don't try gcc -ansi; that turns off useful extensions and | |
3325 | # breaks some systems' header files. | |
3326 | # AIX -qlanglvl=ansi | |
3327 | # Ultrix and OSF/1 -std1 | |
3328 | # HP-UX 10.20 and later -Ae | |
3329 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3330 | # SVR4 -Xc -D__EXTENSIONS__ | |
3331 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3332 | do | |
3333 | CC="$ac_save_CC $ac_arg" | |
3334 | rm -f conftest.$ac_objext | |
3335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3336 | (eval $ac_compile) 2>&5 | |
3337 | ac_status=$? | |
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3339 | (exit $ac_status); } && | |
3340 | { ac_try='test -s conftest.$ac_objext' | |
3341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3342 | (eval $ac_try) 2>&5 | |
3343 | ac_status=$? | |
3344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3345 | (exit $ac_status); }; }; then | |
3346 | ac_cv_prog_cc_stdc=$ac_arg | |
3347 | break | |
3348 | else | |
3349 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3350 | sed 's/^/| /' conftest.$ac_ext >&5 |
3351 | ||
6bae0ccf DL |
3352 | fi |
3353 | rm -f conftest.$ac_objext | |
3354 | done | |
3355 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3356 | CC=$ac_save_CC | |
3357 | ||
3358 | fi | |
3359 | ||
3360 | case "x$ac_cv_prog_cc_stdc" in | |
3361 | x|xno) | |
3362 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3363 | echo "${ECHO_T}none needed" >&6 ;; | |
3364 | *) | |
3365 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3366 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3367 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3368 | esac | |
3369 | ||
503d2be0 AS |
3370 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3371 | # in C++ we need to declare it. In case someone uses the same compiler | |
3372 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3373 | # the declaration of exit, since it's the most demanding environment. | |
3374 | cat >conftest.$ac_ext <<_ACEOF | |
3375 | #ifndef __cplusplus | |
3376 | choke me | |
3377 | #endif | |
3378 | _ACEOF | |
3379 | rm -f conftest.$ac_objext | |
c0d27fcc | 3380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3381 | (eval $ac_compile) 2>&5 |
3382 | ac_status=$? | |
c0d27fcc | 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3384 | (exit $ac_status); } && |
3385 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3387 | (eval $ac_try) 2>&5 |
3388 | ac_status=$? | |
c0d27fcc | 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3390 | (exit $ac_status); }; }; then |
3391 | for ac_declaration in \ | |
3392 | ''\ | |
3393 | '#include <stdlib.h>' \ | |
3394 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3395 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3396 | 'extern "C" void exit (int) throw ();' \ | |
3397 | 'extern "C" void exit (int);' \ | |
3398 | 'void exit (int);' | |
3399 | do | |
3400 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3401 | #line $LINENO "configure" |
cd958eb3 MB |
3402 | /* confdefs.h. */ |
3403 | _ACEOF | |
3404 | cat confdefs.h >>conftest.$ac_ext | |
3405 | cat >>conftest.$ac_ext <<_ACEOF | |
3406 | /* end confdefs.h. */ | |
503d2be0 AS |
3407 | #include <stdlib.h> |
3408 | $ac_declaration | |
3409 | int | |
3410 | main () | |
3411 | { | |
3412 | exit (42); | |
3413 | ; | |
3414 | return 0; | |
3415 | } | |
3416 | _ACEOF | |
3417 | rm -f conftest.$ac_objext | |
c0d27fcc | 3418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3419 | (eval $ac_compile) 2>&5 |
3420 | ac_status=$? | |
c0d27fcc | 3421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3422 | (exit $ac_status); } && |
3423 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3425 | (eval $ac_try) 2>&5 |
3426 | ac_status=$? | |
c0d27fcc | 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3428 | (exit $ac_status); }; }; then |
3429 | : | |
3430 | else | |
3431 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3432 | sed 's/^/| /' conftest.$ac_ext >&5 |
3433 | ||
503d2be0 AS |
3434 | continue |
3435 | fi | |
3436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3437 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3438 | #line $LINENO "configure" |
cd958eb3 MB |
3439 | /* confdefs.h. */ |
3440 | _ACEOF | |
3441 | cat confdefs.h >>conftest.$ac_ext | |
3442 | cat >>conftest.$ac_ext <<_ACEOF | |
3443 | /* end confdefs.h. */ | |
503d2be0 AS |
3444 | $ac_declaration |
3445 | int | |
3446 | main () | |
3447 | { | |
3448 | exit (42); | |
3449 | ; | |
3450 | return 0; | |
3451 | } | |
3452 | _ACEOF | |
3453 | rm -f conftest.$ac_objext | |
c0d27fcc | 3454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3455 | (eval $ac_compile) 2>&5 |
3456 | ac_status=$? | |
c0d27fcc | 3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3458 | (exit $ac_status); } && |
3459 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3461 | (eval $ac_try) 2>&5 |
3462 | ac_status=$? | |
c0d27fcc | 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3464 | (exit $ac_status); }; }; then |
3465 | break | |
3466 | else | |
3467 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3468 | sed 's/^/| /' conftest.$ac_ext >&5 |
3469 | ||
503d2be0 AS |
3470 | fi |
3471 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3472 | done | |
3473 | rm -f conftest* | |
3474 | if test -n "$ac_declaration"; then | |
3475 | echo '#ifdef __cplusplus' >>confdefs.h | |
3476 | echo $ac_declaration >>confdefs.h | |
3477 | echo '#endif' >>confdefs.h | |
3478 | fi | |
ba4481b5 | 3479 | |
503d2be0 AS |
3480 | else |
3481 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3482 | sed 's/^/| /' conftest.$ac_ext >&5 |
3483 | ||
503d2be0 AS |
3484 | fi |
3485 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3486 | ac_ext=c | |
3487 | ac_cpp='$CPP $CPPFLAGS' | |
3488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3491 | |
c0d27fcc | 3492 | |
ba4481b5 DL |
3493 | # On Suns, sometimes $CPP names a directory. |
3494 | if test -n "$CPP" && test -d "$CPP"; then | |
3495 | CPP= | |
3496 | fi | |
3497 | ||
3498 | #### Some systems specify a CPP to use unless we are using GCC. | |
3499 | #### Now that we know whether we are using GCC, we can decide whether | |
3500 | #### to use that one. | |
3501 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3502 | then | |
3503 | CPP="$NON_GNU_CPP" | |
3504 | fi | |
3505 | ||
3506 | #### Some systems specify a CC to use unless we are using GCC. | |
3507 | #### Now that we know whether we are using GCC, we can decide whether | |
3508 | #### to use that one. | |
3509 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3510 | test x$cc_specified != xyes | |
3511 | then | |
3512 | CC="$NON_GNU_CC" | |
3513 | fi | |
3514 | ||
3515 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3516 | then | |
3517 | CC="$CC $GCC_TEST_OPTIONS" | |
3518 | fi | |
3519 | ||
3520 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3521 | then | |
3522 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3523 | fi | |
3524 | ||
6a3a24fa | 3525 | #### Some other nice autoconf tests. |
ba4481b5 | 3526 | |
c0d27fcc | 3527 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3528 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3529 | LN_S=$as_ln_s | |
3530 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3531 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3532 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3533 | else |
c0d27fcc | 3534 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3535 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3536 | fi |
3537 | ||
503d2be0 AS |
3538 | ac_ext=c |
3539 | ac_cpp='$CPP $CPPFLAGS' | |
3540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3543 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3544 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3545 | # On Suns, sometimes $CPP names a directory. |
3546 | if test -n "$CPP" && test -d "$CPP"; then | |
3547 | CPP= | |
3548 | fi | |
3549 | if test -z "$CPP"; then | |
503d2be0 AS |
3550 | if test "${ac_cv_prog_CPP+set}" = set; then |
3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3552 | else | |
3553 | # Double quotes because CPP needs to be expanded | |
3554 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3555 | do | |
3556 | ac_preproc_ok=false | |
3557 | for ac_c_preproc_warn_flag in '' yes | |
3558 | do | |
3559 | # Use a header file that comes with gcc, so configuring glibc | |
3560 | # with a fresh cross-compiler works. | |
9e71690e DK |
3561 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3562 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3563 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3564 | # not just through cpp. "Syntax error" is here to catch this case. |
3565 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3566 | #line $LINENO "configure" |
cd958eb3 MB |
3567 | /* confdefs.h. */ |
3568 | _ACEOF | |
3569 | cat confdefs.h >>conftest.$ac_ext | |
3570 | cat >>conftest.$ac_ext <<_ACEOF | |
3571 | /* end confdefs.h. */ | |
9e71690e DK |
3572 | #ifdef __STDC__ |
3573 | # include <limits.h> | |
3574 | #else | |
3575 | # include <assert.h> | |
3576 | #endif | |
503d2be0 AS |
3577 | Syntax error |
3578 | _ACEOF | |
c0d27fcc | 3579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3581 | ac_status=$? | |
6bae0ccf | 3582 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3583 | rm -f conftest.er1 |
3584 | cat conftest.err >&5 | |
c0d27fcc | 3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3586 | (exit $ac_status); } >/dev/null; then |
3587 | if test -s conftest.err; then | |
3588 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3589 | else | |
3590 | ac_cpp_err= | |
3591 | fi | |
3592 | else | |
3593 | ac_cpp_err=yes | |
3594 | fi | |
3595 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3596 | : |
3597 | else | |
503d2be0 | 3598 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
3599 | sed 's/^/| /' conftest.$ac_ext >&5 |
3600 | ||
503d2be0 AS |
3601 | # Broken: fails on valid input. |
3602 | continue | |
3603 | fi | |
3604 | rm -f conftest.err conftest.$ac_ext | |
3605 | ||
3606 | # OK, works on sane cases. Now check whether non-existent headers | |
3607 | # can be detected and how. | |
3608 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3609 | #line $LINENO "configure" |
cd958eb3 MB |
3610 | /* confdefs.h. */ |
3611 | _ACEOF | |
3612 | cat confdefs.h >>conftest.$ac_ext | |
3613 | cat >>conftest.$ac_ext <<_ACEOF | |
3614 | /* end confdefs.h. */ | |
503d2be0 AS |
3615 | #include <ac_nonexistent.h> |
3616 | _ACEOF | |
c0d27fcc | 3617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3619 | ac_status=$? | |
6bae0ccf | 3620 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3621 | rm -f conftest.er1 |
3622 | cat conftest.err >&5 | |
c0d27fcc | 3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3624 | (exit $ac_status); } >/dev/null; then |
3625 | if test -s conftest.err; then | |
3626 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3627 | else | |
3628 | ac_cpp_err= | |
3629 | fi | |
3630 | else | |
3631 | ac_cpp_err=yes | |
3632 | fi | |
3633 | if test -z "$ac_cpp_err"; then | |
3634 | # Broken: success on invalid input. | |
3635 | continue | |
c4bb2108 | 3636 | else |
503d2be0 | 3637 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
3638 | sed 's/^/| /' conftest.$ac_ext >&5 |
3639 | ||
503d2be0 AS |
3640 | # Passes both tests. |
3641 | ac_preproc_ok=: | |
3642 | break | |
3643 | fi | |
3644 | rm -f conftest.err conftest.$ac_ext | |
3645 | ||
3646 | done | |
3647 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3648 | rm -f conftest.err conftest.$ac_ext | |
3649 | if $ac_preproc_ok; then | |
3650 | break | |
3651 | fi | |
3652 | ||
3653 | done | |
3654 | ac_cv_prog_CPP=$CPP | |
3655 | ||
3656 | fi | |
3657 | CPP=$ac_cv_prog_CPP | |
3658 | else | |
3659 | ac_cv_prog_CPP=$CPP | |
3660 | fi | |
c0d27fcc | 3661 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3662 | echo "${ECHO_T}$CPP" >&6 |
3663 | ac_preproc_ok=false | |
3664 | for ac_c_preproc_warn_flag in '' yes | |
3665 | do | |
3666 | # Use a header file that comes with gcc, so configuring glibc | |
3667 | # with a fresh cross-compiler works. | |
9e71690e DK |
3668 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3669 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3670 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3671 | # not just through cpp. "Syntax error" is here to catch this case. | |
3672 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3673 | #line $LINENO "configure" |
cd958eb3 MB |
3674 | /* confdefs.h. */ |
3675 | _ACEOF | |
3676 | cat confdefs.h >>conftest.$ac_ext | |
3677 | cat >>conftest.$ac_ext <<_ACEOF | |
3678 | /* end confdefs.h. */ | |
9e71690e DK |
3679 | #ifdef __STDC__ |
3680 | # include <limits.h> | |
3681 | #else | |
3682 | # include <assert.h> | |
3683 | #endif | |
503d2be0 AS |
3684 | Syntax error |
3685 | _ACEOF | |
c0d27fcc | 3686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3688 | ac_status=$? | |
6bae0ccf | 3689 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3690 | rm -f conftest.er1 |
3691 | cat conftest.err >&5 | |
c0d27fcc | 3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3693 | (exit $ac_status); } >/dev/null; then |
3694 | if test -s conftest.err; then | |
3695 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3696 | else | |
3697 | ac_cpp_err= | |
3698 | fi | |
3699 | else | |
3700 | ac_cpp_err=yes | |
3701 | fi | |
3702 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3703 | : |
3704 | else | |
503d2be0 | 3705 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
3706 | sed 's/^/| /' conftest.$ac_ext >&5 |
3707 | ||
503d2be0 AS |
3708 | # Broken: fails on valid input. |
3709 | continue | |
3710 | fi | |
3711 | rm -f conftest.err conftest.$ac_ext | |
3712 | ||
3713 | # OK, works on sane cases. Now check whether non-existent headers | |
3714 | # can be detected and how. | |
3715 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 3716 | #line $LINENO "configure" |
cd958eb3 MB |
3717 | /* confdefs.h. */ |
3718 | _ACEOF | |
3719 | cat confdefs.h >>conftest.$ac_ext | |
3720 | cat >>conftest.$ac_ext <<_ACEOF | |
3721 | /* end confdefs.h. */ | |
503d2be0 AS |
3722 | #include <ac_nonexistent.h> |
3723 | _ACEOF | |
c0d27fcc | 3724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3726 | ac_status=$? | |
6bae0ccf | 3727 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3728 | rm -f conftest.er1 |
3729 | cat conftest.err >&5 | |
c0d27fcc | 3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3731 | (exit $ac_status); } >/dev/null; then |
3732 | if test -s conftest.err; then | |
3733 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3734 | else | |
3735 | ac_cpp_err= | |
3736 | fi | |
3737 | else | |
3738 | ac_cpp_err=yes | |
c4bb2108 | 3739 | fi |
503d2be0 AS |
3740 | if test -z "$ac_cpp_err"; then |
3741 | # Broken: success on invalid input. | |
3742 | continue | |
3743 | else | |
3744 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
3745 | sed 's/^/| /' conftest.$ac_ext >&5 |
3746 | ||
503d2be0 AS |
3747 | # Passes both tests. |
3748 | ac_preproc_ok=: | |
3749 | break | |
ba4481b5 | 3750 | fi |
503d2be0 AS |
3751 | rm -f conftest.err conftest.$ac_ext |
3752 | ||
3753 | done | |
3754 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3755 | rm -f conftest.err conftest.$ac_ext | |
3756 | if $ac_preproc_ok; then | |
3757 | : | |
ba4481b5 | 3758 | else |
cd958eb3 MB |
3759 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3760 | See \`config.log' for more details." >&5 | |
3761 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3762 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3763 | { (exit 1); exit 1; }; } |
ba4481b5 | 3764 | fi |
503d2be0 AS |
3765 | |
3766 | ac_ext=c | |
3767 | ac_cpp='$CPP $CPPFLAGS' | |
3768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3771 | |
3772 | # Find a good install program. We prefer a C program (faster), | |
3773 | # so one script is as good as another. But avoid the broken or | |
3774 | # incompatible versions: | |
3775 | # SysV /etc/install, /usr/sbin/install | |
3776 | # SunOS /usr/etc/install | |
3777 | # IRIX /sbin/install | |
3778 | # AIX /bin/install | |
503d2be0 | 3779 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3780 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3781 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3782 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3783 | # ./install, which can be erroneously created by make from ./install.sh. | |
c0d27fcc MR |
3784 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3785 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3786 | if test -z "$INSTALL"; then |
503d2be0 AS |
3787 | if test "${ac_cv_path_install+set}" = set; then |
3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3789 | else |
c0d27fcc MR |
3790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3791 | for as_dir in $PATH | |
3792 | do | |
3793 | IFS=$as_save_IFS | |
3794 | test -z "$as_dir" && as_dir=. | |
3795 | # Account for people who put trailing slashes in PATH elements. | |
3796 | case $as_dir/ in | |
3797 | ./ | .// | /cC/* | \ | |
3798 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3799 | /usr/ucb/* ) ;; | |
3800 | *) | |
3801 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3802 | # Don't use installbsd from OSF since it installs stuff as root | |
3803 | # by default. | |
3804 | for ac_prog in ginstall scoinst install; do | |
3805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3806 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3807 | if test $ac_prog = install && | |
3808 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3809 | # AIX install. It has an incompatible calling convention. | |
3810 | : | |
3811 | elif test $ac_prog = install && | |
3812 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3813 | # program-specific install script used by HP pwplus--don't use. | |
3814 | : | |
3815 | else | |
3816 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3817 | break 3 | |
3818 | fi | |
3819 | fi | |
ba4481b5 | 3820 | done |
c0d27fcc MR |
3821 | done |
3822 | ;; | |
3823 | esac | |
3824 | done | |
3825 | ||
ba4481b5 DL |
3826 | |
3827 | fi | |
3828 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3829 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3830 | else |
3831 | # As a last resort, use the slow shell script. We don't cache a | |
3832 | # path for INSTALL within a source directory, because that will | |
3833 | # break other packages using the cache if that directory is | |
3834 | # removed, or if the path is relative. | |
503d2be0 | 3835 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3836 | fi |
3837 | fi | |
c0d27fcc | 3838 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3839 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3840 | |
3841 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3842 | # It thinks the first close brace ends the variable substitution. | |
3843 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3844 | ||
503d2be0 | 3845 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3846 | |
ba4481b5 DL |
3847 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3848 | ||
c0d27fcc MR |
3849 | if test "x$RANLIB" = x; then |
3850 | if test -n "$ac_tool_prefix"; then | |
3851 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3852 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3855 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3857 | else |
3858 | if test -n "$RANLIB"; then | |
3859 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3860 | else | |
c0d27fcc MR |
3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3862 | for as_dir in $PATH | |
3863 | do | |
3864 | IFS=$as_save_IFS | |
3865 | test -z "$as_dir" && as_dir=. | |
3866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3868 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3870 | break 2 | |
3871 | fi | |
3872 | done | |
503d2be0 AS |
3873 | done |
3874 | ||
7397acc4 DL |
3875 | fi |
3876 | fi | |
503d2be0 | 3877 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 3878 | if test -n "$RANLIB"; then |
c0d27fcc | 3879 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
3880 | echo "${ECHO_T}$RANLIB" >&6 |
3881 | else | |
c0d27fcc | 3882 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
3883 | echo "${ECHO_T}no" >&6 |
3884 | fi | |
3885 | ||
3886 | fi | |
3887 | if test -z "$ac_cv_prog_RANLIB"; then | |
3888 | ac_ct_RANLIB=$RANLIB | |
3889 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3890 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 3891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
3892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3893 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3895 | else | |
3896 | if test -n "$ac_ct_RANLIB"; then | |
3897 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3898 | else | |
c0d27fcc MR |
3899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3900 | for as_dir in $PATH | |
3901 | do | |
3902 | IFS=$as_save_IFS | |
3903 | test -z "$as_dir" && as_dir=. | |
3904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3906 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3908 | break 2 | |
3909 | fi | |
3910 | done | |
503d2be0 AS |
3911 | done |
3912 | ||
3913 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3914 | fi | |
3915 | fi | |
3916 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3917 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 3918 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
3919 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3920 | else | |
c0d27fcc | 3921 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
3922 | echo "${ECHO_T}no" >&6 |
3923 | fi | |
3924 | ||
3925 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 3926 | else |
503d2be0 | 3927 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
3928 | fi |
3929 | ||
3930 | fi | |
9e71690e DK |
3931 | # Extract the first word of "install-info", so it can be a program name with args. |
3932 | set dummy install-info; ac_word=$2 | |
3933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3935 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
3936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3937 | else | |
3938 | case $INSTALL_INFO in | |
3939 | [\\/]* | ?:[\\/]*) | |
3940 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
3941 | ;; | |
3942 | *) | |
3943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3944 | for as_dir in $PATH | |
3945 | do | |
3946 | IFS=$as_save_IFS | |
3947 | test -z "$as_dir" && as_dir=. | |
3948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3950 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
3951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3952 | break 2 | |
3953 | fi | |
3954 | done | |
3955 | done | |
3956 | ||
3957 | ;; | |
3958 | esac | |
3959 | fi | |
3960 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
3961 | ||
3962 | if test -n "$INSTALL_INFO"; then | |
3963 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
3964 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
3965 | else | |
3966 | echo "$as_me:$LINENO: result: no" >&5 | |
3967 | echo "${ECHO_T}no" >&6 | |
3968 | fi | |
3969 | ||
3970 | # Extract the first word of "install-info", so it can be a program name with args. | |
3971 | set dummy install-info; ac_word=$2 | |
3972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3974 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3976 | else | |
3977 | case $INSTALL_INFO in | |
3978 | [\\/]* | ?:[\\/]*) | |
3979 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
3980 | ;; | |
3981 | *) | |
3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3983 | for as_dir in /usr/sbin | |
3984 | do | |
3985 | IFS=$as_save_IFS | |
3986 | test -z "$as_dir" && as_dir=. | |
3987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3989 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
3990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3991 | break 2 | |
3992 | fi | |
3993 | done | |
3994 | done | |
3995 | ||
3996 | ;; | |
3997 | esac | |
3998 | fi | |
3999 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4000 | ||
4001 | if test -n "$INSTALL_INFO"; then | |
4002 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4003 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4004 | else | |
4005 | echo "$as_me:$LINENO: result: no" >&5 | |
4006 | echo "${ECHO_T}no" >&6 | |
4007 | fi | |
4008 | ||
4009 | # Extract the first word of "install-info", so it can be a program name with args. | |
4010 | set dummy install-info; ac_word=$2 | |
4011 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4013 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4015 | else | |
4016 | case $INSTALL_INFO in | |
4017 | [\\/]* | ?:[\\/]*) | |
4018 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4019 | ;; | |
4020 | *) | |
4021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4022 | for as_dir in /sbin | |
4023 | do | |
4024 | IFS=$as_save_IFS | |
4025 | test -z "$as_dir" && as_dir=. | |
4026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4028 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4030 | break 2 | |
4031 | fi | |
4032 | done | |
4033 | done | |
4034 | ||
4035 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4036 | ;; | |
4037 | esac | |
4038 | fi | |
4039 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4040 | ||
4041 | if test -n "$INSTALL_INFO"; then | |
4042 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4043 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4044 | else | |
4045 | echo "$as_me:$LINENO: result: no" >&5 | |
4046 | echo "${ECHO_T}no" >&6 | |
4047 | fi | |
4048 | ||
ba4481b5 | 4049 | |
c0d27fcc | 4050 | |
8e967cf7 MR |
4051 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4052 | then | |
4053 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4054 | fi | |
4055 | ||
4056 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4057 | then | |
4058 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4059 | fi | |
4060 | ||
c0d27fcc MR |
4061 | |
4062 | ||
6bae0ccf DL |
4063 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4064 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4065 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4067 | else | |
4068 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4069 | then ac_cv_prog_egrep='grep -E' | |
4070 | else ac_cv_prog_egrep='egrep' | |
4071 | fi | |
4072 | fi | |
4073 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4074 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4075 | EGREP=$ac_cv_prog_egrep | |
4076 | ||
4077 | ||
c0d27fcc MR |
4078 | |
4079 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4080 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4081 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 4082 | #line $LINENO "configure" |
cd958eb3 MB |
4083 | /* confdefs.h. */ |
4084 | _ACEOF | |
4085 | cat confdefs.h >>conftest.$ac_ext | |
4086 | cat >>conftest.$ac_ext <<_ACEOF | |
4087 | /* end confdefs.h. */ | |
ba4481b5 DL |
4088 | #ifdef _AIX |
4089 | yes | |
4090 | #endif | |
4091 | ||
503d2be0 | 4092 | _ACEOF |
ba4481b5 | 4093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4094 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4095 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4096 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4097 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4098 | #define _ALL_SOURCE 1 |
c0d27fcc | 4099 | _ACEOF |
ba4481b5 DL |
4100 | |
4101 | else | |
c0d27fcc | 4102 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4103 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4104 | fi |
4105 | rm -f conftest* | |
4106 | ||
c0d27fcc MR |
4107 | |
4108 | ||
3b33a005 DL |
4109 | #### Extract some information from the operating system and machine files. |
4110 | ||
c0d27fcc | 4111 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4112 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4113 | - whether the GNU malloc routines are usable..." >&5 |
4114 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4115 | - which libraries the lib-src programs will want, and |
503d2be0 | 4116 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4117 | |
4118 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4119 | ### and REAL_CFLAGS (which we use for real compilation). | |
4120 | ### The two are the same except on a few systems, where they are made | |
4121 | ### different to work around various lossages. For example, | |
4122 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4123 | ### as implying static linking. | |
4124 | ||
4125 | ### If the CFLAGS env var is specified, we use that value | |
4126 | ### instead of the default. | |
4127 | ||
4128 | ### It's not important that this name contain the PID; you can't run | |
4129 | ### two configures in the same directory and have anything work | |
4130 | ### anyway. | |
4131 | tempcname="conftest.c" | |
4132 | ||
4133 | echo ' | |
4134 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4135 | #include "'${srcdir}'/src/'${machfile}'" | |
4136 | #ifndef LIBS_MACHINE | |
4137 | #define LIBS_MACHINE | |
4138 | #endif | |
4139 | #ifndef LIBS_SYSTEM | |
4140 | #define LIBS_SYSTEM | |
4141 | #endif | |
4142 | #ifndef C_SWITCH_SYSTEM | |
4143 | #define C_SWITCH_SYSTEM | |
4144 | #endif | |
4145 | #ifndef C_SWITCH_MACHINE | |
4146 | #define C_SWITCH_MACHINE | |
4147 | #endif | |
4148 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4149 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4150 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4151 | ||
4152 | #ifndef LIB_X11_LIB | |
4153 | #define LIB_X11_LIB -lX11 | |
4154 | #endif | |
4155 | ||
4156 | #ifndef LIBX11_MACHINE | |
4157 | #define LIBX11_MACHINE | |
4158 | #endif | |
4159 | ||
4160 | #ifndef LIBX11_SYSTEM | |
4161 | #define LIBX11_SYSTEM | |
4162 | #endif | |
4163 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4164 | ||
4165 | #ifdef UNEXEC | |
4166 | configure___ unexec=UNEXEC | |
4167 | #else | |
4168 | configure___ unexec=unexec.o | |
4169 | #endif | |
4170 | ||
4171 | #ifdef SYSTEM_MALLOC | |
4172 | configure___ system_malloc=yes | |
4173 | #else | |
4174 | configure___ system_malloc=no | |
4175 | #endif | |
4176 | ||
ef9e4345 GM |
4177 | #ifdef USE_MMAP_FOR_BUFFERS |
4178 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4179 | #else |
ef9e4345 | 4180 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4181 | #endif |
4182 | ||
3b33a005 DL |
4183 | #ifndef C_DEBUG_SWITCH |
4184 | #define C_DEBUG_SWITCH -g | |
4185 | #endif | |
4186 | ||
4187 | #ifndef C_OPTIMIZE_SWITCH | |
4188 | #ifdef __GNUC__ | |
4189 | #define C_OPTIMIZE_SWITCH -O2 | |
4190 | #else | |
4191 | #define C_OPTIMIZE_SWITCH -O | |
4192 | #endif | |
4193 | #endif | |
4194 | ||
4195 | #ifndef LD_SWITCH_MACHINE | |
4196 | #define LD_SWITCH_MACHINE | |
4197 | #endif | |
4198 | ||
4199 | #ifndef LD_SWITCH_SYSTEM | |
4200 | #define LD_SWITCH_SYSTEM | |
4201 | #endif | |
4202 | ||
4203 | #ifndef LD_SWITCH_X_SITE_AUX | |
4204 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4205 | #endif |
3b33a005 DL |
4206 | |
4207 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4208 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4209 | ||
4210 | #ifdef THIS_IS_CONFIGURE | |
4211 | ||
4212 | /* Get the CFLAGS for tests in configure. */ | |
4213 | #ifdef __GNUC__ | |
4214 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4215 | #else | |
4216 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4217 | #endif | |
4218 | ||
4219 | #else /* not THIS_IS_CONFIGURE */ | |
4220 | ||
4221 | /* Get the CFLAGS for real compilation. */ | |
4222 | #ifdef __GNUC__ | |
4223 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4224 | #else | |
4225 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4226 | #endif | |
4227 | ||
4228 | #endif /* not THIS_IS_CONFIGURE */ | |
4229 | ' > ${tempcname} | |
4230 | ||
4231 | # The value of CPP is a quoted variable reference, so we need to do this | |
4232 | # to get its actual value... | |
4233 | CPP=`eval "echo $CPP"` | |
4234 | eval `${CPP} -Isrc ${tempcname} \ | |
4235 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4236 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4237 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4238 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4239 | else | |
4240 | REAL_CFLAGS="$CFLAGS" | |
4241 | fi | |
4242 | rm ${tempcname} | |
4243 | ||
4244 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4245 | ||
4246 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4247 | ||
4248 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4249 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4250 | else | |
4251 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4252 | fi | |
4253 | ||
6bae0ccf DL |
4254 | |
4255 | ||
22044edf DL |
4256 | |
4257 | cat >>confdefs.h <<\_ACEOF | |
4258 | #define _GNU_SOURCE 1 | |
4259 | _ACEOF | |
4260 | ||
4261 | ||
4262 | ||
503d2be0 | 4263 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4264 | if test "${enable_largefile+set}" = set; then |
4265 | enableval="$enable_largefile" | |
f4988be7 | 4266 | |
503d2be0 AS |
4267 | fi; |
4268 | if test "$enable_largefile" != no; then | |
f4988be7 | 4269 | |
c0d27fcc | 4270 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4271 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4272 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4274 | else |
f4988be7 | 4275 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4276 | if test "$GCC" != yes; then |
4277 | ac_save_CC=$CC | |
4278 | while :; do | |
4279 | # IRIX 6.2 and later do not support large files by default, | |
4280 | # so use the C compiler's -n32 option if that helps. | |
4281 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 4282 | #line $LINENO "configure" |
cd958eb3 MB |
4283 | /* confdefs.h. */ |
4284 | _ACEOF | |
4285 | cat confdefs.h >>conftest.$ac_ext | |
4286 | cat >>conftest.$ac_ext <<_ACEOF | |
4287 | /* end confdefs.h. */ | |
f4988be7 | 4288 | #include <sys/types.h> |
503d2be0 AS |
4289 | /* Check that off_t can represent 2**63 - 1 correctly. |
4290 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4291 | since some C++ compilers masquerading as C compilers | |
4292 | incorrectly reject 9223372036854775807. */ | |
4293 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4294 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4295 | && LARGE_OFF_T % 2147483647 == 1) | |
4296 | ? 1 : -1]; | |
4297 | int | |
4298 | main () | |
4299 | { | |
f4988be7 | 4300 | |
503d2be0 AS |
4301 | ; |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
4305 | rm -f conftest.$ac_objext | |
c0d27fcc | 4306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4307 | (eval $ac_compile) 2>&5 |
4308 | ac_status=$? | |
c0d27fcc | 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4310 | (exit $ac_status); } && |
4311 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4313 | (eval $ac_try) 2>&5 |
4314 | ac_status=$? | |
c0d27fcc | 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4316 | (exit $ac_status); }; }; then |
4317 | break | |
b192d653 | 4318 | else |
503d2be0 | 4319 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
4320 | sed 's/^/| /' conftest.$ac_ext >&5 |
4321 | ||
503d2be0 AS |
4322 | fi |
4323 | rm -f conftest.$ac_objext | |
4324 | CC="$CC -n32" | |
4325 | rm -f conftest.$ac_objext | |
c0d27fcc | 4326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4327 | (eval $ac_compile) 2>&5 |
4328 | ac_status=$? | |
c0d27fcc | 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4330 | (exit $ac_status); } && |
4331 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4333 | (eval $ac_try) 2>&5 |
4334 | ac_status=$? | |
c0d27fcc | 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4336 | (exit $ac_status); }; }; then |
4337 | ac_cv_sys_largefile_CC=' -n32'; break | |
4338 | else | |
4339 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4340 | sed 's/^/| /' conftest.$ac_ext >&5 |
4341 | ||
503d2be0 AS |
4342 | fi |
4343 | rm -f conftest.$ac_objext | |
4344 | break | |
4345 | done | |
4346 | CC=$ac_save_CC | |
4347 | rm -f conftest.$ac_ext | |
4348 | fi | |
b192d653 | 4349 | fi |
c0d27fcc | 4350 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4351 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4352 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4353 | CC=$CC$ac_cv_sys_largefile_CC | |
4354 | fi | |
b192d653 | 4355 | |
c0d27fcc | 4356 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4357 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4358 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4360 | else |
503d2be0 | 4361 | while :; do |
f4988be7 | 4362 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4363 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 4364 | #line $LINENO "configure" |
cd958eb3 MB |
4365 | /* confdefs.h. */ |
4366 | _ACEOF | |
4367 | cat confdefs.h >>conftest.$ac_ext | |
4368 | cat >>conftest.$ac_ext <<_ACEOF | |
4369 | /* end confdefs.h. */ | |
f4988be7 | 4370 | #include <sys/types.h> |
503d2be0 AS |
4371 | /* Check that off_t can represent 2**63 - 1 correctly. |
4372 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4373 | since some C++ compilers masquerading as C compilers | |
4374 | incorrectly reject 9223372036854775807. */ | |
4375 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4376 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4377 | && LARGE_OFF_T % 2147483647 == 1) | |
4378 | ? 1 : -1]; | |
4379 | int | |
4380 | main () | |
4381 | { | |
f4988be7 | 4382 | |
503d2be0 AS |
4383 | ; |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
4387 | rm -f conftest.$ac_objext | |
c0d27fcc | 4388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4389 | (eval $ac_compile) 2>&5 |
4390 | ac_status=$? | |
c0d27fcc | 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4392 | (exit $ac_status); } && |
4393 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4395 | (eval $ac_try) 2>&5 |
4396 | ac_status=$? | |
c0d27fcc | 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4398 | (exit $ac_status); }; }; then |
4399 | break | |
f4988be7 | 4400 | else |
503d2be0 | 4401 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
4402 | sed 's/^/| /' conftest.$ac_ext >&5 |
4403 | ||
503d2be0 AS |
4404 | fi |
4405 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4406 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 4407 | #line $LINENO "configure" |
cd958eb3 MB |
4408 | /* confdefs.h. */ |
4409 | _ACEOF | |
4410 | cat confdefs.h >>conftest.$ac_ext | |
4411 | cat >>conftest.$ac_ext <<_ACEOF | |
4412 | /* end confdefs.h. */ | |
f4988be7 GM |
4413 | #define _FILE_OFFSET_BITS 64 |
4414 | #include <sys/types.h> | |
503d2be0 AS |
4415 | /* Check that off_t can represent 2**63 - 1 correctly. |
4416 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4417 | since some C++ compilers masquerading as C compilers | |
4418 | incorrectly reject 9223372036854775807. */ | |
4419 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4420 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4421 | && LARGE_OFF_T % 2147483647 == 1) | |
4422 | ? 1 : -1]; | |
4423 | int | |
4424 | main () | |
4425 | { | |
4426 | ||
4427 | ; | |
4428 | return 0; | |
4429 | } | |
4430 | _ACEOF | |
4431 | rm -f conftest.$ac_objext | |
c0d27fcc | 4432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4433 | (eval $ac_compile) 2>&5 |
4434 | ac_status=$? | |
c0d27fcc | 4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4436 | (exit $ac_status); } && |
4437 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4439 | (eval $ac_try) 2>&5 |
4440 | ac_status=$? | |
c0d27fcc | 4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4442 | (exit $ac_status); }; }; then |
4443 | ac_cv_sys_file_offset_bits=64; break | |
4444 | else | |
4445 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4446 | sed 's/^/| /' conftest.$ac_ext >&5 |
4447 | ||
503d2be0 AS |
4448 | fi |
4449 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4450 | break | |
4451 | done | |
ba4481b5 | 4452 | fi |
c0d27fcc | 4453 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4454 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4455 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4456 | |
c0d27fcc | 4457 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4458 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4459 | _ACEOF |
f4988be7 | 4460 | |
503d2be0 AS |
4461 | fi |
4462 | rm -f conftest* | |
c0d27fcc | 4463 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4464 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4465 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4467 | else |
503d2be0 | 4468 | while :; do |
f4988be7 | 4469 | ac_cv_sys_large_files=no |
503d2be0 | 4470 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 4471 | #line $LINENO "configure" |
cd958eb3 MB |
4472 | /* confdefs.h. */ |
4473 | _ACEOF | |
4474 | cat confdefs.h >>conftest.$ac_ext | |
4475 | cat >>conftest.$ac_ext <<_ACEOF | |
4476 | /* end confdefs.h. */ | |
503d2be0 AS |
4477 | #include <sys/types.h> |
4478 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4479 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4480 | since some C++ compilers masquerading as C compilers | |
4481 | incorrectly reject 9223372036854775807. */ | |
4482 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4483 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4484 | && LARGE_OFF_T % 2147483647 == 1) | |
4485 | ? 1 : -1]; | |
4486 | int | |
4487 | main () | |
4488 | { | |
ba4481b5 | 4489 | |
503d2be0 AS |
4490 | ; |
4491 | return 0; | |
4492 | } | |
4493 | _ACEOF | |
4494 | rm -f conftest.$ac_objext | |
c0d27fcc | 4495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4496 | (eval $ac_compile) 2>&5 |
4497 | ac_status=$? | |
c0d27fcc | 4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4499 | (exit $ac_status); } && |
4500 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4502 | (eval $ac_try) 2>&5 |
4503 | ac_status=$? | |
c0d27fcc | 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4505 | (exit $ac_status); }; }; then |
4506 | break | |
ba4481b5 | 4507 | else |
503d2be0 | 4508 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
4509 | sed 's/^/| /' conftest.$ac_ext >&5 |
4510 | ||
503d2be0 AS |
4511 | fi |
4512 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4513 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 4514 | #line $LINENO "configure" |
cd958eb3 MB |
4515 | /* confdefs.h. */ |
4516 | _ACEOF | |
4517 | cat confdefs.h >>conftest.$ac_ext | |
4518 | cat >>conftest.$ac_ext <<_ACEOF | |
4519 | /* end confdefs.h. */ | |
f4988be7 | 4520 | #define _LARGE_FILES 1 |
503d2be0 AS |
4521 | #include <sys/types.h> |
4522 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4523 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4524 | since some C++ compilers masquerading as C compilers | |
4525 | incorrectly reject 9223372036854775807. */ | |
4526 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4527 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4528 | && LARGE_OFF_T % 2147483647 == 1) | |
4529 | ? 1 : -1]; | |
4530 | int | |
4531 | main () | |
4532 | { | |
f4988be7 | 4533 | |
503d2be0 AS |
4534 | ; |
4535 | return 0; | |
4536 | } | |
4537 | _ACEOF | |
4538 | rm -f conftest.$ac_objext | |
c0d27fcc | 4539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4540 | (eval $ac_compile) 2>&5 |
4541 | ac_status=$? | |
c0d27fcc | 4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4543 | (exit $ac_status); } && |
4544 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4546 | (eval $ac_try) 2>&5 |
4547 | ac_status=$? | |
c0d27fcc | 4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4549 | (exit $ac_status); }; }; then |
4550 | ac_cv_sys_large_files=1; break | |
4551 | else | |
4552 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 |
4554 | ||
503d2be0 AS |
4555 | fi |
4556 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4557 | break | |
4558 | done | |
ba4481b5 | 4559 | fi |
c0d27fcc | 4560 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4561 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4562 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4563 | |
c0d27fcc | 4564 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4565 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4566 | _ACEOF |
ba4481b5 | 4567 | |
503d2be0 AS |
4568 | fi |
4569 | rm -f conftest* | |
4570 | fi | |
ba4481b5 | 4571 | |
c0d27fcc | 4572 | |
2c9dccc9 PJ |
4573 | if test "${with_sound}" != "no"; then |
4574 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4575 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4576 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4577 | if test "${ac_cv_header_stdc+set}" = set; then | |
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4579 | else | |
4580 | cat >conftest.$ac_ext <<_ACEOF | |
4581 | #line $LINENO "configure" | |
cd958eb3 MB |
4582 | /* confdefs.h. */ |
4583 | _ACEOF | |
4584 | cat confdefs.h >>conftest.$ac_ext | |
4585 | cat >>conftest.$ac_ext <<_ACEOF | |
4586 | /* end confdefs.h. */ | |
c0d27fcc MR |
4587 | #include <stdlib.h> |
4588 | #include <stdarg.h> | |
4589 | #include <string.h> | |
4590 | #include <float.h> | |
98418dba | 4591 | |
cd958eb3 MB |
4592 | int |
4593 | main () | |
4594 | { | |
4595 | ||
4596 | ; | |
4597 | return 0; | |
4598 | } | |
c0d27fcc | 4599 | _ACEOF |
cd958eb3 MB |
4600 | rm -f conftest.$ac_objext |
4601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4602 | (eval $ac_compile) 2>&5 | |
c0d27fcc | 4603 | ac_status=$? |
c0d27fcc | 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cd958eb3 MB |
4605 | (exit $ac_status); } && |
4606 | { ac_try='test -s conftest.$ac_objext' | |
4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4608 | (eval $ac_try) 2>&5 | |
4609 | ac_status=$? | |
4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4611 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4612 | ac_cv_header_stdc=yes |
4613 | else | |
4614 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
4616 | ||
4617 | ac_cv_header_stdc=no | |
c0d27fcc | 4618 | fi |
cd958eb3 | 4619 | rm -f conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4620 | |
4621 | if test $ac_cv_header_stdc = yes; then | |
4622 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4623 | cat >conftest.$ac_ext <<_ACEOF | |
4624 | #line $LINENO "configure" | |
cd958eb3 MB |
4625 | /* confdefs.h. */ |
4626 | _ACEOF | |
4627 | cat confdefs.h >>conftest.$ac_ext | |
4628 | cat >>conftest.$ac_ext <<_ACEOF | |
4629 | /* end confdefs.h. */ | |
c0d27fcc MR |
4630 | #include <string.h> |
4631 | ||
4632 | _ACEOF | |
4633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4634 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4635 | : |
4636 | else | |
4637 | ac_cv_header_stdc=no | |
4638 | fi | |
4639 | rm -f conftest* | |
4640 | ||
4641 | fi | |
4642 | ||
4643 | if test $ac_cv_header_stdc = yes; then | |
4644 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4645 | cat >conftest.$ac_ext <<_ACEOF | |
4646 | #line $LINENO "configure" | |
cd958eb3 MB |
4647 | /* confdefs.h. */ |
4648 | _ACEOF | |
4649 | cat confdefs.h >>conftest.$ac_ext | |
4650 | cat >>conftest.$ac_ext <<_ACEOF | |
4651 | /* end confdefs.h. */ | |
c0d27fcc MR |
4652 | #include <stdlib.h> |
4653 | ||
4654 | _ACEOF | |
4655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4656 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4657 | : |
4658 | else | |
4659 | ac_cv_header_stdc=no | |
4660 | fi | |
4661 | rm -f conftest* | |
4662 | ||
4663 | fi | |
4664 | ||
4665 | if test $ac_cv_header_stdc = yes; then | |
4666 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4667 | if test "$cross_compiling" = yes; then | |
4668 | : | |
4669 | else | |
4670 | cat >conftest.$ac_ext <<_ACEOF | |
4671 | #line $LINENO "configure" | |
cd958eb3 MB |
4672 | /* confdefs.h. */ |
4673 | _ACEOF | |
4674 | cat confdefs.h >>conftest.$ac_ext | |
4675 | cat >>conftest.$ac_ext <<_ACEOF | |
4676 | /* end confdefs.h. */ | |
c0d27fcc MR |
4677 | #include <ctype.h> |
4678 | #if ((' ' & 0x0FF) == 0x020) | |
4679 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4680 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4681 | #else | |
cd958eb3 MB |
4682 | # define ISLOWER(c) \ |
4683 | (('a' <= (c) && (c) <= 'i') \ | |
c0d27fcc MR |
4684 | || ('j' <= (c) && (c) <= 'r') \ |
4685 | || ('s' <= (c) && (c) <= 'z')) | |
4686 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4687 | #endif | |
4688 | ||
4689 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4690 | int | |
4691 | main () | |
4692 | { | |
4693 | int i; | |
4694 | for (i = 0; i < 256; i++) | |
4695 | if (XOR (islower (i), ISLOWER (i)) | |
4696 | || toupper (i) != TOUPPER (i)) | |
4697 | exit(2); | |
4698 | exit (0); | |
4699 | } | |
4700 | _ACEOF | |
4701 | rm -f conftest$ac_exeext | |
4702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4703 | (eval $ac_link) 2>&5 | |
4704 | ac_status=$? | |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4708 | (eval $ac_try) 2>&5 | |
4709 | ac_status=$? | |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; }; then | |
4712 | : | |
4713 | else | |
4714 | echo "$as_me: program exited with status $ac_status" >&5 | |
4715 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4716 | sed 's/^/| /' conftest.$ac_ext >&5 |
4717 | ||
c0d27fcc MR |
4718 | ( exit $ac_status ) |
4719 | ac_cv_header_stdc=no | |
4720 | fi | |
6bae0ccf | 4721 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4722 | fi |
4723 | fi | |
4724 | fi | |
4725 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4726 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4727 | if test $ac_cv_header_stdc = yes; then | |
4728 | ||
4729 | cat >>confdefs.h <<\_ACEOF | |
4730 | #define STDC_HEADERS 1 | |
4731 | _ACEOF | |
4732 | ||
4733 | fi | |
4734 | ||
4735 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4736 | ||
4737 | ||
4738 | ||
4739 | ||
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | ||
4745 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4746 | inttypes.h stdint.h unistd.h | |
98418dba CW |
4747 | do |
4748 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4753 | else |
925c2f3f | 4754 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 4755 | #line $LINENO "configure" |
cd958eb3 MB |
4756 | /* confdefs.h. */ |
4757 | _ACEOF | |
4758 | cat confdefs.h >>conftest.$ac_ext | |
4759 | cat >>conftest.$ac_ext <<_ACEOF | |
4760 | /* end confdefs.h. */ | |
c0d27fcc MR |
4761 | $ac_includes_default |
4762 | ||
4763 | #include <$ac_header> | |
4764 | _ACEOF | |
4765 | rm -f conftest.$ac_objext | |
4766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4767 | (eval $ac_compile) 2>&5 | |
4768 | ac_status=$? | |
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 | (exit $ac_status); } && | |
4771 | { ac_try='test -s conftest.$ac_objext' | |
4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4773 | (eval $ac_try) 2>&5 | |
4774 | ac_status=$? | |
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4776 | (exit $ac_status); }; }; then | |
4777 | eval "$as_ac_Header=yes" | |
4778 | else | |
4779 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4780 | sed 's/^/| /' conftest.$ac_ext >&5 |
4781 | ||
c0d27fcc MR |
4782 | eval "$as_ac_Header=no" |
4783 | fi | |
4784 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4785 | fi | |
4786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4788 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4789 | cat >>confdefs.h <<_ACEOF | |
4790 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4791 | _ACEOF | |
4792 | ||
4793 | fi | |
4794 | ||
4795 | done | |
4796 | ||
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
4802 | do | |
4803 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4809 | fi | |
4810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4811 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4812 | else | |
4813 | # Is the header compilable? | |
4814 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4816 | cat >conftest.$ac_ext <<_ACEOF | |
4817 | #line $LINENO "configure" | |
cd958eb3 MB |
4818 | /* confdefs.h. */ |
4819 | _ACEOF | |
4820 | cat confdefs.h >>conftest.$ac_ext | |
4821 | cat >>conftest.$ac_ext <<_ACEOF | |
4822 | /* end confdefs.h. */ | |
c0d27fcc | 4823 | $ac_includes_default |
98418dba | 4824 | #include <$ac_header> |
503d2be0 | 4825 | _ACEOF |
c0d27fcc MR |
4826 | rm -f conftest.$ac_objext |
4827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4828 | (eval $ac_compile) 2>&5 | |
4829 | ac_status=$? | |
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4831 | (exit $ac_status); } && | |
4832 | { ac_try='test -s conftest.$ac_objext' | |
4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4834 | (eval $ac_try) 2>&5 | |
4835 | ac_status=$? | |
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4837 | (exit $ac_status); }; }; then | |
4838 | ac_header_compiler=yes | |
4839 | else | |
4840 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
4841 | sed 's/^/| /' conftest.$ac_ext >&5 |
4842 | ||
c0d27fcc MR |
4843 | ac_header_compiler=no |
4844 | fi | |
4845 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4847 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4848 | ||
4849 | # Is the header present? | |
4850 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4852 | cat >conftest.$ac_ext <<_ACEOF | |
4853 | #line $LINENO "configure" | |
cd958eb3 MB |
4854 | /* confdefs.h. */ |
4855 | _ACEOF | |
4856 | cat confdefs.h >>conftest.$ac_ext | |
4857 | cat >>conftest.$ac_ext <<_ACEOF | |
4858 | /* end confdefs.h. */ | |
c0d27fcc MR |
4859 | #include <$ac_header> |
4860 | _ACEOF | |
4861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 4862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 4863 | ac_status=$? |
6bae0ccf | 4864 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
4865 | rm -f conftest.er1 |
4866 | cat conftest.err >&5 | |
c0d27fcc | 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
4868 | (exit $ac_status); } >/dev/null; then |
4869 | if test -s conftest.err; then | |
4870 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4871 | else | |
4872 | ac_cpp_err= | |
4873 | fi | |
4874 | else | |
4875 | ac_cpp_err=yes | |
4876 | fi | |
4877 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 4878 | ac_header_preproc=yes |
f4988be7 | 4879 | else |
503d2be0 | 4880 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
4881 | sed 's/^/| /' conftest.$ac_ext >&5 |
4882 | ||
c0d27fcc | 4883 | ac_header_preproc=no |
f4988be7 | 4884 | fi |
98418dba | 4885 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
4886 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4887 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4888 | ||
4889 | # So? What about this header? | |
4890 | case $ac_header_compiler:$ac_header_preproc in | |
4891 | yes:no ) | |
4892 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4893 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
4895 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4896 | ( | |
4897 | cat <<\_ASBOX | |
4898 | ## ------------------------------------ ## | |
4899 | ## Report this to bug-autoconf@gnu.org. ## | |
4900 | ## ------------------------------------ ## | |
4901 | _ASBOX | |
4902 | ) | | |
4903 | sed "s/^/$as_me: WARNING: /" >&2 | |
4904 | ;; | |
c0d27fcc MR |
4905 | no:yes ) |
4906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
4911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4912 | ( | |
4913 | cat <<\_ASBOX | |
4914 | ## ------------------------------------ ## | |
4915 | ## Report this to bug-autoconf@gnu.org. ## | |
4916 | ## ------------------------------------ ## | |
4917 | _ASBOX | |
4918 | ) | | |
4919 | sed "s/^/$as_me: WARNING: /" >&2 | |
4920 | ;; | |
c0d27fcc MR |
4921 | esac |
4922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4926 | else | |
4927 | eval "$as_ac_Header=$ac_header_preproc" | |
f4988be7 | 4928 | fi |
c0d27fcc | 4929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 4930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
4931 | |
4932 | fi | |
98418dba | 4933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 4934 | cat >>confdefs.h <<_ACEOF |
98418dba | 4935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 4936 | _ACEOF |
f4988be7 GM |
4937 | |
4938 | fi | |
c0d27fcc | 4939 | |
98418dba CW |
4940 | done |
4941 | ||
4942 | # Emulation library used on NetBSD. | |
c0d27fcc | 4943 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
4944 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
4945 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 4946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4947 | else |
98418dba CW |
4948 | ac_check_lib_save_LIBS=$LIBS |
4949 | LIBS="-lossaudio $LIBS" | |
4950 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 4951 | #line $LINENO "configure" |
cd958eb3 MB |
4952 | /* confdefs.h. */ |
4953 | _ACEOF | |
4954 | cat confdefs.h >>conftest.$ac_ext | |
4955 | cat >>conftest.$ac_ext <<_ACEOF | |
4956 | /* end confdefs.h. */ | |
98418dba CW |
4957 | |
4958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4959 | #ifdef __cplusplus | |
4960 | extern "C" | |
f4988be7 | 4961 | #endif |
98418dba CW |
4962 | /* We use char because int might match the return type of a gcc2 |
4963 | builtin and then its argument prototype would still apply. */ | |
4964 | char _oss_ioctl (); | |
503d2be0 AS |
4965 | int |
4966 | main () | |
4967 | { | |
98418dba | 4968 | _oss_ioctl (); |
503d2be0 AS |
4969 | ; |
4970 | return 0; | |
4971 | } | |
4972 | _ACEOF | |
98418dba | 4973 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 4974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 4975 | (eval $ac_link) 2>&5 |
503d2be0 | 4976 | ac_status=$? |
c0d27fcc | 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4978 | (exit $ac_status); } && |
98418dba | 4979 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4981 | (eval $ac_try) 2>&5 |
4982 | ac_status=$? | |
c0d27fcc | 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4984 | (exit $ac_status); }; }; then |
98418dba | 4985 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 4986 | else |
503d2be0 | 4987 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
4988 | sed 's/^/| /' conftest.$ac_ext >&5 |
4989 | ||
98418dba | 4990 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 4991 | fi |
98418dba CW |
4992 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4993 | LIBS=$ac_check_lib_save_LIBS | |
f4988be7 | 4994 | fi |
c0d27fcc | 4995 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
4996 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
4997 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
4998 | LIBSOUND=-lossaudio | |
4999 | else | |
5000 | LIBSOUND= | |
5001 | fi | |
5002 | ||
c0d27fcc | 5003 | |
f4988be7 | 5004 | fi |
c0d27fcc MR |
5005 | |
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ||
22044edf DL |
5023 | |
5024 | ||
c0d27fcc MR |
5025 | |
5026 | ||
f4988be7 | 5027 | |
98418dba CW |
5028 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5029 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
c0d27fcc | 5030 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ |
22044edf | 5031 | sys/param.h sys/vlimit.h sys/resource.h |
98418dba CW |
5032 | do |
5033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5039 | fi |
5040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5042 | else |
c0d27fcc MR |
5043 | # Is the header compilable? |
5044 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5046 | cat >conftest.$ac_ext <<_ACEOF | |
5047 | #line $LINENO "configure" | |
cd958eb3 MB |
5048 | /* confdefs.h. */ |
5049 | _ACEOF | |
5050 | cat confdefs.h >>conftest.$ac_ext | |
5051 | cat >>conftest.$ac_ext <<_ACEOF | |
5052 | /* end confdefs.h. */ | |
c0d27fcc MR |
5053 | $ac_includes_default |
5054 | #include <$ac_header> | |
5055 | _ACEOF | |
5056 | rm -f conftest.$ac_objext | |
5057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5058 | (eval $ac_compile) 2>&5 | |
5059 | ac_status=$? | |
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5061 | (exit $ac_status); } && | |
5062 | { ac_try='test -s conftest.$ac_objext' | |
5063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5064 | (eval $ac_try) 2>&5 | |
5065 | ac_status=$? | |
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5067 | (exit $ac_status); }; }; then | |
5068 | ac_header_compiler=yes | |
5069 | else | |
5070 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
5071 | sed 's/^/| /' conftest.$ac_ext >&5 |
5072 | ||
c0d27fcc MR |
5073 | ac_header_compiler=no |
5074 | fi | |
5075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5078 | ||
5079 | # Is the header present? | |
5080 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5082 | cat >conftest.$ac_ext <<_ACEOF | |
5083 | #line $LINENO "configure" | |
cd958eb3 MB |
5084 | /* confdefs.h. */ |
5085 | _ACEOF | |
5086 | cat confdefs.h >>conftest.$ac_ext | |
5087 | cat >>conftest.$ac_ext <<_ACEOF | |
5088 | /* end confdefs.h. */ | |
98418dba | 5089 | #include <$ac_header> |
503d2be0 | 5090 | _ACEOF |
c0d27fcc | 5091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5093 | ac_status=$? |
6bae0ccf | 5094 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5095 | rm -f conftest.er1 |
5096 | cat conftest.err >&5 | |
c0d27fcc | 5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5098 | (exit $ac_status); } >/dev/null; then |
5099 | if test -s conftest.err; then | |
5100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5101 | else | |
5102 | ac_cpp_err= | |
5103 | fi | |
5104 | else | |
5105 | ac_cpp_err=yes | |
5106 | fi | |
5107 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5108 | ac_header_preproc=yes |
34ec9ebe | 5109 | else |
503d2be0 | 5110 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5111 | sed 's/^/| /' conftest.$ac_ext >&5 |
5112 | ||
c0d27fcc | 5113 | ac_header_preproc=no |
34ec9ebe | 5114 | fi |
98418dba | 5115 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5118 | ||
5119 | # So? What about this header? | |
5120 | case $ac_header_compiler:$ac_header_preproc in | |
5121 | yes:no ) | |
5122 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5123 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
5125 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5126 | ( | |
5127 | cat <<\_ASBOX | |
5128 | ## ------------------------------------ ## | |
5129 | ## Report this to bug-autoconf@gnu.org. ## | |
5130 | ## ------------------------------------ ## | |
5131 | _ASBOX | |
5132 | ) | | |
5133 | sed "s/^/$as_me: WARNING: /" >&2 | |
5134 | ;; | |
c0d27fcc MR |
5135 | no:yes ) |
5136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
5141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5142 | ( | |
5143 | cat <<\_ASBOX | |
5144 | ## ------------------------------------ ## | |
5145 | ## Report this to bug-autoconf@gnu.org. ## | |
5146 | ## ------------------------------------ ## | |
5147 | _ASBOX | |
5148 | ) | | |
5149 | sed "s/^/$as_me: WARNING: /" >&2 | |
5150 | ;; | |
c0d27fcc MR |
5151 | esac |
5152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5156 | else | |
5157 | eval "$as_ac_Header=$ac_header_preproc" | |
34ec9ebe | 5158 | fi |
c0d27fcc | 5159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5161 | |
5162 | fi | |
98418dba | 5163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5164 | cat >>confdefs.h <<_ACEOF |
98418dba | 5165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5166 | _ACEOF |
34ec9ebe | 5167 | |
98418dba | 5168 | fi |
c0d27fcc | 5169 | |
98418dba CW |
5170 | done |
5171 | ||
22044edf DL |
5172 | |
5173 | for ac_header in term.h | |
5174 | do | |
5175 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5180 | else | |
5181 | cat >conftest.$ac_ext <<_ACEOF | |
5182 | #line $LINENO "configure" | |
cd958eb3 MB |
5183 | /* confdefs.h. */ |
5184 | _ACEOF | |
5185 | cat confdefs.h >>conftest.$ac_ext | |
5186 | cat >>conftest.$ac_ext <<_ACEOF | |
5187 | /* end confdefs.h. */ | |
22044edf DL |
5188 | #include <$ac_header> |
5189 | _ACEOF | |
5190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5192 | ac_status=$? | |
5193 | grep -v '^ *+' conftest.er1 >conftest.err | |
5194 | rm -f conftest.er1 | |
5195 | cat conftest.err >&5 | |
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | (exit $ac_status); } >/dev/null; then | |
5198 | if test -s conftest.err; then | |
5199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5200 | else | |
5201 | ac_cpp_err= | |
5202 | fi | |
5203 | else | |
5204 | ac_cpp_err=yes | |
5205 | fi | |
5206 | if test -z "$ac_cpp_err"; then | |
5207 | eval "$as_ac_Header=yes" | |
5208 | else | |
5209 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
5210 | sed 's/^/| /' conftest.$ac_ext >&5 |
5211 | ||
22044edf DL |
5212 | eval "$as_ac_Header=no" |
5213 | fi | |
5214 | rm -f conftest.err conftest.$ac_ext | |
5215 | fi | |
5216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5219 | cat >>confdefs.h <<_ACEOF | |
5220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5221 | _ACEOF | |
5222 | ||
5223 | fi | |
5224 | ||
5225 | done | |
5226 | ||
c0d27fcc | 5227 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5228 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5229 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5231 | else |
503d2be0 | 5232 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5233 | #line $LINENO "configure" |
cd958eb3 MB |
5234 | /* confdefs.h. */ |
5235 | _ACEOF | |
5236 | cat confdefs.h >>conftest.$ac_ext | |
5237 | cat >>conftest.$ac_ext <<_ACEOF | |
5238 | /* end confdefs.h. */ | |
98418dba CW |
5239 | #include <stdlib.h> |
5240 | #include <stdarg.h> | |
5241 | #include <string.h> | |
5242 | #include <float.h> | |
5243 | ||
cd958eb3 MB |
5244 | int |
5245 | main () | |
5246 | { | |
5247 | ||
5248 | ; | |
5249 | return 0; | |
5250 | } | |
98418dba | 5251 | _ACEOF |
cd958eb3 MB |
5252 | rm -f conftest.$ac_objext |
5253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5254 | (eval $ac_compile) 2>&5 | |
503d2be0 | 5255 | ac_status=$? |
c0d27fcc | 5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cd958eb3 MB |
5257 | (exit $ac_status); } && |
5258 | { ac_try='test -s conftest.$ac_objext' | |
5259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5260 | (eval $ac_try) 2>&5 | |
5261 | ac_status=$? | |
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5263 | (exit $ac_status); }; }; then | |
98418dba | 5264 | ac_cv_header_stdc=yes |
ba4481b5 | 5265 | else |
503d2be0 | 5266 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5267 | sed 's/^/| /' conftest.$ac_ext >&5 |
5268 | ||
5269 | ac_cv_header_stdc=no | |
ba4481b5 | 5270 | fi |
cd958eb3 | 5271 | rm -f conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5272 | |
5273 | if test $ac_cv_header_stdc = yes; then | |
5274 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5275 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 5276 | #line $LINENO "configure" |
cd958eb3 MB |
5277 | /* confdefs.h. */ |
5278 | _ACEOF | |
5279 | cat confdefs.h >>conftest.$ac_ext | |
5280 | cat >>conftest.$ac_ext <<_ACEOF | |
5281 | /* end confdefs.h. */ | |
98418dba CW |
5282 | #include <string.h> |
5283 | ||
5284 | _ACEOF | |
5285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5286 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5287 | : |
5288 | else | |
5289 | ac_cv_header_stdc=no | |
ba4481b5 | 5290 | fi |
98418dba | 5291 | rm -f conftest* |
ba4481b5 DL |
5292 | |
5293 | fi | |
5294 | ||
98418dba CW |
5295 | if test $ac_cv_header_stdc = yes; then |
5296 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5297 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 5298 | #line $LINENO "configure" |
cd958eb3 MB |
5299 | /* confdefs.h. */ |
5300 | _ACEOF | |
5301 | cat confdefs.h >>conftest.$ac_ext | |
5302 | cat >>conftest.$ac_ext <<_ACEOF | |
5303 | /* end confdefs.h. */ | |
98418dba CW |
5304 | #include <stdlib.h> |
5305 | ||
5306 | _ACEOF | |
5307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5308 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5309 | : |
5310 | else | |
5311 | ac_cv_header_stdc=no | |
5312 | fi | |
5313 | rm -f conftest* | |
5314 | ||
5315 | fi | |
5316 | ||
5317 | if test $ac_cv_header_stdc = yes; then | |
5318 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5319 | if test "$cross_compiling" = yes; then | |
5320 | : | |
d42122a3 | 5321 | else |
503d2be0 | 5322 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5323 | #line $LINENO "configure" |
cd958eb3 MB |
5324 | /* confdefs.h. */ |
5325 | _ACEOF | |
5326 | cat confdefs.h >>conftest.$ac_ext | |
5327 | cat >>conftest.$ac_ext <<_ACEOF | |
5328 | /* end confdefs.h. */ | |
98418dba CW |
5329 | #include <ctype.h> |
5330 | #if ((' ' & 0x0FF) == 0x020) | |
5331 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5332 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5333 | #else | |
cd958eb3 MB |
5334 | # define ISLOWER(c) \ |
5335 | (('a' <= (c) && (c) <= 'i') \ | |
98418dba CW |
5336 | || ('j' <= (c) && (c) <= 'r') \ |
5337 | || ('s' <= (c) && (c) <= 'z')) | |
5338 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5339 | #endif | |
5340 | ||
5341 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5342 | int |
5343 | main () | |
5344 | { | |
98418dba CW |
5345 | int i; |
5346 | for (i = 0; i < 256; i++) | |
5347 | if (XOR (islower (i), ISLOWER (i)) | |
5348 | || toupper (i) != TOUPPER (i)) | |
5349 | exit(2); | |
5350 | exit (0); | |
503d2be0 AS |
5351 | } |
5352 | _ACEOF | |
98418dba | 5353 | rm -f conftest$ac_exeext |
c0d27fcc | 5354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5355 | (eval $ac_link) 2>&5 |
503d2be0 | 5356 | ac_status=$? |
c0d27fcc | 5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5360 | (eval $ac_try) 2>&5 |
5361 | ac_status=$? | |
c0d27fcc | 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5363 | (exit $ac_status); }; }; then |
98418dba | 5364 | : |
d42122a3 | 5365 | else |
98418dba CW |
5366 | echo "$as_me: program exited with status $ac_status" >&5 |
5367 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
5368 | sed 's/^/| /' conftest.$ac_ext >&5 |
5369 | ||
c0d27fcc | 5370 | ( exit $ac_status ) |
98418dba | 5371 | ac_cv_header_stdc=no |
d42122a3 | 5372 | fi |
6bae0ccf | 5373 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5374 | fi |
98418dba CW |
5375 | fi |
5376 | fi | |
c0d27fcc | 5377 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5378 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5379 | if test $ac_cv_header_stdc = yes; then | |
5380 | ||
c0d27fcc | 5381 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5382 | #define STDC_HEADERS 1 |
c0d27fcc | 5383 | _ACEOF |
d42122a3 DL |
5384 | |
5385 | fi | |
5386 | ||
c0d27fcc | 5387 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5388 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5389 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5391 | else |
503d2be0 | 5392 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5393 | #line $LINENO "configure" |
cd958eb3 MB |
5394 | /* confdefs.h. */ |
5395 | _ACEOF | |
5396 | cat confdefs.h >>conftest.$ac_ext | |
5397 | cat >>conftest.$ac_ext <<_ACEOF | |
5398 | /* end confdefs.h. */ | |
ba4481b5 | 5399 | #include <sys/types.h> |
98418dba | 5400 | #include <sys/time.h> |
ba4481b5 | 5401 | #include <time.h> |
503d2be0 AS |
5402 | |
5403 | int | |
5404 | main () | |
5405 | { | |
98418dba CW |
5406 | if ((struct tm *) 0) |
5407 | return 0; | |
503d2be0 AS |
5408 | ; |
5409 | return 0; | |
5410 | } | |
5411 | _ACEOF | |
5412 | rm -f conftest.$ac_objext | |
c0d27fcc | 5413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5414 | (eval $ac_compile) 2>&5 |
5415 | ac_status=$? | |
c0d27fcc | 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5417 | (exit $ac_status); } && |
5418 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5420 | (eval $ac_try) 2>&5 |
5421 | ac_status=$? | |
c0d27fcc | 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5423 | (exit $ac_status); }; }; then |
98418dba | 5424 | ac_cv_header_time=yes |
ba4481b5 | 5425 | else |
503d2be0 | 5426 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5427 | sed 's/^/| /' conftest.$ac_ext >&5 |
5428 | ||
98418dba | 5429 | ac_cv_header_time=no |
ba4481b5 | 5430 | fi |
503d2be0 | 5431 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5432 | fi |
c0d27fcc | 5433 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5434 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5435 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5436 | |
c0d27fcc | 5437 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5438 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5439 | _ACEOF |
ba4481b5 DL |
5440 | |
5441 | fi | |
5442 | ||
cd958eb3 MB |
5443 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5444 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5445 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5447 | else |
503d2be0 | 5448 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5449 | #line $LINENO "configure" |
cd958eb3 MB |
5450 | /* confdefs.h. */ |
5451 | _ACEOF | |
5452 | cat confdefs.h >>conftest.$ac_ext | |
5453 | cat >>conftest.$ac_ext <<_ACEOF | |
5454 | /* end confdefs.h. */ | |
5455 | $ac_includes_default | |
5456 | int | |
5457 | main () | |
5458 | { | |
5459 | #ifndef sys_siglist | |
5460 | char *p = (char *) sys_siglist; | |
98418dba | 5461 | #endif |
503d2be0 | 5462 | |
cd958eb3 MB |
5463 | ; |
5464 | return 0; | |
5465 | } | |
5466 | _ACEOF | |
5467 | rm -f conftest.$ac_objext | |
5468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5469 | (eval $ac_compile) 2>&5 | |
5470 | ac_status=$? | |
5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5472 | (exit $ac_status); } && | |
5473 | { ac_try='test -s conftest.$ac_objext' | |
5474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5475 | (eval $ac_try) 2>&5 | |
5476 | ac_status=$? | |
5477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5478 | (exit $ac_status); }; }; then | |
5479 | ac_cv_have_decl_sys_siglist=yes | |
5480 | else | |
5481 | echo "$as_me: failed program was:" >&5 | |
5482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5483 | ||
5484 | ac_cv_have_decl_sys_siglist=no | |
5485 | fi | |
5486 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5487 | fi | |
5488 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5489 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5490 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5491 | ||
5492 | cat >>confdefs.h <<_ACEOF | |
5493 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5494 | _ACEOF | |
5495 | ||
5496 | ||
5497 | else | |
5498 | cat >>confdefs.h <<_ACEOF | |
5499 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5500 | _ACEOF | |
5501 | ||
5502 | ||
5503 | fi | |
5504 | ||
5505 | ||
5506 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5507 | # For Tru64, at least: | |
5508 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5509 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5510 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5512 | else | |
5513 | cat >conftest.$ac_ext <<_ACEOF | |
5514 | #line $LINENO "configure" | |
5515 | /* confdefs.h. */ | |
5516 | _ACEOF | |
5517 | cat confdefs.h >>conftest.$ac_ext | |
5518 | cat >>conftest.$ac_ext <<_ACEOF | |
5519 | /* end confdefs.h. */ | |
5520 | $ac_includes_default | |
503d2be0 AS |
5521 | int |
5522 | main () | |
5523 | { | |
cd958eb3 MB |
5524 | #ifndef __sys_siglist |
5525 | char *p = (char *) __sys_siglist; | |
5526 | #endif | |
5527 | ||
503d2be0 AS |
5528 | ; |
5529 | return 0; | |
5530 | } | |
5531 | _ACEOF | |
5532 | rm -f conftest.$ac_objext | |
c0d27fcc | 5533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5534 | (eval $ac_compile) 2>&5 |
5535 | ac_status=$? | |
c0d27fcc | 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5537 | (exit $ac_status); } && |
5538 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5540 | (eval $ac_try) 2>&5 |
5541 | ac_status=$? | |
c0d27fcc | 5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5543 | (exit $ac_status); }; }; then |
cd958eb3 | 5544 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5545 | else |
503d2be0 | 5546 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5547 | sed 's/^/| /' conftest.$ac_ext >&5 |
5548 | ||
5549 | ac_cv_have_decl___sys_siglist=no | |
ba4481b5 | 5550 | fi |
503d2be0 AS |
5551 | rm -f conftest.$ac_objext conftest.$ac_ext |
5552 | fi | |
cd958eb3 MB |
5553 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5554 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5555 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5556 | |
cd958eb3 MB |
5557 | cat >>confdefs.h <<_ACEOF |
5558 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5559 | _ACEOF | |
5560 | ||
5561 | ||
5562 | else | |
5563 | cat >>confdefs.h <<_ACEOF | |
5564 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5565 | _ACEOF |
503d2be0 | 5566 | |
cd958eb3 | 5567 | |
ba4481b5 DL |
5568 | fi |
5569 | ||
cd958eb3 MB |
5570 | |
5571 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5572 | ||
5573 | cat >>confdefs.h <<\_ACEOF | |
5574 | #define sys_siglist __sys_siglist | |
5575 | _ACEOF | |
5576 | ||
5577 | fi | |
5578 | fi | |
c0d27fcc | 5579 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5580 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5581 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5583 | else |
503d2be0 | 5584 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5585 | #line $LINENO "configure" |
cd958eb3 MB |
5586 | /* confdefs.h. */ |
5587 | _ACEOF | |
5588 | cat confdefs.h >>conftest.$ac_ext | |
5589 | cat >>conftest.$ac_ext <<_ACEOF | |
5590 | /* end confdefs.h. */ | |
98418dba CW |
5591 | #include <sys/types.h> |
5592 | #include <sys/wait.h> | |
5593 | #ifndef WEXITSTATUS | |
5594 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5595 | #endif | |
5596 | #ifndef WIFEXITED | |
5597 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5598 | #endif |
503d2be0 AS |
5599 | |
5600 | int | |
5601 | main () | |
5602 | { | |
98418dba CW |
5603 | int s; |
5604 | wait (&s); | |
5605 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5606 | ; |
5607 | return 0; | |
5608 | } | |
5609 | _ACEOF | |
98418dba | 5610 | rm -f conftest.$ac_objext |
c0d27fcc | 5611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 5612 | (eval $ac_compile) 2>&5 |
503d2be0 | 5613 | ac_status=$? |
c0d27fcc | 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5615 | (exit $ac_status); } && |
98418dba | 5616 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5618 | (eval $ac_try) 2>&5 |
5619 | ac_status=$? | |
c0d27fcc | 5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5621 | (exit $ac_status); }; }; then |
98418dba | 5622 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5623 | else |
503d2be0 | 5624 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5625 | sed 's/^/| /' conftest.$ac_ext >&5 |
5626 | ||
98418dba | 5627 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5628 | fi |
98418dba | 5629 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5630 | fi |
c0d27fcc | 5631 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
5632 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
5633 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 5634 | |
c0d27fcc | 5635 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5636 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 5637 | _ACEOF |
ba4481b5 | 5638 | |
ba4481b5 DL |
5639 | fi |
5640 | ||
c0d27fcc MR |
5641 | |
5642 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
5643 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5644 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 5645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 5646 | else |
503d2be0 | 5647 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5648 | #line $LINENO "configure" |
cd958eb3 MB |
5649 | /* confdefs.h. */ |
5650 | _ACEOF | |
5651 | cat confdefs.h >>conftest.$ac_ext | |
5652 | cat >>conftest.$ac_ext <<_ACEOF | |
5653 | /* end confdefs.h. */ | |
98418dba CW |
5654 | #ifdef TIME_WITH_SYS_TIME |
5655 | #include <sys/time.h> | |
5656 | #include <time.h> | |
5657 | #else | |
5658 | #ifdef HAVE_SYS_TIME_H | |
5659 | #include <sys/time.h> | |
5660 | #else | |
1113b624 | 5661 | #include <time.h> |
98418dba CW |
5662 | #endif |
5663 | #endif | |
5664 | #ifdef HAVE_UTIME_H | |
5665 | #include <utime.h> | |
5666 | #endif | |
503d2be0 AS |
5667 | int |
5668 | main () | |
5669 | { | |
98418dba | 5670 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
5671 | ; |
5672 | return 0; | |
5673 | } | |
5674 | _ACEOF | |
98418dba | 5675 | rm -f conftest.$ac_objext |
c0d27fcc | 5676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 5677 | (eval $ac_compile) 2>&5 |
503d2be0 | 5678 | ac_status=$? |
c0d27fcc | 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5680 | (exit $ac_status); } && |
98418dba | 5681 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5683 | (eval $ac_try) 2>&5 |
5684 | ac_status=$? | |
c0d27fcc | 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5686 | (exit $ac_status); }; }; then |
98418dba | 5687 | emacs_cv_struct_utimbuf=yes |
1113b624 | 5688 | else |
503d2be0 | 5689 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5690 | sed 's/^/| /' conftest.$ac_ext >&5 |
5691 | ||
98418dba | 5692 | emacs_cv_struct_utimbuf=no |
1113b624 | 5693 | fi |
98418dba | 5694 | rm -f conftest.$ac_objext conftest.$ac_ext |
1113b624 | 5695 | fi |
c0d27fcc | 5696 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
5697 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
5698 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 5699 | |
c0d27fcc | 5700 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5701 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 5702 | _ACEOF |
1113b624 PE |
5703 | |
5704 | fi | |
ba4481b5 | 5705 | |
c0d27fcc | 5706 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
5707 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
5708 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5710 | else |
98418dba | 5711 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5712 | #line $LINENO "configure" |
cd958eb3 MB |
5713 | /* confdefs.h. */ |
5714 | _ACEOF | |
5715 | cat confdefs.h >>conftest.$ac_ext | |
5716 | cat >>conftest.$ac_ext <<_ACEOF | |
5717 | /* end confdefs.h. */ | |
7397acc4 | 5718 | #include <sys/types.h> |
98418dba CW |
5719 | #include <signal.h> |
5720 | #ifdef signal | |
5721 | # undef signal | |
5722 | #endif | |
5723 | #ifdef __cplusplus | |
5724 | extern "C" void (*signal (int, void (*)(int)))(int); | |
5725 | #else | |
5726 | void (*signal ()) (); | |
5727 | #endif | |
5728 | ||
503d2be0 AS |
5729 | int |
5730 | main () | |
5731 | { | |
98418dba | 5732 | int i; |
503d2be0 AS |
5733 | ; |
5734 | return 0; | |
5735 | } | |
5736 | _ACEOF | |
98418dba | 5737 | rm -f conftest.$ac_objext |
c0d27fcc | 5738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5739 | (eval $ac_compile) 2>&5 |
5740 | ac_status=$? | |
c0d27fcc | 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5742 | (exit $ac_status); } && |
5743 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5745 | (eval $ac_try) 2>&5 |
5746 | ac_status=$? | |
c0d27fcc | 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5748 | (exit $ac_status); }; }; then |
98418dba | 5749 | ac_cv_type_signal=void |
503d2be0 AS |
5750 | else |
5751 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
5752 | sed 's/^/| /' conftest.$ac_ext >&5 |
5753 | ||
98418dba | 5754 | ac_cv_type_signal=int |
503d2be0 | 5755 | fi |
98418dba | 5756 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5757 | fi |
c0d27fcc | 5758 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 5759 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 5760 | |
c0d27fcc | 5761 | cat >>confdefs.h <<_ACEOF |
98418dba | 5762 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
5763 | _ACEOF |
5764 | ||
503d2be0 | 5765 | |
c0d27fcc MR |
5766 | |
5767 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
5768 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
5769 | if test "${emacs_cv_speed_t+set}" = set; then | |
5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 5771 | else |
98418dba | 5772 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5773 | #line $LINENO "configure" |
cd958eb3 MB |
5774 | /* confdefs.h. */ |
5775 | _ACEOF | |
5776 | cat confdefs.h >>conftest.$ac_ext | |
5777 | cat >>conftest.$ac_ext <<_ACEOF | |
5778 | /* end confdefs.h. */ | |
98418dba | 5779 | #include <termios.h> |
98418dba CW |
5780 | int |
5781 | main () | |
5782 | { | |
5783 | speed_t x = 1; | |
5784 | ; | |
5785 | return 0; | |
5786 | } | |
5787 | _ACEOF | |
5788 | rm -f conftest.$ac_objext | |
c0d27fcc | 5789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
5790 | (eval $ac_compile) 2>&5 |
5791 | ac_status=$? | |
c0d27fcc | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5793 | (exit $ac_status); } && |
5794 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
5796 | (eval $ac_try) 2>&5 |
5797 | ac_status=$? | |
c0d27fcc | 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5799 | (exit $ac_status); }; }; then |
5800 | emacs_cv_speed_t=yes | |
5801 | else | |
5802 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
5803 | sed 's/^/| /' conftest.$ac_ext >&5 |
5804 | ||
98418dba CW |
5805 | emacs_cv_speed_t=no |
5806 | fi | |
5807 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5808 | fi | |
c0d27fcc | 5809 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
5810 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
5811 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 5812 | |
c0d27fcc | 5813 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5814 | #define HAVE_SPEED_T 1 |
c0d27fcc | 5815 | _ACEOF |
98418dba | 5816 | |
7397acc4 DL |
5817 | fi |
5818 | ||
c0d27fcc | 5819 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
5820 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
5821 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5823 | else |
503d2be0 | 5824 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5825 | #line $LINENO "configure" |
cd958eb3 MB |
5826 | /* confdefs.h. */ |
5827 | _ACEOF | |
5828 | cat confdefs.h >>conftest.$ac_ext | |
5829 | cat >>conftest.$ac_ext <<_ACEOF | |
5830 | /* end confdefs.h. */ | |
98418dba CW |
5831 | #ifdef TIME_WITH_SYS_TIME |
5832 | #include <sys/time.h> | |
5833 | #include <time.h> | |
5834 | #else | |
5835 | #ifdef HAVE_SYS_TIME_H | |
5836 | #include <sys/time.h> | |
5837 | #else | |
5838 | #include <time.h> | |
5839 | #endif | |
5840 | #endif | |
503d2be0 AS |
5841 | int |
5842 | main () | |
5843 | { | |
98418dba | 5844 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
5845 | ; |
5846 | return 0; | |
5847 | } | |
5848 | _ACEOF | |
5849 | rm -f conftest.$ac_objext | |
c0d27fcc | 5850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5851 | (eval $ac_compile) 2>&5 |
5852 | ac_status=$? | |
c0d27fcc | 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5854 | (exit $ac_status); } && |
5855 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5857 | (eval $ac_try) 2>&5 |
5858 | ac_status=$? | |
c0d27fcc | 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5860 | (exit $ac_status); }; }; then |
98418dba | 5861 | emacs_cv_struct_timeval=yes |
7397acc4 | 5862 | else |
503d2be0 | 5863 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5864 | sed 's/^/| /' conftest.$ac_ext >&5 |
5865 | ||
98418dba | 5866 | emacs_cv_struct_timeval=no |
7397acc4 | 5867 | fi |
503d2be0 | 5868 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5869 | fi |
c0d27fcc | 5870 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
5871 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
5872 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
5873 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 5874 | |
c0d27fcc | 5875 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5876 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 5877 | _ACEOF |
7397acc4 DL |
5878 | |
5879 | fi | |
5880 | ||
c0d27fcc | 5881 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
5882 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
5883 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5885 | else |
503d2be0 | 5886 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5887 | #line $LINENO "configure" |
cd958eb3 MB |
5888 | /* confdefs.h. */ |
5889 | _ACEOF | |
5890 | cat confdefs.h >>conftest.$ac_ext | |
5891 | cat >>conftest.$ac_ext <<_ACEOF | |
5892 | /* end confdefs.h. */ | |
98418dba | 5893 | #include <math.h> |
503d2be0 AS |
5894 | int |
5895 | main () | |
5896 | { | |
98418dba | 5897 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
5898 | ; |
5899 | return 0; | |
ba4481b5 | 5900 | } |
503d2be0 AS |
5901 | _ACEOF |
5902 | rm -f conftest.$ac_objext | |
c0d27fcc | 5903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5904 | (eval $ac_compile) 2>&5 |
5905 | ac_status=$? | |
c0d27fcc | 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5907 | (exit $ac_status); } && |
5908 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5910 | (eval $ac_try) 2>&5 |
5911 | ac_status=$? | |
c0d27fcc | 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5913 | (exit $ac_status); }; }; then |
98418dba | 5914 | emacs_cv_struct_exception=yes |
ba4481b5 | 5915 | else |
503d2be0 | 5916 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5917 | sed 's/^/| /' conftest.$ac_ext >&5 |
5918 | ||
98418dba | 5919 | emacs_cv_struct_exception=no |
ba4481b5 | 5920 | fi |
503d2be0 | 5921 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5922 | fi |
c0d27fcc | 5923 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
5924 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
5925 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
5926 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 5927 | |
c0d27fcc | 5928 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5929 | #define NO_MATHERR 1 |
c0d27fcc | 5930 | _ACEOF |
ba4481b5 DL |
5931 | |
5932 | fi | |
5933 | ||
c0d27fcc | 5934 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
5935 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
5936 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 5937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5938 | else |
503d2be0 | 5939 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5940 | #line $LINENO "configure" |
cd958eb3 MB |
5941 | /* confdefs.h. */ |
5942 | _ACEOF | |
5943 | cat confdefs.h >>conftest.$ac_ext | |
5944 | cat >>conftest.$ac_ext <<_ACEOF | |
5945 | /* end confdefs.h. */ | |
98418dba CW |
5946 | #include <sys/types.h> |
5947 | #include <time.h> | |
7397acc4 | 5948 | |
503d2be0 AS |
5949 | int |
5950 | main () | |
5951 | { | |
98418dba | 5952 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
5953 | ; |
5954 | return 0; | |
5955 | } | |
5956 | _ACEOF | |
5957 | rm -f conftest.$ac_objext | |
c0d27fcc | 5958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5959 | (eval $ac_compile) 2>&5 |
5960 | ac_status=$? | |
c0d27fcc | 5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
5962 | (exit $ac_status); } && |
5963 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5965 | (eval $ac_try) 2>&5 |
5966 | ac_status=$? | |
c0d27fcc | 5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5968 | (exit $ac_status); }; }; then |
98418dba | 5969 | ac_cv_struct_tm=time.h |
7397acc4 | 5970 | else |
503d2be0 | 5971 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
5972 | sed 's/^/| /' conftest.$ac_ext >&5 |
5973 | ||
98418dba | 5974 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 5975 | fi |
503d2be0 | 5976 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5977 | fi |
c0d27fcc | 5978 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
5979 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
5980 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 5981 | |
c0d27fcc | 5982 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5983 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 5984 | _ACEOF |
7397acc4 DL |
5985 | |
5986 | fi | |
ba4481b5 | 5987 | |
c0d27fcc | 5988 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
5989 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
5990 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5992 | else |
98418dba | 5993 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 5994 | #line $LINENO "configure" |
cd958eb3 MB |
5995 | /* confdefs.h. */ |
5996 | _ACEOF | |
5997 | cat confdefs.h >>conftest.$ac_ext | |
5998 | cat >>conftest.$ac_ext <<_ACEOF | |
5999 | /* end confdefs.h. */ | |
98418dba CW |
6000 | #include <sys/types.h> |
6001 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6002 | |
c0d27fcc | 6003 | |
98418dba CW |
6004 | int |
6005 | main () | |
6006 | { | |
6007 | static struct tm ac_aggr; | |
6008 | if (ac_aggr.tm_zone) | |
6009 | return 0; | |
6010 | ; | |
6011 | return 0; | |
6012 | } | |
6013 | _ACEOF | |
6014 | rm -f conftest.$ac_objext | |
c0d27fcc | 6015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6016 | (eval $ac_compile) 2>&5 |
6017 | ac_status=$? | |
c0d27fcc | 6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6019 | (exit $ac_status); } && |
6020 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6022 | (eval $ac_try) 2>&5 |
6023 | ac_status=$? | |
c0d27fcc | 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6025 | (exit $ac_status); }; }; then |
6026 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6027 | else |
98418dba | 6028 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
6029 | sed 's/^/| /' conftest.$ac_ext >&5 |
6030 | ||
6bae0ccf DL |
6031 | cat >conftest.$ac_ext <<_ACEOF |
6032 | #line $LINENO "configure" | |
cd958eb3 MB |
6033 | /* confdefs.h. */ |
6034 | _ACEOF | |
6035 | cat confdefs.h >>conftest.$ac_ext | |
6036 | cat >>conftest.$ac_ext <<_ACEOF | |
6037 | /* end confdefs.h. */ | |
6bae0ccf DL |
6038 | #include <sys/types.h> |
6039 | #include <$ac_cv_struct_tm> | |
6040 | ||
6041 | ||
6042 | int | |
6043 | main () | |
6044 | { | |
6045 | static struct tm ac_aggr; | |
6046 | if (sizeof ac_aggr.tm_zone) | |
6047 | return 0; | |
6048 | ; | |
6049 | return 0; | |
6050 | } | |
6051 | _ACEOF | |
6052 | rm -f conftest.$ac_objext | |
6053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6054 | (eval $ac_compile) 2>&5 | |
6055 | ac_status=$? | |
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6057 | (exit $ac_status); } && | |
6058 | { ac_try='test -s conftest.$ac_objext' | |
6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6060 | (eval $ac_try) 2>&5 | |
6061 | ac_status=$? | |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6063 | (exit $ac_status); }; }; then | |
6064 | ac_cv_member_struct_tm_tm_zone=yes | |
6065 | else | |
6066 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6067 | sed 's/^/| /' conftest.$ac_ext >&5 |
6068 | ||
98418dba | 6069 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6070 | fi |
98418dba | 6071 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6072 | fi |
6bae0ccf DL |
6073 | rm -f conftest.$ac_objext conftest.$ac_ext |
6074 | fi | |
c0d27fcc | 6075 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6076 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6077 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6078 | |
c0d27fcc | 6079 | cat >>confdefs.h <<_ACEOF |
98418dba | 6080 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6081 | _ACEOF |
6082 | ||
ba4481b5 | 6083 | |
98418dba | 6084 | fi |
ba4481b5 | 6085 | |
98418dba | 6086 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6087 | |
c0d27fcc | 6088 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6089 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6090 | _ACEOF |
ba4481b5 | 6091 | |
ba4481b5 | 6092 | else |
c0d27fcc | 6093 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6094 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6095 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6097 | else |
98418dba | 6098 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 6099 | #line $LINENO "configure" |
cd958eb3 MB |
6100 | /* confdefs.h. */ |
6101 | _ACEOF | |
6102 | cat confdefs.h >>conftest.$ac_ext | |
6103 | cat >>conftest.$ac_ext <<_ACEOF | |
6104 | /* end confdefs.h. */ | |
98418dba CW |
6105 | #include <time.h> |
6106 | #ifndef tzname /* For SGI. */ | |
6107 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6108 | #endif | |
6109 | ||
98418dba CW |
6110 | int |
6111 | main () | |
6112 | { | |
6113 | atoi(*tzname); | |
6114 | ; | |
6115 | return 0; | |
6116 | } | |
6117 | _ACEOF | |
6118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6120 | (eval $ac_link) 2>&5 |
6121 | ac_status=$? | |
c0d27fcc | 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6123 | (exit $ac_status); } && |
6124 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6126 | (eval $ac_try) 2>&5 |
6127 | ac_status=$? | |
c0d27fcc | 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6129 | (exit $ac_status); }; }; then |
6130 | ac_cv_var_tzname=yes | |
6131 | else | |
6132 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6133 | sed 's/^/| /' conftest.$ac_ext >&5 |
6134 | ||
98418dba | 6135 | ac_cv_var_tzname=no |
ba4481b5 | 6136 | fi |
98418dba CW |
6137 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6138 | fi | |
c0d27fcc | 6139 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6140 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6141 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6142 | |
c0d27fcc | 6143 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6144 | #define HAVE_TZNAME 1 |
c0d27fcc | 6145 | _ACEOF |
503d2be0 | 6146 | |
98418dba CW |
6147 | fi |
6148 | fi | |
503d2be0 | 6149 | |
c0d27fcc | 6150 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6151 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6152 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6154 | else | |
6155 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6156 | #line $LINENO "configure" |
cd958eb3 MB |
6157 | /* confdefs.h. */ |
6158 | _ACEOF | |
6159 | cat confdefs.h >>conftest.$ac_ext | |
6160 | cat >>conftest.$ac_ext <<_ACEOF | |
6161 | /* end confdefs.h. */ | |
98418dba | 6162 | #include <time.h> |
b936fae4 | 6163 | |
98418dba CW |
6164 | int |
6165 | main () | |
6166 | { | |
b936fae4 AS |
6167 | static struct tm ac_aggr; |
6168 | if (ac_aggr.tm_gmtoff) | |
6169 | return 0; | |
98418dba CW |
6170 | ; |
6171 | return 0; | |
6172 | } | |
6173 | _ACEOF | |
b936fae4 | 6174 | rm -f conftest.$ac_objext |
c0d27fcc | 6175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 | 6176 | (eval $ac_compile) 2>&5 |
98418dba | 6177 | ac_status=$? |
c0d27fcc | 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6179 | (exit $ac_status); } && |
b936fae4 | 6180 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6182 | (eval $ac_try) 2>&5 |
6183 | ac_status=$? | |
c0d27fcc | 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6185 | (exit $ac_status); }; }; then |
b936fae4 | 6186 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6187 | else |
6188 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
6190 | ||
8799b3e4 | 6191 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 6192 | #line $LINENO "configure" |
cd958eb3 MB |
6193 | /* confdefs.h. */ |
6194 | _ACEOF | |
6195 | cat confdefs.h >>conftest.$ac_ext | |
6196 | cat >>conftest.$ac_ext <<_ACEOF | |
6197 | /* end confdefs.h. */ | |
6bae0ccf DL |
6198 | #include <time.h> |
6199 | ||
8799b3e4 CW |
6200 | int |
6201 | main () | |
6202 | { | |
6bae0ccf DL |
6203 | static struct tm ac_aggr; |
6204 | if (sizeof ac_aggr.tm_gmtoff) | |
6205 | return 0; | |
8799b3e4 CW |
6206 | ; |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6bae0ccf | 6210 | rm -f conftest.$ac_objext |
c0d27fcc | 6211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8799b3e4 CW |
6212 | (eval $ac_compile) 2>&5 |
6213 | ac_status=$? | |
c0d27fcc | 6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 CW |
6215 | (exit $ac_status); } && |
6216 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6218 | (eval $ac_try) 2>&5 |
6219 | ac_status=$? | |
c0d27fcc | 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6221 | (exit $ac_status); }; }; then |
6bae0ccf | 6222 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6223 | else |
6224 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6225 | sed 's/^/| /' conftest.$ac_ext >&5 |
6226 | ||
6bae0ccf | 6227 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6228 | fi |
6bae0ccf DL |
6229 | rm -f conftest.$ac_objext conftest.$ac_ext |
6230 | fi | |
6231 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 6232 | fi |
6bae0ccf DL |
6233 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6234 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6235 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6236 | ||
6237 | cat >>confdefs.h <<\_ACEOF | |
6238 | #define HAVE_TM_GMTOFF 1 | |
6239 | _ACEOF | |
6240 | ||
6241 | fi | |
6242 | ||
8799b3e4 | 6243 | |
8799b3e4 | 6244 | |
c0d27fcc | 6245 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
6246 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
6247 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 6248 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
6249 | echo "${ECHO_T}yes" >&6 |
6250 | ||
c0d27fcc | 6251 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6252 | #define PROTOTYPES 1 |
c0d27fcc MR |
6253 | _ACEOF |
6254 | ||
6255 | ||
6256 | cat >>confdefs.h <<\_ACEOF | |
6257 | #define __PROTOTYPES 1 | |
6258 | _ACEOF | |
98418dba CW |
6259 | |
6260 | else | |
c0d27fcc | 6261 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
6262 | echo "${ECHO_T}no" >&6 |
6263 | fi | |
6264 | ||
c0d27fcc | 6265 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
6266 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
6267 | if test "${ac_cv_c_volatile+set}" = set; then | |
6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6269 | else | |
6270 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6271 | #line $LINENO "configure" |
cd958eb3 MB |
6272 | /* confdefs.h. */ |
6273 | _ACEOF | |
6274 | cat confdefs.h >>conftest.$ac_ext | |
6275 | cat >>conftest.$ac_ext <<_ACEOF | |
6276 | /* end confdefs.h. */ | |
98418dba | 6277 | |
98418dba CW |
6278 | int |
6279 | main () | |
6280 | { | |
6281 | ||
6282 | volatile int x; | |
6283 | int * volatile y; | |
6284 | ; | |
6285 | return 0; | |
6286 | } | |
6287 | _ACEOF | |
6288 | rm -f conftest.$ac_objext | |
c0d27fcc | 6289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6290 | (eval $ac_compile) 2>&5 |
6291 | ac_status=$? | |
c0d27fcc | 6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6293 | (exit $ac_status); } && |
6294 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6296 | (eval $ac_try) 2>&5 |
6297 | ac_status=$? | |
c0d27fcc | 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6299 | (exit $ac_status); }; }; then |
6300 | ac_cv_c_volatile=yes | |
6301 | else | |
6302 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6303 | sed 's/^/| /' conftest.$ac_ext >&5 |
6304 | ||
98418dba CW |
6305 | ac_cv_c_volatile=no |
6306 | fi | |
6307 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6308 | fi | |
c0d27fcc | 6309 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
6310 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
6311 | if test $ac_cv_c_volatile = no; then | |
6312 | ||
c0d27fcc | 6313 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6314 | #define volatile |
c0d27fcc | 6315 | _ACEOF |
98418dba CW |
6316 | |
6317 | fi | |
6318 | ||
c0d27fcc | 6319 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
6320 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
6321 | if test "${ac_cv_c_const+set}" = set; then | |
6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6323 | else | |
6324 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6325 | #line $LINENO "configure" |
cd958eb3 MB |
6326 | /* confdefs.h. */ |
6327 | _ACEOF | |
6328 | cat confdefs.h >>conftest.$ac_ext | |
6329 | cat >>conftest.$ac_ext <<_ACEOF | |
6330 | /* end confdefs.h. */ | |
98418dba | 6331 | |
98418dba CW |
6332 | int |
6333 | main () | |
6334 | { | |
6335 | /* FIXME: Include the comments suggested by Paul. */ | |
6336 | #ifndef __cplusplus | |
6337 | /* Ultrix mips cc rejects this. */ | |
6338 | typedef int charset[2]; | |
6339 | const charset x; | |
6340 | /* SunOS 4.1.1 cc rejects this. */ | |
6341 | char const *const *ccp; | |
6342 | char **p; | |
6343 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6344 | struct point {int x, y;}; | |
6345 | static struct point const zero = {0,0}; | |
6346 | /* AIX XL C 1.02.0.0 rejects this. | |
6347 | It does not let you subtract one const X* pointer from another in | |
6348 | an arm of an if-expression whose if-part is not a constant | |
6349 | expression */ | |
6350 | const char *g = "string"; | |
6351 | ccp = &g + (g ? g-g : 0); | |
6352 | /* HPUX 7.0 cc rejects these. */ | |
6353 | ++ccp; | |
6354 | p = (char**) ccp; | |
6355 | ccp = (char const *const *) p; | |
6356 | { /* SCO 3.2v4 cc rejects this. */ | |
6357 | char *t; | |
6358 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6359 | ||
6360 | *t++ = 0; | |
6361 | } | |
6362 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6363 | int x[] = {25, 17}; | |
6364 | const int *foo = &x[0]; | |
6365 | ++foo; | |
6366 | } | |
6367 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6368 | typedef const int *iptr; | |
6369 | iptr p = 0; | |
6370 | ++p; | |
6371 | } | |
6372 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6373 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6374 | struct s { int j; const int *ap[3]; }; | |
6375 | struct s *b; b->j = 5; | |
6376 | } | |
6377 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6378 | const int foo = 10; | |
6379 | } | |
6380 | #endif | |
6381 | ||
6382 | ; | |
6383 | return 0; | |
6384 | } | |
6385 | _ACEOF | |
6386 | rm -f conftest.$ac_objext | |
c0d27fcc | 6387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6388 | (eval $ac_compile) 2>&5 |
6389 | ac_status=$? | |
c0d27fcc | 6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6391 | (exit $ac_status); } && |
6392 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6394 | (eval $ac_try) 2>&5 |
6395 | ac_status=$? | |
c0d27fcc | 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6397 | (exit $ac_status); }; }; then |
6398 | ac_cv_c_const=yes | |
6399 | else | |
6400 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6401 | sed 's/^/| /' conftest.$ac_ext >&5 |
6402 | ||
98418dba CW |
6403 | ac_cv_c_const=no |
6404 | fi | |
6405 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6406 | fi | |
c0d27fcc | 6407 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
6408 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
6409 | if test $ac_cv_c_const = no; then | |
6410 | ||
c0d27fcc | 6411 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6412 | #define const |
c0d27fcc | 6413 | _ACEOF |
98418dba CW |
6414 | |
6415 | fi | |
6416 | ||
c0d27fcc | 6417 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
6418 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
6419 | if test "${emacs_cv_void_star+set}" = set; then | |
6420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6421 | else | |
6422 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6423 | #line $LINENO "configure" |
cd958eb3 MB |
6424 | /* confdefs.h. */ |
6425 | _ACEOF | |
6426 | cat confdefs.h >>conftest.$ac_ext | |
6427 | cat >>conftest.$ac_ext <<_ACEOF | |
6428 | /* end confdefs.h. */ | |
98418dba | 6429 | |
98418dba CW |
6430 | int |
6431 | main () | |
6432 | { | |
6433 | void * foo; | |
6434 | ; | |
6435 | return 0; | |
6436 | } | |
6437 | _ACEOF | |
6438 | rm -f conftest.$ac_objext | |
c0d27fcc | 6439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6440 | (eval $ac_compile) 2>&5 |
6441 | ac_status=$? | |
c0d27fcc | 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6443 | (exit $ac_status); } && |
6444 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6446 | (eval $ac_try) 2>&5 |
6447 | ac_status=$? | |
c0d27fcc | 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6449 | (exit $ac_status); }; }; then |
6450 | emacs_cv_void_star=yes | |
6451 | else | |
6452 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 |
6454 | ||
98418dba CW |
6455 | emacs_cv_void_star=no |
6456 | fi | |
6457 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6458 | fi | |
c0d27fcc | 6459 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
6460 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
6461 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 6462 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6463 | #define POINTER_TYPE void |
c0d27fcc | 6464 | _ACEOF |
98418dba CW |
6465 | |
6466 | else | |
c0d27fcc | 6467 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6468 | #define POINTER_TYPE char |
c0d27fcc | 6469 | _ACEOF |
98418dba CW |
6470 | |
6471 | fi | |
6472 | ||
c0d27fcc | 6473 | |
cd958eb3 MB |
6474 | |
6475 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6476 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
98418dba CW |
6477 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
6478 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6480 | else | |
c0d27fcc | 6481 | cat >conftest.make <<\_ACEOF |
98418dba | 6482 | all: |
cd958eb3 | 6483 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 6484 | _ACEOF |
98418dba CW |
6485 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6486 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
6487 | if test -n "$ac_maketemp"; then | |
6488 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6489 | else | |
6490 | eval ac_cv_prog_make_${ac_make}_set=no | |
6491 | fi | |
6492 | rm -f conftest.make | |
6493 | fi | |
6494 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 6495 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
6496 | echo "${ECHO_T}yes" >&6 |
6497 | SET_MAKE= | |
6498 | else | |
c0d27fcc | 6499 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
6500 | echo "${ECHO_T}no" >&6 |
6501 | SET_MAKE="MAKE=${MAKE-make}" | |
6502 | fi | |
6503 | ||
c0d27fcc MR |
6504 | |
6505 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
6506 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
6507 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6509 | else | |
6510 | ac_cv_sys_long_file_names=yes | |
6511 | # Test for long file names in all the places we know might matter: | |
6512 | # . the current directory, where building will happen | |
6513 | # $prefix/lib where we will be installing things | |
6514 | # $exec_prefix/lib likewise | |
6515 | # eval it to expand exec_prefix. | |
6516 | # $TMPDIR if set, where it might want to write temporary files | |
6517 | # if $TMPDIR is not set: | |
6518 | # /tmp where it might want to write temporary files | |
6519 | # /var/tmp likewise | |
6520 | # /usr/tmp likewise | |
6521 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
6522 | ac_tmpdirs=$TMPDIR | |
6523 | else | |
6524 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
6525 | fi | |
6526 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
6527 | test -d $ac_dir || continue | |
6528 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
6529 | ac_xdir=$ac_dir/cf$$ | |
6530 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
6531 | ac_tf1=$ac_xdir/conftest9012345 | |
6532 | ac_tf2=$ac_xdir/conftest9012346 | |
6533 | (echo 1 >$ac_tf1) 2>/dev/null | |
6534 | (echo 2 >$ac_tf2) 2>/dev/null | |
6535 | ac_val=`cat $ac_tf1 2>/dev/null` | |
6536 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
6537 | ac_cv_sys_long_file_names=no | |
6538 | rm -rf $ac_xdir 2>/dev/null | |
6539 | break | |
6540 | fi | |
6541 | rm -rf $ac_xdir 2>/dev/null | |
6542 | done | |
6543 | fi | |
c0d27fcc | 6544 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
6545 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
6546 | if test $ac_cv_sys_long_file_names = yes; then | |
6547 | ||
c0d27fcc | 6548 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6549 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 6550 | _ACEOF |
98418dba CW |
6551 | |
6552 | fi | |
6553 | ||
c0d27fcc | 6554 | |
98418dba CW |
6555 | #### Choose a window system. |
6556 | ||
c0d27fcc | 6557 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
6558 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
6559 | ||
c0d27fcc | 6560 | |
98418dba CW |
6561 | # Check whether --with-x or --without-x was given. |
6562 | if test "${with_x+set}" = set; then | |
6563 | withval="$with_x" | |
6564 | ||
6565 | fi; | |
6566 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
6567 | if test "x$with_x" = xno; then | |
6568 | # The user explicitly disabled X. | |
6569 | have_x=disabled | |
6570 | else | |
6571 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6572 | # Both variables are already set. | |
6573 | have_x=yes | |
6574 | else | |
6575 | if test "${ac_cv_have_x+set}" = set; then | |
6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6577 | else | |
6578 | # One or both of the vars are not set, and there is no cached value. | |
6579 | ac_x_includes=no ac_x_libraries=no | |
6580 | rm -fr conftest.dir | |
6581 | if mkdir conftest.dir; then | |
6582 | cd conftest.dir | |
6583 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 6584 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
6585 | acfindx: |
6586 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 6587 | _ACEOF |
98418dba CW |
6588 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
6589 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6590 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
6591 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
6592 | for ac_extension in a so sl; do | |
6593 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
6594 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
6595 | ac_im_usrlibdir=$ac_im_libdir; break | |
6596 | fi | |
6597 | done | |
6598 | # Screen out bogus values from the imake configuration. They are | |
6599 | # bogus both because they are the default anyway, and because | |
6600 | # using them would break gcc on systems where it needs fixed includes. | |
6601 | case $ac_im_incroot in | |
6602 | /usr/include) ;; | |
6603 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
6604 | esac | |
6605 | case $ac_im_usrlibdir in | |
6606 | /usr/lib | /lib) ;; | |
6607 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
6608 | esac | |
6609 | fi | |
6610 | cd .. | |
6611 | rm -fr conftest.dir | |
6612 | fi | |
6613 | ||
6614 | # Standard set of common directories for X headers. | |
6615 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
6616 | ac_x_header_dirs=' | |
6617 | /usr/X11/include | |
6618 | /usr/X11R6/include | |
6619 | /usr/X11R5/include | |
6620 | /usr/X11R4/include | |
6621 | ||
6622 | /usr/include/X11 | |
6623 | /usr/include/X11R6 | |
6624 | /usr/include/X11R5 | |
6625 | /usr/include/X11R4 | |
6626 | ||
6627 | /usr/local/X11/include | |
6628 | /usr/local/X11R6/include | |
6629 | /usr/local/X11R5/include | |
6630 | /usr/local/X11R4/include | |
6631 | ||
6632 | /usr/local/include/X11 | |
6633 | /usr/local/include/X11R6 | |
6634 | /usr/local/include/X11R5 | |
6635 | /usr/local/include/X11R4 | |
6636 | ||
6637 | /usr/X386/include | |
6638 | /usr/x386/include | |
6639 | /usr/XFree86/include/X11 | |
6640 | ||
6641 | /usr/include | |
6642 | /usr/local/include | |
6643 | /usr/unsupported/include | |
6644 | /usr/athena/include | |
6645 | /usr/local/x11r5/include | |
6646 | /usr/lpp/Xamples/include | |
6647 | ||
6648 | /usr/openwin/include | |
6649 | /usr/openwin/share/include' | |
6650 | ||
6651 | if test "$ac_x_includes" = no; then | |
6652 | # Guess where to find include files, by looking for Intrinsic.h. | |
6653 | # First, try using that file with no special directory specified. | |
6654 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6655 | #line $LINENO "configure" |
cd958eb3 MB |
6656 | /* confdefs.h. */ |
6657 | _ACEOF | |
6658 | cat confdefs.h >>conftest.$ac_ext | |
6659 | cat >>conftest.$ac_ext <<_ACEOF | |
6660 | /* end confdefs.h. */ | |
98418dba CW |
6661 | #include <X11/Intrinsic.h> |
6662 | _ACEOF | |
c0d27fcc | 6663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
6664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6665 | ac_status=$? | |
6bae0ccf | 6666 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6667 | rm -f conftest.er1 |
6668 | cat conftest.err >&5 | |
c0d27fcc | 6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6670 | (exit $ac_status); } >/dev/null; then |
6671 | if test -s conftest.err; then | |
6672 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6673 | else | |
6674 | ac_cpp_err= | |
6675 | fi | |
6676 | else | |
6677 | ac_cpp_err=yes | |
6678 | fi | |
6679 | if test -z "$ac_cpp_err"; then | |
6680 | # We can compile using X headers with no special include directory. | |
6681 | ac_x_includes= | |
6682 | else | |
6683 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6684 | sed 's/^/| /' conftest.$ac_ext >&5 |
6685 | ||
98418dba CW |
6686 | for ac_dir in $ac_x_header_dirs; do |
6687 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
6688 | ac_x_includes=$ac_dir | |
6689 | break | |
6690 | fi | |
6691 | done | |
6692 | fi | |
6693 | rm -f conftest.err conftest.$ac_ext | |
6694 | fi # $ac_x_includes = no | |
6695 | ||
6696 | if test "$ac_x_libraries" = no; then | |
6697 | # Check for the libraries. | |
6698 | # See if we find them without any special options. | |
6699 | # Don't add to $LIBS permanently. | |
6700 | ac_save_LIBS=$LIBS | |
6701 | LIBS="-lXt $LIBS" | |
6702 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6703 | #line $LINENO "configure" |
cd958eb3 MB |
6704 | /* confdefs.h. */ |
6705 | _ACEOF | |
6706 | cat confdefs.h >>conftest.$ac_ext | |
6707 | cat >>conftest.$ac_ext <<_ACEOF | |
6708 | /* end confdefs.h. */ | |
98418dba | 6709 | #include <X11/Intrinsic.h> |
98418dba CW |
6710 | int |
6711 | main () | |
6712 | { | |
6713 | XtMalloc (0) | |
6714 | ; | |
6715 | return 0; | |
6716 | } | |
6717 | _ACEOF | |
6718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6720 | (eval $ac_link) 2>&5 |
6721 | ac_status=$? | |
c0d27fcc | 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6723 | (exit $ac_status); } && |
6724 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6726 | (eval $ac_try) 2>&5 |
6727 | ac_status=$? | |
c0d27fcc | 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6729 | (exit $ac_status); }; }; then |
6730 | LIBS=$ac_save_LIBS | |
6731 | # We can link X programs with no special library path. | |
6732 | ac_x_libraries= | |
6733 | else | |
6734 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6735 | sed 's/^/| /' conftest.$ac_ext >&5 |
6736 | ||
98418dba CW |
6737 | LIBS=$ac_save_LIBS |
6738 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
6739 | do | |
6740 | # Don't even attempt the hair of trying to link an X program! | |
6741 | for ac_extension in a so sl; do | |
6742 | if test -r $ac_dir/libXt.$ac_extension; then | |
6743 | ac_x_libraries=$ac_dir | |
6744 | break 2 | |
6745 | fi | |
6746 | done | |
6747 | done | |
6748 | fi | |
6749 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6750 | fi # $ac_x_libraries = no | |
6751 | ||
6752 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
6753 | # Didn't find X anywhere. Cache the known absence of X. | |
6754 | ac_cv_have_x="have_x=no" | |
6755 | else | |
6756 | # Record where we found X for the cache. | |
6757 | ac_cv_have_x="have_x=yes \ | |
6758 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
6759 | fi | |
6760 | fi | |
6761 | ||
6762 | fi | |
6763 | eval "$ac_cv_have_x" | |
6764 | fi # $with_x != no | |
6765 | ||
6766 | if test "$have_x" != yes; then | |
c0d27fcc | 6767 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
6768 | echo "${ECHO_T}$have_x" >&6 |
6769 | no_x=yes | |
6770 | else | |
6771 | # If each of the values was on the command line, it overrides each guess. | |
6772 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6773 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6774 | # Update the cache value to reflect the command line values. | |
6775 | ac_cv_have_x="have_x=yes \ | |
6776 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c0d27fcc | 6777 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
6778 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
6779 | fi | |
6780 | ||
6781 | if test "$no_x" = yes; then | |
6782 | window_system=none | |
6783 | else | |
6784 | window_system=x11 | |
6785 | fi | |
6786 | ||
6787 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6788 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
6789 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
6790 | x_default_search_path="" | |
6791 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
6792 | x_search_path="\ | |
6793 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
6794 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
6795 | ${x_library}/X11/%T/%N%C%S:\ | |
6796 | ${x_library}/X11/%L/%T/%N%S:\ | |
6797 | ${x_library}/X11/%l/%T/%N%S:\ | |
6798 | ${x_library}/X11/%T/%N%S" | |
6799 | if test x"${x_default_search_path}" = x; then | |
6800 | x_default_search_path=${x_search_path} | |
6801 | else | |
6802 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
6803 | fi | |
6804 | done | |
6805 | fi | |
6806 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
6807 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
6808 | fi | |
6809 | ||
6810 | if test x"${x_includes}" = x; then | |
6811 | bitmapdir=/usr/include/X11/bitmaps | |
6812 | else | |
6813 | # accumulate include directories that have X11 bitmap subdirectories | |
6814 | bmd_acc="dummyval" | |
6815 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
6816 | if test -d "${bmd}/X11/bitmaps"; then | |
6817 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
6818 | fi | |
6819 | if test -d "${bmd}/bitmaps"; then | |
6820 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
6821 | fi | |
6822 | done | |
6823 | if test ${bmd_acc} != "dummyval"; then | |
6824 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
6825 | fi | |
6826 | fi | |
6827 | ||
6828 | case "${window_system}" in | |
6829 | x11 ) | |
6830 | HAVE_X_WINDOWS=yes | |
6831 | HAVE_X11=yes | |
6832 | case "${with_x_toolkit}" in | |
6833 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
6834 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
6835 | gtk ) with_gtk=yes |
6836 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
6837 | no ) USE_X_TOOLKIT=none ;; |
6838 | * ) USE_X_TOOLKIT=maybe ;; | |
6839 | esac | |
6840 | ;; | |
6841 | none ) | |
6842 | HAVE_X_WINDOWS=no | |
6843 | HAVE_X11=no | |
6844 | USE_X_TOOLKIT=none | |
6845 | ;; | |
6846 | esac | |
6847 | ||
6848 | ### If we're using X11, we should use the X menu package. | |
6849 | HAVE_MENUS=no | |
6850 | case ${HAVE_X11} in | |
6851 | yes ) HAVE_MENUS=yes ;; | |
6852 | esac | |
6853 | ||
6854 | if test "${opsys}" = "hpux9"; then | |
6855 | case "${x_libraries}" in | |
6856 | *X11R4* ) | |
6857 | opsysfile="s/hpux9-x11r4.h" | |
6858 | ;; | |
6859 | esac | |
6860 | fi | |
6861 | ||
6862 | if test "${opsys}" = "hpux9shr"; then | |
6863 | case "${x_libraries}" in | |
6864 | *X11R4* ) | |
6865 | opsysfile="s/hpux9shxr4.h" | |
6866 | ;; | |
6867 | esac | |
6868 | fi | |
6869 | ||
6870 | ### Compute the unexec source name from the object name. | |
6871 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
6872 | ||
6873 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
6874 | # Assume not, until told otherwise. | |
6875 | GNU_MALLOC=yes | |
6876 | doug_lea_malloc=yes | |
c0d27fcc | 6877 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
6878 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
6879 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
6880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6881 | else | |
6882 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6883 | #line $LINENO "configure" |
cd958eb3 MB |
6884 | /* confdefs.h. */ |
6885 | _ACEOF | |
6886 | cat confdefs.h >>conftest.$ac_ext | |
6887 | cat >>conftest.$ac_ext <<_ACEOF | |
6888 | /* end confdefs.h. */ | |
98418dba | 6889 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
6890 | which can conflict with char malloc_get_state (); below. |
6891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6892 | <limits.h> exists even on freestanding compilers. */ | |
6893 | #ifdef __STDC__ | |
6894 | # include <limits.h> | |
6895 | #else | |
6896 | # include <assert.h> | |
6897 | #endif | |
98418dba CW |
6898 | /* Override any gcc2 internal prototype to avoid an error. */ |
6899 | #ifdef __cplusplus | |
6900 | extern "C" | |
cd958eb3 | 6901 | { |
98418dba CW |
6902 | #endif |
6903 | /* We use char because int might match the return type of a gcc2 | |
6904 | builtin and then its argument prototype would still apply. */ | |
6905 | char malloc_get_state (); | |
98418dba CW |
6906 | /* The GNU C library defines this for functions which it implements |
6907 | to always fail with ENOSYS. Some functions are actually named | |
6908 | something starting with __ and the normal name is an alias. */ | |
6909 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
6910 | choke me | |
6911 | #else | |
cd958eb3 MB |
6912 | char (*f) () = malloc_get_state; |
6913 | #endif | |
6914 | #ifdef __cplusplus | |
6915 | } | |
98418dba CW |
6916 | #endif |
6917 | ||
cd958eb3 MB |
6918 | int |
6919 | main () | |
6920 | { | |
9e71690e | 6921 | return f != malloc_get_state; |
98418dba CW |
6922 | ; |
6923 | return 0; | |
6924 | } | |
6925 | _ACEOF | |
6926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6928 | (eval $ac_link) 2>&5 |
6929 | ac_status=$? | |
c0d27fcc | 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6931 | (exit $ac_status); } && |
6932 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6934 | (eval $ac_try) 2>&5 |
6935 | ac_status=$? | |
c0d27fcc | 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6937 | (exit $ac_status); }; }; then |
6938 | ac_cv_func_malloc_get_state=yes | |
6939 | else | |
6940 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
6941 | sed 's/^/| /' conftest.$ac_ext >&5 |
6942 | ||
98418dba CW |
6943 | ac_cv_func_malloc_get_state=no |
6944 | fi | |
6945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6946 | fi | |
c0d27fcc | 6947 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
6948 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
6949 | if test $ac_cv_func_malloc_get_state = yes; then | |
6950 | : | |
6951 | else | |
6952 | doug_lea_malloc=no | |
6953 | fi | |
6954 | ||
c0d27fcc | 6955 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
6956 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
6957 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
6958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6959 | else | |
6960 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 6961 | #line $LINENO "configure" |
cd958eb3 MB |
6962 | /* confdefs.h. */ |
6963 | _ACEOF | |
6964 | cat confdefs.h >>conftest.$ac_ext | |
6965 | cat >>conftest.$ac_ext <<_ACEOF | |
6966 | /* end confdefs.h. */ | |
98418dba | 6967 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
6968 | which can conflict with char malloc_set_state (); below. |
6969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6970 | <limits.h> exists even on freestanding compilers. */ | |
6971 | #ifdef __STDC__ | |
6972 | # include <limits.h> | |
6973 | #else | |
6974 | # include <assert.h> | |
6975 | #endif | |
98418dba CW |
6976 | /* Override any gcc2 internal prototype to avoid an error. */ |
6977 | #ifdef __cplusplus | |
6978 | extern "C" | |
cd958eb3 | 6979 | { |
98418dba CW |
6980 | #endif |
6981 | /* We use char because int might match the return type of a gcc2 | |
6982 | builtin and then its argument prototype would still apply. */ | |
6983 | char malloc_set_state (); | |
98418dba CW |
6984 | /* The GNU C library defines this for functions which it implements |
6985 | to always fail with ENOSYS. Some functions are actually named | |
6986 | something starting with __ and the normal name is an alias. */ | |
6987 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
6988 | choke me | |
6989 | #else | |
cd958eb3 MB |
6990 | char (*f) () = malloc_set_state; |
6991 | #endif | |
6992 | #ifdef __cplusplus | |
6993 | } | |
98418dba CW |
6994 | #endif |
6995 | ||
cd958eb3 MB |
6996 | int |
6997 | main () | |
6998 | { | |
9e71690e | 6999 | return f != malloc_set_state; |
98418dba CW |
7000 | ; |
7001 | return 0; | |
7002 | } | |
7003 | _ACEOF | |
7004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7006 | (eval $ac_link) 2>&5 |
7007 | ac_status=$? | |
c0d27fcc | 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7009 | (exit $ac_status); } && |
7010 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7012 | (eval $ac_try) 2>&5 |
7013 | ac_status=$? | |
c0d27fcc | 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7015 | (exit $ac_status); }; }; then |
7016 | ac_cv_func_malloc_set_state=yes | |
7017 | else | |
7018 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7019 | sed 's/^/| /' conftest.$ac_ext >&5 |
7020 | ||
98418dba CW |
7021 | ac_cv_func_malloc_set_state=no |
7022 | fi | |
7023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7024 | fi | |
c0d27fcc | 7025 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
7026 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
7027 | if test $ac_cv_func_malloc_set_state = yes; then | |
7028 | : | |
7029 | else | |
7030 | doug_lea_malloc=no | |
7031 | fi | |
7032 | ||
c0d27fcc | 7033 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
7034 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
7035 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
7036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7037 | else | |
7038 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7039 | #line $LINENO "configure" |
cd958eb3 MB |
7040 | /* confdefs.h. */ |
7041 | _ACEOF | |
7042 | cat confdefs.h >>conftest.$ac_ext | |
7043 | cat >>conftest.$ac_ext <<_ACEOF | |
7044 | /* end confdefs.h. */ | |
98418dba | 7045 | extern void (* __after_morecore_hook)(); |
98418dba CW |
7046 | int |
7047 | main () | |
7048 | { | |
7049 | __after_morecore_hook = 0 | |
7050 | ; | |
7051 | return 0; | |
7052 | } | |
7053 | _ACEOF | |
7054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7056 | (eval $ac_link) 2>&5 |
7057 | ac_status=$? | |
c0d27fcc | 7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7059 | (exit $ac_status); } && |
7060 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7062 | (eval $ac_try) 2>&5 |
7063 | ac_status=$? | |
c0d27fcc | 7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7065 | (exit $ac_status); }; }; then |
7066 | emacs_cv_var___after_morecore_hook=yes | |
7067 | else | |
7068 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7069 | sed 's/^/| /' conftest.$ac_ext >&5 |
7070 | ||
98418dba CW |
7071 | emacs_cv_var___after_morecore_hook=no |
7072 | fi | |
7073 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7074 | fi | |
c0d27fcc | 7075 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
7076 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
7077 | if test $emacs_cv_var___after_morecore_hook = no; then | |
7078 | doug_lea_malloc=no | |
7079 | fi | |
7080 | if test "${system_malloc}" = "yes"; then | |
7081 | GNU_MALLOC=no | |
7082 | GNU_MALLOC_reason=" | |
7083 | (The GNU allocators don't work with this system configuration.)" | |
7084 | fi | |
7085 | if test "$doug_lea_malloc" = "yes" ; then | |
7086 | if test "$GNU_MALLOC" = yes ; then | |
7087 | GNU_MALLOC_reason=" | |
7088 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
7089 | fi | |
b936fae4 | 7090 | |
c0d27fcc | 7091 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7092 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 7093 | _ACEOF |
98418dba CW |
7094 | |
7095 | fi | |
7096 | ||
7097 | if test x"${REL_ALLOC}" = x; then | |
7098 | REL_ALLOC=${GNU_MALLOC} | |
7099 | fi | |
7100 | ||
7101 | ||
c0d27fcc MR |
7102 | |
7103 | ||
7104 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
7105 | do |
7106 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
7107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7108 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
7109 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
7112 | fi |
7113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 7115 | else |
c0d27fcc MR |
7116 | # Is the header compilable? |
7117 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7118 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7119 | cat >conftest.$ac_ext <<_ACEOF | |
7120 | #line $LINENO "configure" | |
cd958eb3 MB |
7121 | /* confdefs.h. */ |
7122 | _ACEOF | |
7123 | cat confdefs.h >>conftest.$ac_ext | |
7124 | cat >>conftest.$ac_ext <<_ACEOF | |
7125 | /* end confdefs.h. */ | |
98418dba CW |
7126 | $ac_includes_default |
7127 | #include <$ac_header> | |
7128 | _ACEOF | |
7129 | rm -f conftest.$ac_objext | |
c0d27fcc | 7130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
7131 | (eval $ac_compile) 2>&5 |
7132 | ac_status=$? | |
c0d27fcc | 7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7134 | (exit $ac_status); } && |
7135 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7137 | (eval $ac_try) 2>&5 |
7138 | ac_status=$? | |
c0d27fcc | 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7140 | (exit $ac_status); }; }; then |
c0d27fcc | 7141 | ac_header_compiler=yes |
98418dba CW |
7142 | else |
7143 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7144 | sed 's/^/| /' conftest.$ac_ext >&5 |
7145 | ||
c0d27fcc | 7146 | ac_header_compiler=no |
98418dba CW |
7147 | fi |
7148 | rm -f conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc MR |
7149 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7150 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 7151 | |
c0d27fcc MR |
7152 | # Is the header present? |
7153 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7154 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7155 | cat >conftest.$ac_ext <<_ACEOF | |
7156 | #line $LINENO "configure" | |
cd958eb3 MB |
7157 | /* confdefs.h. */ |
7158 | _ACEOF | |
7159 | cat confdefs.h >>conftest.$ac_ext | |
7160 | cat >>conftest.$ac_ext <<_ACEOF | |
7161 | /* end confdefs.h. */ | |
98418dba CW |
7162 | #include <$ac_header> |
7163 | _ACEOF | |
c0d27fcc | 7164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7166 | ac_status=$? | |
6bae0ccf | 7167 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7168 | rm -f conftest.er1 |
7169 | cat conftest.err >&5 | |
c0d27fcc | 7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7171 | (exit $ac_status); } >/dev/null; then |
7172 | if test -s conftest.err; then | |
7173 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7174 | else | |
7175 | ac_cpp_err= | |
7176 | fi | |
7177 | else | |
7178 | ac_cpp_err=yes | |
7179 | fi | |
7180 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 7181 | ac_header_preproc=yes |
98418dba CW |
7182 | else |
7183 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7184 | sed 's/^/| /' conftest.$ac_ext >&5 |
7185 | ||
c0d27fcc | 7186 | ac_header_preproc=no |
98418dba CW |
7187 | fi |
7188 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
7189 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7190 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7191 | ||
7192 | # So? What about this header? | |
7193 | case $ac_header_compiler:$ac_header_preproc in | |
7194 | yes:no ) | |
7195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
7198 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7199 | ( | |
7200 | cat <<\_ASBOX | |
7201 | ## ------------------------------------ ## | |
7202 | ## Report this to bug-autoconf@gnu.org. ## | |
7203 | ## ------------------------------------ ## | |
7204 | _ASBOX | |
7205 | ) | | |
7206 | sed "s/^/$as_me: WARNING: /" >&2 | |
7207 | ;; | |
c0d27fcc MR |
7208 | no:yes ) |
7209 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7210 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7211 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7212 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
7214 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
7215 | ( | |
7216 | cat <<\_ASBOX | |
7217 | ## ------------------------------------ ## | |
7218 | ## Report this to bug-autoconf@gnu.org. ## | |
7219 | ## ------------------------------------ ## | |
7220 | _ASBOX | |
7221 | ) | | |
7222 | sed "s/^/$as_me: WARNING: /" >&2 | |
7223 | ;; | |
c0d27fcc MR |
7224 | esac |
7225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7229 | else | |
7230 | eval "$as_ac_Header=$ac_header_preproc" | |
98418dba | 7231 | fi |
c0d27fcc | 7232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 7233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
7234 | |
7235 | fi | |
98418dba | 7236 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 7237 | cat >>confdefs.h <<_ACEOF |
98418dba | 7238 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 7239 | _ACEOF |
98418dba CW |
7240 | |
7241 | fi | |
c0d27fcc | 7242 | |
98418dba CW |
7243 | done |
7244 | ||
c0d27fcc | 7245 | |
98418dba CW |
7246 | for ac_func in getpagesize |
7247 | do | |
7248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 7249 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
7250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7251 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7253 | else | |
7254 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7255 | #line $LINENO "configure" |
cd958eb3 MB |
7256 | /* confdefs.h. */ |
7257 | _ACEOF | |
7258 | cat confdefs.h >>conftest.$ac_ext | |
7259 | cat >>conftest.$ac_ext <<_ACEOF | |
7260 | /* end confdefs.h. */ | |
98418dba | 7261 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
7262 | which can conflict with char $ac_func (); below. |
7263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7264 | <limits.h> exists even on freestanding compilers. */ | |
7265 | #ifdef __STDC__ | |
7266 | # include <limits.h> | |
7267 | #else | |
7268 | # include <assert.h> | |
7269 | #endif | |
98418dba CW |
7270 | /* Override any gcc2 internal prototype to avoid an error. */ |
7271 | #ifdef __cplusplus | |
7272 | extern "C" | |
cd958eb3 | 7273 | { |
98418dba CW |
7274 | #endif |
7275 | /* We use char because int might match the return type of a gcc2 | |
7276 | builtin and then its argument prototype would still apply. */ | |
7277 | char $ac_func (); | |
98418dba CW |
7278 | /* The GNU C library defines this for functions which it implements |
7279 | to always fail with ENOSYS. Some functions are actually named | |
7280 | something starting with __ and the normal name is an alias. */ | |
7281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7282 | choke me | |
7283 | #else | |
cd958eb3 MB |
7284 | char (*f) () = $ac_func; |
7285 | #endif | |
7286 | #ifdef __cplusplus | |
7287 | } | |
98418dba CW |
7288 | #endif |
7289 | ||
cd958eb3 MB |
7290 | int |
7291 | main () | |
7292 | { | |
9e71690e | 7293 | return f != $ac_func; |
98418dba CW |
7294 | ; |
7295 | return 0; | |
7296 | } | |
7297 | _ACEOF | |
7298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7300 | (eval $ac_link) 2>&5 |
7301 | ac_status=$? | |
c0d27fcc | 7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7303 | (exit $ac_status); } && |
7304 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7306 | (eval $ac_try) 2>&5 |
7307 | ac_status=$? | |
c0d27fcc | 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7309 | (exit $ac_status); }; }; then |
7310 | eval "$as_ac_var=yes" | |
7311 | else | |
7312 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7313 | sed 's/^/| /' conftest.$ac_ext >&5 |
7314 | ||
98418dba CW |
7315 | eval "$as_ac_var=no" |
7316 | fi | |
7317 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7318 | fi | |
c0d27fcc | 7319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
7320 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7321 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 7322 | cat >>confdefs.h <<_ACEOF |
98418dba | 7323 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 7324 | _ACEOF |
98418dba CW |
7325 | |
7326 | fi | |
7327 | done | |
7328 | ||
c0d27fcc | 7329 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
7330 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
7331 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
7332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7333 | else | |
7334 | if test "$cross_compiling" = yes; then | |
7335 | ac_cv_func_mmap_fixed_mapped=no | |
7336 | else | |
7337 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7338 | #line $LINENO "configure" |
cd958eb3 MB |
7339 | /* confdefs.h. */ |
7340 | _ACEOF | |
7341 | cat confdefs.h >>conftest.$ac_ext | |
7342 | cat >>conftest.$ac_ext <<_ACEOF | |
7343 | /* end confdefs.h. */ | |
98418dba | 7344 | $ac_includes_default |
c0d27fcc MR |
7345 | /* malloc might have been renamed as rpl_malloc. */ |
7346 | #undef malloc | |
7347 | ||
98418dba CW |
7348 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7349 | Here is a matrix of mmap possibilities: | |
7350 | mmap private not fixed | |
7351 | mmap private fixed at somewhere currently unmapped | |
7352 | mmap private fixed at somewhere already mapped | |
7353 | mmap shared not fixed | |
7354 | mmap shared fixed at somewhere currently unmapped | |
7355 | mmap shared fixed at somewhere already mapped | |
7356 | For private mappings, we should verify that changes cannot be read() | |
7357 | back from the file, nor mmap's back from the file at a different | |
7358 | address. (There have been systems where private was not correctly | |
7359 | implemented like the infamous i386 svr4.0, and systems where the | |
7360 | VM page cache was not coherent with the file system buffer cache | |
7361 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7362 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 7363 | propagated back to all the places they're supposed to be. |
98418dba CW |
7364 | |
7365 | Grep wants private fixed already mapped. | |
7366 | The main things grep needs to know about mmap are: | |
7367 | * does it exist and is it safe to write into the mmap'd area | |
7368 | * how to use it (BSD variants) */ | |
7369 | ||
7370 | #include <fcntl.h> | |
7371 | #include <sys/mman.h> | |
7372 | ||
7373 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
7374 | char *malloc (); | |
7375 | #endif | |
7376 | ||
7377 | /* This mess was copied from the GNU getpagesize.h. */ | |
7378 | #if !HAVE_GETPAGESIZE | |
7379 | /* Assume that all systems that can run configure have sys/param.h. */ | |
7380 | # if !HAVE_SYS_PARAM_H | |
7381 | # define HAVE_SYS_PARAM_H 1 | |
7382 | # endif | |
7383 | ||
7384 | # ifdef _SC_PAGESIZE | |
7385 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7386 | # else /* no _SC_PAGESIZE */ | |
7387 | # if HAVE_SYS_PARAM_H | |
7388 | # include <sys/param.h> | |
7389 | # ifdef EXEC_PAGESIZE | |
7390 | # define getpagesize() EXEC_PAGESIZE | |
7391 | # else /* no EXEC_PAGESIZE */ | |
7392 | # ifdef NBPG | |
7393 | # define getpagesize() NBPG * CLSIZE | |
7394 | # ifndef CLSIZE | |
7395 | # define CLSIZE 1 | |
7396 | # endif /* no CLSIZE */ | |
7397 | # else /* no NBPG */ | |
7398 | # ifdef NBPC | |
7399 | # define getpagesize() NBPC | |
7400 | # else /* no NBPC */ | |
7401 | # ifdef PAGESIZE | |
7402 | # define getpagesize() PAGESIZE | |
7403 | # endif /* PAGESIZE */ | |
7404 | # endif /* no NBPC */ | |
7405 | # endif /* no NBPG */ | |
7406 | # endif /* no EXEC_PAGESIZE */ | |
7407 | # else /* no HAVE_SYS_PARAM_H */ | |
7408 | # define getpagesize() 8192 /* punt totally */ | |
7409 | # endif /* no HAVE_SYS_PARAM_H */ | |
7410 | # endif /* no _SC_PAGESIZE */ | |
7411 | ||
7412 | #endif /* no HAVE_GETPAGESIZE */ | |
7413 | ||
7414 | int | |
7415 | main () | |
7416 | { | |
7417 | char *data, *data2, *data3; | |
7418 | int i, pagesize; | |
7419 | int fd; | |
7420 | ||
7421 | pagesize = getpagesize (); | |
7422 | ||
7423 | /* First, make a file with some known garbage in it. */ | |
7424 | data = (char *) malloc (pagesize); | |
7425 | if (!data) | |
7426 | exit (1); | |
7427 | for (i = 0; i < pagesize; ++i) | |
7428 | *(data + i) = rand (); | |
7429 | umask (0); | |
7430 | fd = creat ("conftest.mmap", 0600); | |
7431 | if (fd < 0) | |
7432 | exit (1); | |
7433 | if (write (fd, data, pagesize) != pagesize) | |
7434 | exit (1); | |
7435 | close (fd); | |
7436 | ||
7437 | /* Next, try to mmap the file at a fixed address which already has | |
7438 | something else allocated at it. If we can, also make sure that | |
7439 | we see the same garbage. */ | |
7440 | fd = open ("conftest.mmap", O_RDWR); | |
7441 | if (fd < 0) | |
7442 | exit (1); | |
7443 | data2 = (char *) malloc (2 * pagesize); | |
7444 | if (!data2) | |
7445 | exit (1); | |
7446 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
7447 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7448 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7449 | exit (1); | |
7450 | for (i = 0; i < pagesize; ++i) | |
7451 | if (*(data + i) != *(data2 + i)) | |
7452 | exit (1); | |
7453 | ||
7454 | /* Finally, make sure that changes to the mapped area do not | |
7455 | percolate back to the file as seen by read(). (This is a bug on | |
7456 | some variants of i386 svr4.0.) */ | |
7457 | for (i = 0; i < pagesize; ++i) | |
7458 | *(data2 + i) = *(data2 + i) + 1; | |
7459 | data3 = (char *) malloc (pagesize); | |
7460 | if (!data3) | |
7461 | exit (1); | |
7462 | if (read (fd, data3, pagesize) != pagesize) | |
7463 | exit (1); | |
7464 | for (i = 0; i < pagesize; ++i) | |
7465 | if (*(data + i) != *(data3 + i)) | |
7466 | exit (1); | |
7467 | close (fd); | |
7468 | exit (0); | |
7469 | } | |
7470 | _ACEOF | |
7471 | rm -f conftest$ac_exeext | |
c0d27fcc | 7472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7473 | (eval $ac_link) 2>&5 |
7474 | ac_status=$? | |
c0d27fcc | 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7478 | (eval $ac_try) 2>&5 |
7479 | ac_status=$? | |
c0d27fcc | 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7481 | (exit $ac_status); }; }; then |
7482 | ac_cv_func_mmap_fixed_mapped=yes | |
7483 | else | |
7484 | echo "$as_me: program exited with status $ac_status" >&5 | |
7485 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7486 | sed 's/^/| /' conftest.$ac_ext >&5 |
7487 | ||
c0d27fcc | 7488 | ( exit $ac_status ) |
98418dba CW |
7489 | ac_cv_func_mmap_fixed_mapped=no |
7490 | fi | |
6bae0ccf | 7491 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
7492 | fi |
7493 | fi | |
c0d27fcc | 7494 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
7495 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
7496 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
7497 | ||
c0d27fcc | 7498 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7499 | #define HAVE_MMAP 1 |
c0d27fcc | 7500 | _ACEOF |
98418dba CW |
7501 | |
7502 | fi | |
7503 | rm -f conftest.mmap | |
7504 | ||
7505 | if test $use_mmap_for_buffers = yes; then | |
7506 | REL_ALLOC=no | |
7507 | fi | |
7508 | ||
7509 | LIBS="$libsrc_libs $LIBS" | |
7510 | ||
c0d27fcc MR |
7511 | |
7512 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
7513 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
7514 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
7515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7516 | else | |
7517 | ac_check_lib_save_LIBS=$LIBS | |
7518 | LIBS="-ldnet $LIBS" | |
7519 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7520 | #line $LINENO "configure" |
cd958eb3 MB |
7521 | /* confdefs.h. */ |
7522 | _ACEOF | |
7523 | cat confdefs.h >>conftest.$ac_ext | |
7524 | cat >>conftest.$ac_ext <<_ACEOF | |
7525 | /* end confdefs.h. */ | |
98418dba CW |
7526 | |
7527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7528 | #ifdef __cplusplus | |
7529 | extern "C" | |
7530 | #endif | |
7531 | /* We use char because int might match the return type of a gcc2 | |
7532 | builtin and then its argument prototype would still apply. */ | |
7533 | char dnet_ntoa (); | |
98418dba CW |
7534 | int |
7535 | main () | |
7536 | { | |
7537 | dnet_ntoa (); | |
7538 | ; | |
7539 | return 0; | |
7540 | } | |
7541 | _ACEOF | |
7542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7544 | (eval $ac_link) 2>&5 |
7545 | ac_status=$? | |
c0d27fcc | 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7547 | (exit $ac_status); } && |
7548 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7550 | (eval $ac_try) 2>&5 |
7551 | ac_status=$? | |
c0d27fcc | 7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7553 | (exit $ac_status); }; }; then |
7554 | ac_cv_lib_dnet_dnet_ntoa=yes | |
7555 | else | |
7556 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7557 | sed 's/^/| /' conftest.$ac_ext >&5 |
7558 | ||
98418dba CW |
7559 | ac_cv_lib_dnet_dnet_ntoa=no |
7560 | fi | |
7561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7562 | LIBS=$ac_check_lib_save_LIBS | |
7563 | fi | |
c0d27fcc | 7564 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
7565 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
7566 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 7567 | cat >>confdefs.h <<_ACEOF |
98418dba | 7568 | #define HAVE_LIBDNET 1 |
c0d27fcc | 7569 | _ACEOF |
98418dba CW |
7570 | |
7571 | LIBS="-ldnet $LIBS" | |
7572 | ||
7573 | fi | |
7574 | ||
c0d27fcc MR |
7575 | |
7576 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
7577 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
7578 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7580 | else | |
7581 | ac_check_lib_save_LIBS=$LIBS | |
7582 | LIBS="-lXbsd $LIBS" | |
7583 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7584 | #line $LINENO "configure" |
cd958eb3 MB |
7585 | /* confdefs.h. */ |
7586 | _ACEOF | |
7587 | cat confdefs.h >>conftest.$ac_ext | |
7588 | cat >>conftest.$ac_ext <<_ACEOF | |
7589 | /* end confdefs.h. */ | |
98418dba | 7590 | |
c0d27fcc | 7591 | |
98418dba CW |
7592 | int |
7593 | main () | |
7594 | { | |
7595 | main (); | |
7596 | ; | |
7597 | return 0; | |
7598 | } | |
7599 | _ACEOF | |
7600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7602 | (eval $ac_link) 2>&5 |
7603 | ac_status=$? | |
c0d27fcc | 7604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7605 | (exit $ac_status); } && |
7606 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7608 | (eval $ac_try) 2>&5 |
7609 | ac_status=$? | |
c0d27fcc | 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7611 | (exit $ac_status); }; }; then |
7612 | ac_cv_lib_Xbsd_main=yes | |
7613 | else | |
7614 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7615 | sed 's/^/| /' conftest.$ac_ext >&5 |
7616 | ||
98418dba CW |
7617 | ac_cv_lib_Xbsd_main=no |
7618 | fi | |
7619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7620 | LIBS=$ac_check_lib_save_LIBS | |
7621 | fi | |
c0d27fcc | 7622 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
7623 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
7624 | if test $ac_cv_lib_Xbsd_main = yes; then | |
7625 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
7626 | fi | |
7627 | ||
c0d27fcc MR |
7628 | |
7629 | ||
7630 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
7631 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
7632 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7634 | else | |
7635 | ac_check_lib_save_LIBS=$LIBS | |
7636 | LIBS="-lpthreads $LIBS" | |
7637 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7638 | #line $LINENO "configure" |
cd958eb3 MB |
7639 | /* confdefs.h. */ |
7640 | _ACEOF | |
7641 | cat confdefs.h >>conftest.$ac_ext | |
7642 | cat >>conftest.$ac_ext <<_ACEOF | |
7643 | /* end confdefs.h. */ | |
98418dba CW |
7644 | |
7645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7646 | #ifdef __cplusplus | |
7647 | extern "C" | |
7648 | #endif | |
7649 | /* We use char because int might match the return type of a gcc2 | |
7650 | builtin and then its argument prototype would still apply. */ | |
7651 | char cma_open (); | |
98418dba CW |
7652 | int |
7653 | main () | |
7654 | { | |
7655 | cma_open (); | |
7656 | ; | |
7657 | return 0; | |
7658 | } | |
7659 | _ACEOF | |
7660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7662 | (eval $ac_link) 2>&5 |
7663 | ac_status=$? | |
c0d27fcc | 7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7665 | (exit $ac_status); } && |
7666 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7668 | (eval $ac_try) 2>&5 |
7669 | ac_status=$? | |
c0d27fcc | 7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7671 | (exit $ac_status); }; }; then |
7672 | ac_cv_lib_pthreads_cma_open=yes | |
7673 | else | |
7674 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7675 | sed 's/^/| /' conftest.$ac_ext >&5 |
7676 | ||
98418dba CW |
7677 | ac_cv_lib_pthreads_cma_open=no |
7678 | fi | |
7679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7680 | LIBS=$ac_check_lib_save_LIBS | |
7681 | fi | |
c0d27fcc | 7682 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
7683 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
7684 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 7685 | cat >>confdefs.h <<_ACEOF |
98418dba | 7686 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 7687 | _ACEOF |
98418dba CW |
7688 | |
7689 | LIBS="-lpthreads $LIBS" | |
7690 | ||
7691 | fi | |
7692 | ||
c0d27fcc MR |
7693 | |
7694 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
7695 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
7696 | if test -d /usr/X386/include; then | |
7697 | HAVE_XFREE386=yes | |
7698 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
7699 | else | |
7700 | HAVE_XFREE386=no | |
7701 | fi | |
c0d27fcc | 7702 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
7703 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
7704 | ||
ae1a998c RS |
7705 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
7706 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
7707 | # REAL_CPPFLAGS later on. | |
98418dba CW |
7708 | |
7709 | REAL_CPPFLAGS="$CPPFLAGS" | |
7710 | ||
7711 | if test "${HAVE_X11}" = "yes"; then | |
7712 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
7713 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
7714 | LIBS="$LIBX $LIBS" | |
7715 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
7716 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
7717 | ||
7718 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
7719 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
7720 | # but it's more convenient here to set LD_RUN_PATH | |
7721 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
7722 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
7723 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
7724 | export LD_RUN_PATH | |
7725 | fi | |
7726 | ||
7727 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 7728 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
7729 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
7730 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7731 | #line $LINENO "configure" |
cd958eb3 MB |
7732 | /* confdefs.h. */ |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
98418dba | 7737 | |
98418dba CW |
7738 | int |
7739 | main () | |
7740 | { | |
7741 | XOpenDisplay ("foo"); | |
7742 | ; | |
7743 | return 0; | |
7744 | } | |
7745 | _ACEOF | |
7746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7748 | (eval $ac_link) 2>&5 |
7749 | ac_status=$? | |
c0d27fcc | 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7751 | (exit $ac_status); } && |
7752 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7754 | (eval $ac_try) 2>&5 |
7755 | ac_status=$? | |
c0d27fcc | 7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7757 | (exit $ac_status); }; }; then |
7758 | xlinux_first_failure=no | |
7759 | else | |
7760 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7761 | sed 's/^/| /' conftest.$ac_ext >&5 |
7762 | ||
98418dba CW |
7763 | xlinux_first_failure=yes |
7764 | fi | |
7765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7766 | if test "${xlinux_first_failure}" = "yes"; then | |
7767 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
7768 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
7769 | OLD_CPPFLAGS="$CPPFLAGS" | |
7770 | OLD_LIBS="$LIBS" | |
7771 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
7772 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
7773 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
7774 | LIBS="$LIBS -b i486-linuxaout" | |
7775 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7776 | #line $LINENO "configure" |
cd958eb3 MB |
7777 | /* confdefs.h. */ |
7778 | _ACEOF | |
7779 | cat confdefs.h >>conftest.$ac_ext | |
7780 | cat >>conftest.$ac_ext <<_ACEOF | |
7781 | /* end confdefs.h. */ | |
98418dba | 7782 | |
98418dba CW |
7783 | int |
7784 | main () | |
7785 | { | |
7786 | XOpenDisplay ("foo"); | |
7787 | ; | |
7788 | return 0; | |
7789 | } | |
7790 | _ACEOF | |
7791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7793 | (eval $ac_link) 2>&5 |
7794 | ac_status=$? | |
c0d27fcc | 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7796 | (exit $ac_status); } && |
7797 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7799 | (eval $ac_try) 2>&5 |
7800 | ac_status=$? | |
c0d27fcc | 7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7802 | (exit $ac_status); }; }; then |
7803 | xlinux_second_failure=no | |
7804 | else | |
7805 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7806 | sed 's/^/| /' conftest.$ac_ext >&5 |
7807 | ||
98418dba CW |
7808 | xlinux_second_failure=yes |
7809 | fi | |
7810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7811 | if test "${xlinux_second_failure}" = "yes"; then | |
7812 | # If we get the same failure with -b, there is no use adding -b. | |
7813 | # So take it out. This plays safe. | |
7814 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
7815 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
7816 | CPPFLAGS="$OLD_CPPFLAGS" | |
7817 | LIBS="$OLD_LIBS" | |
c0d27fcc | 7818 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7819 | echo "${ECHO_T}no" >&6 |
7820 | else | |
c0d27fcc | 7821 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7822 | echo "${ECHO_T}yes" >&6 |
7823 | fi | |
7824 | else | |
c0d27fcc | 7825 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7826 | echo "${ECHO_T}no" >&6 |
7827 | fi | |
7828 | fi | |
7829 | ||
7830 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
7831 | # header files included from there. | |
c0d27fcc | 7832 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
7833 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
7834 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7835 | #line $LINENO "configure" |
cd958eb3 MB |
7836 | /* confdefs.h. */ |
7837 | _ACEOF | |
7838 | cat confdefs.h >>conftest.$ac_ext | |
7839 | cat >>conftest.$ac_ext <<_ACEOF | |
7840 | /* end confdefs.h. */ | |
98418dba CW |
7841 | #include <X11/Xlib.h> |
7842 | #include <X11/XKBlib.h> | |
98418dba CW |
7843 | int |
7844 | main () | |
7845 | { | |
7846 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
7847 | ; | |
7848 | return 0; | |
7849 | } | |
7850 | _ACEOF | |
7851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7853 | (eval $ac_link) 2>&5 |
7854 | ac_status=$? | |
c0d27fcc | 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7856 | (exit $ac_status); } && |
7857 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7859 | (eval $ac_try) 2>&5 |
7860 | ac_status=$? | |
c0d27fcc | 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7862 | (exit $ac_status); }; }; then |
7863 | emacs_xkb=yes | |
7864 | else | |
7865 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
7867 | ||
98418dba CW |
7868 | emacs_xkb=no |
7869 | fi | |
7870 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 7871 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
7872 | echo "${ECHO_T}$emacs_xkb" >&6 |
7873 | if test $emacs_xkb = yes; then | |
b936fae4 | 7874 | |
c0d27fcc | 7875 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7876 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 7877 | _ACEOF |
98418dba CW |
7878 | |
7879 | fi | |
7880 | ||
c0d27fcc MR |
7881 | |
7882 | ||
7883 | ||
7884 | ||
98418dba CW |
7885 | for ac_func in XrmSetDatabase XScreenResourceString \ |
7886 | XScreenNumberOfScreen XSetWMProtocols | |
7887 | do | |
7888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 7889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
7890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7891 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7893 | else | |
7894 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7895 | #line $LINENO "configure" |
cd958eb3 MB |
7896 | /* confdefs.h. */ |
7897 | _ACEOF | |
7898 | cat confdefs.h >>conftest.$ac_ext | |
7899 | cat >>conftest.$ac_ext <<_ACEOF | |
7900 | /* end confdefs.h. */ | |
98418dba | 7901 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
7902 | which can conflict with char $ac_func (); below. |
7903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7904 | <limits.h> exists even on freestanding compilers. */ | |
7905 | #ifdef __STDC__ | |
7906 | # include <limits.h> | |
7907 | #else | |
7908 | # include <assert.h> | |
7909 | #endif | |
98418dba CW |
7910 | /* Override any gcc2 internal prototype to avoid an error. */ |
7911 | #ifdef __cplusplus | |
7912 | extern "C" | |
cd958eb3 | 7913 | { |
98418dba CW |
7914 | #endif |
7915 | /* We use char because int might match the return type of a gcc2 | |
7916 | builtin and then its argument prototype would still apply. */ | |
7917 | char $ac_func (); | |
98418dba CW |
7918 | /* The GNU C library defines this for functions which it implements |
7919 | to always fail with ENOSYS. Some functions are actually named | |
7920 | something starting with __ and the normal name is an alias. */ | |
7921 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7922 | choke me | |
7923 | #else | |
cd958eb3 MB |
7924 | char (*f) () = $ac_func; |
7925 | #endif | |
7926 | #ifdef __cplusplus | |
7927 | } | |
98418dba CW |
7928 | #endif |
7929 | ||
cd958eb3 MB |
7930 | int |
7931 | main () | |
7932 | { | |
9e71690e | 7933 | return f != $ac_func; |
98418dba CW |
7934 | ; |
7935 | return 0; | |
7936 | } | |
7937 | _ACEOF | |
7938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7940 | (eval $ac_link) 2>&5 |
7941 | ac_status=$? | |
c0d27fcc | 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7943 | (exit $ac_status); } && |
7944 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7946 | (eval $ac_try) 2>&5 |
7947 | ac_status=$? | |
c0d27fcc | 7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7949 | (exit $ac_status); }; }; then |
7950 | eval "$as_ac_var=yes" | |
7951 | else | |
7952 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
7953 | sed 's/^/| /' conftest.$ac_ext >&5 |
7954 | ||
98418dba CW |
7955 | eval "$as_ac_var=no" |
7956 | fi | |
7957 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7958 | fi | |
c0d27fcc | 7959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
7960 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7961 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 7962 | cat >>confdefs.h <<_ACEOF |
98418dba | 7963 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 7964 | _ACEOF |
98418dba CW |
7965 | |
7966 | fi | |
7967 | done | |
7968 | ||
7969 | fi | |
7970 | ||
7971 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 7972 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
7973 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
7974 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
7975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7976 | else | |
7977 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 7978 | #line $LINENO "configure" |
cd958eb3 MB |
7979 | /* confdefs.h. */ |
7980 | _ACEOF | |
7981 | cat confdefs.h >>conftest.$ac_ext | |
7982 | cat >>conftest.$ac_ext <<_ACEOF | |
7983 | /* end confdefs.h. */ | |
98418dba | 7984 | #include <X11/Xlib.h> |
98418dba CW |
7985 | int |
7986 | main () | |
7987 | { | |
7988 | #if XlibSpecificationRelease < 6 | |
7989 | fail; | |
7990 | #endif | |
7991 | ||
7992 | ; | |
7993 | return 0; | |
7994 | } | |
7995 | _ACEOF | |
7996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7998 | (eval $ac_link) 2>&5 |
7999 | ac_status=$? | |
c0d27fcc | 8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8001 | (exit $ac_status); } && |
8002 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8004 | (eval $ac_try) 2>&5 |
8005 | ac_status=$? | |
c0d27fcc | 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8007 | (exit $ac_status); }; }; then |
8008 | emacs_cv_x11_version_6=yes | |
8009 | else | |
8010 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8011 | sed 's/^/| /' conftest.$ac_ext >&5 |
8012 | ||
98418dba CW |
8013 | emacs_cv_x11_version_6=no |
8014 | fi | |
8015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8016 | fi | |
8017 | ||
8018 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 8019 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 8020 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 8021 | |
c0d27fcc | 8022 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8023 | #define HAVE_X11R6 1 |
c0d27fcc | 8024 | _ACEOF |
98418dba CW |
8025 | |
8026 | else | |
c0d27fcc | 8027 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
8028 | echo "${ECHO_T}before 6" >&6 |
8029 | fi | |
8030 | fi | |
8031 | ||
8032 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 8033 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
8034 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
8035 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8037 | else | |
8038 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8039 | #line $LINENO "configure" |
cd958eb3 MB |
8040 | /* confdefs.h. */ |
8041 | _ACEOF | |
8042 | cat confdefs.h >>conftest.$ac_ext | |
8043 | cat >>conftest.$ac_ext <<_ACEOF | |
8044 | /* end confdefs.h. */ | |
98418dba | 8045 | #include <X11/Xlib.h> |
98418dba CW |
8046 | int |
8047 | main () | |
8048 | { | |
8049 | #if XlibSpecificationRelease < 5 | |
8050 | fail; | |
8051 | #endif | |
8052 | ||
8053 | ; | |
8054 | return 0; | |
8055 | } | |
8056 | _ACEOF | |
8057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8059 | (eval $ac_link) 2>&5 |
8060 | ac_status=$? | |
c0d27fcc | 8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8062 | (exit $ac_status); } && |
8063 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8065 | (eval $ac_try) 2>&5 |
8066 | ac_status=$? | |
c0d27fcc | 8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8068 | (exit $ac_status); }; }; then |
8069 | emacs_cv_x11_version_5=yes | |
8070 | else | |
8071 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8072 | sed 's/^/| /' conftest.$ac_ext >&5 |
8073 | ||
98418dba CW |
8074 | emacs_cv_x11_version_5=no |
8075 | fi | |
8076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8077 | fi | |
8078 | ||
8079 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 8080 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
8081 | echo "${ECHO_T}5 or newer" >&6 |
8082 | HAVE_X11R5=yes | |
b936fae4 | 8083 | |
c0d27fcc | 8084 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8085 | #define HAVE_X11R5 1 |
c0d27fcc | 8086 | _ACEOF |
98418dba CW |
8087 | |
8088 | else | |
8089 | HAVE_X11R5=no | |
c0d27fcc | 8090 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
8091 | echo "${ECHO_T}before 5" >&6 |
8092 | fi | |
8093 | fi | |
8094 | ||
488dd4c4 JD |
8095 | |
8096 | ||
8097 | HAVE_GTK=no | |
8098 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 8099 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
8100 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
8101 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
8102 | { (exit 1); exit 1; }; }; | |
8103 | fi | |
8104 | GLIB_REQUIRED=2.0.1 | |
8105 | GTK_REQUIRED=2.0.1 | |
8106 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | |
8107 | ||
8108 | if test "X${with_pkg_config_prog}" != X; then | |
8109 | PKG_CONFIG="${with_pkg_config_prog}" | |
8110 | fi | |
8111 | ||
8112 | succeeded=no | |
8113 | ||
8114 | if test -z "$PKG_CONFIG"; then | |
8115 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
8116 | set dummy pkg-config; ac_word=$2 | |
8117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8119 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8121 | else | |
8122 | case $PKG_CONFIG in | |
8123 | [\\/]* | ?:[\\/]*) | |
8124 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
8125 | ;; | |
8126 | *) | |
8127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8128 | for as_dir in $PATH | |
8129 | do | |
8130 | IFS=$as_save_IFS | |
8131 | test -z "$as_dir" && as_dir=. | |
8132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8134 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8136 | break 2 | |
8137 | fi | |
8138 | done | |
8139 | done | |
8140 | ||
8141 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
8142 | ;; | |
8143 | esac | |
8144 | fi | |
8145 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
8146 | ||
8147 | if test -n "$PKG_CONFIG"; then | |
8148 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
8149 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
8150 | else | |
8151 | echo "$as_me:$LINENO: result: no" >&5 | |
8152 | echo "${ECHO_T}no" >&6 | |
8153 | fi | |
8154 | ||
8155 | fi | |
8156 | ||
8157 | if test "$PKG_CONFIG" = "no" ; then | |
8158 | echo "*** The pkg-config script could not be found. Make sure it is" | |
8159 | echo "*** in your path, or give the full path to pkg-config with" | |
8160 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
8161 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
8162 | else | |
8163 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
8164 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
8165 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
8166 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
8167 | ||
8168 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
8169 | echo "$as_me:$LINENO: result: yes" >&5 | |
8170 | echo "${ECHO_T}yes" >&6 | |
8171 | succeeded=yes | |
8172 | ||
8173 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
8174 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
8175 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
8176 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
8177 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
8178 | ||
8179 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
8180 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
8181 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
8182 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
8183 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
8184 | else | |
8185 | GTK_CFLAGS="" | |
8186 | GTK_LIBS="" | |
8187 | ## If we have a custom action on failure, don't print errors, but | |
8188 | ## do set a variable so people can do so. | |
8189 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
8190 | echo $GTK_PKG_ERRORS | |
8191 | fi | |
8192 | ||
8193 | ||
8194 | ||
8195 | else | |
8196 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
8197 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
8198 | fi | |
8199 | fi | |
8200 | ||
8201 | if test $succeeded = yes; then | |
8202 | : | |
8203 | else | |
8204 | { { 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 | |
8205 | 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;} | |
8206 | { (exit 1); exit 1; }; } | |
8207 | fi | |
8208 | ||
8209 | ||
8210 | ||
8211 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
8212 | HAVE_GTK=yes | |
8213 | ||
8214 | cat >>confdefs.h <<\_ACEOF | |
8215 | #define HAVE_GTK 1 | |
8216 | _ACEOF | |
8217 | ||
8218 | USE_X_TOOLKIT=none | |
8219 | ||
8220 | with_toolkit_scroll_bars=yes | |
8221 | fi | |
8222 | ||
98418dba CW |
8223 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
8224 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 8225 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
8226 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
8227 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
8228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8229 | else | |
8230 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8231 | #line $LINENO "configure" |
cd958eb3 MB |
8232 | /* confdefs.h. */ |
8233 | _ACEOF | |
8234 | cat confdefs.h >>conftest.$ac_ext | |
8235 | cat >>conftest.$ac_ext <<_ACEOF | |
8236 | /* end confdefs.h. */ | |
98418dba CW |
8237 | |
8238 | #include <X11/Intrinsic.h> | |
8239 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
8240 | int |
8241 | main () | |
8242 | { | |
8243 | ||
8244 | ; | |
8245 | return 0; | |
8246 | } | |
8247 | _ACEOF | |
8248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8250 | (eval $ac_link) 2>&5 |
8251 | ac_status=$? | |
c0d27fcc | 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8253 | (exit $ac_status); } && |
8254 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8256 | (eval $ac_try) 2>&5 |
8257 | ac_status=$? | |
c0d27fcc | 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8259 | (exit $ac_status); }; }; then |
8260 | emacs_cv_x11_version_5_with_xaw=yes | |
8261 | else | |
8262 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8263 | sed 's/^/| /' conftest.$ac_ext >&5 |
8264 | ||
98418dba CW |
8265 | emacs_cv_x11_version_5_with_xaw=no |
8266 | fi | |
8267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8268 | fi | |
8269 | ||
8270 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 8271 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
8272 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
8273 | USE_X_TOOLKIT=LUCID | |
8274 | else | |
c0d27fcc | 8275 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
8276 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
8277 | USE_X_TOOLKIT=none | |
8278 | fi | |
8279 | else | |
8280 | USE_X_TOOLKIT=none | |
8281 | fi | |
8282 | fi | |
8283 | ||
8284 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
8285 | ||
8286 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 8287 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
8288 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
8289 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8291 | else | |
8292 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8293 | #line $LINENO "configure" |
cd958eb3 MB |
8294 | /* confdefs.h. */ |
8295 | _ACEOF | |
8296 | cat confdefs.h >>conftest.$ac_ext | |
8297 | cat >>conftest.$ac_ext <<_ACEOF | |
8298 | /* end confdefs.h. */ | |
98418dba | 8299 | #include <X11/Intrinsic.h> |
98418dba CW |
8300 | int |
8301 | main () | |
8302 | { | |
8303 | #if XtSpecificationRelease < 6 | |
8304 | fail; | |
8305 | #endif | |
8306 | ||
8307 | ; | |
8308 | return 0; | |
8309 | } | |
8310 | _ACEOF | |
8311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8313 | (eval $ac_link) 2>&5 |
8314 | ac_status=$? | |
c0d27fcc | 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8316 | (exit $ac_status); } && |
8317 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8319 | (eval $ac_try) 2>&5 |
8320 | ac_status=$? | |
c0d27fcc | 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8322 | (exit $ac_status); }; }; then |
8323 | emacs_cv_x11_toolkit_version_6=yes | |
8324 | else | |
8325 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8326 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | ||
98418dba CW |
8328 | emacs_cv_x11_toolkit_version_6=no |
8329 | fi | |
8330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8331 | fi | |
8332 | ||
8333 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
8334 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 8335 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 8336 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 8337 | |
c0d27fcc | 8338 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8339 | #define HAVE_X11XTR6 1 |
c0d27fcc | 8340 | _ACEOF |
98418dba CW |
8341 | |
8342 | else | |
c0d27fcc | 8343 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
8344 | echo "${ECHO_T}before 6" >&6 |
8345 | fi | |
8346 | ||
8347 | OLDLIBS="$LIBS" | |
8348 | if test x$HAVE_X11XTR6 = xyes; then | |
8349 | LIBS="-lXt -lSM -lICE $LIBS" | |
8350 | else | |
8351 | LIBS="-lXt $LIBS" | |
8352 | fi | |
8353 | ||
c0d27fcc | 8354 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
8355 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
8356 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
8357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8358 | else | |
8359 | ac_check_lib_save_LIBS=$LIBS | |
8360 | LIBS="-lXmu $LIBS" | |
8361 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8362 | #line $LINENO "configure" |
cd958eb3 MB |
8363 | /* confdefs.h. */ |
8364 | _ACEOF | |
8365 | cat confdefs.h >>conftest.$ac_ext | |
8366 | cat >>conftest.$ac_ext <<_ACEOF | |
8367 | /* end confdefs.h. */ | |
98418dba CW |
8368 | |
8369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8370 | #ifdef __cplusplus | |
8371 | extern "C" | |
8372 | #endif | |
8373 | /* We use char because int might match the return type of a gcc2 | |
8374 | builtin and then its argument prototype would still apply. */ | |
8375 | char XmuConvertStandardSelection (); | |
98418dba CW |
8376 | int |
8377 | main () | |
8378 | { | |
8379 | XmuConvertStandardSelection (); | |
8380 | ; | |
8381 | return 0; | |
8382 | } | |
8383 | _ACEOF | |
8384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8386 | (eval $ac_link) 2>&5 |
8387 | ac_status=$? | |
c0d27fcc | 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8389 | (exit $ac_status); } && |
8390 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8392 | (eval $ac_try) 2>&5 |
8393 | ac_status=$? | |
c0d27fcc | 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8395 | (exit $ac_status); }; }; then |
8396 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
8397 | else | |
8398 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8399 | sed 's/^/| /' conftest.$ac_ext >&5 |
8400 | ||
98418dba CW |
8401 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
8402 | fi | |
8403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8404 | LIBS=$ac_check_lib_save_LIBS | |
8405 | fi | |
c0d27fcc | 8406 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
8407 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
8408 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 8409 | cat >>confdefs.h <<_ACEOF |
98418dba | 8410 | #define HAVE_LIBXMU 1 |
c0d27fcc | 8411 | _ACEOF |
98418dba CW |
8412 | |
8413 | LIBS="-lXmu $LIBS" | |
8414 | ||
8415 | fi | |
8416 | ||
8417 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
8418 | fi | |
8419 | ||
8420 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
8421 | if test "${HAVE_X11}" = "yes"; then | |
8422 | if test "${USE_X_TOOLKIT}" != "none"; then | |
8423 | ||
c0d27fcc | 8424 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
8425 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
8426 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8428 | else | |
8429 | ac_check_lib_save_LIBS=$LIBS | |
8430 | LIBS="-lXext $LIBS" | |
8431 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8432 | #line $LINENO "configure" |
cd958eb3 MB |
8433 | /* confdefs.h. */ |
8434 | _ACEOF | |
8435 | cat confdefs.h >>conftest.$ac_ext | |
8436 | cat >>conftest.$ac_ext <<_ACEOF | |
8437 | /* end confdefs.h. */ | |
98418dba CW |
8438 | |
8439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8440 | #ifdef __cplusplus | |
8441 | extern "C" | |
8442 | #endif | |
8443 | /* We use char because int might match the return type of a gcc2 | |
8444 | builtin and then its argument prototype would still apply. */ | |
8445 | char XShapeQueryExtension (); | |
98418dba CW |
8446 | int |
8447 | main () | |
8448 | { | |
8449 | XShapeQueryExtension (); | |
8450 | ; | |
8451 | return 0; | |
8452 | } | |
8453 | _ACEOF | |
8454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8456 | (eval $ac_link) 2>&5 |
8457 | ac_status=$? | |
c0d27fcc | 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8459 | (exit $ac_status); } && |
8460 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8462 | (eval $ac_try) 2>&5 |
8463 | ac_status=$? | |
c0d27fcc | 8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8465 | (exit $ac_status); }; }; then |
8466 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
8467 | else | |
8468 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8469 | sed 's/^/| /' conftest.$ac_ext >&5 |
8470 | ||
98418dba CW |
8471 | ac_cv_lib_Xext_XShapeQueryExtension=no |
8472 | fi | |
8473 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8474 | LIBS=$ac_check_lib_save_LIBS | |
8475 | fi | |
c0d27fcc | 8476 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
8477 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
8478 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 8479 | cat >>confdefs.h <<_ACEOF |
98418dba | 8480 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 8481 | _ACEOF |
98418dba CW |
8482 | |
8483 | LIBS="-lXext $LIBS" | |
8484 | ||
8485 | fi | |
8486 | ||
8487 | fi | |
8488 | fi | |
8489 | ||
8490 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 8491 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
8492 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
8493 | if test "${emacs_cv_lesstif+set}" = set; then | |
8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8495 | else | |
ae1a998c RS |
8496 | # We put this in CFLAGS temporarily to precede other -I options |
8497 | # that might be in CFLAGS temporarily. | |
8498 | # We put this in CPPFLAGS where it precedes the other -I options. | |
8499 | OLD_CPPFLAGS=$CPPFLAGS | |
8500 | OLD_CFLAGS=$CFLAGS | |
8501 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
8502 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 8503 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 8504 | #line $LINENO "configure" |
cd958eb3 MB |
8505 | /* confdefs.h. */ |
8506 | _ACEOF | |
8507 | cat confdefs.h >>conftest.$ac_ext | |
8508 | cat >>conftest.$ac_ext <<_ACEOF | |
8509 | /* end confdefs.h. */ | |
8e967cf7 MR |
8510 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
8511 | int | |
8512 | main () | |
8513 | { | |
8514 | int x = 5; | |
8515 | ; | |
8516 | return 0; | |
8517 | } | |
8518 | _ACEOF | |
8519 | rm -f conftest.$ac_objext | |
c0d27fcc | 8520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8e967cf7 MR |
8521 | (eval $ac_compile) 2>&5 |
8522 | ac_status=$? | |
c0d27fcc | 8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
8524 | (exit $ac_status); } && |
8525 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
8527 | (eval $ac_try) 2>&5 |
8528 | ac_status=$? | |
c0d27fcc | 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
8530 | (exit $ac_status); }; }; then |
8531 | emacs_cv_lesstif=yes | |
8532 | else | |
8533 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8534 | sed 's/^/| /' conftest.$ac_ext >&5 |
8535 | ||
8e967cf7 MR |
8536 | emacs_cv_lesstif=no |
8537 | fi | |
8538 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8539 | fi | |
c0d27fcc | 8540 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
8541 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
8542 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
8543 | # Make sure this -I option remains in CPPFLAGS after it is set |
8544 | # back to REAL_CPPFLAGS. | |
8545 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
8546 | # have those other -I options anyway. Ultimately, having this | |
8547 | # directory ultimately in CPPFLAGS will be enough. | |
8548 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 8549 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
8550 | else |
8551 | CFLAGS=$OLD_CFLAGS | |
8552 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 8553 | fi |
c0d27fcc | 8554 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
8555 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
8556 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
8557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8558 | else | |
8559 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8560 | #line $LINENO "configure" |
cd958eb3 MB |
8561 | /* confdefs.h. */ |
8562 | _ACEOF | |
8563 | cat confdefs.h >>conftest.$ac_ext | |
8564 | cat >>conftest.$ac_ext <<_ACEOF | |
8565 | /* end confdefs.h. */ | |
98418dba | 8566 | #include <Xm/Xm.h> |
98418dba CW |
8567 | int |
8568 | main () | |
8569 | { | |
8570 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
8571 | int x = 5; | |
8572 | #else | |
8573 | Motif version prior to 2.1. | |
8574 | #endif | |
8575 | ; | |
8576 | return 0; | |
8577 | } | |
8578 | _ACEOF | |
8579 | rm -f conftest.$ac_objext | |
c0d27fcc | 8580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
8581 | (eval $ac_compile) 2>&5 |
8582 | ac_status=$? | |
c0d27fcc | 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8584 | (exit $ac_status); } && |
8585 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8587 | (eval $ac_try) 2>&5 |
8588 | ac_status=$? | |
c0d27fcc | 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8590 | (exit $ac_status); }; }; then |
8591 | emacs_cv_motif_version_2_1=yes | |
8592 | else | |
8593 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
8595 | ||
98418dba CW |
8596 | emacs_cv_motif_version_2_1=no |
8597 | fi | |
8598 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8599 | fi | |
c0d27fcc | 8600 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
8601 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
8602 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
8603 | if test $emacs_cv_motif_version_2_1 = yes; then | |
8604 | HAVE_LIBXP=no | |
b936fae4 | 8605 | |
c0d27fcc | 8606 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8607 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 8608 | _ACEOF |
98418dba | 8609 | |
c0d27fcc | 8610 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
8611 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
8612 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8614 | else | |
8615 | ac_check_lib_save_LIBS=$LIBS | |
8616 | LIBS="-lXp $LIBS" | |
8617 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8618 | #line $LINENO "configure" |
cd958eb3 MB |
8619 | /* confdefs.h. */ |
8620 | _ACEOF | |
8621 | cat confdefs.h >>conftest.$ac_ext | |
8622 | cat >>conftest.$ac_ext <<_ACEOF | |
8623 | /* end confdefs.h. */ | |
98418dba CW |
8624 | |
8625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8626 | #ifdef __cplusplus | |
8627 | extern "C" | |
8628 | #endif | |
8629 | /* We use char because int might match the return type of a gcc2 | |
8630 | builtin and then its argument prototype would still apply. */ | |
8631 | char XpCreateContext (); | |
98418dba CW |
8632 | int |
8633 | main () | |
8634 | { | |
8635 | XpCreateContext (); | |
8636 | ; | |
8637 | return 0; | |
8638 | } | |
8639 | _ACEOF | |
8640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8642 | (eval $ac_link) 2>&5 |
8643 | ac_status=$? | |
c0d27fcc | 8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8645 | (exit $ac_status); } && |
8646 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8648 | (eval $ac_try) 2>&5 |
8649 | ac_status=$? | |
c0d27fcc | 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8651 | (exit $ac_status); }; }; then |
8652 | ac_cv_lib_Xp_XpCreateContext=yes | |
8653 | else | |
8654 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8655 | sed 's/^/| /' conftest.$ac_ext >&5 |
8656 | ||
98418dba CW |
8657 | ac_cv_lib_Xp_XpCreateContext=no |
8658 | fi | |
8659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8660 | LIBS=$ac_check_lib_save_LIBS | |
8661 | fi | |
c0d27fcc | 8662 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
8663 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
8664 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
8665 | HAVE_LIBXP=yes | |
8666 | fi | |
503d2be0 | 8667 | |
98418dba | 8668 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 8669 | |
c0d27fcc | 8670 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8671 | #define HAVE_LIBXP 1 |
c0d27fcc | 8672 | _ACEOF |
503d2be0 | 8673 | |
98418dba CW |
8674 | fi |
8675 | fi | |
8676 | fi | |
8677 | ||
8678 | ### Is -lXaw3d available? | |
8679 | HAVE_XAW3D=no | |
8680 | if test "${HAVE_X11}" = "yes"; then | |
8681 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 8682 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
8683 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
8684 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
8685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 8686 | else |
22044edf | 8687 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 8688 | #line $LINENO "configure" |
cd958eb3 MB |
8689 | /* confdefs.h. */ |
8690 | _ACEOF | |
8691 | cat confdefs.h >>conftest.$ac_ext | |
8692 | cat >>conftest.$ac_ext <<_ACEOF | |
8693 | /* end confdefs.h. */ | |
98418dba | 8694 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 8695 | _ACEOF |
c0d27fcc | 8696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8698 | ac_status=$? | |
6bae0ccf | 8699 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
8700 | rm -f conftest.er1 |
8701 | cat conftest.err >&5 | |
c0d27fcc | 8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
8703 | (exit $ac_status); } >/dev/null; then |
8704 | if test -s conftest.err; then | |
8705 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8706 | else | |
8707 | ac_cpp_err= | |
8708 | fi | |
8709 | else | |
8710 | ac_cpp_err=yes | |
8711 | fi | |
8712 | if test -z "$ac_cpp_err"; then | |
22044edf | 8713 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 8714 | else |
503d2be0 | 8715 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
8716 | sed 's/^/| /' conftest.$ac_ext >&5 |
8717 | ||
22044edf | 8718 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 8719 | fi |
503d2be0 | 8720 | rm -f conftest.err conftest.$ac_ext |
98418dba | 8721 | fi |
c0d27fcc | 8722 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 8723 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 8724 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 8725 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
8726 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
8727 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8729 | else | |
8730 | ac_check_lib_save_LIBS=$LIBS | |
8731 | LIBS="-lXaw3d $LIBS" | |
8732 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8733 | #line $LINENO "configure" |
cd958eb3 MB |
8734 | /* confdefs.h. */ |
8735 | _ACEOF | |
8736 | cat confdefs.h >>conftest.$ac_ext | |
8737 | cat >>conftest.$ac_ext <<_ACEOF | |
8738 | /* end confdefs.h. */ | |
98418dba CW |
8739 | |
8740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8741 | #ifdef __cplusplus | |
8742 | extern "C" | |
8743 | #endif | |
8744 | /* We use char because int might match the return type of a gcc2 | |
8745 | builtin and then its argument prototype would still apply. */ | |
8746 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
8747 | int |
8748 | main () | |
8749 | { | |
98418dba | 8750 | XawScrollbarSetThumb (); |
503d2be0 AS |
8751 | ; |
8752 | return 0; | |
8753 | } | |
8754 | _ACEOF | |
8755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
8757 | (eval $ac_link) 2>&5 |
8758 | ac_status=$? | |
c0d27fcc | 8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
8760 | (exit $ac_status); } && |
8761 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
8763 | (eval $ac_try) 2>&5 |
8764 | ac_status=$? | |
c0d27fcc | 8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 8766 | (exit $ac_status); }; }; then |
98418dba | 8767 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 8768 | else |
503d2be0 | 8769 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
8770 | sed 's/^/| /' conftest.$ac_ext >&5 |
8771 | ||
98418dba | 8772 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 8773 | fi |
503d2be0 | 8774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 8775 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 8776 | fi |
c0d27fcc | 8777 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
8778 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
8779 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
8780 | HAVE_XAW3D=yes | |
ba4481b5 | 8781 | fi |
503d2be0 | 8782 | |
ba4481b5 DL |
8783 | fi |
8784 | ||
c0d27fcc | 8785 | |
98418dba | 8786 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 8787 | |
c0d27fcc | 8788 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8789 | #define HAVE_XAW3D 1 |
c0d27fcc | 8790 | _ACEOF |
98418dba | 8791 | |
ba4481b5 | 8792 | fi |
98418dba | 8793 | fi |
ba4481b5 DL |
8794 | fi |
8795 | ||
c0d27fcc MR |
8796 | |
8797 | ||
98418dba CW |
8798 | USE_TOOLKIT_SCROLL_BARS=no |
8799 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
8800 | if test "${USE_X_TOOLKIT}" != "none"; then | |
8801 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 8802 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8803 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 8804 | _ACEOF |
98418dba CW |
8805 | |
8806 | HAVE_XAW3D=no | |
8807 | USE_TOOLKIT_SCROLL_BARS=yes | |
8808 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 8809 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8810 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 8811 | _ACEOF |
98418dba CW |
8812 | |
8813 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 8814 | fi |
488dd4c4 JD |
8815 | elif test "${HAVE_GTK}" = "yes"; then |
8816 | cat >>confdefs.h <<\_ACEOF | |
8817 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
8818 | _ACEOF | |
8819 | ||
8820 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
8821 | fi |
8822 | fi | |
8823 | ||
c0d27fcc | 8824 | |
98418dba | 8825 | if test "${with_xim}" != "no"; then |
b936fae4 | 8826 | |
c0d27fcc | 8827 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8828 | #define USE_XIM 1 |
c0d27fcc | 8829 | _ACEOF |
98418dba CW |
8830 | |
8831 | fi | |
8832 | ||
8833 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
8834 | HAVE_XPM=no | |
8835 | if test "${HAVE_X11}" = "yes"; then | |
8836 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
8837 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
8838 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
8839 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
8840 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
8842 | fi |
8843 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
8844 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 8845 | else |
c0d27fcc MR |
8846 | # Is the header compilable? |
8847 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
8848 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
8849 | cat >conftest.$ac_ext <<_ACEOF | |
8850 | #line $LINENO "configure" | |
cd958eb3 MB |
8851 | /* confdefs.h. */ |
8852 | _ACEOF | |
8853 | cat confdefs.h >>conftest.$ac_ext | |
8854 | cat >>conftest.$ac_ext <<_ACEOF | |
8855 | /* end confdefs.h. */ | |
c0d27fcc MR |
8856 | $ac_includes_default |
8857 | #include <X11/xpm.h> | |
8858 | _ACEOF | |
8859 | rm -f conftest.$ac_objext | |
8860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8861 | (eval $ac_compile) 2>&5 | |
8862 | ac_status=$? | |
8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8864 | (exit $ac_status); } && | |
8865 | { ac_try='test -s conftest.$ac_objext' | |
8866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8867 | (eval $ac_try) 2>&5 | |
8868 | ac_status=$? | |
8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8870 | (exit $ac_status); }; }; then | |
8871 | ac_header_compiler=yes | |
8872 | else | |
8873 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8874 | sed 's/^/| /' conftest.$ac_ext >&5 |
8875 | ||
c0d27fcc MR |
8876 | ac_header_compiler=no |
8877 | fi | |
8878 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8879 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8880 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8881 | ||
8882 | # Is the header present? | |
8883 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
8884 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
8885 | cat >conftest.$ac_ext <<_ACEOF | |
8886 | #line $LINENO "configure" | |
cd958eb3 MB |
8887 | /* confdefs.h. */ |
8888 | _ACEOF | |
8889 | cat confdefs.h >>conftest.$ac_ext | |
8890 | cat >>conftest.$ac_ext <<_ACEOF | |
8891 | /* end confdefs.h. */ | |
98418dba CW |
8892 | #include <X11/xpm.h> |
8893 | _ACEOF | |
c0d27fcc | 8894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
8895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8896 | ac_status=$? | |
6bae0ccf | 8897 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
8898 | rm -f conftest.er1 |
8899 | cat conftest.err >&5 | |
c0d27fcc | 8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8901 | (exit $ac_status); } >/dev/null; then |
8902 | if test -s conftest.err; then | |
8903 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8904 | else | |
8905 | ac_cpp_err= | |
8906 | fi | |
8907 | else | |
8908 | ac_cpp_err=yes | |
8909 | fi | |
8910 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 8911 | ac_header_preproc=yes |
98418dba CW |
8912 | else |
8913 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
8914 | sed 's/^/| /' conftest.$ac_ext >&5 |
8915 | ||
c0d27fcc | 8916 | ac_header_preproc=no |
98418dba CW |
8917 | fi |
8918 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
8919 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8920 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8921 | ||
8922 | # So? What about this header? | |
8923 | case $ac_header_compiler:$ac_header_preproc in | |
8924 | yes:no ) | |
8925 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8926 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8927 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
8928 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
8929 | ( | |
8930 | cat <<\_ASBOX | |
8931 | ## ------------------------------------ ## | |
8932 | ## Report this to bug-autoconf@gnu.org. ## | |
8933 | ## ------------------------------------ ## | |
8934 | _ASBOX | |
8935 | ) | | |
8936 | sed "s/^/$as_me: WARNING: /" >&2 | |
8937 | ;; | |
c0d27fcc MR |
8938 | no:yes ) |
8939 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
8940 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
8941 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
8942 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
8943 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
8944 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
8945 | ( | |
8946 | cat <<\_ASBOX | |
8947 | ## ------------------------------------ ## | |
8948 | ## Report this to bug-autoconf@gnu.org. ## | |
8949 | ## ------------------------------------ ## | |
8950 | _ASBOX | |
8951 | ) | | |
8952 | sed "s/^/$as_me: WARNING: /" >&2 | |
8953 | ;; | |
c0d27fcc MR |
8954 | esac |
8955 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
8956 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
8957 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8959 | else | |
8960 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 8961 | fi |
c0d27fcc | 8962 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 8963 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
8964 | |
8965 | fi | |
98418dba | 8966 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 8967 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
8968 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
8969 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 8970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8971 | else |
98418dba CW |
8972 | ac_check_lib_save_LIBS=$LIBS |
8973 | LIBS="-lXpm -lX11 $LIBS" | |
8974 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 8975 | #line $LINENO "configure" |
cd958eb3 MB |
8976 | /* confdefs.h. */ |
8977 | _ACEOF | |
8978 | cat confdefs.h >>conftest.$ac_ext | |
8979 | cat >>conftest.$ac_ext <<_ACEOF | |
8980 | /* end confdefs.h. */ | |
98418dba | 8981 | |
ba4481b5 | 8982 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8983 | #ifdef __cplusplus |
8984 | extern "C" | |
8985 | #endif | |
ba4481b5 | 8986 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8987 | builtin and then its argument prototype would still apply. */ |
98418dba | 8988 | char XpmReadFileToPixmap (); |
503d2be0 AS |
8989 | int |
8990 | main () | |
8991 | { | |
98418dba | 8992 | XpmReadFileToPixmap (); |
503d2be0 AS |
8993 | ; |
8994 | return 0; | |
8995 | } | |
8996 | _ACEOF | |
8997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
8999 | (eval $ac_link) 2>&5 |
9000 | ac_status=$? | |
c0d27fcc | 9001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
9002 | (exit $ac_status); } && |
9003 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9005 | (eval $ac_try) 2>&5 |
9006 | ac_status=$? | |
c0d27fcc | 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9008 | (exit $ac_status); }; }; then |
98418dba | 9009 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
9010 | else |
9011 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9012 | sed 's/^/| /' conftest.$ac_ext >&5 |
9013 | ||
98418dba | 9014 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 AS |
9015 | fi |
9016 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9017 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 9018 | fi |
c0d27fcc | 9019 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
9020 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
9021 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
9022 | HAVE_XPM=yes | |
ba4481b5 DL |
9023 | fi |
9024 | ||
98418dba CW |
9025 | fi |
9026 | ||
c0d27fcc | 9027 | |
98418dba | 9028 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 9029 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
9030 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
9031 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 9032 | #line $LINENO "configure" |
cd958eb3 MB |
9033 | /* confdefs.h. */ |
9034 | _ACEOF | |
9035 | cat confdefs.h >>conftest.$ac_ext | |
9036 | cat >>conftest.$ac_ext <<_ACEOF | |
9037 | /* end confdefs.h. */ | |
98418dba CW |
9038 | #include "X11/xpm.h" |
9039 | #ifndef XpmReturnAllocPixels | |
9040 | no_return_alloc_pixels | |
503d2be0 | 9041 | #endif |
ba4481b5 | 9042 | |
98418dba CW |
9043 | _ACEOF |
9044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 9045 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
9046 | HAVE_XPM=no |
9047 | else | |
9048 | HAVE_XPM=yes | |
9049 | fi | |
9050 | rm -f conftest* | |
ba4481b5 | 9051 | |
c0d27fcc | 9052 | |
98418dba | 9053 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 9054 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9055 | echo "${ECHO_T}yes" >&6 |
9056 | else | |
c0d27fcc | 9057 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9058 | echo "${ECHO_T}no" >&6 |
9059 | fi | |
9060 | fi | |
9061 | fi | |
9062 | ||
9063 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 9064 | |
c0d27fcc | 9065 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9066 | #define HAVE_XPM 1 |
c0d27fcc | 9067 | _ACEOF |
98418dba CW |
9068 | |
9069 | fi | |
9070 | fi | |
9071 | ||
9072 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
9073 | HAVE_JPEG=no | |
9074 | if test "${HAVE_X11}" = "yes"; then | |
9075 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
9076 | if test "${ac_cv_header_jerror_h+set}" = set; then |
9077 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
9078 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
9079 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
9080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9081 | fi |
9082 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
9083 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 9084 | else |
c0d27fcc MR |
9085 | # Is the header compilable? |
9086 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
9087 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
9088 | cat >conftest.$ac_ext <<_ACEOF | |
9089 | #line $LINENO "configure" | |
cd958eb3 MB |
9090 | /* confdefs.h. */ |
9091 | _ACEOF | |
9092 | cat confdefs.h >>conftest.$ac_ext | |
9093 | cat >>conftest.$ac_ext <<_ACEOF | |
9094 | /* end confdefs.h. */ | |
c0d27fcc MR |
9095 | $ac_includes_default |
9096 | #include <jerror.h> | |
9097 | _ACEOF | |
9098 | rm -f conftest.$ac_objext | |
9099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9100 | (eval $ac_compile) 2>&5 | |
9101 | ac_status=$? | |
9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9103 | (exit $ac_status); } && | |
9104 | { ac_try='test -s conftest.$ac_objext' | |
9105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9106 | (eval $ac_try) 2>&5 | |
9107 | ac_status=$? | |
9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9109 | (exit $ac_status); }; }; then | |
9110 | ac_header_compiler=yes | |
9111 | else | |
9112 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9113 | sed 's/^/| /' conftest.$ac_ext >&5 |
9114 | ||
c0d27fcc MR |
9115 | ac_header_compiler=no |
9116 | fi | |
9117 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9120 | ||
9121 | # Is the header present? | |
9122 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
9123 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
9124 | cat >conftest.$ac_ext <<_ACEOF | |
9125 | #line $LINENO "configure" | |
cd958eb3 MB |
9126 | /* confdefs.h. */ |
9127 | _ACEOF | |
9128 | cat confdefs.h >>conftest.$ac_ext | |
9129 | cat >>conftest.$ac_ext <<_ACEOF | |
9130 | /* end confdefs.h. */ | |
98418dba CW |
9131 | #include <jerror.h> |
9132 | _ACEOF | |
c0d27fcc | 9133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9135 | ac_status=$? | |
6bae0ccf | 9136 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9137 | rm -f conftest.er1 |
9138 | cat conftest.err >&5 | |
c0d27fcc | 9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9140 | (exit $ac_status); } >/dev/null; then |
9141 | if test -s conftest.err; then | |
9142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9143 | else | |
9144 | ac_cpp_err= | |
9145 | fi | |
9146 | else | |
9147 | ac_cpp_err=yes | |
503d2be0 | 9148 | fi |
98418dba | 9149 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 9150 | ac_header_preproc=yes |
ba4481b5 | 9151 | else |
98418dba | 9152 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
9153 | sed 's/^/| /' conftest.$ac_ext >&5 |
9154 | ||
c0d27fcc | 9155 | ac_header_preproc=no |
98418dba CW |
9156 | fi |
9157 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9160 | ||
9161 | # So? What about this header? | |
9162 | case $ac_header_compiler:$ac_header_preproc in | |
9163 | yes:no ) | |
9164 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9165 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9166 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9167 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
9168 | ( | |
9169 | cat <<\_ASBOX | |
9170 | ## ------------------------------------ ## | |
9171 | ## Report this to bug-autoconf@gnu.org. ## | |
9172 | ## ------------------------------------ ## | |
9173 | _ASBOX | |
9174 | ) | | |
9175 | sed "s/^/$as_me: WARNING: /" >&2 | |
9176 | ;; | |
c0d27fcc MR |
9177 | no:yes ) |
9178 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
9179 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
9180 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
9181 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
9182 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9183 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
9184 | ( | |
9185 | cat <<\_ASBOX | |
9186 | ## ------------------------------------ ## | |
9187 | ## Report this to bug-autoconf@gnu.org. ## | |
9188 | ## ------------------------------------ ## | |
9189 | _ASBOX | |
9190 | ) | | |
9191 | sed "s/^/$as_me: WARNING: /" >&2 | |
9192 | ;; | |
c0d27fcc MR |
9193 | esac |
9194 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
9195 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
9196 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
9197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9198 | else | |
9199 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 9200 | fi |
c0d27fcc | 9201 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 9202 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
9203 | |
9204 | fi | |
98418dba | 9205 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 9206 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
9207 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
9208 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 9209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9210 | else |
98418dba CW |
9211 | ac_check_lib_save_LIBS=$LIBS |
9212 | LIBS="-ljpeg $LIBS" | |
9213 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 9214 | #line $LINENO "configure" |
cd958eb3 MB |
9215 | /* confdefs.h. */ |
9216 | _ACEOF | |
9217 | cat confdefs.h >>conftest.$ac_ext | |
9218 | cat >>conftest.$ac_ext <<_ACEOF | |
9219 | /* end confdefs.h. */ | |
98418dba CW |
9220 | |
9221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9222 | #ifdef __cplusplus | |
9223 | extern "C" | |
9224 | #endif | |
9225 | /* We use char because int might match the return type of a gcc2 | |
9226 | builtin and then its argument prototype would still apply. */ | |
9227 | char jpeg_destroy_compress (); | |
503d2be0 AS |
9228 | int |
9229 | main () | |
9230 | { | |
98418dba | 9231 | jpeg_destroy_compress (); |
503d2be0 AS |
9232 | ; |
9233 | return 0; | |
9234 | } | |
9235 | _ACEOF | |
9236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9238 | (eval $ac_link) 2>&5 |
9239 | ac_status=$? | |
c0d27fcc | 9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
9241 | (exit $ac_status); } && |
9242 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9244 | (eval $ac_try) 2>&5 |
9245 | ac_status=$? | |
c0d27fcc | 9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9247 | (exit $ac_status); }; }; then |
98418dba | 9248 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 9249 | else |
503d2be0 | 9250 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
9251 | sed 's/^/| /' conftest.$ac_ext >&5 |
9252 | ||
98418dba | 9253 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 9254 | fi |
503d2be0 | 9255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 9256 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 9257 | fi |
c0d27fcc | 9258 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
9259 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
9260 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
9261 | HAVE_JPEG=yes | |
ba4481b5 | 9262 | fi |
98418dba | 9263 | |
ba4481b5 | 9264 | fi |
98418dba | 9265 | |
c0d27fcc | 9266 | |
ba4481b5 | 9267 | fi |
ba4481b5 | 9268 | |
c0d27fcc | 9269 | |
98418dba | 9270 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 9271 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9272 | #define HAVE_JPEG 1 |
c0d27fcc | 9273 | _ACEOF |
98418dba CW |
9274 | |
9275 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 9276 | #line $LINENO "configure" |
cd958eb3 MB |
9277 | /* confdefs.h. */ |
9278 | _ACEOF | |
9279 | cat confdefs.h >>conftest.$ac_ext | |
9280 | cat >>conftest.$ac_ext <<_ACEOF | |
9281 | /* end confdefs.h. */ | |
22044edf | 9282 | #include <jpeglib.h> |
98418dba CW |
9283 | version=JPEG_LIB_VERSION |
9284 | ||
9285 | _ACEOF | |
9286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 9287 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 9288 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9289 | #define HAVE_JPEG 1 |
c0d27fcc | 9290 | _ACEOF |
ba4481b5 | 9291 | |
98418dba | 9292 | else |
c0d27fcc | 9293 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
9294 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
9295 | HAVE_JPEG=no | |
ba4481b5 | 9296 | fi |
98418dba | 9297 | rm -f conftest* |
ba4481b5 | 9298 | |
98418dba CW |
9299 | fi |
9300 | fi | |
503d2be0 | 9301 | |
98418dba CW |
9302 | ### Use -lpng if available, unless `--with-png=no'. |
9303 | HAVE_PNG=no | |
9304 | if test "${HAVE_X11}" = "yes"; then | |
9305 | if test "${with_png}" != "no"; then | |
c0d27fcc MR |
9306 | if test "${ac_cv_header_png_h+set}" = set; then |
9307 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
98418dba CW |
9308 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
9309 | if test "${ac_cv_header_png_h+set}" = set; then | |
503d2be0 | 9310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
9311 | fi |
9312 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
9313 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
503d2be0 | 9314 | else |
c0d27fcc MR |
9315 | # Is the header compilable? |
9316 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
9317 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
9318 | cat >conftest.$ac_ext <<_ACEOF | |
9319 | #line $LINENO "configure" | |
cd958eb3 MB |
9320 | /* confdefs.h. */ |
9321 | _ACEOF | |
9322 | cat confdefs.h >>conftest.$ac_ext | |
9323 | cat >>conftest.$ac_ext <<_ACEOF | |
9324 | /* end confdefs.h. */ | |
c0d27fcc MR |
9325 | $ac_includes_default |
9326 | #include <png.h> | |
9327 | _ACEOF | |
9328 | rm -f conftest.$ac_objext | |
9329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9330 | (eval $ac_compile) 2>&5 | |
9331 | ac_status=$? | |
9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9333 | (exit $ac_status); } && | |
9334 | { ac_try='test -s conftest.$ac_objext' | |
9335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9336 | (eval $ac_try) 2>&5 | |
9337 | ac_status=$? | |
9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9339 | (exit $ac_status); }; }; then | |
9340 | ac_header_compiler=yes | |
9341 | else | |
9342 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
9344 | ||
c0d27fcc MR |
9345 | ac_header_compiler=no |
9346 | fi | |
9347 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9348 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9349 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9350 | ||
9351 | # Is the header present? | |
9352 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
9353 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
9354 | cat >conftest.$ac_ext <<_ACEOF | |
9355 | #line $LINENO "configure" | |
cd958eb3 MB |
9356 | /* confdefs.h. */ |
9357 | _ACEOF | |
9358 | cat confdefs.h >>conftest.$ac_ext | |
9359 | cat >>conftest.$ac_ext <<_ACEOF | |
9360 | /* end confdefs.h. */ | |
98418dba | 9361 | #include <png.h> |
503d2be0 | 9362 | _ACEOF |
c0d27fcc | 9363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9365 | ac_status=$? | |
6bae0ccf | 9366 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
9367 | rm -f conftest.er1 |
9368 | cat conftest.err >&5 | |
c0d27fcc | 9369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
9370 | (exit $ac_status); } >/dev/null; then |
9371 | if test -s conftest.err; then | |
9372 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9373 | else | |
9374 | ac_cpp_err= | |
9375 | fi | |
9376 | else | |
9377 | ac_cpp_err=yes | |
9378 | fi | |
9379 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9380 | ac_header_preproc=yes |
503d2be0 AS |
9381 | else |
9382 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9383 | sed 's/^/| /' conftest.$ac_ext >&5 |
9384 | ||
c0d27fcc | 9385 | ac_header_preproc=no |
ba4481b5 | 9386 | fi |
503d2be0 | 9387 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
9388 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9389 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9390 | ||
9391 | # So? What about this header? | |
9392 | case $ac_header_compiler:$ac_header_preproc in | |
9393 | yes:no ) | |
9394 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9395 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9396 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9397 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} |
9398 | ( | |
9399 | cat <<\_ASBOX | |
9400 | ## ------------------------------------ ## | |
9401 | ## Report this to bug-autoconf@gnu.org. ## | |
9402 | ## ------------------------------------ ## | |
9403 | _ASBOX | |
9404 | ) | | |
9405 | sed "s/^/$as_me: WARNING: /" >&2 | |
9406 | ;; | |
c0d27fcc MR |
9407 | no:yes ) |
9408 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
9409 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
9410 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
9411 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
9412 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9413 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} |
9414 | ( | |
9415 | cat <<\_ASBOX | |
9416 | ## ------------------------------------ ## | |
9417 | ## Report this to bug-autoconf@gnu.org. ## | |
9418 | ## ------------------------------------ ## | |
9419 | _ASBOX | |
9420 | ) | | |
9421 | sed "s/^/$as_me: WARNING: /" >&2 | |
9422 | ;; | |
c0d27fcc MR |
9423 | esac |
9424 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
9425 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
9426 | if test "${ac_cv_header_png_h+set}" = set; then | |
9427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9428 | else | |
9429 | ac_cv_header_png_h=$ac_header_preproc | |
ba4481b5 | 9430 | fi |
c0d27fcc | 9431 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
98418dba | 9432 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
c0d27fcc MR |
9433 | |
9434 | fi | |
98418dba | 9435 | if test $ac_cv_header_png_h = yes; then |
c0d27fcc | 9436 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
98418dba CW |
9437 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
9438 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 9439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9440 | else |
98418dba CW |
9441 | ac_check_lib_save_LIBS=$LIBS |
9442 | LIBS="-lpng -lz -lm $LIBS" | |
9443 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 9444 | #line $LINENO "configure" |
cd958eb3 MB |
9445 | /* confdefs.h. */ |
9446 | _ACEOF | |
9447 | cat confdefs.h >>conftest.$ac_ext | |
9448 | cat >>conftest.$ac_ext <<_ACEOF | |
9449 | /* end confdefs.h. */ | |
98418dba | 9450 | |
ba4481b5 | 9451 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9452 | #ifdef __cplusplus |
9453 | extern "C" | |
9454 | #endif | |
ba4481b5 | 9455 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9456 | builtin and then its argument prototype would still apply. */ |
98418dba | 9457 | char png_get_channels (); |
503d2be0 AS |
9458 | int |
9459 | main () | |
9460 | { | |
98418dba | 9461 | png_get_channels (); |
503d2be0 AS |
9462 | ; |
9463 | return 0; | |
9464 | } | |
9465 | _ACEOF | |
9466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9468 | (eval $ac_link) 2>&5 |
9469 | ac_status=$? | |
c0d27fcc | 9470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9471 | (exit $ac_status); } && |
9472 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9474 | (eval $ac_try) 2>&5 |
9475 | ac_status=$? | |
c0d27fcc | 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9477 | (exit $ac_status); }; }; then |
98418dba | 9478 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 9479 | else |
98418dba | 9480 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
9481 | sed 's/^/| /' conftest.$ac_ext >&5 |
9482 | ||
98418dba | 9483 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 9484 | fi |
98418dba CW |
9485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
9486 | LIBS=$ac_check_lib_save_LIBS | |
73b77ee5 | 9487 | fi |
c0d27fcc | 9488 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
9489 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
9490 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
9491 | HAVE_PNG=yes | |
73b77ee5 | 9492 | fi |
503d2be0 | 9493 | |
98418dba CW |
9494 | fi |
9495 | ||
c0d27fcc | 9496 | |
98418dba CW |
9497 | fi |
9498 | ||
9499 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 9500 | |
c0d27fcc | 9501 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9502 | #define HAVE_PNG 1 |
c0d27fcc | 9503 | _ACEOF |
73b77ee5 | 9504 | |
98418dba | 9505 | fi |
73b77ee5 GM |
9506 | fi |
9507 | ||
98418dba CW |
9508 | ### Use -ltiff if available, unless `--with-tiff=no'. |
9509 | HAVE_TIFF=no | |
9510 | if test "${HAVE_X11}" = "yes"; then | |
9511 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
9512 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
9513 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
9514 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
9515 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9517 | fi |
9518 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
9519 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 9520 | else |
c0d27fcc MR |
9521 | # Is the header compilable? |
9522 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
9523 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
9524 | cat >conftest.$ac_ext <<_ACEOF | |
9525 | #line $LINENO "configure" | |
cd958eb3 MB |
9526 | /* confdefs.h. */ |
9527 | _ACEOF | |
9528 | cat confdefs.h >>conftest.$ac_ext | |
9529 | cat >>conftest.$ac_ext <<_ACEOF | |
9530 | /* end confdefs.h. */ | |
c0d27fcc MR |
9531 | $ac_includes_default |
9532 | #include <tiffio.h> | |
9533 | _ACEOF | |
9534 | rm -f conftest.$ac_objext | |
9535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9536 | (eval $ac_compile) 2>&5 | |
9537 | ac_status=$? | |
9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9539 | (exit $ac_status); } && | |
9540 | { ac_try='test -s conftest.$ac_objext' | |
9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9542 | (eval $ac_try) 2>&5 | |
9543 | ac_status=$? | |
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9545 | (exit $ac_status); }; }; then | |
9546 | ac_header_compiler=yes | |
9547 | else | |
9548 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9549 | sed 's/^/| /' conftest.$ac_ext >&5 |
9550 | ||
c0d27fcc MR |
9551 | ac_header_compiler=no |
9552 | fi | |
9553 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9555 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9556 | ||
9557 | # Is the header present? | |
9558 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
9559 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
9560 | cat >conftest.$ac_ext <<_ACEOF | |
9561 | #line $LINENO "configure" | |
cd958eb3 MB |
9562 | /* confdefs.h. */ |
9563 | _ACEOF | |
9564 | cat confdefs.h >>conftest.$ac_ext | |
9565 | cat >>conftest.$ac_ext <<_ACEOF | |
9566 | /* end confdefs.h. */ | |
98418dba CW |
9567 | #include <tiffio.h> |
9568 | _ACEOF | |
c0d27fcc | 9569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9571 | ac_status=$? | |
6bae0ccf | 9572 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9573 | rm -f conftest.er1 |
9574 | cat conftest.err >&5 | |
c0d27fcc | 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9576 | (exit $ac_status); } >/dev/null; then |
9577 | if test -s conftest.err; then | |
9578 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9579 | else | |
9580 | ac_cpp_err= | |
9581 | fi | |
9582 | else | |
9583 | ac_cpp_err=yes | |
9584 | fi | |
9585 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9586 | ac_header_preproc=yes |
98418dba CW |
9587 | else |
9588 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9589 | sed 's/^/| /' conftest.$ac_ext >&5 |
9590 | ||
c0d27fcc | 9591 | ac_header_preproc=no |
98418dba CW |
9592 | fi |
9593 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9595 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9596 | ||
9597 | # So? What about this header? | |
9598 | case $ac_header_compiler:$ac_header_preproc in | |
9599 | yes:no ) | |
9600 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9601 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9602 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9603 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
9604 | ( | |
9605 | cat <<\_ASBOX | |
9606 | ## ------------------------------------ ## | |
9607 | ## Report this to bug-autoconf@gnu.org. ## | |
9608 | ## ------------------------------------ ## | |
9609 | _ASBOX | |
9610 | ) | | |
9611 | sed "s/^/$as_me: WARNING: /" >&2 | |
9612 | ;; | |
c0d27fcc MR |
9613 | no:yes ) |
9614 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
9615 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
9616 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
9617 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
9618 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9619 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
9620 | ( | |
9621 | cat <<\_ASBOX | |
9622 | ## ------------------------------------ ## | |
9623 | ## Report this to bug-autoconf@gnu.org. ## | |
9624 | ## ------------------------------------ ## | |
9625 | _ASBOX | |
9626 | ) | | |
9627 | sed "s/^/$as_me: WARNING: /" >&2 | |
9628 | ;; | |
c0d27fcc MR |
9629 | esac |
9630 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
9631 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
9632 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
9633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9634 | else | |
9635 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 9636 | fi |
c0d27fcc | 9637 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 9638 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
9639 | |
9640 | fi | |
98418dba CW |
9641 | if test $ac_cv_header_tiffio_h = yes; then |
9642 | tifflibs="-lz -lm" | |
9643 | # At least one tiff package requires the jpeg library. | |
9644 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 9645 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
9646 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
9647 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 9648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 9649 | else |
503d2be0 | 9650 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 9651 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 9652 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 9653 | #line $LINENO "configure" |
cd958eb3 MB |
9654 | /* confdefs.h. */ |
9655 | _ACEOF | |
9656 | cat confdefs.h >>conftest.$ac_ext | |
9657 | cat >>conftest.$ac_ext <<_ACEOF | |
9658 | /* end confdefs.h. */ | |
503d2be0 | 9659 | |
73b77ee5 | 9660 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9661 | #ifdef __cplusplus |
9662 | extern "C" | |
9663 | #endif | |
73b77ee5 | 9664 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9665 | builtin and then its argument prototype would still apply. */ |
98418dba | 9666 | char TIFFGetVersion (); |
503d2be0 AS |
9667 | int |
9668 | main () | |
9669 | { | |
98418dba | 9670 | TIFFGetVersion (); |
503d2be0 AS |
9671 | ; |
9672 | return 0; | |
9673 | } | |
9674 | _ACEOF | |
9675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9677 | (eval $ac_link) 2>&5 |
9678 | ac_status=$? | |
c0d27fcc | 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
9680 | (exit $ac_status); } && |
9681 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9683 | (eval $ac_try) 2>&5 |
9684 | ac_status=$? | |
c0d27fcc | 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9686 | (exit $ac_status); }; }; then |
98418dba | 9687 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
9688 | else |
9689 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9690 | sed 's/^/| /' conftest.$ac_ext >&5 |
9691 | ||
98418dba | 9692 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 AS |
9693 | fi |
9694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9695 | LIBS=$ac_check_lib_save_LIBS | |
9696 | fi | |
c0d27fcc | 9697 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
9698 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
9699 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
9700 | HAVE_TIFF=yes | |
9701 | fi | |
9702 | ||
9703 | fi | |
73b77ee5 | 9704 | |
c0d27fcc | 9705 | |
98418dba CW |
9706 | fi |
9707 | ||
9708 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 9709 | |
c0d27fcc | 9710 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9711 | #define HAVE_TIFF 1 |
c0d27fcc | 9712 | _ACEOF |
98418dba CW |
9713 | |
9714 | fi | |
73b77ee5 GM |
9715 | fi |
9716 | ||
98418dba CW |
9717 | ### Use -lgif if available, unless `--with-gif=no'. |
9718 | HAVE_GIF=no | |
9719 | if test "${HAVE_X11}" = "yes"; then | |
9720 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
9721 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
9722 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
9723 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
9724 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9726 | fi |
9727 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
9728 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 9729 | else |
c0d27fcc MR |
9730 | # Is the header compilable? |
9731 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
9732 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
9733 | cat >conftest.$ac_ext <<_ACEOF | |
9734 | #line $LINENO "configure" | |
cd958eb3 MB |
9735 | /* confdefs.h. */ |
9736 | _ACEOF | |
9737 | cat confdefs.h >>conftest.$ac_ext | |
9738 | cat >>conftest.$ac_ext <<_ACEOF | |
9739 | /* end confdefs.h. */ | |
c0d27fcc MR |
9740 | $ac_includes_default |
9741 | #include <gif_lib.h> | |
9742 | _ACEOF | |
9743 | rm -f conftest.$ac_objext | |
9744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9745 | (eval $ac_compile) 2>&5 | |
9746 | ac_status=$? | |
9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9748 | (exit $ac_status); } && | |
9749 | { ac_try='test -s conftest.$ac_objext' | |
9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9751 | (eval $ac_try) 2>&5 | |
9752 | ac_status=$? | |
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9754 | (exit $ac_status); }; }; then | |
9755 | ac_header_compiler=yes | |
9756 | else | |
9757 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9758 | sed 's/^/| /' conftest.$ac_ext >&5 |
9759 | ||
c0d27fcc MR |
9760 | ac_header_compiler=no |
9761 | fi | |
9762 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9763 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9764 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9765 | ||
9766 | # Is the header present? | |
9767 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
9768 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
9769 | cat >conftest.$ac_ext <<_ACEOF | |
9770 | #line $LINENO "configure" | |
cd958eb3 MB |
9771 | /* confdefs.h. */ |
9772 | _ACEOF | |
9773 | cat confdefs.h >>conftest.$ac_ext | |
9774 | cat >>conftest.$ac_ext <<_ACEOF | |
9775 | /* end confdefs.h. */ | |
98418dba CW |
9776 | #include <gif_lib.h> |
9777 | _ACEOF | |
c0d27fcc | 9778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9780 | ac_status=$? | |
6bae0ccf | 9781 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9782 | rm -f conftest.er1 |
9783 | cat conftest.err >&5 | |
c0d27fcc | 9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9785 | (exit $ac_status); } >/dev/null; then |
9786 | if test -s conftest.err; then | |
9787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9788 | else | |
9789 | ac_cpp_err= | |
9790 | fi | |
9791 | else | |
9792 | ac_cpp_err=yes | |
9793 | fi | |
9794 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9795 | ac_header_preproc=yes |
98418dba CW |
9796 | else |
9797 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9798 | sed 's/^/| /' conftest.$ac_ext >&5 |
9799 | ||
c0d27fcc | 9800 | ac_header_preproc=no |
98418dba CW |
9801 | fi |
9802 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9803 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9804 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9805 | ||
9806 | # So? What about this header? | |
9807 | case $ac_header_compiler:$ac_header_preproc in | |
9808 | yes:no ) | |
9809 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9810 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9811 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9812 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
9813 | ( | |
9814 | cat <<\_ASBOX | |
9815 | ## ------------------------------------ ## | |
9816 | ## Report this to bug-autoconf@gnu.org. ## | |
9817 | ## ------------------------------------ ## | |
9818 | _ASBOX | |
9819 | ) | | |
9820 | sed "s/^/$as_me: WARNING: /" >&2 | |
9821 | ;; | |
c0d27fcc MR |
9822 | no:yes ) |
9823 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
9824 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
9825 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
9826 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
9827 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
9828 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
9829 | ( | |
9830 | cat <<\_ASBOX | |
9831 | ## ------------------------------------ ## | |
9832 | ## Report this to bug-autoconf@gnu.org. ## | |
9833 | ## ------------------------------------ ## | |
9834 | _ASBOX | |
9835 | ) | | |
9836 | sed "s/^/$as_me: WARNING: /" >&2 | |
9837 | ;; | |
c0d27fcc MR |
9838 | esac |
9839 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
9840 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
9841 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
9842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9843 | else | |
9844 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 9845 | fi |
c0d27fcc | 9846 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 9847 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
9848 | |
9849 | fi | |
98418dba CW |
9850 | if test $ac_cv_header_gif_lib_h = yes; then |
9851 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
9852 | # Earlier versions can crash Emacs. | |
c0d27fcc | 9853 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
9854 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
9855 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 9856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 9857 | else |
503d2be0 | 9858 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 9859 | LIBS="-lungif $LIBS" |
503d2be0 | 9860 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 9861 | #line $LINENO "configure" |
cd958eb3 MB |
9862 | /* confdefs.h. */ |
9863 | _ACEOF | |
9864 | cat confdefs.h >>conftest.$ac_ext | |
9865 | cat >>conftest.$ac_ext <<_ACEOF | |
9866 | /* end confdefs.h. */ | |
73b77ee5 | 9867 | |
98418dba CW |
9868 | /* Override any gcc2 internal prototype to avoid an error. */ |
9869 | #ifdef __cplusplus | |
9870 | extern "C" | |
9871 | #endif | |
9872 | /* We use char because int might match the return type of a gcc2 | |
9873 | builtin and then its argument prototype would still apply. */ | |
9874 | char EGifPutExtensionLast (); | |
503d2be0 AS |
9875 | int |
9876 | main () | |
9877 | { | |
98418dba | 9878 | EGifPutExtensionLast (); |
503d2be0 AS |
9879 | ; |
9880 | return 0; | |
9881 | } | |
9882 | _ACEOF | |
9883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9885 | (eval $ac_link) 2>&5 |
9886 | ac_status=$? | |
c0d27fcc | 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9888 | (exit $ac_status); } && |
9889 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9891 | (eval $ac_try) 2>&5 |
9892 | ac_status=$? | |
c0d27fcc | 9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9894 | (exit $ac_status); }; }; then |
9895 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
9896 | else | |
9897 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9898 | sed 's/^/| /' conftest.$ac_ext >&5 |
9899 | ||
98418dba CW |
9900 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
9901 | fi | |
9902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9903 | LIBS=$ac_check_lib_save_LIBS | |
9904 | fi | |
c0d27fcc | 9905 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
9906 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
9907 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9908 | HAVE_GIF=yes | |
9909 | fi | |
9910 | ||
9911 | fi | |
9912 | ||
c0d27fcc | 9913 | |
98418dba CW |
9914 | fi |
9915 | ||
9916 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 9917 | |
c0d27fcc | 9918 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9919 | #define HAVE_GIF 1 |
c0d27fcc | 9920 | _ACEOF |
98418dba CW |
9921 | |
9922 | fi | |
9923 | fi | |
9924 | ||
c0d27fcc MR |
9925 | ### Use Mac OS X Carbon API to implement GUI. |
9926 | HAVE_CARBON=no | |
9927 | if test "${with_carbon}" != "no"; then | |
9928 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
9929 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
9930 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
9931 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
9932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9933 | fi | |
9934 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
9935 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
9936 | else | |
9937 | # Is the header compilable? | |
9938 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
9939 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
9940 | cat >conftest.$ac_ext <<_ACEOF | |
9941 | #line $LINENO "configure" | |
cd958eb3 MB |
9942 | /* confdefs.h. */ |
9943 | _ACEOF | |
9944 | cat confdefs.h >>conftest.$ac_ext | |
9945 | cat >>conftest.$ac_ext <<_ACEOF | |
9946 | /* end confdefs.h. */ | |
c0d27fcc MR |
9947 | $ac_includes_default |
9948 | #include <Carbon/Carbon.h> | |
9949 | _ACEOF | |
9950 | rm -f conftest.$ac_objext | |
9951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9952 | (eval $ac_compile) 2>&5 | |
9953 | ac_status=$? | |
9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9955 | (exit $ac_status); } && | |
9956 | { ac_try='test -s conftest.$ac_objext' | |
9957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9958 | (eval $ac_try) 2>&5 | |
9959 | ac_status=$? | |
9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9961 | (exit $ac_status); }; }; then | |
9962 | ac_header_compiler=yes | |
9963 | else | |
9964 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
9965 | sed 's/^/| /' conftest.$ac_ext >&5 |
9966 | ||
c0d27fcc MR |
9967 | ac_header_compiler=no |
9968 | fi | |
9969 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9970 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9971 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9972 | ||
9973 | # Is the header present? | |
9974 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
9975 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
9976 | cat >conftest.$ac_ext <<_ACEOF | |
9977 | #line $LINENO "configure" | |
cd958eb3 MB |
9978 | /* confdefs.h. */ |
9979 | _ACEOF | |
9980 | cat confdefs.h >>conftest.$ac_ext | |
9981 | cat >>conftest.$ac_ext <<_ACEOF | |
9982 | /* end confdefs.h. */ | |
e0f712ba AC |
9983 | #include <Carbon/Carbon.h> |
9984 | _ACEOF | |
c0d27fcc | 9985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
9986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9987 | ac_status=$? | |
6bae0ccf | 9988 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
9989 | rm -f conftest.er1 |
9990 | cat conftest.err >&5 | |
c0d27fcc | 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
9992 | (exit $ac_status); } >/dev/null; then |
9993 | if test -s conftest.err; then | |
9994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9995 | else | |
9996 | ac_cpp_err= | |
9997 | fi | |
9998 | else | |
9999 | ac_cpp_err=yes | |
10000 | fi | |
10001 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10002 | ac_header_preproc=yes |
e0f712ba AC |
10003 | else |
10004 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10005 | sed 's/^/| /' conftest.$ac_ext >&5 |
10006 | ||
c0d27fcc | 10007 | ac_header_preproc=no |
e0f712ba AC |
10008 | fi |
10009 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10010 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10011 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10012 | ||
10013 | # So? What about this header? | |
10014 | case $ac_header_compiler:$ac_header_preproc in | |
10015 | yes:no ) | |
10016 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10017 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10018 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
10019 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
10020 | ( | |
10021 | cat <<\_ASBOX | |
10022 | ## ------------------------------------ ## | |
10023 | ## Report this to bug-autoconf@gnu.org. ## | |
10024 | ## ------------------------------------ ## | |
10025 | _ASBOX | |
10026 | ) | | |
10027 | sed "s/^/$as_me: WARNING: /" >&2 | |
10028 | ;; | |
c0d27fcc MR |
10029 | no:yes ) |
10030 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 | |
10031 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
10032 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 | |
10033 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
10034 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
10035 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
10036 | ( | |
10037 | cat <<\_ASBOX | |
10038 | ## ------------------------------------ ## | |
10039 | ## Report this to bug-autoconf@gnu.org. ## | |
10040 | ## ------------------------------------ ## | |
10041 | _ASBOX | |
10042 | ) | | |
10043 | sed "s/^/$as_me: WARNING: /" >&2 | |
10044 | ;; | |
c0d27fcc MR |
10045 | esac |
10046 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
10047 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
10048 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
10049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10050 | else | |
10051 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 10052 | fi |
c0d27fcc | 10053 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 10054 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
10055 | |
10056 | fi | |
e0f712ba AC |
10057 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
10058 | HAVE_CARBON=yes | |
10059 | fi | |
10060 | ||
c0d27fcc | 10061 | |
e0f712ba AC |
10062 | fi |
10063 | ||
10064 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 10065 | |
c0d27fcc | 10066 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 10067 | #define HAVE_CARBON 1 |
c0d27fcc | 10068 | _ACEOF |
e0f712ba | 10069 | |
6a3a24fa JD |
10070 | window_system=mac |
10071 | ## Specify the install directory | |
10072 | carbon_appdir= | |
10073 | if test "${carbon_appdir_x}" != ""; then | |
10074 | case ${carbon_appdir_x} in | |
10075 | y | ye | yes) carbon_appdir=/Applications ;; | |
10076 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
10077 | esac | |
10078 | fi | |
8f417b3b AS |
10079 | # We also have mouse menus. |
10080 | HAVE_MENUS=yes | |
e0f712ba AC |
10081 | fi |
10082 | ||
98418dba CW |
10083 | ### Use session management (-lSM -lICE) if available |
10084 | HAVE_X_SM=no | |
10085 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
10086 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
10087 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
10088 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
10089 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
10090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10091 | fi |
10092 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
10093 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 10094 | else |
c0d27fcc MR |
10095 | # Is the header compilable? |
10096 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
10097 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
10098 | cat >conftest.$ac_ext <<_ACEOF | |
10099 | #line $LINENO "configure" | |
cd958eb3 MB |
10100 | /* confdefs.h. */ |
10101 | _ACEOF | |
10102 | cat confdefs.h >>conftest.$ac_ext | |
10103 | cat >>conftest.$ac_ext <<_ACEOF | |
10104 | /* end confdefs.h. */ | |
c0d27fcc MR |
10105 | $ac_includes_default |
10106 | #include <X11/SM/SMlib.h> | |
10107 | _ACEOF | |
10108 | rm -f conftest.$ac_objext | |
10109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10110 | (eval $ac_compile) 2>&5 | |
10111 | ac_status=$? | |
10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10113 | (exit $ac_status); } && | |
10114 | { ac_try='test -s conftest.$ac_objext' | |
10115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10116 | (eval $ac_try) 2>&5 | |
10117 | ac_status=$? | |
10118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10119 | (exit $ac_status); }; }; then | |
10120 | ac_header_compiler=yes | |
10121 | else | |
10122 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10123 | sed 's/^/| /' conftest.$ac_ext >&5 |
10124 | ||
c0d27fcc MR |
10125 | ac_header_compiler=no |
10126 | fi | |
10127 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10128 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10129 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10130 | ||
10131 | # Is the header present? | |
10132 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
10133 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
10134 | cat >conftest.$ac_ext <<_ACEOF | |
10135 | #line $LINENO "configure" | |
cd958eb3 MB |
10136 | /* confdefs.h. */ |
10137 | _ACEOF | |
10138 | cat confdefs.h >>conftest.$ac_ext | |
10139 | cat >>conftest.$ac_ext <<_ACEOF | |
10140 | /* end confdefs.h. */ | |
98418dba CW |
10141 | #include <X11/SM/SMlib.h> |
10142 | _ACEOF | |
c0d27fcc | 10143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10145 | ac_status=$? | |
6bae0ccf | 10146 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10147 | rm -f conftest.er1 |
10148 | cat conftest.err >&5 | |
c0d27fcc | 10149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10150 | (exit $ac_status); } >/dev/null; then |
10151 | if test -s conftest.err; then | |
10152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10153 | else | |
10154 | ac_cpp_err= | |
10155 | fi | |
10156 | else | |
10157 | ac_cpp_err=yes | |
503d2be0 | 10158 | fi |
98418dba | 10159 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 10160 | ac_header_preproc=yes |
98418dba CW |
10161 | else |
10162 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
10164 | ||
c0d27fcc | 10165 | ac_header_preproc=no |
98418dba CW |
10166 | fi |
10167 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10168 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10169 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10170 | ||
10171 | # So? What about this header? | |
10172 | case $ac_header_compiler:$ac_header_preproc in | |
10173 | yes:no ) | |
10174 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10175 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10176 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
10177 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
10178 | ( | |
10179 | cat <<\_ASBOX | |
10180 | ## ------------------------------------ ## | |
10181 | ## Report this to bug-autoconf@gnu.org. ## | |
10182 | ## ------------------------------------ ## | |
10183 | _ASBOX | |
10184 | ) | | |
10185 | sed "s/^/$as_me: WARNING: /" >&2 | |
10186 | ;; | |
c0d27fcc MR |
10187 | no:yes ) |
10188 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
10189 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
10190 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
10191 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
10192 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
10193 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
10194 | ( | |
10195 | cat <<\_ASBOX | |
10196 | ## ------------------------------------ ## | |
10197 | ## Report this to bug-autoconf@gnu.org. ## | |
10198 | ## ------------------------------------ ## | |
10199 | _ASBOX | |
10200 | ) | | |
10201 | sed "s/^/$as_me: WARNING: /" >&2 | |
10202 | ;; | |
c0d27fcc MR |
10203 | esac |
10204 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
10205 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
10206 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10208 | else | |
10209 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 10210 | fi |
c0d27fcc | 10211 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 10212 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
10213 | |
10214 | fi | |
98418dba | 10215 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 10216 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
10217 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
10218 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 10219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 10220 | else |
503d2be0 | 10221 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 10222 | LIBS="-lSM $LIBS" |
503d2be0 | 10223 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10224 | #line $LINENO "configure" |
cd958eb3 MB |
10225 | /* confdefs.h. */ |
10226 | _ACEOF | |
10227 | cat confdefs.h >>conftest.$ac_ext | |
10228 | cat >>conftest.$ac_ext <<_ACEOF | |
10229 | /* end confdefs.h. */ | |
503d2be0 | 10230 | |
73b77ee5 | 10231 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10232 | #ifdef __cplusplus |
10233 | extern "C" | |
10234 | #endif | |
73b77ee5 | 10235 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10236 | builtin and then its argument prototype would still apply. */ |
98418dba | 10237 | char SmcOpenConnection (); |
503d2be0 AS |
10238 | int |
10239 | main () | |
10240 | { | |
98418dba | 10241 | SmcOpenConnection (); |
503d2be0 AS |
10242 | ; |
10243 | return 0; | |
10244 | } | |
10245 | _ACEOF | |
10246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10248 | (eval $ac_link) 2>&5 |
10249 | ac_status=$? | |
c0d27fcc | 10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10251 | (exit $ac_status); } && |
10252 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10254 | (eval $ac_try) 2>&5 |
10255 | ac_status=$? | |
c0d27fcc | 10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10257 | (exit $ac_status); }; }; then |
98418dba | 10258 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
10259 | else |
10260 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10261 | sed 's/^/| /' conftest.$ac_ext >&5 |
10262 | ||
98418dba | 10263 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 AS |
10264 | fi |
10265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10266 | LIBS=$ac_check_lib_save_LIBS | |
10267 | fi | |
c0d27fcc | 10268 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
10269 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
10270 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
10271 | HAVE_X_SM=yes | |
10272 | else | |
10273 | -lICE | |
73b77ee5 GM |
10274 | fi |
10275 | ||
73b77ee5 | 10276 | fi |
73b77ee5 | 10277 | |
c0d27fcc MR |
10278 | |
10279 | ||
98418dba | 10280 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 10281 | |
c0d27fcc | 10282 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10283 | #define HAVE_X_SM 1 |
c0d27fcc | 10284 | _ACEOF |
73b77ee5 | 10285 | |
98418dba CW |
10286 | case "$LIBS" in |
10287 | *-lSM*) ;; | |
10288 | *) LIBS="-lSM -lICE $LIBS" ;; | |
10289 | esac | |
73b77ee5 | 10290 | fi |
98418dba | 10291 | fi |
73b77ee5 | 10292 | |
98418dba | 10293 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 10294 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
10295 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
10296 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10298 | else | |
10299 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 10300 | #line $LINENO "configure" |
cd958eb3 MB |
10301 | /* confdefs.h. */ |
10302 | _ACEOF | |
10303 | cat confdefs.h >>conftest.$ac_ext | |
10304 | cat >>conftest.$ac_ext <<_ACEOF | |
10305 | /* end confdefs.h. */ | |
98418dba | 10306 | #include <netdb.h> |
503d2be0 AS |
10307 | int |
10308 | main () | |
10309 | { | |
98418dba | 10310 | return h_errno; |
503d2be0 AS |
10311 | ; |
10312 | return 0; | |
10313 | } | |
10314 | _ACEOF | |
10315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10317 | (eval $ac_link) 2>&5 |
10318 | ac_status=$? | |
c0d27fcc | 10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10320 | (exit $ac_status); } && |
10321 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10323 | (eval $ac_try) 2>&5 |
10324 | ac_status=$? | |
c0d27fcc | 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10326 | (exit $ac_status); }; }; then |
98418dba | 10327 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 10328 | else |
503d2be0 | 10329 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
10330 | sed 's/^/| /' conftest.$ac_ext >&5 |
10331 | ||
98418dba | 10332 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 10333 | fi |
503d2be0 | 10334 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10335 | fi |
c0d27fcc | 10336 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
10337 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
10338 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 10339 | |
c0d27fcc | 10340 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10341 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 10342 | _ACEOF |
73b77ee5 | 10343 | |
98418dba CW |
10344 | fi |
10345 | ||
10346 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
10347 | # for constant arguments. Useless! | |
c0d27fcc | 10348 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
10349 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
10350 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10352 | else | |
10353 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 10354 | #line $LINENO "configure" |
cd958eb3 MB |
10355 | /* confdefs.h. */ |
10356 | _ACEOF | |
10357 | cat confdefs.h >>conftest.$ac_ext | |
10358 | cat >>conftest.$ac_ext <<_ACEOF | |
10359 | /* end confdefs.h. */ | |
98418dba | 10360 | #include <alloca.h> |
503d2be0 AS |
10361 | int |
10362 | main () | |
10363 | { | |
98418dba | 10364 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
10365 | ; |
10366 | return 0; | |
10367 | } | |
10368 | _ACEOF | |
10369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10371 | (eval $ac_link) 2>&5 |
10372 | ac_status=$? | |
c0d27fcc | 10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10374 | (exit $ac_status); } && |
10375 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10377 | (eval $ac_try) 2>&5 |
10378 | ac_status=$? | |
c0d27fcc | 10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10380 | (exit $ac_status); }; }; then |
98418dba | 10381 | ac_cv_working_alloca_h=yes |
73b77ee5 | 10382 | else |
503d2be0 | 10383 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
10384 | sed 's/^/| /' conftest.$ac_ext >&5 |
10385 | ||
98418dba | 10386 | ac_cv_working_alloca_h=no |
73b77ee5 | 10387 | fi |
503d2be0 | 10388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10389 | fi |
c0d27fcc | 10390 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
10391 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
10392 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 10393 | |
c0d27fcc | 10394 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10395 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 10396 | _ACEOF |
98418dba CW |
10397 | |
10398 | fi | |
10399 | ||
c0d27fcc | 10400 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
10401 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
10402 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10404 | else | |
503d2be0 | 10405 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10406 | #line $LINENO "configure" |
cd958eb3 MB |
10407 | /* confdefs.h. */ |
10408 | _ACEOF | |
10409 | cat confdefs.h >>conftest.$ac_ext | |
10410 | cat >>conftest.$ac_ext <<_ACEOF | |
10411 | /* end confdefs.h. */ | |
98418dba CW |
10412 | #ifdef __GNUC__ |
10413 | # define alloca __builtin_alloca | |
10414 | #else | |
10415 | # ifdef _MSC_VER | |
10416 | # include <malloc.h> | |
10417 | # define alloca _alloca | |
10418 | # else | |
10419 | # if HAVE_ALLOCA_H | |
10420 | # include <alloca.h> | |
10421 | # else | |
10422 | # ifdef _AIX | |
10423 | #pragma alloca | |
10424 | # else | |
10425 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
10426 | char *alloca (); | |
10427 | # endif | |
10428 | # endif | |
10429 | # endif | |
10430 | # endif | |
10431 | #endif | |
10432 | ||
503d2be0 AS |
10433 | int |
10434 | main () | |
10435 | { | |
98418dba | 10436 | char *p = (char *) alloca (1); |
503d2be0 AS |
10437 | ; |
10438 | return 0; | |
10439 | } | |
10440 | _ACEOF | |
10441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10443 | (eval $ac_link) 2>&5 |
10444 | ac_status=$? | |
c0d27fcc | 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10446 | (exit $ac_status); } && |
10447 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10449 | (eval $ac_try) 2>&5 |
10450 | ac_status=$? | |
c0d27fcc | 10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10452 | (exit $ac_status); }; }; then |
98418dba | 10453 | ac_cv_func_alloca_works=yes |
ac95a621 | 10454 | else |
503d2be0 | 10455 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
10456 | sed 's/^/| /' conftest.$ac_ext >&5 |
10457 | ||
98418dba | 10458 | ac_cv_func_alloca_works=no |
ac95a621 | 10459 | fi |
503d2be0 | 10460 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10461 | fi |
c0d27fcc | 10462 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 10463 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 10464 | |
98418dba CW |
10465 | if test $ac_cv_func_alloca_works = yes; then |
10466 | ||
c0d27fcc | 10467 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10468 | #define HAVE_ALLOCA 1 |
c0d27fcc | 10469 | _ACEOF |
98418dba CW |
10470 | |
10471 | else | |
10472 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
10473 | # that cause trouble. Some versions do not even contain alloca or | |
10474 | # contain a buggy version. If you still want to use their alloca, | |
10475 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
10476 | ||
10477 | ALLOCA=alloca.$ac_objext | |
10478 | ||
c0d27fcc | 10479 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10480 | #define C_ALLOCA 1 |
c0d27fcc | 10481 | _ACEOF |
98418dba | 10482 | |
c0d27fcc MR |
10483 | |
10484 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
10485 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
10486 | if test "${ac_cv_os_cray+set}" = set; then | |
10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10488 | else | |
10489 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 10490 | #line $LINENO "configure" |
cd958eb3 MB |
10491 | /* confdefs.h. */ |
10492 | _ACEOF | |
10493 | cat confdefs.h >>conftest.$ac_ext | |
10494 | cat >>conftest.$ac_ext <<_ACEOF | |
10495 | /* end confdefs.h. */ | |
98418dba CW |
10496 | #if defined(CRAY) && ! defined(CRAY2) |
10497 | webecray | |
10498 | #else | |
10499 | wenotbecray | |
10500 | #endif | |
10501 | ||
10502 | _ACEOF | |
10503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10504 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
10505 | ac_cv_os_cray=yes |
10506 | else | |
10507 | ac_cv_os_cray=no | |
10508 | fi | |
10509 | rm -f conftest* | |
ac95a621 | 10510 | |
98418dba | 10511 | fi |
c0d27fcc | 10512 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
10513 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
10514 | if test $ac_cv_os_cray = yes; then | |
10515 | for ac_func in _getb67 GETB67 getb67; do | |
10516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 10517 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
10518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10519 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 10521 | else |
503d2be0 | 10522 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10523 | #line $LINENO "configure" |
cd958eb3 MB |
10524 | /* confdefs.h. */ |
10525 | _ACEOF | |
10526 | cat confdefs.h >>conftest.$ac_ext | |
10527 | cat >>conftest.$ac_ext <<_ACEOF | |
10528 | /* end confdefs.h. */ | |
73b77ee5 | 10529 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
10530 | which can conflict with char $ac_func (); below. |
10531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10532 | <limits.h> exists even on freestanding compilers. */ | |
10533 | #ifdef __STDC__ | |
10534 | # include <limits.h> | |
10535 | #else | |
10536 | # include <assert.h> | |
10537 | #endif | |
73b77ee5 | 10538 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10539 | #ifdef __cplusplus |
10540 | extern "C" | |
cd958eb3 | 10541 | { |
503d2be0 | 10542 | #endif |
73b77ee5 | 10543 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10544 | builtin and then its argument prototype would still apply. */ |
10545 | char $ac_func (); | |
73b77ee5 GM |
10546 | /* The GNU C library defines this for functions which it implements |
10547 | to always fail with ENOSYS. Some functions are actually named | |
10548 | something starting with __ and the normal name is an alias. */ | |
10549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10550 | choke me | |
10551 | #else | |
cd958eb3 MB |
10552 | char (*f) () = $ac_func; |
10553 | #endif | |
10554 | #ifdef __cplusplus | |
10555 | } | |
73b77ee5 GM |
10556 | #endif |
10557 | ||
cd958eb3 MB |
10558 | int |
10559 | main () | |
10560 | { | |
9e71690e | 10561 | return f != $ac_func; |
503d2be0 AS |
10562 | ; |
10563 | return 0; | |
10564 | } | |
10565 | _ACEOF | |
10566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10568 | (eval $ac_link) 2>&5 |
10569 | ac_status=$? | |
c0d27fcc | 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10571 | (exit $ac_status); } && |
10572 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10574 | (eval $ac_try) 2>&5 |
10575 | ac_status=$? | |
c0d27fcc | 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10577 | (exit $ac_status); }; }; then |
10578 | eval "$as_ac_var=yes" | |
10579 | else | |
10580 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10581 | sed 's/^/| /' conftest.$ac_ext >&5 |
10582 | ||
503d2be0 AS |
10583 | eval "$as_ac_var=no" |
10584 | fi | |
10585 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10586 | fi | |
c0d27fcc | 10587 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
10588 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10589 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 10590 | |
c0d27fcc | 10591 | cat >>confdefs.h <<_ACEOF |
98418dba | 10592 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 10593 | _ACEOF |
98418dba CW |
10594 | |
10595 | break | |
73b77ee5 | 10596 | fi |
73b77ee5 | 10597 | |
98418dba | 10598 | done |
73b77ee5 GM |
10599 | fi |
10600 | ||
c0d27fcc | 10601 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
10602 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
10603 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 10604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
10605 | else |
10606 | if test "$cross_compiling" = yes; then | |
10607 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 10608 | else |
503d2be0 | 10609 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10610 | #line $LINENO "configure" |
cd958eb3 MB |
10611 | /* confdefs.h. */ |
10612 | _ACEOF | |
10613 | cat confdefs.h >>conftest.$ac_ext | |
10614 | cat >>conftest.$ac_ext <<_ACEOF | |
10615 | /* end confdefs.h. */ | |
503d2be0 | 10616 | int |
98418dba | 10617 | find_stack_direction () |
503d2be0 | 10618 | { |
98418dba CW |
10619 | static char *addr = 0; |
10620 | auto char dummy; | |
10621 | if (addr == 0) | |
10622 | { | |
10623 | addr = &dummy; | |
10624 | return find_stack_direction (); | |
10625 | } | |
73b77ee5 | 10626 | else |
98418dba CW |
10627 | return (&dummy > addr) ? 1 : -1; |
10628 | } | |
ba4481b5 | 10629 | |
503d2be0 AS |
10630 | int |
10631 | main () | |
10632 | { | |
98418dba | 10633 | exit (find_stack_direction () < 0); |
503d2be0 AS |
10634 | } |
10635 | _ACEOF | |
98418dba | 10636 | rm -f conftest$ac_exeext |
c0d27fcc | 10637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10638 | (eval $ac_link) 2>&5 |
10639 | ac_status=$? | |
c0d27fcc | 10640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 10642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10643 | (eval $ac_try) 2>&5 |
10644 | ac_status=$? | |
c0d27fcc | 10645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10646 | (exit $ac_status); }; }; then |
98418dba | 10647 | ac_cv_c_stack_direction=1 |
ba4481b5 | 10648 | else |
98418dba CW |
10649 | echo "$as_me: program exited with status $ac_status" >&5 |
10650 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10651 | sed 's/^/| /' conftest.$ac_ext >&5 |
10652 | ||
c0d27fcc | 10653 | ( exit $ac_status ) |
98418dba | 10654 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 10655 | fi |
6bae0ccf | 10656 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 10657 | fi |
98418dba | 10658 | fi |
c0d27fcc | 10659 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
10660 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
10661 | ||
c0d27fcc | 10662 | cat >>confdefs.h <<_ACEOF |
98418dba | 10663 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
10664 | _ACEOF |
10665 | ||
ba4481b5 | 10666 | |
ba4481b5 DL |
10667 | fi |
10668 | ||
c0d27fcc | 10669 | |
98418dba CW |
10670 | # fmod, logb, and frexp are found in -lm on most systems. |
10671 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
10672 | ||
c0d27fcc | 10673 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
10674 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
10675 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 10676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10677 | else |
98418dba CW |
10678 | ac_check_lib_save_LIBS=$LIBS |
10679 | LIBS="-lm $LIBS" | |
10680 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 10681 | #line $LINENO "configure" |
cd958eb3 MB |
10682 | /* confdefs.h. */ |
10683 | _ACEOF | |
10684 | cat confdefs.h >>conftest.$ac_ext | |
10685 | cat >>conftest.$ac_ext <<_ACEOF | |
10686 | /* end confdefs.h. */ | |
ba4481b5 | 10687 | |
98418dba CW |
10688 | /* Override any gcc2 internal prototype to avoid an error. */ |
10689 | #ifdef __cplusplus | |
10690 | extern "C" | |
10691 | #endif | |
10692 | /* We use char because int might match the return type of a gcc2 | |
10693 | builtin and then its argument prototype would still apply. */ | |
10694 | char sqrt (); | |
503d2be0 AS |
10695 | int |
10696 | main () | |
10697 | { | |
98418dba | 10698 | sqrt (); |
503d2be0 AS |
10699 | ; |
10700 | return 0; | |
10701 | } | |
10702 | _ACEOF | |
10703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10705 | (eval $ac_link) 2>&5 |
10706 | ac_status=$? | |
c0d27fcc | 10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10708 | (exit $ac_status); } && |
10709 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10711 | (eval $ac_try) 2>&5 |
10712 | ac_status=$? | |
c0d27fcc | 10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10714 | (exit $ac_status); }; }; then |
98418dba | 10715 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 10716 | else |
503d2be0 | 10717 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
10718 | sed 's/^/| /' conftest.$ac_ext >&5 |
10719 | ||
98418dba | 10720 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 10721 | fi |
503d2be0 | 10722 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10723 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10724 | fi |
c0d27fcc | 10725 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
10726 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
10727 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 10728 | cat >>confdefs.h <<_ACEOF |
98418dba | 10729 | #define HAVE_LIBM 1 |
c0d27fcc | 10730 | _ACEOF |
98418dba CW |
10731 | |
10732 | LIBS="-lm $LIBS" | |
ba4481b5 | 10733 | |
ba4481b5 DL |
10734 | fi |
10735 | ||
c0d27fcc | 10736 | |
98418dba CW |
10737 | # Check for mail-locking functions in a "mail" library |
10738 | ||
c0d27fcc | 10739 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
10740 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
10741 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 10742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10743 | else |
98418dba CW |
10744 | ac_check_lib_save_LIBS=$LIBS |
10745 | LIBS="-lmail $LIBS" | |
10746 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 10747 | #line $LINENO "configure" |
cd958eb3 MB |
10748 | /* confdefs.h. */ |
10749 | _ACEOF | |
10750 | cat confdefs.h >>conftest.$ac_ext | |
10751 | cat >>conftest.$ac_ext <<_ACEOF | |
10752 | /* end confdefs.h. */ | |
98418dba CW |
10753 | |
10754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10755 | #ifdef __cplusplus | |
10756 | extern "C" | |
10757 | #endif | |
10758 | /* We use char because int might match the return type of a gcc2 | |
10759 | builtin and then its argument prototype would still apply. */ | |
10760 | char maillock (); | |
503d2be0 AS |
10761 | int |
10762 | main () | |
10763 | { | |
98418dba | 10764 | maillock (); |
503d2be0 AS |
10765 | ; |
10766 | return 0; | |
10767 | } | |
10768 | _ACEOF | |
10769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10771 | (eval $ac_link) 2>&5 |
10772 | ac_status=$? | |
c0d27fcc | 10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10774 | (exit $ac_status); } && |
10775 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10777 | (eval $ac_try) 2>&5 |
10778 | ac_status=$? | |
c0d27fcc | 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10780 | (exit $ac_status); }; }; then |
98418dba | 10781 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 10782 | else |
503d2be0 | 10783 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
10784 | sed 's/^/| /' conftest.$ac_ext >&5 |
10785 | ||
98418dba | 10786 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 10787 | fi |
503d2be0 | 10788 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10789 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10790 | fi |
c0d27fcc | 10791 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
10792 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
10793 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 10794 | cat >>confdefs.h <<_ACEOF |
98418dba | 10795 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 10796 | _ACEOF |
ba4481b5 | 10797 | |
98418dba | 10798 | LIBS="-lmail $LIBS" |
ba4481b5 | 10799 | |
98418dba | 10800 | fi |
ba4481b5 | 10801 | |
c0d27fcc MR |
10802 | |
10803 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
10804 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
10805 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 10806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10807 | else |
503d2be0 | 10808 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 10809 | LIBS="-llockfile $LIBS" |
503d2be0 | 10810 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10811 | #line $LINENO "configure" |
cd958eb3 MB |
10812 | /* confdefs.h. */ |
10813 | _ACEOF | |
10814 | cat confdefs.h >>conftest.$ac_ext | |
10815 | cat >>conftest.$ac_ext <<_ACEOF | |
10816 | /* end confdefs.h. */ | |
503d2be0 | 10817 | |
ba4481b5 | 10818 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10819 | #ifdef __cplusplus |
10820 | extern "C" | |
10821 | #endif | |
ba4481b5 | 10822 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10823 | builtin and then its argument prototype would still apply. */ |
98418dba | 10824 | char maillock (); |
503d2be0 AS |
10825 | int |
10826 | main () | |
10827 | { | |
98418dba | 10828 | maillock (); |
503d2be0 AS |
10829 | ; |
10830 | return 0; | |
10831 | } | |
10832 | _ACEOF | |
10833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10835 | (eval $ac_link) 2>&5 |
10836 | ac_status=$? | |
c0d27fcc | 10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10838 | (exit $ac_status); } && |
10839 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10841 | (eval $ac_try) 2>&5 |
10842 | ac_status=$? | |
c0d27fcc | 10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10844 | (exit $ac_status); }; }; then |
98418dba | 10845 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
10846 | else |
10847 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10848 | sed 's/^/| /' conftest.$ac_ext >&5 |
10849 | ||
98418dba CW |
10850 | ac_cv_lib_lockfile_maillock=no |
10851 | fi | |
10852 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10853 | LIBS=$ac_check_lib_save_LIBS | |
10854 | fi | |
c0d27fcc | 10855 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
10856 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
10857 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 10858 | cat >>confdefs.h <<_ACEOF |
98418dba | 10859 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 10860 | _ACEOF |
98418dba CW |
10861 | |
10862 | LIBS="-llockfile $LIBS" | |
10863 | ||
10864 | fi | |
10865 | ||
10866 | # If we have the shared liblockfile, assume we must use it for mail | |
10867 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
10868 | # (no liblockfile.a installed), ensure that we don't need to. | |
10869 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
10870 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
10871 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 10872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
10873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
10874 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
10875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10876 | else | |
10877 | if test -n "$liblockfile"; then | |
10878 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
10879 | else | |
c0d27fcc | 10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
10881 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
10882 | for as_dir in $as_dummy | |
c0d27fcc MR |
10883 | do |
10884 | IFS=$as_save_IFS | |
10885 | test -z "$as_dir" && as_dir=. | |
10886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10888 | ac_cv_prog_liblockfile="yes" | |
10889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10890 | break 2 | |
10891 | fi | |
10892 | done | |
98418dba CW |
10893 | done |
10894 | ||
10895 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 10896 | fi |
503d2be0 | 10897 | fi |
98418dba CW |
10898 | liblockfile=$ac_cv_prog_liblockfile |
10899 | if test -n "$liblockfile"; then | |
c0d27fcc | 10900 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
10901 | echo "${ECHO_T}$liblockfile" >&6 |
10902 | else | |
c0d27fcc | 10903 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 10904 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
10905 | fi |
10906 | ||
98418dba | 10907 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 10908 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
10909 | This probably means that movemail could lose mail. |
10910 | There may be a \`development' package to install containing liblockfile." >&5 | |
10911 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
10912 | This probably means that movemail could lose mail. | |
10913 | There may be a \`development' package to install containing liblockfile." >&2;} | |
10914 | { (exit 1); exit 1; }; } | |
b936fae4 | 10915 | else |
c0d27fcc | 10916 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10917 | #define LIBMAIL -llockfile |
c0d27fcc | 10918 | _ACEOF |
457b792c | 10919 | |
98418dba CW |
10920 | fi |
10921 | else : | |
10922 | fi | |
503d2be0 | 10923 | |
98418dba CW |
10924 | for ac_func in touchlock |
10925 | do | |
10926 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 10927 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
10928 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10929 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 10931 | else |
98418dba | 10932 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 10933 | #line $LINENO "configure" |
cd958eb3 MB |
10934 | /* confdefs.h. */ |
10935 | _ACEOF | |
10936 | cat confdefs.h >>conftest.$ac_ext | |
10937 | cat >>conftest.$ac_ext <<_ACEOF | |
10938 | /* end confdefs.h. */ | |
98418dba | 10939 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
10940 | which can conflict with char $ac_func (); below. |
10941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10942 | <limits.h> exists even on freestanding compilers. */ | |
10943 | #ifdef __STDC__ | |
10944 | # include <limits.h> | |
10945 | #else | |
10946 | # include <assert.h> | |
10947 | #endif | |
457b792c | 10948 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10949 | #ifdef __cplusplus |
10950 | extern "C" | |
cd958eb3 | 10951 | { |
503d2be0 | 10952 | #endif |
457b792c | 10953 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10954 | builtin and then its argument prototype would still apply. */ |
98418dba | 10955 | char $ac_func (); |
98418dba CW |
10956 | /* The GNU C library defines this for functions which it implements |
10957 | to always fail with ENOSYS. Some functions are actually named | |
10958 | something starting with __ and the normal name is an alias. */ | |
10959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10960 | choke me | |
10961 | #else | |
cd958eb3 | 10962 | char (*f) () = $ac_func; |
98418dba | 10963 | #endif |
cd958eb3 MB |
10964 | #ifdef __cplusplus |
10965 | } | |
10966 | #endif | |
10967 | ||
10968 | int | |
10969 | main () | |
10970 | { | |
9e71690e | 10971 | return f != $ac_func; |
503d2be0 AS |
10972 | ; |
10973 | return 0; | |
10974 | } | |
10975 | _ACEOF | |
10976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10978 | (eval $ac_link) 2>&5 |
10979 | ac_status=$? | |
c0d27fcc | 10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10981 | (exit $ac_status); } && |
10982 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10984 | (eval $ac_try) 2>&5 |
10985 | ac_status=$? | |
c0d27fcc | 10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10987 | (exit $ac_status); }; }; then |
98418dba | 10988 | eval "$as_ac_var=yes" |
503d2be0 AS |
10989 | else |
10990 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
10991 | sed 's/^/| /' conftest.$ac_ext >&5 |
10992 | ||
98418dba | 10993 | eval "$as_ac_var=no" |
503d2be0 AS |
10994 | fi |
10995 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 10996 | fi |
c0d27fcc | 10997 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
10998 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10999 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11000 | cat >>confdefs.h <<_ACEOF |
98418dba | 11001 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11002 | _ACEOF |
457b792c | 11003 | |
457b792c | 11004 | fi |
98418dba | 11005 | done |
457b792c | 11006 | |
c0d27fcc | 11007 | |
98418dba CW |
11008 | for ac_header in maillock.h |
11009 | do | |
11010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
11013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
11016 | fi |
11017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 11019 | else |
c0d27fcc MR |
11020 | # Is the header compilable? |
11021 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11022 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11023 | cat >conftest.$ac_ext <<_ACEOF | |
11024 | #line $LINENO "configure" | |
cd958eb3 MB |
11025 | /* confdefs.h. */ |
11026 | _ACEOF | |
11027 | cat confdefs.h >>conftest.$ac_ext | |
11028 | cat >>conftest.$ac_ext <<_ACEOF | |
11029 | /* end confdefs.h. */ | |
c0d27fcc MR |
11030 | $ac_includes_default |
11031 | #include <$ac_header> | |
11032 | _ACEOF | |
11033 | rm -f conftest.$ac_objext | |
11034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11035 | (eval $ac_compile) 2>&5 | |
11036 | ac_status=$? | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); } && | |
11039 | { ac_try='test -s conftest.$ac_objext' | |
11040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11041 | (eval $ac_try) 2>&5 | |
11042 | ac_status=$? | |
11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11044 | (exit $ac_status); }; }; then | |
11045 | ac_header_compiler=yes | |
11046 | else | |
11047 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11048 | sed 's/^/| /' conftest.$ac_ext >&5 |
11049 | ||
c0d27fcc MR |
11050 | ac_header_compiler=no |
11051 | fi | |
11052 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11053 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11054 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11055 | ||
11056 | # Is the header present? | |
11057 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11058 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11059 | cat >conftest.$ac_ext <<_ACEOF | |
11060 | #line $LINENO "configure" | |
cd958eb3 MB |
11061 | /* confdefs.h. */ |
11062 | _ACEOF | |
11063 | cat confdefs.h >>conftest.$ac_ext | |
11064 | cat >>conftest.$ac_ext <<_ACEOF | |
11065 | /* end confdefs.h. */ | |
98418dba | 11066 | #include <$ac_header> |
503d2be0 | 11067 | _ACEOF |
c0d27fcc | 11068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 11069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 11070 | ac_status=$? |
6bae0ccf | 11071 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11072 | rm -f conftest.er1 |
11073 | cat conftest.err >&5 | |
c0d27fcc | 11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11075 | (exit $ac_status); } >/dev/null; then |
11076 | if test -s conftest.err; then | |
11077 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11078 | else | |
11079 | ac_cpp_err= | |
11080 | fi | |
503d2be0 | 11081 | else |
98418dba | 11082 | ac_cpp_err=yes |
503d2be0 | 11083 | fi |
98418dba | 11084 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 11085 | ac_header_preproc=yes |
98418dba CW |
11086 | else |
11087 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
11089 | ||
c0d27fcc | 11090 | ac_header_preproc=no |
503d2be0 | 11091 | fi |
98418dba | 11092 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11094 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11095 | ||
11096 | # So? What about this header? | |
11097 | case $ac_header_compiler:$ac_header_preproc in | |
11098 | yes:no ) | |
11099 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11100 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11103 | ( | |
11104 | cat <<\_ASBOX | |
11105 | ## ------------------------------------ ## | |
11106 | ## Report this to bug-autoconf@gnu.org. ## | |
11107 | ## ------------------------------------ ## | |
11108 | _ASBOX | |
11109 | ) | | |
11110 | sed "s/^/$as_me: WARNING: /" >&2 | |
11111 | ;; | |
c0d27fcc MR |
11112 | no:yes ) |
11113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11118 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11119 | ( | |
11120 | cat <<\_ASBOX | |
11121 | ## ------------------------------------ ## | |
11122 | ## Report this to bug-autoconf@gnu.org. ## | |
11123 | ## ------------------------------------ ## | |
11124 | _ASBOX | |
11125 | ) | | |
11126 | sed "s/^/$as_me: WARNING: /" >&2 | |
11127 | ;; | |
c0d27fcc MR |
11128 | esac |
11129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11133 | else | |
11134 | eval "$as_ac_Header=$ac_header_preproc" | |
ba4481b5 | 11135 | fi |
c0d27fcc | 11136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 11137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11138 | |
11139 | fi | |
98418dba | 11140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11141 | cat >>confdefs.h <<_ACEOF |
98418dba | 11142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11143 | _ACEOF |
48d4b120 | 11144 | |
ba4481b5 | 11145 | fi |
c0d27fcc | 11146 | |
98418dba CW |
11147 | done |
11148 | ||
c0d27fcc MR |
11149 | |
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
22044edf DL |
11204 | |
11205 | ||
c0d27fcc | 11206 | |
cd958eb3 | 11207 | |
c0d27fcc MR |
11208 | |
11209 | ||
98418dba CW |
11210 | for ac_func in gethostname getdomainname dup2 \ |
11211 | rename closedir mkdir rmdir sysinfo \ | |
11212 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
11213 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
11214 | utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | |
11215 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | |
11216 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
cd958eb3 | 11217 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset |
98418dba CW |
11218 | do |
11219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11224 | else |
503d2be0 | 11225 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 11226 | #line $LINENO "configure" |
cd958eb3 MB |
11227 | /* confdefs.h. */ |
11228 | _ACEOF | |
11229 | cat confdefs.h >>conftest.$ac_ext | |
11230 | cat >>conftest.$ac_ext <<_ACEOF | |
11231 | /* end confdefs.h. */ | |
98418dba | 11232 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
11233 | which can conflict with char $ac_func (); below. |
11234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11235 | <limits.h> exists even on freestanding compilers. */ | |
11236 | #ifdef __STDC__ | |
11237 | # include <limits.h> | |
11238 | #else | |
11239 | # include <assert.h> | |
11240 | #endif | |
ba4481b5 | 11241 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11242 | #ifdef __cplusplus |
11243 | extern "C" | |
cd958eb3 | 11244 | { |
503d2be0 | 11245 | #endif |
ba4481b5 | 11246 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11247 | builtin and then its argument prototype would still apply. */ |
98418dba | 11248 | char $ac_func (); |
98418dba CW |
11249 | /* The GNU C library defines this for functions which it implements |
11250 | to always fail with ENOSYS. Some functions are actually named | |
11251 | something starting with __ and the normal name is an alias. */ | |
11252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11253 | choke me | |
11254 | #else | |
cd958eb3 MB |
11255 | char (*f) () = $ac_func; |
11256 | #endif | |
11257 | #ifdef __cplusplus | |
11258 | } | |
98418dba CW |
11259 | #endif |
11260 | ||
cd958eb3 MB |
11261 | int |
11262 | main () | |
11263 | { | |
9e71690e | 11264 | return f != $ac_func; |
503d2be0 AS |
11265 | ; |
11266 | return 0; | |
11267 | } | |
11268 | _ACEOF | |
11269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11271 | (eval $ac_link) 2>&5 |
11272 | ac_status=$? | |
c0d27fcc | 11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11274 | (exit $ac_status); } && |
11275 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11277 | (eval $ac_try) 2>&5 |
11278 | ac_status=$? | |
c0d27fcc | 11279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11280 | (exit $ac_status); }; }; then |
98418dba | 11281 | eval "$as_ac_var=yes" |
503d2be0 AS |
11282 | else |
11283 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11284 | sed 's/^/| /' conftest.$ac_ext >&5 |
11285 | ||
98418dba | 11286 | eval "$as_ac_var=no" |
503d2be0 AS |
11287 | fi |
11288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 11289 | fi |
c0d27fcc | 11290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
11291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11292 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11293 | cat >>confdefs.h <<_ACEOF |
98418dba | 11294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11295 | _ACEOF |
ba4481b5 | 11296 | |
ba4481b5 | 11297 | fi |
98418dba | 11298 | done |
ba4481b5 | 11299 | |
c0d27fcc MR |
11300 | |
11301 | ||
98418dba CW |
11302 | for ac_header in sys/un.h |
11303 | do | |
11304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
11307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11310 | fi |
11311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 11313 | else |
c0d27fcc MR |
11314 | # Is the header compilable? |
11315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11317 | cat >conftest.$ac_ext <<_ACEOF | |
11318 | #line $LINENO "configure" | |
cd958eb3 MB |
11319 | /* confdefs.h. */ |
11320 | _ACEOF | |
11321 | cat confdefs.h >>conftest.$ac_ext | |
11322 | cat >>conftest.$ac_ext <<_ACEOF | |
11323 | /* end confdefs.h. */ | |
c0d27fcc MR |
11324 | $ac_includes_default |
11325 | #include <$ac_header> | |
11326 | _ACEOF | |
11327 | rm -f conftest.$ac_objext | |
11328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11329 | (eval $ac_compile) 2>&5 | |
11330 | ac_status=$? | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); } && | |
11333 | { ac_try='test -s conftest.$ac_objext' | |
11334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11335 | (eval $ac_try) 2>&5 | |
11336 | ac_status=$? | |
11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11338 | (exit $ac_status); }; }; then | |
11339 | ac_header_compiler=yes | |
11340 | else | |
11341 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11342 | sed 's/^/| /' conftest.$ac_ext >&5 |
11343 | ||
c0d27fcc MR |
11344 | ac_header_compiler=no |
11345 | fi | |
11346 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11348 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11349 | ||
11350 | # Is the header present? | |
11351 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11352 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11353 | cat >conftest.$ac_ext <<_ACEOF | |
11354 | #line $LINENO "configure" | |
cd958eb3 MB |
11355 | /* confdefs.h. */ |
11356 | _ACEOF | |
11357 | cat confdefs.h >>conftest.$ac_ext | |
11358 | cat >>conftest.$ac_ext <<_ACEOF | |
11359 | /* end confdefs.h. */ | |
98418dba | 11360 | #include <$ac_header> |
503d2be0 | 11361 | _ACEOF |
c0d27fcc | 11362 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11363 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11364 | ac_status=$? | |
6bae0ccf | 11365 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11366 | rm -f conftest.er1 |
11367 | cat conftest.err >&5 | |
c0d27fcc | 11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11369 | (exit $ac_status); } >/dev/null; then |
11370 | if test -s conftest.err; then | |
11371 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11372 | else | |
11373 | ac_cpp_err= | |
11374 | fi | |
11375 | else | |
11376 | ac_cpp_err=yes | |
11377 | fi | |
11378 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11379 | ac_header_preproc=yes |
ba4481b5 | 11380 | else |
503d2be0 | 11381 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
11382 | sed 's/^/| /' conftest.$ac_ext >&5 |
11383 | ||
c0d27fcc | 11384 | ac_header_preproc=no |
ba4481b5 | 11385 | fi |
503d2be0 | 11386 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11388 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11389 | ||
11390 | # So? What about this header? | |
11391 | case $ac_header_compiler:$ac_header_preproc in | |
11392 | yes:no ) | |
11393 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11394 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11396 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11397 | ( | |
11398 | cat <<\_ASBOX | |
11399 | ## ------------------------------------ ## | |
11400 | ## Report this to bug-autoconf@gnu.org. ## | |
11401 | ## ------------------------------------ ## | |
11402 | _ASBOX | |
11403 | ) | | |
11404 | sed "s/^/$as_me: WARNING: /" >&2 | |
11405 | ;; | |
c0d27fcc MR |
11406 | no:yes ) |
11407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11412 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11413 | ( | |
11414 | cat <<\_ASBOX | |
11415 | ## ------------------------------------ ## | |
11416 | ## Report this to bug-autoconf@gnu.org. ## | |
11417 | ## ------------------------------------ ## | |
11418 | _ASBOX | |
11419 | ) | | |
11420 | sed "s/^/$as_me: WARNING: /" >&2 | |
11421 | ;; | |
c0d27fcc MR |
11422 | esac |
11423 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11424 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11425 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11427 | else | |
11428 | eval "$as_ac_Header=$ac_header_preproc" | |
ba4481b5 | 11429 | fi |
c0d27fcc | 11430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 11431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11432 | |
11433 | fi | |
925c2f3f | 11434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11435 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 11436 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11437 | _ACEOF |
503d2be0 | 11438 | |
925c2f3f | 11439 | fi |
c0d27fcc | 11440 | |
925c2f3f EZ |
11441 | done |
11442 | ||
c0d27fcc MR |
11443 | |
11444 | ||
11445 | ||
925c2f3f EZ |
11446 | for ac_header in sys/time.h unistd.h |
11447 | do | |
11448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
11451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11454 | fi |
11455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 11457 | else |
c0d27fcc MR |
11458 | # Is the header compilable? |
11459 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11460 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11461 | cat >conftest.$ac_ext <<_ACEOF | |
11462 | #line $LINENO "configure" | |
cd958eb3 MB |
11463 | /* confdefs.h. */ |
11464 | _ACEOF | |
11465 | cat confdefs.h >>conftest.$ac_ext | |
11466 | cat >>conftest.$ac_ext <<_ACEOF | |
11467 | /* end confdefs.h. */ | |
c0d27fcc MR |
11468 | $ac_includes_default |
11469 | #include <$ac_header> | |
11470 | _ACEOF | |
11471 | rm -f conftest.$ac_objext | |
11472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11473 | (eval $ac_compile) 2>&5 | |
11474 | ac_status=$? | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); } && | |
11477 | { ac_try='test -s conftest.$ac_objext' | |
11478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11479 | (eval $ac_try) 2>&5 | |
11480 | ac_status=$? | |
11481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11482 | (exit $ac_status); }; }; then | |
11483 | ac_header_compiler=yes | |
11484 | else | |
11485 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11486 | sed 's/^/| /' conftest.$ac_ext >&5 |
11487 | ||
c0d27fcc MR |
11488 | ac_header_compiler=no |
11489 | fi | |
11490 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11491 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11492 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11493 | ||
11494 | # Is the header present? | |
11495 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11496 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11497 | cat >conftest.$ac_ext <<_ACEOF | |
11498 | #line $LINENO "configure" | |
cd958eb3 MB |
11499 | /* confdefs.h. */ |
11500 | _ACEOF | |
11501 | cat confdefs.h >>conftest.$ac_ext | |
11502 | cat >>conftest.$ac_ext <<_ACEOF | |
11503 | /* end confdefs.h. */ | |
98418dba | 11504 | #include <$ac_header> |
503d2be0 | 11505 | _ACEOF |
c0d27fcc | 11506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11508 | ac_status=$? | |
6bae0ccf | 11509 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11510 | rm -f conftest.er1 |
11511 | cat conftest.err >&5 | |
c0d27fcc | 11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11513 | (exit $ac_status); } >/dev/null; then |
11514 | if test -s conftest.err; then | |
11515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11516 | else | |
11517 | ac_cpp_err= | |
11518 | fi | |
11519 | else | |
11520 | ac_cpp_err=yes | |
11521 | fi | |
11522 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11523 | ac_header_preproc=yes |
98418dba CW |
11524 | else |
11525 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11526 | sed 's/^/| /' conftest.$ac_ext >&5 |
11527 | ||
c0d27fcc | 11528 | ac_header_preproc=no |
98418dba CW |
11529 | fi |
11530 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11531 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11532 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11533 | ||
11534 | # So? What about this header? | |
11535 | case $ac_header_compiler:$ac_header_preproc in | |
11536 | yes:no ) | |
11537 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11538 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11541 | ( | |
11542 | cat <<\_ASBOX | |
11543 | ## ------------------------------------ ## | |
11544 | ## Report this to bug-autoconf@gnu.org. ## | |
11545 | ## ------------------------------------ ## | |
11546 | _ASBOX | |
11547 | ) | | |
11548 | sed "s/^/$as_me: WARNING: /" >&2 | |
11549 | ;; | |
c0d27fcc MR |
11550 | no:yes ) |
11551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
11556 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11557 | ( | |
11558 | cat <<\_ASBOX | |
11559 | ## ------------------------------------ ## | |
11560 | ## Report this to bug-autoconf@gnu.org. ## | |
11561 | ## ------------------------------------ ## | |
11562 | _ASBOX | |
11563 | ) | | |
11564 | sed "s/^/$as_me: WARNING: /" >&2 | |
11565 | ;; | |
c0d27fcc MR |
11566 | esac |
11567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11571 | else | |
11572 | eval "$as_ac_Header=$ac_header_preproc" | |
ffe36136 | 11573 | fi |
c0d27fcc | 11574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 11575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11576 | |
11577 | fi | |
98418dba | 11578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11579 | cat >>confdefs.h <<_ACEOF |
98418dba | 11580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11581 | _ACEOF |
98418dba CW |
11582 | |
11583 | fi | |
c0d27fcc | 11584 | |
98418dba CW |
11585 | done |
11586 | ||
c0d27fcc | 11587 | |
98418dba CW |
11588 | for ac_func in alarm |
11589 | do | |
11590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11595 | else |
98418dba | 11596 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 11597 | #line $LINENO "configure" |
cd958eb3 MB |
11598 | /* confdefs.h. */ |
11599 | _ACEOF | |
11600 | cat confdefs.h >>conftest.$ac_ext | |
11601 | cat >>conftest.$ac_ext <<_ACEOF | |
11602 | /* end confdefs.h. */ | |
98418dba | 11603 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
11604 | which can conflict with char $ac_func (); below. |
11605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11606 | <limits.h> exists even on freestanding compilers. */ | |
11607 | #ifdef __STDC__ | |
11608 | # include <limits.h> | |
11609 | #else | |
11610 | # include <assert.h> | |
11611 | #endif | |
ba4481b5 | 11612 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11613 | #ifdef __cplusplus |
11614 | extern "C" | |
cd958eb3 | 11615 | { |
503d2be0 | 11616 | #endif |
ba4481b5 | 11617 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11618 | builtin and then its argument prototype would still apply. */ |
98418dba | 11619 | char $ac_func (); |
98418dba CW |
11620 | /* The GNU C library defines this for functions which it implements |
11621 | to always fail with ENOSYS. Some functions are actually named | |
11622 | something starting with __ and the normal name is an alias. */ | |
11623 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11624 | choke me | |
11625 | #else | |
cd958eb3 MB |
11626 | char (*f) () = $ac_func; |
11627 | #endif | |
11628 | #ifdef __cplusplus | |
11629 | } | |
98418dba CW |
11630 | #endif |
11631 | ||
cd958eb3 MB |
11632 | int |
11633 | main () | |
11634 | { | |
9e71690e | 11635 | return f != $ac_func; |
503d2be0 AS |
11636 | ; |
11637 | return 0; | |
11638 | } | |
11639 | _ACEOF | |
11640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11642 | (eval $ac_link) 2>&5 |
11643 | ac_status=$? | |
c0d27fcc | 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11645 | (exit $ac_status); } && |
11646 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11648 | (eval $ac_try) 2>&5 |
11649 | ac_status=$? | |
c0d27fcc | 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11651 | (exit $ac_status); }; }; then |
98418dba | 11652 | eval "$as_ac_var=yes" |
503d2be0 AS |
11653 | else |
11654 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11655 | sed 's/^/| /' conftest.$ac_ext >&5 |
11656 | ||
98418dba | 11657 | eval "$as_ac_var=no" |
503d2be0 AS |
11658 | fi |
11659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 11660 | fi |
c0d27fcc | 11661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
11662 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11663 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11664 | cat >>confdefs.h <<_ACEOF |
98418dba | 11665 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11666 | _ACEOF |
ffe36136 | 11667 | |
ba4481b5 | 11668 | fi |
98418dba | 11669 | done |
ba4481b5 | 11670 | |
c0d27fcc | 11671 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
11672 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
11673 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
11674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11675 | else | |
11676 | if test "$cross_compiling" = yes; then | |
11677 | ac_cv_func_working_mktime=no | |
11678 | else | |
11679 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 11680 | #line $LINENO "configure" |
cd958eb3 MB |
11681 | /* confdefs.h. */ |
11682 | _ACEOF | |
11683 | cat confdefs.h >>conftest.$ac_ext | |
11684 | cat >>conftest.$ac_ext <<_ACEOF | |
11685 | /* end confdefs.h. */ | |
98418dba CW |
11686 | /* Test program from Paul Eggert and Tony Leneis. */ |
11687 | #if TIME_WITH_SYS_TIME | |
11688 | # include <sys/time.h> | |
11689 | # include <time.h> | |
11690 | #else | |
11691 | # if HAVE_SYS_TIME_H | |
11692 | # include <sys/time.h> | |
11693 | # else | |
11694 | # include <time.h> | |
11695 | # endif | |
11696 | #endif | |
ba4481b5 | 11697 | |
98418dba CW |
11698 | #if HAVE_UNISTD_H |
11699 | # include <unistd.h> | |
11700 | #endif | |
ba4481b5 | 11701 | |
98418dba CW |
11702 | #if !HAVE_ALARM |
11703 | # define alarm(X) /* empty */ | |
11704 | #endif | |
df645f7c | 11705 | |
98418dba CW |
11706 | /* Work around redefinition to rpl_putenv by other config tests. */ |
11707 | #undef putenv | |
df645f7c | 11708 | |
98418dba | 11709 | static time_t time_t_max; |
df645f7c | 11710 | |
98418dba CW |
11711 | /* Values we'll use to set the TZ environment variable. */ |
11712 | static const char *const tz_strings[] = { | |
11713 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
11714 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
11715 | }; | |
11716 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 11717 | |
98418dba CW |
11718 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
11719 | Based on a problem report from Andreas Jaeger. */ | |
11720 | static void | |
11721 | spring_forward_gap () | |
11722 | { | |
11723 | /* glibc (up to about 1998-10-07) failed this test. */ | |
11724 | struct tm tm; | |
11725 | ||
11726 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
11727 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
11728 | on systems that don't support the Olson extension, or don't have the | |
11729 | full zoneinfo tables installed. */ | |
11730 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
11731 | ||
11732 | tm.tm_year = 98; | |
11733 | tm.tm_mon = 3; | |
11734 | tm.tm_mday = 5; | |
11735 | tm.tm_hour = 2; | |
11736 | tm.tm_min = 0; | |
11737 | tm.tm_sec = 0; | |
11738 | tm.tm_isdst = -1; | |
11739 | if (mktime (&tm) == (time_t)-1) | |
11740 | exit (1); | |
11741 | } | |
11742 | ||
11743 | static void | |
11744 | mktime_test (now) | |
11745 | time_t now; | |
11746 | { | |
11747 | struct tm *lt; | |
11748 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
11749 | exit (1); | |
11750 | now = time_t_max - now; | |
11751 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
11752 | exit (1); | |
11753 | } | |
11754 | ||
11755 | static void | |
11756 | irix_6_4_bug () | |
11757 | { | |
11758 | /* Based on code from Ariel Faigon. */ | |
11759 | struct tm tm; | |
11760 | tm.tm_year = 96; | |
11761 | tm.tm_mon = 3; | |
11762 | tm.tm_mday = 0; | |
11763 | tm.tm_hour = 0; | |
11764 | tm.tm_min = 0; | |
11765 | tm.tm_sec = 0; | |
11766 | tm.tm_isdst = -1; | |
11767 | mktime (&tm); | |
11768 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
11769 | exit (1); | |
11770 | } | |
11771 | ||
11772 | static void | |
11773 | bigtime_test (j) | |
11774 | int j; | |
11775 | { | |
11776 | struct tm tm; | |
11777 | time_t now; | |
11778 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
11779 | now = mktime (&tm); | |
11780 | if (now != (time_t) -1) | |
11781 | { | |
11782 | struct tm *lt = localtime (&now); | |
11783 | if (! (lt | |
11784 | && lt->tm_year == tm.tm_year | |
11785 | && lt->tm_mon == tm.tm_mon | |
11786 | && lt->tm_mday == tm.tm_mday | |
11787 | && lt->tm_hour == tm.tm_hour | |
11788 | && lt->tm_min == tm.tm_min | |
11789 | && lt->tm_sec == tm.tm_sec | |
11790 | && lt->tm_yday == tm.tm_yday | |
11791 | && lt->tm_wday == tm.tm_wday | |
11792 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
11793 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
11794 | exit (1); | |
11795 | } | |
11796 | } | |
11797 | ||
11798 | int | |
11799 | main () | |
11800 | { | |
11801 | time_t t, delta; | |
11802 | int i, j; | |
11803 | ||
11804 | /* This test makes some buggy mktime implementations loop. | |
11805 | Give up after 60 seconds; a mktime slower than that | |
11806 | isn't worth using anyway. */ | |
11807 | alarm (60); | |
11808 | ||
11809 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
11810 | continue; | |
11811 | time_t_max--; | |
11812 | delta = time_t_max / 997; /* a suitable prime number */ | |
11813 | for (i = 0; i < N_STRINGS; i++) | |
11814 | { | |
11815 | if (tz_strings[i]) | |
11816 | putenv (tz_strings[i]); | |
503d2be0 | 11817 | |
98418dba CW |
11818 | for (t = 0; t <= time_t_max - delta; t += delta) |
11819 | mktime_test (t); | |
11820 | mktime_test ((time_t) 60 * 60); | |
11821 | mktime_test ((time_t) 60 * 60 * 24); | |
11822 | ||
11823 | for (j = 1; 0 < j; j *= 2) | |
11824 | bigtime_test (j); | |
11825 | bigtime_test (j - 1); | |
11826 | } | |
11827 | irix_6_4_bug (); | |
11828 | spring_forward_gap (); | |
11829 | exit (0); | |
503d2be0 AS |
11830 | } |
11831 | _ACEOF | |
98418dba | 11832 | rm -f conftest$ac_exeext |
c0d27fcc | 11833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11834 | (eval $ac_link) 2>&5 |
11835 | ac_status=$? | |
c0d27fcc | 11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 11838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11839 | (eval $ac_try) 2>&5 |
11840 | ac_status=$? | |
c0d27fcc | 11841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11842 | (exit $ac_status); }; }; then |
98418dba | 11843 | ac_cv_func_working_mktime=yes |
503d2be0 | 11844 | else |
98418dba CW |
11845 | echo "$as_me: program exited with status $ac_status" >&5 |
11846 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11847 | sed 's/^/| /' conftest.$ac_ext >&5 |
11848 | ||
c0d27fcc | 11849 | ( exit $ac_status ) |
98418dba | 11850 | ac_cv_func_working_mktime=no |
503d2be0 | 11851 | fi |
6bae0ccf | 11852 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 11853 | fi |
ba4481b5 | 11854 | fi |
c0d27fcc | 11855 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
11856 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
11857 | if test $ac_cv_func_working_mktime = no; then | |
11858 | LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
ba4481b5 DL |
11859 | fi |
11860 | ||
98418dba | 11861 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 11862 | |
c0d27fcc | 11863 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11864 | #define BROKEN_MKTIME 1 |
c0d27fcc | 11865 | _ACEOF |
ba4481b5 | 11866 | |
ba4481b5 | 11867 | fi |
503d2be0 | 11868 | |
98418dba CW |
11869 | ac_have_func=no # yes means we've found a way to get the load average. |
11870 | ||
6bae0ccf DL |
11871 | # Make sure getloadavg.c is where it belongs, at configure-time. |
11872 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
11873 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
11874 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
11875 | { (exit 1); exit 1; }; } | |
11876 | ||
98418dba CW |
11877 | ac_save_LIBS=$LIBS |
11878 | ||
11879 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 11880 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
11881 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
11882 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 11883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11884 | else |
503d2be0 | 11885 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 11886 | #line $LINENO "configure" |
cd958eb3 MB |
11887 | /* confdefs.h. */ |
11888 | _ACEOF | |
11889 | cat confdefs.h >>conftest.$ac_ext | |
11890 | cat >>conftest.$ac_ext <<_ACEOF | |
11891 | /* end confdefs.h. */ | |
98418dba | 11892 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
11893 | which can conflict with char getloadavg (); below. |
11894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11895 | <limits.h> exists even on freestanding compilers. */ | |
11896 | #ifdef __STDC__ | |
11897 | # include <limits.h> | |
11898 | #else | |
11899 | # include <assert.h> | |
11900 | #endif | |
ba4481b5 | 11901 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11902 | #ifdef __cplusplus |
11903 | extern "C" | |
cd958eb3 | 11904 | { |
503d2be0 | 11905 | #endif |
ba4481b5 | 11906 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11907 | builtin and then its argument prototype would still apply. */ |
98418dba | 11908 | char getloadavg (); |
98418dba CW |
11909 | /* The GNU C library defines this for functions which it implements |
11910 | to always fail with ENOSYS. Some functions are actually named | |
11911 | something starting with __ and the normal name is an alias. */ | |
11912 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
11913 | choke me | |
11914 | #else | |
cd958eb3 | 11915 | char (*f) () = getloadavg; |
98418dba | 11916 | #endif |
cd958eb3 MB |
11917 | #ifdef __cplusplus |
11918 | } | |
11919 | #endif | |
11920 | ||
11921 | int | |
11922 | main () | |
11923 | { | |
9e71690e | 11924 | return f != getloadavg; |
503d2be0 AS |
11925 | ; |
11926 | return 0; | |
11927 | } | |
11928 | _ACEOF | |
11929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11931 | (eval $ac_link) 2>&5 |
11932 | ac_status=$? | |
c0d27fcc | 11933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11934 | (exit $ac_status); } && |
11935 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11937 | (eval $ac_try) 2>&5 |
11938 | ac_status=$? | |
c0d27fcc | 11939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11940 | (exit $ac_status); }; }; then |
98418dba | 11941 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
11942 | else |
11943 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
11944 | sed 's/^/| /' conftest.$ac_ext >&5 |
11945 | ||
98418dba | 11946 | ac_cv_func_getloadavg=no |
503d2be0 AS |
11947 | fi |
11948 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 11949 | fi |
c0d27fcc | 11950 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
11951 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
11952 | if test $ac_cv_func_getloadavg = yes; then | |
11953 | exit 0 | |
11954 | else | |
11955 | exit 1 | |
ba4481b5 | 11956 | fi |
98418dba | 11957 | ) && ac_have_func=yes |
ba4481b5 | 11958 | |
98418dba | 11959 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 11960 | |
98418dba CW |
11961 | for ac_func in pstat_getdynamic |
11962 | do | |
11963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11966 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11968 | else |
503d2be0 | 11969 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 11970 | #line $LINENO "configure" |
cd958eb3 MB |
11971 | /* confdefs.h. */ |
11972 | _ACEOF | |
11973 | cat confdefs.h >>conftest.$ac_ext | |
11974 | cat >>conftest.$ac_ext <<_ACEOF | |
11975 | /* end confdefs.h. */ | |
98418dba | 11976 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
11977 | which can conflict with char $ac_func (); below. |
11978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11979 | <limits.h> exists even on freestanding compilers. */ | |
11980 | #ifdef __STDC__ | |
11981 | # include <limits.h> | |
11982 | #else | |
11983 | # include <assert.h> | |
11984 | #endif | |
ba4481b5 | 11985 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11986 | #ifdef __cplusplus |
11987 | extern "C" | |
cd958eb3 | 11988 | { |
503d2be0 | 11989 | #endif |
ba4481b5 | 11990 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11991 | builtin and then its argument prototype would still apply. */ |
98418dba | 11992 | char $ac_func (); |
98418dba CW |
11993 | /* The GNU C library defines this for functions which it implements |
11994 | to always fail with ENOSYS. Some functions are actually named | |
11995 | something starting with __ and the normal name is an alias. */ | |
11996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11997 | choke me | |
11998 | #else | |
cd958eb3 MB |
11999 | char (*f) () = $ac_func; |
12000 | #endif | |
12001 | #ifdef __cplusplus | |
12002 | } | |
98418dba CW |
12003 | #endif |
12004 | ||
cd958eb3 MB |
12005 | int |
12006 | main () | |
12007 | { | |
9e71690e | 12008 | return f != $ac_func; |
98418dba CW |
12009 | ; |
12010 | return 0; | |
12011 | } | |
f21fadcc | 12012 | _ACEOF |
98418dba | 12013 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 12014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 12015 | (eval $ac_link) 2>&5 |
f21fadcc | 12016 | ac_status=$? |
c0d27fcc | 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12018 | (exit $ac_status); } && |
12019 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
12021 | (eval $ac_try) 2>&5 |
12022 | ac_status=$? | |
c0d27fcc | 12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12024 | (exit $ac_status); }; }; then |
12025 | eval "$as_ac_var=yes" | |
f21fadcc JD |
12026 | else |
12027 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12028 | sed 's/^/| /' conftest.$ac_ext >&5 |
12029 | ||
98418dba | 12030 | eval "$as_ac_var=no" |
f21fadcc | 12031 | fi |
98418dba | 12032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 12033 | fi |
c0d27fcc | 12034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
12035 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12036 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 12037 | cat >>confdefs.h <<_ACEOF |
98418dba | 12038 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 12039 | _ACEOF |
98418dba CW |
12040 | |
12041 | fi | |
12042 | done | |
12043 | ||
c0d27fcc | 12044 | |
98418dba CW |
12045 | # Solaris has libkstat which does not require root. |
12046 | ||
c0d27fcc | 12047 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
12048 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
12049 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
12050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12051 | else | |
12052 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 12053 | LIBS="-lkstat $LIBS" |
f21fadcc | 12054 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 12055 | #line $LINENO "configure" |
cd958eb3 MB |
12056 | /* confdefs.h. */ |
12057 | _ACEOF | |
12058 | cat confdefs.h >>conftest.$ac_ext | |
12059 | cat >>conftest.$ac_ext <<_ACEOF | |
12060 | /* end confdefs.h. */ | |
f21fadcc JD |
12061 | |
12062 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12063 | #ifdef __cplusplus | |
12064 | extern "C" | |
12065 | #endif | |
12066 | /* We use char because int might match the return type of a gcc2 | |
12067 | builtin and then its argument prototype would still apply. */ | |
98418dba | 12068 | char kstat_open (); |
f21fadcc JD |
12069 | int |
12070 | main () | |
12071 | { | |
98418dba | 12072 | kstat_open (); |
f21fadcc JD |
12073 | ; |
12074 | return 0; | |
12075 | } | |
12076 | _ACEOF | |
12077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f21fadcc JD |
12079 | (eval $ac_link) 2>&5 |
12080 | ac_status=$? | |
c0d27fcc | 12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc JD |
12082 | (exit $ac_status); } && |
12083 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
12085 | (eval $ac_try) 2>&5 |
12086 | ac_status=$? | |
c0d27fcc | 12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 12088 | (exit $ac_status); }; }; then |
98418dba | 12089 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
12090 | else |
12091 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12092 | sed 's/^/| /' conftest.$ac_ext >&5 |
12093 | ||
98418dba | 12094 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc JD |
12095 | fi |
12096 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12097 | LIBS=$ac_check_lib_save_LIBS | |
12098 | fi | |
c0d27fcc | 12099 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
12100 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
12101 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 12102 | cat >>confdefs.h <<_ACEOF |
98418dba | 12103 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 12104 | _ACEOF |
f21fadcc | 12105 | |
98418dba | 12106 | LIBS="-lkstat $LIBS" |
f21fadcc | 12107 | |
f21fadcc JD |
12108 | fi |
12109 | ||
98418dba CW |
12110 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
12111 | ||
12112 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
12113 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
12114 | # to get the right answer into the cache. | |
12115 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
12116 | if test $ac_have_func = no; then | |
c0d27fcc | 12117 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
12118 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
12119 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12121 | else |
98418dba CW |
12122 | ac_check_lib_save_LIBS=$LIBS |
12123 | LIBS="-lelf $LIBS" | |
12124 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 12125 | #line $LINENO "configure" |
cd958eb3 MB |
12126 | /* confdefs.h. */ |
12127 | _ACEOF | |
12128 | cat confdefs.h >>conftest.$ac_ext | |
12129 | cat >>conftest.$ac_ext <<_ACEOF | |
12130 | /* end confdefs.h. */ | |
98418dba CW |
12131 | |
12132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12133 | #ifdef __cplusplus | |
12134 | extern "C" | |
12135 | #endif | |
12136 | /* We use char because int might match the return type of a gcc2 | |
12137 | builtin and then its argument prototype would still apply. */ | |
12138 | char elf_begin (); | |
503d2be0 AS |
12139 | int |
12140 | main () | |
12141 | { | |
98418dba | 12142 | elf_begin (); |
503d2be0 AS |
12143 | ; |
12144 | return 0; | |
12145 | } | |
12146 | _ACEOF | |
12147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12149 | (eval $ac_link) 2>&5 |
12150 | ac_status=$? | |
c0d27fcc | 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12152 | (exit $ac_status); } && |
12153 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12155 | (eval $ac_try) 2>&5 |
12156 | ac_status=$? | |
c0d27fcc | 12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12158 | (exit $ac_status); }; }; then |
98418dba | 12159 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 12160 | else |
503d2be0 | 12161 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
12162 | sed 's/^/| /' conftest.$ac_ext >&5 |
12163 | ||
98418dba | 12164 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 12165 | fi |
503d2be0 | 12166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 12167 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12168 | fi |
c0d27fcc | 12169 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
12170 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
12171 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
12172 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
12173 | fi |
12174 | ||
98418dba CW |
12175 | fi |
12176 | if test $ac_have_func = no; then | |
c0d27fcc | 12177 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
12178 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
12179 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 12180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12181 | else |
98418dba CW |
12182 | ac_check_lib_save_LIBS=$LIBS |
12183 | LIBS="-lkvm $LIBS" | |
12184 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 12185 | #line $LINENO "configure" |
cd958eb3 MB |
12186 | /* confdefs.h. */ |
12187 | _ACEOF | |
12188 | cat confdefs.h >>conftest.$ac_ext | |
12189 | cat >>conftest.$ac_ext <<_ACEOF | |
12190 | /* end confdefs.h. */ | |
98418dba CW |
12191 | |
12192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12193 | #ifdef __cplusplus | |
12194 | extern "C" | |
12195 | #endif | |
12196 | /* We use char because int might match the return type of a gcc2 | |
12197 | builtin and then its argument prototype would still apply. */ | |
12198 | char kvm_open (); | |
503d2be0 AS |
12199 | int |
12200 | main () | |
12201 | { | |
98418dba | 12202 | kvm_open (); |
503d2be0 AS |
12203 | ; |
12204 | return 0; | |
12205 | } | |
12206 | _ACEOF | |
12207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12209 | (eval $ac_link) 2>&5 |
12210 | ac_status=$? | |
c0d27fcc | 12211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12212 | (exit $ac_status); } && |
12213 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12215 | (eval $ac_try) 2>&5 |
12216 | ac_status=$? | |
c0d27fcc | 12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12218 | (exit $ac_status); }; }; then |
98418dba | 12219 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
12220 | else |
12221 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12222 | sed 's/^/| /' conftest.$ac_ext >&5 |
12223 | ||
98418dba | 12224 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 AS |
12225 | fi |
12226 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12227 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 12228 | fi |
c0d27fcc | 12229 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
12230 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
12231 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
12232 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
12233 | fi |
12234 | ||
98418dba | 12235 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 12236 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
12237 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
12238 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12240 | else |
98418dba CW |
12241 | ac_check_lib_save_LIBS=$LIBS |
12242 | LIBS="-lutil $LIBS" | |
12243 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 12244 | #line $LINENO "configure" |
cd958eb3 MB |
12245 | /* confdefs.h. */ |
12246 | _ACEOF | |
12247 | cat confdefs.h >>conftest.$ac_ext | |
12248 | cat >>conftest.$ac_ext <<_ACEOF | |
12249 | /* end confdefs.h. */ | |
98418dba CW |
12250 | |
12251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12252 | #ifdef __cplusplus | |
12253 | extern "C" | |
12254 | #endif | |
12255 | /* We use char because int might match the return type of a gcc2 | |
12256 | builtin and then its argument prototype would still apply. */ | |
12257 | char getloadavg (); | |
503d2be0 AS |
12258 | int |
12259 | main () | |
12260 | { | |
98418dba | 12261 | getloadavg (); |
503d2be0 AS |
12262 | ; |
12263 | return 0; | |
12264 | } | |
12265 | _ACEOF | |
12266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12268 | (eval $ac_link) 2>&5 |
12269 | ac_status=$? | |
c0d27fcc | 12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12271 | (exit $ac_status); } && |
12272 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12274 | (eval $ac_try) 2>&5 |
12275 | ac_status=$? | |
c0d27fcc | 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12277 | (exit $ac_status); }; }; then |
98418dba | 12278 | ac_cv_lib_util_getloadavg=yes |
ba4481b5 | 12279 | else |
503d2be0 | 12280 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
12282 | ||
98418dba | 12283 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 12284 | fi |
503d2be0 | 12285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12286 | LIBS=$ac_check_lib_save_LIBS |
12287 | fi | |
c0d27fcc | 12288 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
12289 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
12290 | if test $ac_cv_lib_util_getloadavg = yes; then | |
12291 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 12292 | fi |
503d2be0 | 12293 | |
98418dba | 12294 | fi |
ba4481b5 | 12295 | |
98418dba CW |
12296 | if test $ac_have_func = no; then |
12297 | # There is a commonly available library for RS/6000 AIX. | |
12298 | # Since it is not a standard part of AIX, it might be installed locally. | |
12299 | ac_getloadavg_LIBS=$LIBS | |
12300 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 12301 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
12302 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
12303 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 12304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12305 | else |
98418dba CW |
12306 | ac_check_lib_save_LIBS=$LIBS |
12307 | LIBS="-lgetloadavg $LIBS" | |
12308 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 12309 | #line $LINENO "configure" |
cd958eb3 MB |
12310 | /* confdefs.h. */ |
12311 | _ACEOF | |
12312 | cat confdefs.h >>conftest.$ac_ext | |
12313 | cat >>conftest.$ac_ext <<_ACEOF | |
12314 | /* end confdefs.h. */ | |
ba4481b5 | 12315 | |
98418dba CW |
12316 | /* Override any gcc2 internal prototype to avoid an error. */ |
12317 | #ifdef __cplusplus | |
12318 | extern "C" | |
12319 | #endif | |
12320 | /* We use char because int might match the return type of a gcc2 | |
12321 | builtin and then its argument prototype would still apply. */ | |
12322 | char getloadavg (); | |
98418dba CW |
12323 | int |
12324 | main () | |
12325 | { | |
12326 | getloadavg (); | |
12327 | ; | |
12328 | return 0; | |
12329 | } | |
503d2be0 | 12330 | _ACEOF |
98418dba | 12331 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 12332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
12333 | (eval $ac_link) 2>&5 |
12334 | ac_status=$? | |
c0d27fcc | 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12336 | (exit $ac_status); } && |
12337 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
12339 | (eval $ac_try) 2>&5 |
12340 | ac_status=$? | |
c0d27fcc | 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12342 | (exit $ac_status); }; }; then |
12343 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 12344 | else |
98418dba | 12345 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
12346 | sed 's/^/| /' conftest.$ac_ext >&5 |
12347 | ||
98418dba CW |
12348 | ac_cv_lib_getloadavg_getloadavg=no |
12349 | fi | |
12350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12351 | LIBS=$ac_check_lib_save_LIBS | |
12352 | fi | |
c0d27fcc | 12353 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
12354 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
12355 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
12356 | LIBS="-lgetloadavg $LIBS" | |
12357 | else | |
12358 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 12359 | fi |
ba4481b5 DL |
12360 | |
12361 | fi | |
98418dba CW |
12362 | |
12363 | # Make sure it is really in the library, if we think we found it, | |
12364 | # otherwise set up the replacement function. | |
12365 | ||
12366 | for ac_func in getloadavg | |
12367 | do | |
12368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12371 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 12373 | else |
503d2be0 | 12374 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 12375 | #line $LINENO "configure" |
cd958eb3 MB |
12376 | /* confdefs.h. */ |
12377 | _ACEOF | |
12378 | cat confdefs.h >>conftest.$ac_ext | |
12379 | cat >>conftest.$ac_ext <<_ACEOF | |
12380 | /* end confdefs.h. */ | |
ba4481b5 | 12381 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
12382 | which can conflict with char $ac_func (); below. |
12383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12384 | <limits.h> exists even on freestanding compilers. */ | |
12385 | #ifdef __STDC__ | |
12386 | # include <limits.h> | |
12387 | #else | |
12388 | # include <assert.h> | |
12389 | #endif | |
ba4481b5 | 12390 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12391 | #ifdef __cplusplus |
12392 | extern "C" | |
cd958eb3 | 12393 | { |
503d2be0 | 12394 | #endif |
ba4481b5 | 12395 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12396 | builtin and then its argument prototype would still apply. */ |
12397 | char $ac_func (); | |
ba4481b5 DL |
12398 | /* The GNU C library defines this for functions which it implements |
12399 | to always fail with ENOSYS. Some functions are actually named | |
12400 | something starting with __ and the normal name is an alias. */ | |
12401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12402 | choke me | |
12403 | #else | |
cd958eb3 | 12404 | char (*f) () = $ac_func; |
ba4481b5 | 12405 | #endif |
cd958eb3 MB |
12406 | #ifdef __cplusplus |
12407 | } | |
12408 | #endif | |
12409 | ||
12410 | int | |
12411 | main () | |
12412 | { | |
9e71690e | 12413 | return f != $ac_func; |
503d2be0 AS |
12414 | ; |
12415 | return 0; | |
12416 | } | |
12417 | _ACEOF | |
12418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12420 | (eval $ac_link) 2>&5 |
12421 | ac_status=$? | |
c0d27fcc | 12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12423 | (exit $ac_status); } && |
12424 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12426 | (eval $ac_try) 2>&5 |
12427 | ac_status=$? | |
c0d27fcc | 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12429 | (exit $ac_status); }; }; then |
12430 | eval "$as_ac_var=yes" | |
12431 | else | |
12432 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12433 | sed 's/^/| /' conftest.$ac_ext >&5 |
12434 | ||
503d2be0 AS |
12435 | eval "$as_ac_var=no" |
12436 | fi | |
12437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12438 | fi | |
c0d27fcc | 12439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12440 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12441 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 12442 | cat >>confdefs.h <<_ACEOF |
98418dba | 12443 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 12444 | _ACEOF |
503d2be0 | 12445 | |
98418dba CW |
12446 | else |
12447 | LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
ba4481b5 | 12448 | |
c0d27fcc | 12449 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12450 | #define C_GETLOADAVG 1 |
c0d27fcc | 12451 | _ACEOF |
ba4481b5 | 12452 | |
98418dba CW |
12453 | # Figure out what our getloadavg.c needs. |
12454 | ac_have_func=no | |
c0d27fcc MR |
12455 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
12456 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
12457 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
12458 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 12459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
12460 | fi |
12461 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
12462 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 12463 | else |
c0d27fcc MR |
12464 | # Is the header compilable? |
12465 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
12466 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
12467 | cat >conftest.$ac_ext <<_ACEOF | |
12468 | #line $LINENO "configure" | |
cd958eb3 MB |
12469 | /* confdefs.h. */ |
12470 | _ACEOF | |
12471 | cat confdefs.h >>conftest.$ac_ext | |
12472 | cat >>conftest.$ac_ext <<_ACEOF | |
12473 | /* end confdefs.h. */ | |
c0d27fcc MR |
12474 | $ac_includes_default |
12475 | #include <sys/dg_sys_info.h> | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext | |
12478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12479 | (eval $ac_compile) 2>&5 | |
12480 | ac_status=$? | |
12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12482 | (exit $ac_status); } && | |
12483 | { ac_try='test -s conftest.$ac_objext' | |
12484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12485 | (eval $ac_try) 2>&5 | |
12486 | ac_status=$? | |
12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12488 | (exit $ac_status); }; }; then | |
12489 | ac_header_compiler=yes | |
12490 | else | |
12491 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12492 | sed 's/^/| /' conftest.$ac_ext >&5 |
12493 | ||
c0d27fcc MR |
12494 | ac_header_compiler=no |
12495 | fi | |
12496 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12497 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12498 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12499 | ||
12500 | # Is the header present? | |
12501 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
12502 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
12503 | cat >conftest.$ac_ext <<_ACEOF | |
12504 | #line $LINENO "configure" | |
cd958eb3 MB |
12505 | /* confdefs.h. */ |
12506 | _ACEOF | |
12507 | cat confdefs.h >>conftest.$ac_ext | |
12508 | cat >>conftest.$ac_ext <<_ACEOF | |
12509 | /* end confdefs.h. */ | |
98418dba CW |
12510 | #include <sys/dg_sys_info.h> |
12511 | _ACEOF | |
c0d27fcc | 12512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12514 | ac_status=$? | |
6bae0ccf | 12515 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12516 | rm -f conftest.er1 |
12517 | cat conftest.err >&5 | |
c0d27fcc | 12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12519 | (exit $ac_status); } >/dev/null; then |
12520 | if test -s conftest.err; then | |
12521 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12522 | else | |
12523 | ac_cpp_err= | |
12524 | fi | |
12525 | else | |
12526 | ac_cpp_err=yes | |
ba4481b5 | 12527 | fi |
98418dba | 12528 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12529 | ac_header_preproc=yes |
98418dba CW |
12530 | else |
12531 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12532 | sed 's/^/| /' conftest.$ac_ext >&5 |
12533 | ||
c0d27fcc | 12534 | ac_header_preproc=no |
ba4481b5 | 12535 | fi |
98418dba | 12536 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
12537 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12538 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12539 | ||
12540 | # So? What about this header? | |
12541 | case $ac_header_compiler:$ac_header_preproc in | |
12542 | yes:no ) | |
12543 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12544 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12545 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12546 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
12547 | ( | |
12548 | cat <<\_ASBOX | |
12549 | ## ------------------------------------ ## | |
12550 | ## Report this to bug-autoconf@gnu.org. ## | |
12551 | ## ------------------------------------ ## | |
12552 | _ASBOX | |
12553 | ) | | |
12554 | sed "s/^/$as_me: WARNING: /" >&2 | |
12555 | ;; | |
c0d27fcc MR |
12556 | no:yes ) |
12557 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
12558 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
12559 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
12560 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
12561 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12562 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
12563 | ( | |
12564 | cat <<\_ASBOX | |
12565 | ## ------------------------------------ ## | |
12566 | ## Report this to bug-autoconf@gnu.org. ## | |
12567 | ## ------------------------------------ ## | |
12568 | _ASBOX | |
12569 | ) | | |
12570 | sed "s/^/$as_me: WARNING: /" >&2 | |
12571 | ;; | |
c0d27fcc MR |
12572 | esac |
12573 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
12574 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
12575 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12577 | else | |
12578 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 12579 | fi |
c0d27fcc | 12580 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 12581 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
12582 | |
12583 | fi | |
98418dba CW |
12584 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
12585 | ac_have_func=yes | |
ba4481b5 | 12586 | |
c0d27fcc | 12587 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12588 | #define DGUX 1 |
c0d27fcc MR |
12589 | _ACEOF |
12590 | ||
503d2be0 | 12591 | |
c0d27fcc | 12592 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
12593 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
12594 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12596 | else |
503d2be0 | 12597 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 12598 | LIBS="-ldgc $LIBS" |
503d2be0 | 12599 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 12600 | #line $LINENO "configure" |
cd958eb3 MB |
12601 | /* confdefs.h. */ |
12602 | _ACEOF | |
12603 | cat confdefs.h >>conftest.$ac_ext | |
12604 | cat >>conftest.$ac_ext <<_ACEOF | |
12605 | /* end confdefs.h. */ | |
503d2be0 | 12606 | |
ba4481b5 | 12607 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12608 | #ifdef __cplusplus |
12609 | extern "C" | |
12610 | #endif | |
ba4481b5 | 12611 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12612 | builtin and then its argument prototype would still apply. */ |
98418dba | 12613 | char dg_sys_info (); |
503d2be0 AS |
12614 | int |
12615 | main () | |
12616 | { | |
98418dba | 12617 | dg_sys_info (); |
503d2be0 AS |
12618 | ; |
12619 | return 0; | |
12620 | } | |
12621 | _ACEOF | |
12622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12624 | (eval $ac_link) 2>&5 |
12625 | ac_status=$? | |
c0d27fcc | 12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12627 | (exit $ac_status); } && |
12628 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12630 | (eval $ac_try) 2>&5 |
12631 | ac_status=$? | |
c0d27fcc | 12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12633 | (exit $ac_status); }; }; then |
98418dba | 12634 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
12635 | else |
12636 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12637 | sed 's/^/| /' conftest.$ac_ext >&5 |
12638 | ||
98418dba | 12639 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 AS |
12640 | fi |
12641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12642 | LIBS=$ac_check_lib_save_LIBS | |
12643 | fi | |
c0d27fcc | 12644 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
12645 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
12646 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 12647 | cat >>confdefs.h <<_ACEOF |
98418dba | 12648 | #define HAVE_LIBDGC 1 |
c0d27fcc | 12649 | _ACEOF |
ba4481b5 | 12650 | |
98418dba | 12651 | LIBS="-ldgc $LIBS" |
ba4481b5 | 12652 | |
ba4481b5 DL |
12653 | fi |
12654 | ||
98418dba | 12655 | fi |
503d2be0 | 12656 | |
c0d27fcc MR |
12657 | |
12658 | ||
12659 | if test "${ac_cv_header_locale_h+set}" = set; then | |
12660 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
12661 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
12662 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
12664 | fi |
12665 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
12666 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 12667 | else |
c0d27fcc MR |
12668 | # Is the header compilable? |
12669 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
12670 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
12671 | cat >conftest.$ac_ext <<_ACEOF | |
12672 | #line $LINENO "configure" | |
cd958eb3 MB |
12673 | /* confdefs.h. */ |
12674 | _ACEOF | |
12675 | cat confdefs.h >>conftest.$ac_ext | |
12676 | cat >>conftest.$ac_ext <<_ACEOF | |
12677 | /* end confdefs.h. */ | |
c0d27fcc MR |
12678 | $ac_includes_default |
12679 | #include <locale.h> | |
12680 | _ACEOF | |
12681 | rm -f conftest.$ac_objext | |
12682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12683 | (eval $ac_compile) 2>&5 | |
12684 | ac_status=$? | |
12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12686 | (exit $ac_status); } && | |
12687 | { ac_try='test -s conftest.$ac_objext' | |
12688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12689 | (eval $ac_try) 2>&5 | |
12690 | ac_status=$? | |
12691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12692 | (exit $ac_status); }; }; then | |
12693 | ac_header_compiler=yes | |
12694 | else | |
12695 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12696 | sed 's/^/| /' conftest.$ac_ext >&5 |
12697 | ||
c0d27fcc MR |
12698 | ac_header_compiler=no |
12699 | fi | |
12700 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12702 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12703 | ||
12704 | # Is the header present? | |
12705 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
12706 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
12707 | cat >conftest.$ac_ext <<_ACEOF | |
12708 | #line $LINENO "configure" | |
cd958eb3 MB |
12709 | /* confdefs.h. */ |
12710 | _ACEOF | |
12711 | cat confdefs.h >>conftest.$ac_ext | |
12712 | cat >>conftest.$ac_ext <<_ACEOF | |
12713 | /* end confdefs.h. */ | |
98418dba | 12714 | #include <locale.h> |
503d2be0 | 12715 | _ACEOF |
c0d27fcc | 12716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 12717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 12718 | ac_status=$? |
6bae0ccf | 12719 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12720 | rm -f conftest.er1 |
12721 | cat conftest.err >&5 | |
c0d27fcc | 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12723 | (exit $ac_status); } >/dev/null; then |
12724 | if test -s conftest.err; then | |
12725 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12726 | else | |
12727 | ac_cpp_err= | |
12728 | fi | |
503d2be0 | 12729 | else |
98418dba | 12730 | ac_cpp_err=yes |
503d2be0 | 12731 | fi |
98418dba | 12732 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12733 | ac_header_preproc=yes |
98418dba CW |
12734 | else |
12735 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12736 | sed 's/^/| /' conftest.$ac_ext >&5 |
12737 | ||
c0d27fcc | 12738 | ac_header_preproc=no |
ba4481b5 | 12739 | fi |
98418dba | 12740 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
12741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12742 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12743 | ||
12744 | # So? What about this header? | |
12745 | case $ac_header_compiler:$ac_header_preproc in | |
12746 | yes:no ) | |
12747 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12748 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12749 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12750 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
12751 | ( | |
12752 | cat <<\_ASBOX | |
12753 | ## ------------------------------------ ## | |
12754 | ## Report this to bug-autoconf@gnu.org. ## | |
12755 | ## ------------------------------------ ## | |
12756 | _ASBOX | |
12757 | ) | | |
12758 | sed "s/^/$as_me: WARNING: /" >&2 | |
12759 | ;; | |
c0d27fcc MR |
12760 | no:yes ) |
12761 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
12762 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
12763 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
12764 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
12765 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12766 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
12767 | ( | |
12768 | cat <<\_ASBOX | |
12769 | ## ------------------------------------ ## | |
12770 | ## Report this to bug-autoconf@gnu.org. ## | |
12771 | ## ------------------------------------ ## | |
12772 | _ASBOX | |
12773 | ) | | |
12774 | sed "s/^/$as_me: WARNING: /" >&2 | |
12775 | ;; | |
c0d27fcc MR |
12776 | esac |
12777 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
12778 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
12779 | if test "${ac_cv_header_locale_h+set}" = set; then | |
12780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12781 | else | |
12782 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 12783 | fi |
c0d27fcc | 12784 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
12785 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
12786 | ||
c0d27fcc MR |
12787 | fi |
12788 | ||
12789 | ||
12790 | ||
98418dba | 12791 | for ac_func in setlocale |
ba4481b5 | 12792 | do |
503d2be0 | 12793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 12794 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12796 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 12798 | else |
503d2be0 | 12799 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 12800 | #line $LINENO "configure" |
cd958eb3 MB |
12801 | /* confdefs.h. */ |
12802 | _ACEOF | |
12803 | cat confdefs.h >>conftest.$ac_ext | |
12804 | cat >>conftest.$ac_ext <<_ACEOF | |
12805 | /* end confdefs.h. */ | |
ba4481b5 | 12806 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
12807 | which can conflict with char $ac_func (); below. |
12808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12809 | <limits.h> exists even on freestanding compilers. */ | |
12810 | #ifdef __STDC__ | |
12811 | # include <limits.h> | |
12812 | #else | |
12813 | # include <assert.h> | |
12814 | #endif | |
ba4481b5 | 12815 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12816 | #ifdef __cplusplus |
12817 | extern "C" | |
cd958eb3 | 12818 | { |
503d2be0 | 12819 | #endif |
ba4481b5 | 12820 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12821 | builtin and then its argument prototype would still apply. */ |
12822 | char $ac_func (); | |
ba4481b5 DL |
12823 | /* The GNU C library defines this for functions which it implements |
12824 | to always fail with ENOSYS. Some functions are actually named | |
12825 | something starting with __ and the normal name is an alias. */ | |
12826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12827 | choke me | |
12828 | #else | |
cd958eb3 MB |
12829 | char (*f) () = $ac_func; |
12830 | #endif | |
12831 | #ifdef __cplusplus | |
12832 | } | |
ba4481b5 DL |
12833 | #endif |
12834 | ||
cd958eb3 MB |
12835 | int |
12836 | main () | |
12837 | { | |
9e71690e | 12838 | return f != $ac_func; |
503d2be0 AS |
12839 | ; |
12840 | return 0; | |
12841 | } | |
12842 | _ACEOF | |
12843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12845 | (eval $ac_link) 2>&5 |
12846 | ac_status=$? | |
c0d27fcc | 12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12848 | (exit $ac_status); } && |
12849 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12851 | (eval $ac_try) 2>&5 |
12852 | ac_status=$? | |
c0d27fcc | 12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12854 | (exit $ac_status); }; }; then |
12855 | eval "$as_ac_var=yes" | |
12856 | else | |
12857 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12858 | sed 's/^/| /' conftest.$ac_ext >&5 |
12859 | ||
503d2be0 AS |
12860 | eval "$as_ac_var=no" |
12861 | fi | |
12862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12863 | fi | |
c0d27fcc | 12864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12865 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12866 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 12867 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 12868 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 12869 | _ACEOF |
ba4481b5 | 12870 | |
ba4481b5 DL |
12871 | fi |
12872 | done | |
12873 | ||
c0d27fcc | 12874 | |
98418dba CW |
12875 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
12876 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
12877 | # Irix 4.0.5F has the header but not the library. | |
12878 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
12879 | ac_have_func=yes | |
12880 | ||
c0d27fcc | 12881 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12882 | #define SVR4 1 |
c0d27fcc | 12883 | _ACEOF |
98418dba CW |
12884 | |
12885 | fi | |
12886 | ||
12887 | if test $ac_have_func = no; then | |
c0d27fcc MR |
12888 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
12889 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
12890 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
12891 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 12892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
12893 | fi |
12894 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
12895 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 12896 | else |
c0d27fcc MR |
12897 | # Is the header compilable? |
12898 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
12899 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
12900 | cat >conftest.$ac_ext <<_ACEOF | |
12901 | #line $LINENO "configure" | |
cd958eb3 MB |
12902 | /* confdefs.h. */ |
12903 | _ACEOF | |
12904 | cat confdefs.h >>conftest.$ac_ext | |
12905 | cat >>conftest.$ac_ext <<_ACEOF | |
12906 | /* end confdefs.h. */ | |
c0d27fcc MR |
12907 | $ac_includes_default |
12908 | #include <inq_stats/cpustats.h> | |
12909 | _ACEOF | |
12910 | rm -f conftest.$ac_objext | |
12911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12912 | (eval $ac_compile) 2>&5 | |
12913 | ac_status=$? | |
12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12915 | (exit $ac_status); } && | |
12916 | { ac_try='test -s conftest.$ac_objext' | |
12917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12918 | (eval $ac_try) 2>&5 | |
12919 | ac_status=$? | |
12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12921 | (exit $ac_status); }; }; then | |
12922 | ac_header_compiler=yes | |
12923 | else | |
12924 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12925 | sed 's/^/| /' conftest.$ac_ext >&5 |
12926 | ||
c0d27fcc MR |
12927 | ac_header_compiler=no |
12928 | fi | |
12929 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12930 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12931 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12932 | ||
12933 | # Is the header present? | |
12934 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
12935 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
12936 | cat >conftest.$ac_ext <<_ACEOF | |
12937 | #line $LINENO "configure" | |
cd958eb3 MB |
12938 | /* confdefs.h. */ |
12939 | _ACEOF | |
12940 | cat confdefs.h >>conftest.$ac_ext | |
12941 | cat >>conftest.$ac_ext <<_ACEOF | |
12942 | /* end confdefs.h. */ | |
98418dba | 12943 | #include <inq_stats/cpustats.h> |
503d2be0 | 12944 | _ACEOF |
c0d27fcc | 12945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
12946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12947 | ac_status=$? | |
6bae0ccf | 12948 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
12949 | rm -f conftest.er1 |
12950 | cat conftest.err >&5 | |
c0d27fcc | 12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12952 | (exit $ac_status); } >/dev/null; then |
12953 | if test -s conftest.err; then | |
12954 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12955 | else | |
12956 | ac_cpp_err= | |
12957 | fi | |
12958 | else | |
12959 | ac_cpp_err=yes | |
12960 | fi | |
12961 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 12962 | ac_header_preproc=yes |
503d2be0 AS |
12963 | else |
12964 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
12965 | sed 's/^/| /' conftest.$ac_ext >&5 |
12966 | ||
c0d27fcc | 12967 | ac_header_preproc=no |
ba4481b5 | 12968 | fi |
503d2be0 | 12969 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
12970 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12971 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12972 | ||
12973 | # So? What about this header? | |
12974 | case $ac_header_compiler:$ac_header_preproc in | |
12975 | yes:no ) | |
12976 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12977 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12978 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12979 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
12980 | ( | |
12981 | cat <<\_ASBOX | |
12982 | ## ------------------------------------ ## | |
12983 | ## Report this to bug-autoconf@gnu.org. ## | |
12984 | ## ------------------------------------ ## | |
12985 | _ASBOX | |
12986 | ) | | |
12987 | sed "s/^/$as_me: WARNING: /" >&2 | |
12988 | ;; | |
c0d27fcc MR |
12989 | no:yes ) |
12990 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
12991 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
12992 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
12993 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
12994 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
12995 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
12996 | ( | |
12997 | cat <<\_ASBOX | |
12998 | ## ------------------------------------ ## | |
12999 | ## Report this to bug-autoconf@gnu.org. ## | |
13000 | ## ------------------------------------ ## | |
13001 | _ASBOX | |
13002 | ) | | |
13003 | sed "s/^/$as_me: WARNING: /" >&2 | |
13004 | ;; | |
c0d27fcc MR |
13005 | esac |
13006 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
13007 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
13008 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13010 | else | |
13011 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 13012 | fi |
c0d27fcc | 13013 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 13014 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
13015 | |
13016 | fi | |
98418dba CW |
13017 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
13018 | ac_have_func=yes | |
ba4481b5 | 13019 | |
c0d27fcc | 13020 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13021 | #define UMAX 1 |
c0d27fcc | 13022 | _ACEOF |
98418dba | 13023 | |
c0d27fcc MR |
13024 | |
13025 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 13026 | #define UMAX4_3 1 |
c0d27fcc | 13027 | _ACEOF |
98418dba CW |
13028 | |
13029 | fi | |
13030 | ||
c0d27fcc | 13031 | |
98418dba CW |
13032 | fi |
13033 | ||
13034 | if test $ac_have_func = no; then | |
c0d27fcc MR |
13035 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
13036 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
13037 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
13038 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 13039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13040 | fi |
13041 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
13042 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 13043 | else |
c0d27fcc MR |
13044 | # Is the header compilable? |
13045 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
13046 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
13047 | cat >conftest.$ac_ext <<_ACEOF | |
13048 | #line $LINENO "configure" | |
cd958eb3 MB |
13049 | /* confdefs.h. */ |
13050 | _ACEOF | |
13051 | cat confdefs.h >>conftest.$ac_ext | |
13052 | cat >>conftest.$ac_ext <<_ACEOF | |
13053 | /* end confdefs.h. */ | |
c0d27fcc MR |
13054 | $ac_includes_default |
13055 | #include <sys/cpustats.h> | |
13056 | _ACEOF | |
13057 | rm -f conftest.$ac_objext | |
13058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13059 | (eval $ac_compile) 2>&5 | |
13060 | ac_status=$? | |
13061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); } && | |
13063 | { ac_try='test -s conftest.$ac_objext' | |
13064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13065 | (eval $ac_try) 2>&5 | |
13066 | ac_status=$? | |
13067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13068 | (exit $ac_status); }; }; then | |
13069 | ac_header_compiler=yes | |
13070 | else | |
13071 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13072 | sed 's/^/| /' conftest.$ac_ext >&5 |
13073 | ||
c0d27fcc MR |
13074 | ac_header_compiler=no |
13075 | fi | |
13076 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13077 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13078 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13079 | ||
13080 | # Is the header present? | |
13081 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
13082 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
13083 | cat >conftest.$ac_ext <<_ACEOF | |
13084 | #line $LINENO "configure" | |
cd958eb3 MB |
13085 | /* confdefs.h. */ |
13086 | _ACEOF | |
13087 | cat confdefs.h >>conftest.$ac_ext | |
13088 | cat >>conftest.$ac_ext <<_ACEOF | |
13089 | /* end confdefs.h. */ | |
98418dba CW |
13090 | #include <sys/cpustats.h> |
13091 | _ACEOF | |
c0d27fcc | 13092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
13093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13094 | ac_status=$? | |
6bae0ccf | 13095 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13096 | rm -f conftest.er1 |
13097 | cat conftest.err >&5 | |
c0d27fcc | 13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13099 | (exit $ac_status); } >/dev/null; then |
13100 | if test -s conftest.err; then | |
13101 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13102 | else | |
13103 | ac_cpp_err= | |
13104 | fi | |
13105 | else | |
13106 | ac_cpp_err=yes | |
503d2be0 | 13107 | fi |
98418dba | 13108 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13109 | ac_header_preproc=yes |
98418dba CW |
13110 | else |
13111 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13112 | sed 's/^/| /' conftest.$ac_ext >&5 |
13113 | ||
c0d27fcc | 13114 | ac_header_preproc=no |
98418dba CW |
13115 | fi |
13116 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13117 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13118 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13119 | ||
13120 | # So? What about this header? | |
13121 | case $ac_header_compiler:$ac_header_preproc in | |
13122 | yes:no ) | |
13123 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13124 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13125 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13126 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
13127 | ( | |
13128 | cat <<\_ASBOX | |
13129 | ## ------------------------------------ ## | |
13130 | ## Report this to bug-autoconf@gnu.org. ## | |
13131 | ## ------------------------------------ ## | |
13132 | _ASBOX | |
13133 | ) | | |
13134 | sed "s/^/$as_me: WARNING: /" >&2 | |
13135 | ;; | |
c0d27fcc MR |
13136 | no:yes ) |
13137 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
13138 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
13139 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
13140 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
13141 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13142 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
13143 | ( | |
13144 | cat <<\_ASBOX | |
13145 | ## ------------------------------------ ## | |
13146 | ## Report this to bug-autoconf@gnu.org. ## | |
13147 | ## ------------------------------------ ## | |
13148 | _ASBOX | |
13149 | ) | | |
13150 | sed "s/^/$as_me: WARNING: /" >&2 | |
13151 | ;; | |
c0d27fcc MR |
13152 | esac |
13153 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
13154 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
13155 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13157 | else | |
13158 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 13159 | fi |
c0d27fcc | 13160 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 13161 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
13162 | |
13163 | fi | |
98418dba | 13164 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 13165 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 13166 | #define UMAX 1 |
c0d27fcc | 13167 | _ACEOF |
ba4481b5 | 13168 | |
98418dba CW |
13169 | fi |
13170 | ||
c0d27fcc | 13171 | |
98418dba CW |
13172 | fi |
13173 | ||
13174 | if test $ac_have_func = no; then | |
13175 | ||
13176 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
13177 | do |
13178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
13181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13184 | fi |
13185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13187 | else |
c0d27fcc MR |
13188 | # Is the header compilable? |
13189 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13191 | cat >conftest.$ac_ext <<_ACEOF | |
13192 | #line $LINENO "configure" | |
cd958eb3 MB |
13193 | /* confdefs.h. */ |
13194 | _ACEOF | |
13195 | cat confdefs.h >>conftest.$ac_ext | |
13196 | cat >>conftest.$ac_ext <<_ACEOF | |
13197 | /* end confdefs.h. */ | |
c0d27fcc MR |
13198 | $ac_includes_default |
13199 | #include <$ac_header> | |
13200 | _ACEOF | |
13201 | rm -f conftest.$ac_objext | |
13202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13203 | (eval $ac_compile) 2>&5 | |
13204 | ac_status=$? | |
13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13206 | (exit $ac_status); } && | |
13207 | { ac_try='test -s conftest.$ac_objext' | |
13208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13209 | (eval $ac_try) 2>&5 | |
13210 | ac_status=$? | |
13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13212 | (exit $ac_status); }; }; then | |
13213 | ac_header_compiler=yes | |
13214 | else | |
13215 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13216 | sed 's/^/| /' conftest.$ac_ext >&5 |
13217 | ||
c0d27fcc MR |
13218 | ac_header_compiler=no |
13219 | fi | |
13220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13221 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13222 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13223 | ||
13224 | # Is the header present? | |
13225 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13227 | cat >conftest.$ac_ext <<_ACEOF | |
13228 | #line $LINENO "configure" | |
cd958eb3 MB |
13229 | /* confdefs.h. */ |
13230 | _ACEOF | |
13231 | cat confdefs.h >>conftest.$ac_ext | |
13232 | cat >>conftest.$ac_ext <<_ACEOF | |
13233 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
13234 | #include <$ac_header> |
13235 | _ACEOF | |
c0d27fcc | 13236 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
13237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13238 | ac_status=$? | |
6bae0ccf | 13239 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
13240 | rm -f conftest.er1 |
13241 | cat conftest.err >&5 | |
c0d27fcc | 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
13243 | (exit $ac_status); } >/dev/null; then |
13244 | if test -s conftest.err; then | |
13245 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13246 | else | |
13247 | ac_cpp_err= | |
13248 | fi | |
13249 | else | |
13250 | ac_cpp_err=yes | |
13251 | fi | |
13252 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
13253 | ac_header_preproc=yes |
13254 | else | |
13255 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 |
13257 | ||
c0d27fcc MR |
13258 | ac_header_preproc=no |
13259 | fi | |
13260 | rm -f conftest.err conftest.$ac_ext | |
13261 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13262 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13263 | ||
13264 | # So? What about this header? | |
13265 | case $ac_header_compiler:$ac_header_preproc in | |
13266 | yes:no ) | |
13267 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13268 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
13271 | ( | |
13272 | cat <<\_ASBOX | |
13273 | ## ------------------------------------ ## | |
13274 | ## Report this to bug-autoconf@gnu.org. ## | |
13275 | ## ------------------------------------ ## | |
13276 | _ASBOX | |
13277 | ) | | |
13278 | sed "s/^/$as_me: WARNING: /" >&2 | |
13279 | ;; | |
c0d27fcc MR |
13280 | no:yes ) |
13281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
13287 | ( | |
13288 | cat <<\_ASBOX | |
13289 | ## ------------------------------------ ## | |
13290 | ## Report this to bug-autoconf@gnu.org. ## | |
13291 | ## ------------------------------------ ## | |
13292 | _ASBOX | |
13293 | ) | | |
13294 | sed "s/^/$as_me: WARNING: /" >&2 | |
13295 | ;; | |
c0d27fcc MR |
13296 | esac |
13297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13301 | else | |
13302 | eval "$as_ac_Header=$ac_header_preproc" | |
13303 | fi | |
13304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13306 | ||
13307 | fi | |
13308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13309 | cat >>confdefs.h <<_ACEOF | |
13310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13311 | _ACEOF | |
13312 | ||
13313 | fi | |
13314 | ||
13315 | done | |
13316 | ||
13317 | fi | |
13318 | ||
13319 | ||
13320 | for ac_header in nlist.h | |
13321 | do | |
13322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13328 | fi | |
13329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13331 | else | |
13332 | # Is the header compilable? | |
13333 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13335 | cat >conftest.$ac_ext <<_ACEOF | |
13336 | #line $LINENO "configure" | |
cd958eb3 MB |
13337 | /* confdefs.h. */ |
13338 | _ACEOF | |
13339 | cat confdefs.h >>conftest.$ac_ext | |
13340 | cat >>conftest.$ac_ext <<_ACEOF | |
13341 | /* end confdefs.h. */ | |
c0d27fcc MR |
13342 | $ac_includes_default |
13343 | #include <$ac_header> | |
13344 | _ACEOF | |
13345 | rm -f conftest.$ac_objext | |
13346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13347 | (eval $ac_compile) 2>&5 | |
13348 | ac_status=$? | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); } && | |
13351 | { ac_try='test -s conftest.$ac_objext' | |
13352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13353 | (eval $ac_try) 2>&5 | |
13354 | ac_status=$? | |
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13356 | (exit $ac_status); }; }; then | |
13357 | ac_header_compiler=yes | |
2c9dccc9 PJ |
13358 | else |
13359 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13360 | sed 's/^/| /' conftest.$ac_ext >&5 |
13361 | ||
c0d27fcc | 13362 | ac_header_compiler=no |
98418dba | 13363 | fi |
c0d27fcc MR |
13364 | rm -f conftest.$ac_objext conftest.$ac_ext |
13365 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13366 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 13367 | |
c0d27fcc MR |
13368 | # Is the header present? |
13369 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13370 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13371 | cat >conftest.$ac_ext <<_ACEOF | |
13372 | #line $LINENO "configure" | |
cd958eb3 MB |
13373 | /* confdefs.h. */ |
13374 | _ACEOF | |
13375 | cat confdefs.h >>conftest.$ac_ext | |
13376 | cat >>conftest.$ac_ext <<_ACEOF | |
13377 | /* end confdefs.h. */ | |
503d2be0 AS |
13378 | #include <$ac_header> |
13379 | _ACEOF | |
c0d27fcc | 13380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13382 | ac_status=$? | |
6bae0ccf | 13383 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13384 | rm -f conftest.er1 |
13385 | cat conftest.err >&5 | |
c0d27fcc | 13386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13387 | (exit $ac_status); } >/dev/null; then |
13388 | if test -s conftest.err; then | |
13389 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13390 | else | |
13391 | ac_cpp_err= | |
13392 | fi | |
13393 | else | |
13394 | ac_cpp_err=yes | |
13395 | fi | |
13396 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13397 | ac_header_preproc=yes |
503d2be0 AS |
13398 | else |
13399 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13400 | sed 's/^/| /' conftest.$ac_ext >&5 |
13401 | ||
c0d27fcc | 13402 | ac_header_preproc=no |
b5de8dc0 | 13403 | fi |
503d2be0 | 13404 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13405 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13406 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13407 | ||
13408 | # So? What about this header? | |
13409 | case $ac_header_compiler:$ac_header_preproc in | |
13410 | yes:no ) | |
13411 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13412 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
13415 | ( | |
13416 | cat <<\_ASBOX | |
13417 | ## ------------------------------------ ## | |
13418 | ## Report this to bug-autoconf@gnu.org. ## | |
13419 | ## ------------------------------------ ## | |
13420 | _ASBOX | |
13421 | ) | | |
13422 | sed "s/^/$as_me: WARNING: /" >&2 | |
13423 | ;; | |
c0d27fcc MR |
13424 | no:yes ) |
13425 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13426 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13427 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13428 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
13430 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
13431 | ( | |
13432 | cat <<\_ASBOX | |
13433 | ## ------------------------------------ ## | |
13434 | ## Report this to bug-autoconf@gnu.org. ## | |
13435 | ## ------------------------------------ ## | |
13436 | _ASBOX | |
13437 | ) | | |
13438 | sed "s/^/$as_me: WARNING: /" >&2 | |
13439 | ;; | |
c0d27fcc MR |
13440 | esac |
13441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13445 | else | |
13446 | eval "$as_ac_Header=$ac_header_preproc" | |
b5de8dc0 | 13447 | fi |
c0d27fcc | 13448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 13449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13450 | |
13451 | fi | |
98418dba | 13452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13453 | cat >>confdefs.h <<_ACEOF |
98418dba | 13454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
13455 | _ACEOF |
13456 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
13457 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
13458 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 13460 | else |
503d2be0 | 13461 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 13462 | #line $LINENO "configure" |
cd958eb3 MB |
13463 | /* confdefs.h. */ |
13464 | _ACEOF | |
13465 | cat confdefs.h >>conftest.$ac_ext | |
13466 | cat >>conftest.$ac_ext <<_ACEOF | |
13467 | /* end confdefs.h. */ | |
98418dba | 13468 | #include <nlist.h> |
b5de8dc0 | 13469 | |
503d2be0 AS |
13470 | int |
13471 | main () | |
13472 | { | |
98418dba CW |
13473 | static struct nlist ac_aggr; |
13474 | if (ac_aggr.n_un.n_name) | |
13475 | return 0; | |
503d2be0 AS |
13476 | ; |
13477 | return 0; | |
13478 | } | |
13479 | _ACEOF | |
98418dba | 13480 | rm -f conftest.$ac_objext |
c0d27fcc | 13481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 13482 | (eval $ac_compile) 2>&5 |
503d2be0 | 13483 | ac_status=$? |
c0d27fcc | 13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13485 | (exit $ac_status); } && |
98418dba | 13486 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 13487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13488 | (eval $ac_try) 2>&5 |
13489 | ac_status=$? | |
c0d27fcc | 13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13491 | (exit $ac_status); }; }; then |
98418dba | 13492 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
13493 | else |
13494 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13495 | sed 's/^/| /' conftest.$ac_ext >&5 |
13496 | ||
6bae0ccf DL |
13497 | cat >conftest.$ac_ext <<_ACEOF |
13498 | #line $LINENO "configure" | |
cd958eb3 MB |
13499 | /* confdefs.h. */ |
13500 | _ACEOF | |
13501 | cat confdefs.h >>conftest.$ac_ext | |
13502 | cat >>conftest.$ac_ext <<_ACEOF | |
13503 | /* end confdefs.h. */ | |
6bae0ccf DL |
13504 | #include <nlist.h> |
13505 | ||
13506 | int | |
13507 | main () | |
13508 | { | |
13509 | static struct nlist ac_aggr; | |
13510 | if (sizeof ac_aggr.n_un.n_name) | |
13511 | return 0; | |
13512 | ; | |
13513 | return 0; | |
13514 | } | |
13515 | _ACEOF | |
13516 | rm -f conftest.$ac_objext | |
13517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13518 | (eval $ac_compile) 2>&5 | |
13519 | ac_status=$? | |
13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13521 | (exit $ac_status); } && | |
13522 | { ac_try='test -s conftest.$ac_objext' | |
13523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13524 | (eval $ac_try) 2>&5 | |
13525 | ac_status=$? | |
13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13527 | (exit $ac_status); }; }; then | |
13528 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
13529 | else | |
13530 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13531 | sed 's/^/| /' conftest.$ac_ext >&5 |
13532 | ||
98418dba | 13533 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 13534 | fi |
98418dba | 13535 | rm -f conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 13536 | fi |
6bae0ccf DL |
13537 | rm -f conftest.$ac_objext conftest.$ac_ext |
13538 | fi | |
c0d27fcc | 13539 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
13540 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
13541 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 13542 | |
c0d27fcc | 13543 | cat >>confdefs.h <<_ACEOF |
98418dba | 13544 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 13545 | _ACEOF |
b5de8dc0 | 13546 | |
c0d27fcc MR |
13547 | |
13548 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 13549 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 13550 | _ACEOF |
b5de8dc0 | 13551 | |
98418dba | 13552 | fi |
b5de8dc0 | 13553 | |
c0d27fcc | 13554 | |
98418dba | 13555 | fi |
c0d27fcc | 13556 | |
98418dba | 13557 | done |
b5de8dc0 | 13558 | |
98418dba CW |
13559 | fi |
13560 | done | |
b5de8dc0 | 13561 | |
c0d27fcc | 13562 | |
98418dba | 13563 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 13564 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
13565 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
13566 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
13567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13568 | else | |
13569 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 13570 | #line $LINENO "configure" |
cd958eb3 MB |
13571 | /* confdefs.h. */ |
13572 | _ACEOF | |
13573 | cat confdefs.h >>conftest.$ac_ext | |
13574 | cat >>conftest.$ac_ext <<_ACEOF | |
13575 | /* end confdefs.h. */ | |
6bae0ccf | 13576 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
13577 | #ifdef LDAV_PRIVILEGED |
13578 | Yowza Am I SETGID yet | |
13579 | #endif | |
13580 | _ACEOF | |
13581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13582 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
13583 | ac_cv_func_getloadavg_setgid=yes |
13584 | else | |
13585 | ac_cv_func_getloadavg_setgid=no | |
13586 | fi | |
13587 | rm -f conftest* | |
b5de8dc0 | 13588 | |
98418dba | 13589 | fi |
c0d27fcc | 13590 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
13591 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
13592 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
13593 | NEED_SETGID=true | |
b5de8dc0 | 13594 | |
c0d27fcc | 13595 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13596 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 13597 | _ACEOF |
98418dba | 13598 | |
b5de8dc0 | 13599 | else |
98418dba | 13600 | NEED_SETGID=false |
b5de8dc0 | 13601 | fi |
98418dba CW |
13602 | |
13603 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 13604 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
13605 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
13606 | if test "${ac_cv_group_kmem+set}" = set; then | |
13607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13608 | else | |
13609 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
13610 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
13611 | # If we got an error (system does not support symlinks), try without -L. | |
13612 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
13613 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
13614 | | sed -ne 's/[ ][ ]*/ /g; | |
13615 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
13616 | / /s/.* //;p;'` | |
13617 | ||
b5de8dc0 | 13618 | fi |
c0d27fcc | 13619 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
13620 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
13621 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 13622 | fi |
98418dba CW |
13623 | if test "x$ac_save_LIBS" = x; then |
13624 | GETLOADAVG_LIBS=$LIBS | |
13625 | else | |
13626 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 13627 | fi |
98418dba | 13628 | LIBS=$ac_save_LIBS |
b5de8dc0 | 13629 | |
c0d27fcc MR |
13630 | |
13631 | ||
13632 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
13633 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
13634 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 13636 | else |
b936fae4 AS |
13637 | while :; do |
13638 | ac_cv_sys_largefile_source=no | |
503d2be0 | 13639 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 13640 | #line $LINENO "configure" |
cd958eb3 MB |
13641 | /* confdefs.h. */ |
13642 | _ACEOF | |
13643 | cat confdefs.h >>conftest.$ac_ext | |
13644 | cat >>conftest.$ac_ext <<_ACEOF | |
13645 | /* end confdefs.h. */ | |
b936fae4 | 13646 | #include <stdio.h> |
503d2be0 AS |
13647 | int |
13648 | main () | |
13649 | { | |
b936fae4 AS |
13650 | return !fseeko; |
13651 | ; | |
13652 | return 0; | |
13653 | } | |
13654 | _ACEOF | |
13655 | rm -f conftest.$ac_objext | |
c0d27fcc | 13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 AS |
13657 | (eval $ac_compile) 2>&5 |
13658 | ac_status=$? | |
c0d27fcc | 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13660 | (exit $ac_status); } && |
13661 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
13663 | (eval $ac_try) 2>&5 |
13664 | ac_status=$? | |
c0d27fcc | 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13666 | (exit $ac_status); }; }; then |
13667 | break | |
13668 | else | |
13669 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13670 | sed 's/^/| /' conftest.$ac_ext >&5 |
13671 | ||
b936fae4 AS |
13672 | fi |
13673 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13674 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 13675 | #line $LINENO "configure" |
cd958eb3 MB |
13676 | /* confdefs.h. */ |
13677 | _ACEOF | |
13678 | cat confdefs.h >>conftest.$ac_ext | |
13679 | cat >>conftest.$ac_ext <<_ACEOF | |
13680 | /* end confdefs.h. */ | |
b936fae4 AS |
13681 | #define _LARGEFILE_SOURCE 1 |
13682 | #include <stdio.h> | |
b936fae4 AS |
13683 | int |
13684 | main () | |
13685 | { | |
13686 | return !fseeko; | |
13687 | ; | |
13688 | return 0; | |
13689 | } | |
13690 | _ACEOF | |
13691 | rm -f conftest.$ac_objext | |
c0d27fcc | 13692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 AS |
13693 | (eval $ac_compile) 2>&5 |
13694 | ac_status=$? | |
c0d27fcc | 13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13696 | (exit $ac_status); } && |
13697 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 13698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
13699 | (eval $ac_try) 2>&5 |
13700 | ac_status=$? | |
c0d27fcc | 13701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13702 | (exit $ac_status); }; }; then |
13703 | ac_cv_sys_largefile_source=1; break | |
13704 | else | |
13705 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13706 | sed 's/^/| /' conftest.$ac_ext >&5 |
13707 | ||
b936fae4 AS |
13708 | fi |
13709 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13710 | break | |
13711 | done | |
13712 | fi | |
c0d27fcc | 13713 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
13714 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
13715 | if test "$ac_cv_sys_largefile_source" != no; then | |
13716 | ||
c0d27fcc | 13717 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 13718 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 13719 | _ACEOF |
b936fae4 AS |
13720 | |
13721 | fi | |
13722 | rm -f conftest* | |
4c343001 | 13723 | |
b936fae4 AS |
13724 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
13725 | # in glibc 2.1.3, but that breaks too many other things. | |
13726 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 13727 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
13728 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
13729 | if test "${ac_cv_func_fseeko+set}" = set; then | |
13730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13731 | else | |
13732 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 13733 | #line $LINENO "configure" |
cd958eb3 MB |
13734 | /* confdefs.h. */ |
13735 | _ACEOF | |
13736 | cat confdefs.h >>conftest.$ac_ext | |
13737 | cat >>conftest.$ac_ext <<_ACEOF | |
13738 | /* end confdefs.h. */ | |
b936fae4 | 13739 | #include <stdio.h> |
b936fae4 AS |
13740 | int |
13741 | main () | |
13742 | { | |
13743 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
13744 | ; |
13745 | return 0; | |
13746 | } | |
13747 | _ACEOF | |
13748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13750 | (eval $ac_link) 2>&5 |
13751 | ac_status=$? | |
c0d27fcc | 13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13753 | (exit $ac_status); } && |
13754 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13756 | (eval $ac_try) 2>&5 |
13757 | ac_status=$? | |
c0d27fcc | 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13759 | (exit $ac_status); }; }; then |
b936fae4 | 13760 | ac_cv_func_fseeko=yes |
503d2be0 AS |
13761 | else |
13762 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13763 | sed 's/^/| /' conftest.$ac_ext >&5 |
13764 | ||
b936fae4 | 13765 | ac_cv_func_fseeko=no |
503d2be0 AS |
13766 | fi |
13767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13768 | fi | |
c0d27fcc | 13769 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
13770 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
13771 | if test $ac_cv_func_fseeko = yes; then | |
13772 | ||
c0d27fcc | 13773 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 13774 | #define HAVE_FSEEKO 1 |
c0d27fcc | 13775 | _ACEOF |
b936fae4 | 13776 | |
4c343001 DL |
13777 | fi |
13778 | ||
c0d27fcc | 13779 | |
cd958eb3 MB |
13780 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
13781 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
13782 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13784 | else | |
13785 | # Use it with a single arg. | |
13786 | cat >conftest.$ac_ext <<_ACEOF | |
13787 | #line $LINENO "configure" | |
13788 | /* confdefs.h. */ | |
13789 | _ACEOF | |
13790 | cat confdefs.h >>conftest.$ac_ext | |
13791 | cat >>conftest.$ac_ext <<_ACEOF | |
13792 | /* end confdefs.h. */ | |
13793 | $ac_includes_default | |
13794 | int | |
13795 | main () | |
13796 | { | |
13797 | getpgrp (0); | |
13798 | ; | |
13799 | return 0; | |
13800 | } | |
13801 | _ACEOF | |
13802 | rm -f conftest.$ac_objext | |
13803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13804 | (eval $ac_compile) 2>&5 | |
13805 | ac_status=$? | |
13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | (exit $ac_status); } && | |
13808 | { ac_try='test -s conftest.$ac_objext' | |
13809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13810 | (eval $ac_try) 2>&5 | |
13811 | ac_status=$? | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); }; }; then | |
13814 | ac_cv_func_getpgrp_void=no | |
13815 | else | |
13816 | echo "$as_me: failed program was:" >&5 | |
13817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13818 | ||
13819 | ac_cv_func_getpgrp_void=yes | |
13820 | fi | |
13821 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13822 | ||
13823 | fi | |
13824 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
13825 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
13826 | if test $ac_cv_func_getpgrp_void = yes; then | |
13827 | ||
13828 | cat >>confdefs.h <<\_ACEOF | |
13829 | #define GETPGRP_VOID 1 | |
13830 | _ACEOF | |
13831 | ||
13832 | fi | |
13833 | ||
13834 | ||
b936fae4 AS |
13835 | # UNIX98 PTYs. |
13836 | ||
13837 | for ac_func in grantpt | |
503d2be0 AS |
13838 | do |
13839 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13840 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
13841 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13842 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 13844 | else |
503d2be0 | 13845 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 13846 | #line $LINENO "configure" |
cd958eb3 MB |
13847 | /* confdefs.h. */ |
13848 | _ACEOF | |
13849 | cat confdefs.h >>conftest.$ac_ext | |
13850 | cat >>conftest.$ac_ext <<_ACEOF | |
13851 | /* end confdefs.h. */ | |
503d2be0 | 13852 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
13853 | which can conflict with char $ac_func (); below. |
13854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13855 | <limits.h> exists even on freestanding compilers. */ | |
13856 | #ifdef __STDC__ | |
13857 | # include <limits.h> | |
13858 | #else | |
13859 | # include <assert.h> | |
13860 | #endif | |
4c343001 | 13861 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13862 | #ifdef __cplusplus |
13863 | extern "C" | |
cd958eb3 | 13864 | { |
503d2be0 | 13865 | #endif |
4c343001 | 13866 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
13867 | builtin and then its argument prototype would still apply. */ |
13868 | char $ac_func (); | |
503d2be0 AS |
13869 | /* The GNU C library defines this for functions which it implements |
13870 | to always fail with ENOSYS. Some functions are actually named | |
13871 | something starting with __ and the normal name is an alias. */ | |
13872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13873 | choke me | |
13874 | #else | |
cd958eb3 MB |
13875 | char (*f) () = $ac_func; |
13876 | #endif | |
13877 | #ifdef __cplusplus | |
13878 | } | |
503d2be0 | 13879 | #endif |
4c343001 | 13880 | |
cd958eb3 MB |
13881 | int |
13882 | main () | |
13883 | { | |
9e71690e | 13884 | return f != $ac_func; |
503d2be0 AS |
13885 | ; |
13886 | return 0; | |
13887 | } | |
13888 | _ACEOF | |
13889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13891 | (eval $ac_link) 2>&5 |
13892 | ac_status=$? | |
c0d27fcc | 13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13894 | (exit $ac_status); } && |
13895 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13897 | (eval $ac_try) 2>&5 |
13898 | ac_status=$? | |
c0d27fcc | 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13900 | (exit $ac_status); }; }; then |
13901 | eval "$as_ac_var=yes" | |
13902 | else | |
13903 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13904 | sed 's/^/| /' conftest.$ac_ext >&5 |
13905 | ||
503d2be0 AS |
13906 | eval "$as_ac_var=no" |
13907 | fi | |
13908 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13909 | fi | |
c0d27fcc | 13910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
13911 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13912 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13913 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 13914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13915 | _ACEOF |
4c343001 DL |
13916 | |
13917 | fi | |
503d2be0 AS |
13918 | done |
13919 | ||
c0d27fcc | 13920 | |
b936fae4 | 13921 | # PTY-related GNU extensions. |
4c343001 | 13922 | |
b936fae4 AS |
13923 | for ac_func in getpt |
13924 | do | |
13925 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13926 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
13927 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13928 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 13930 | else |
b936fae4 | 13931 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 13932 | #line $LINENO "configure" |
cd958eb3 MB |
13933 | /* confdefs.h. */ |
13934 | _ACEOF | |
13935 | cat confdefs.h >>conftest.$ac_ext | |
13936 | cat >>conftest.$ac_ext <<_ACEOF | |
13937 | /* end confdefs.h. */ | |
087121cc | 13938 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
13939 | which can conflict with char $ac_func (); below. |
13940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13941 | <limits.h> exists even on freestanding compilers. */ | |
13942 | #ifdef __STDC__ | |
13943 | # include <limits.h> | |
13944 | #else | |
13945 | # include <assert.h> | |
13946 | #endif | |
087121cc | 13947 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13948 | #ifdef __cplusplus |
13949 | extern "C" | |
cd958eb3 | 13950 | { |
503d2be0 | 13951 | #endif |
087121cc | 13952 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
13953 | builtin and then its argument prototype would still apply. */ |
13954 | char $ac_func (); | |
087121cc GM |
13955 | /* The GNU C library defines this for functions which it implements |
13956 | to always fail with ENOSYS. Some functions are actually named | |
13957 | something starting with __ and the normal name is an alias. */ | |
13958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13959 | choke me | |
13960 | #else | |
cd958eb3 MB |
13961 | char (*f) () = $ac_func; |
13962 | #endif | |
13963 | #ifdef __cplusplus | |
13964 | } | |
087121cc GM |
13965 | #endif |
13966 | ||
cd958eb3 MB |
13967 | int |
13968 | main () | |
13969 | { | |
9e71690e | 13970 | return f != $ac_func; |
503d2be0 AS |
13971 | ; |
13972 | return 0; | |
13973 | } | |
13974 | _ACEOF | |
13975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13977 | (eval $ac_link) 2>&5 |
13978 | ac_status=$? | |
c0d27fcc | 13979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13980 | (exit $ac_status); } && |
13981 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13983 | (eval $ac_try) 2>&5 |
13984 | ac_status=$? | |
c0d27fcc | 13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13986 | (exit $ac_status); }; }; then |
13987 | eval "$as_ac_var=yes" | |
13988 | else | |
13989 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
13990 | sed 's/^/| /' conftest.$ac_ext >&5 |
13991 | ||
503d2be0 AS |
13992 | eval "$as_ac_var=no" |
13993 | fi | |
13994 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13995 | fi | |
c0d27fcc | 13996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
13997 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13998 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13999 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14000 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14001 | _ACEOF |
087121cc | 14002 | |
087121cc GM |
14003 | fi |
14004 | done | |
14005 | ||
c0d27fcc | 14006 | |
ba4481b5 DL |
14007 | # Check this now, so that we will NOT find the above functions in ncurses. |
14008 | # That is because we have not set up to link ncurses in lib-src. | |
14009 | # It's better to believe a function is not available | |
14010 | # than to expect to find it in ncurses. | |
503d2be0 | 14011 | |
c0d27fcc | 14012 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
14013 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
14014 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14016 | else |
503d2be0 | 14017 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 14018 | LIBS="-lncurses $LIBS" |
503d2be0 | 14019 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14020 | #line $LINENO "configure" |
cd958eb3 MB |
14021 | /* confdefs.h. */ |
14022 | _ACEOF | |
14023 | cat confdefs.h >>conftest.$ac_ext | |
14024 | cat >>conftest.$ac_ext <<_ACEOF | |
14025 | /* end confdefs.h. */ | |
503d2be0 | 14026 | |
ba4481b5 | 14027 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14028 | #ifdef __cplusplus |
14029 | extern "C" | |
14030 | #endif | |
ba4481b5 | 14031 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14032 | builtin and then its argument prototype would still apply. */ |
14033 | char tparm (); | |
14034 | int | |
14035 | main () | |
14036 | { | |
14037 | tparm (); | |
14038 | ; | |
14039 | return 0; | |
14040 | } | |
14041 | _ACEOF | |
14042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14044 | (eval $ac_link) 2>&5 |
14045 | ac_status=$? | |
c0d27fcc | 14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14047 | (exit $ac_status); } && |
14048 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14050 | (eval $ac_try) 2>&5 |
14051 | ac_status=$? | |
c0d27fcc | 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14053 | (exit $ac_status); }; }; then |
14054 | ac_cv_lib_ncurses_tparm=yes | |
14055 | else | |
14056 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14057 | sed 's/^/| /' conftest.$ac_ext >&5 |
14058 | ||
503d2be0 AS |
14059 | ac_cv_lib_ncurses_tparm=no |
14060 | fi | |
14061 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14062 | LIBS=$ac_check_lib_save_LIBS | |
14063 | fi | |
c0d27fcc | 14064 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
14065 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
14066 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 14067 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14068 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 14069 | _ACEOF |
ba4481b5 DL |
14070 | |
14071 | LIBS="-lncurses $LIBS" | |
14072 | ||
ba4481b5 DL |
14073 | fi |
14074 | ||
c0d27fcc | 14075 | |
84e70f78 KR |
14076 | # Do we need the Hesiod library to provide the support routines? |
14077 | if test "$with_hesiod" = yes ; then | |
14078 | # Don't set $LIBS here -- see comments above. | |
14079 | resolv=no | |
c0d27fcc | 14080 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
14081 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
14082 | if test "${ac_cv_func_res_send+set}" = set; then | |
14083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14084 | else | |
14085 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14086 | #line $LINENO "configure" |
cd958eb3 MB |
14087 | /* confdefs.h. */ |
14088 | _ACEOF | |
14089 | cat confdefs.h >>conftest.$ac_ext | |
14090 | cat >>conftest.$ac_ext <<_ACEOF | |
14091 | /* end confdefs.h. */ | |
84e70f78 | 14092 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
14093 | which can conflict with char res_send (); below. |
14094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14095 | <limits.h> exists even on freestanding compilers. */ | |
14096 | #ifdef __STDC__ | |
14097 | # include <limits.h> | |
14098 | #else | |
14099 | # include <assert.h> | |
14100 | #endif | |
84e70f78 KR |
14101 | /* Override any gcc2 internal prototype to avoid an error. */ |
14102 | #ifdef __cplusplus | |
14103 | extern "C" | |
cd958eb3 | 14104 | { |
84e70f78 KR |
14105 | #endif |
14106 | /* We use char because int might match the return type of a gcc2 | |
14107 | builtin and then its argument prototype would still apply. */ | |
14108 | char res_send (); | |
84e70f78 KR |
14109 | /* The GNU C library defines this for functions which it implements |
14110 | to always fail with ENOSYS. Some functions are actually named | |
14111 | something starting with __ and the normal name is an alias. */ | |
14112 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
14113 | choke me | |
14114 | #else | |
cd958eb3 | 14115 | char (*f) () = res_send; |
84e70f78 | 14116 | #endif |
cd958eb3 MB |
14117 | #ifdef __cplusplus |
14118 | } | |
14119 | #endif | |
14120 | ||
14121 | int | |
14122 | main () | |
14123 | { | |
9e71690e | 14124 | return f != res_send; |
84e70f78 KR |
14125 | ; |
14126 | return 0; | |
14127 | } | |
14128 | _ACEOF | |
14129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14131 | (eval $ac_link) 2>&5 |
14132 | ac_status=$? | |
c0d27fcc | 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14134 | (exit $ac_status); } && |
14135 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14137 | (eval $ac_try) 2>&5 |
14138 | ac_status=$? | |
c0d27fcc | 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14140 | (exit $ac_status); }; }; then |
14141 | ac_cv_func_res_send=yes | |
14142 | else | |
14143 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14144 | sed 's/^/| /' conftest.$ac_ext >&5 |
14145 | ||
84e70f78 KR |
14146 | ac_cv_func_res_send=no |
14147 | fi | |
14148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14149 | fi | |
c0d27fcc | 14150 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
14151 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
14152 | if test $ac_cv_func_res_send = yes; then | |
14153 | : | |
14154 | else | |
c0d27fcc | 14155 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
14156 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
14157 | if test "${ac_cv_func___res_send+set}" = set; then | |
14158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14159 | else | |
14160 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14161 | #line $LINENO "configure" |
cd958eb3 MB |
14162 | /* confdefs.h. */ |
14163 | _ACEOF | |
14164 | cat confdefs.h >>conftest.$ac_ext | |
14165 | cat >>conftest.$ac_ext <<_ACEOF | |
14166 | /* end confdefs.h. */ | |
84e70f78 | 14167 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
14168 | which can conflict with char __res_send (); below. |
14169 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14170 | <limits.h> exists even on freestanding compilers. */ | |
14171 | #ifdef __STDC__ | |
14172 | # include <limits.h> | |
14173 | #else | |
14174 | # include <assert.h> | |
14175 | #endif | |
84e70f78 KR |
14176 | /* Override any gcc2 internal prototype to avoid an error. */ |
14177 | #ifdef __cplusplus | |
14178 | extern "C" | |
cd958eb3 | 14179 | { |
84e70f78 KR |
14180 | #endif |
14181 | /* We use char because int might match the return type of a gcc2 | |
14182 | builtin and then its argument prototype would still apply. */ | |
14183 | char __res_send (); | |
84e70f78 KR |
14184 | /* The GNU C library defines this for functions which it implements |
14185 | to always fail with ENOSYS. Some functions are actually named | |
14186 | something starting with __ and the normal name is an alias. */ | |
14187 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
14188 | choke me | |
14189 | #else | |
cd958eb3 MB |
14190 | char (*f) () = __res_send; |
14191 | #endif | |
14192 | #ifdef __cplusplus | |
14193 | } | |
84e70f78 KR |
14194 | #endif |
14195 | ||
cd958eb3 MB |
14196 | int |
14197 | main () | |
14198 | { | |
9e71690e | 14199 | return f != __res_send; |
84e70f78 KR |
14200 | ; |
14201 | return 0; | |
14202 | } | |
14203 | _ACEOF | |
14204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14206 | (eval $ac_link) 2>&5 |
14207 | ac_status=$? | |
c0d27fcc | 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14209 | (exit $ac_status); } && |
14210 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14212 | (eval $ac_try) 2>&5 |
14213 | ac_status=$? | |
c0d27fcc | 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14215 | (exit $ac_status); }; }; then |
14216 | ac_cv_func___res_send=yes | |
14217 | else | |
14218 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14219 | sed 's/^/| /' conftest.$ac_ext >&5 |
14220 | ||
84e70f78 KR |
14221 | ac_cv_func___res_send=no |
14222 | fi | |
14223 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14224 | fi | |
c0d27fcc | 14225 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
14226 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
14227 | if test $ac_cv_func___res_send = yes; then | |
14228 | : | |
14229 | else | |
c0d27fcc | 14230 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
14231 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
14232 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
14233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14234 | else | |
14235 | ac_check_lib_save_LIBS=$LIBS | |
14236 | LIBS="-lresolv $LIBS" | |
14237 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14238 | #line $LINENO "configure" |
cd958eb3 MB |
14239 | /* confdefs.h. */ |
14240 | _ACEOF | |
14241 | cat confdefs.h >>conftest.$ac_ext | |
14242 | cat >>conftest.$ac_ext <<_ACEOF | |
14243 | /* end confdefs.h. */ | |
84e70f78 KR |
14244 | |
14245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14246 | #ifdef __cplusplus | |
14247 | extern "C" | |
14248 | #endif | |
14249 | /* We use char because int might match the return type of a gcc2 | |
14250 | builtin and then its argument prototype would still apply. */ | |
14251 | char res_send (); | |
14252 | int | |
14253 | main () | |
14254 | { | |
14255 | res_send (); | |
14256 | ; | |
14257 | return 0; | |
14258 | } | |
14259 | _ACEOF | |
14260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14262 | (eval $ac_link) 2>&5 |
14263 | ac_status=$? | |
c0d27fcc | 14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14265 | (exit $ac_status); } && |
14266 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14268 | (eval $ac_try) 2>&5 |
14269 | ac_status=$? | |
c0d27fcc | 14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14271 | (exit $ac_status); }; }; then |
14272 | ac_cv_lib_resolv_res_send=yes | |
14273 | else | |
14274 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14275 | sed 's/^/| /' conftest.$ac_ext >&5 |
14276 | ||
84e70f78 KR |
14277 | ac_cv_lib_resolv_res_send=no |
14278 | fi | |
14279 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14280 | LIBS=$ac_check_lib_save_LIBS | |
14281 | fi | |
c0d27fcc | 14282 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
14283 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
14284 | if test $ac_cv_lib_resolv_res_send = yes; then | |
14285 | resolv=yes | |
14286 | else | |
c0d27fcc | 14287 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
14288 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
14289 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
14290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14291 | else | |
14292 | ac_check_lib_save_LIBS=$LIBS | |
14293 | LIBS="-lresolv $LIBS" | |
14294 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14295 | #line $LINENO "configure" |
cd958eb3 MB |
14296 | /* confdefs.h. */ |
14297 | _ACEOF | |
14298 | cat confdefs.h >>conftest.$ac_ext | |
14299 | cat >>conftest.$ac_ext <<_ACEOF | |
14300 | /* end confdefs.h. */ | |
84e70f78 KR |
14301 | |
14302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14303 | #ifdef __cplusplus | |
14304 | extern "C" | |
14305 | #endif | |
14306 | /* We use char because int might match the return type of a gcc2 | |
14307 | builtin and then its argument prototype would still apply. */ | |
14308 | char __res_send (); | |
14309 | int | |
14310 | main () | |
14311 | { | |
14312 | __res_send (); | |
14313 | ; | |
14314 | return 0; | |
14315 | } | |
14316 | _ACEOF | |
14317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14319 | (eval $ac_link) 2>&5 |
14320 | ac_status=$? | |
c0d27fcc | 14321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14322 | (exit $ac_status); } && |
14323 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14325 | (eval $ac_try) 2>&5 |
14326 | ac_status=$? | |
c0d27fcc | 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14328 | (exit $ac_status); }; }; then |
14329 | ac_cv_lib_resolv___res_send=yes | |
14330 | else | |
14331 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14332 | sed 's/^/| /' conftest.$ac_ext >&5 |
14333 | ||
84e70f78 KR |
14334 | ac_cv_lib_resolv___res_send=no |
14335 | fi | |
14336 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14337 | LIBS=$ac_check_lib_save_LIBS | |
14338 | fi | |
c0d27fcc | 14339 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
14340 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
14341 | if test $ac_cv_lib_resolv___res_send = yes; then | |
14342 | resolv=yes | |
14343 | fi | |
14344 | ||
14345 | fi | |
14346 | ||
14347 | fi | |
14348 | ||
14349 | fi | |
14350 | ||
14351 | if test "$resolv" = yes ; then | |
14352 | RESOLVLIB=-lresolv | |
b936fae4 | 14353 | |
c0d27fcc | 14354 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 14355 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 14356 | _ACEOF |
84e70f78 KR |
14357 | |
14358 | else | |
14359 | RESOLVLIB= | |
14360 | fi | |
c0d27fcc | 14361 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
14362 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
14363 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
14364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14365 | else | |
14366 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14367 | #line $LINENO "configure" |
cd958eb3 MB |
14368 | /* confdefs.h. */ |
14369 | _ACEOF | |
14370 | cat confdefs.h >>conftest.$ac_ext | |
14371 | cat >>conftest.$ac_ext <<_ACEOF | |
14372 | /* end confdefs.h. */ | |
84e70f78 | 14373 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
14374 | which can conflict with char hes_getmailhost (); below. |
14375 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14376 | <limits.h> exists even on freestanding compilers. */ | |
14377 | #ifdef __STDC__ | |
14378 | # include <limits.h> | |
14379 | #else | |
14380 | # include <assert.h> | |
14381 | #endif | |
84e70f78 KR |
14382 | /* Override any gcc2 internal prototype to avoid an error. */ |
14383 | #ifdef __cplusplus | |
14384 | extern "C" | |
cd958eb3 | 14385 | { |
84e70f78 KR |
14386 | #endif |
14387 | /* We use char because int might match the return type of a gcc2 | |
14388 | builtin and then its argument prototype would still apply. */ | |
14389 | char hes_getmailhost (); | |
84e70f78 KR |
14390 | /* The GNU C library defines this for functions which it implements |
14391 | to always fail with ENOSYS. Some functions are actually named | |
14392 | something starting with __ and the normal name is an alias. */ | |
14393 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
14394 | choke me | |
14395 | #else | |
cd958eb3 | 14396 | char (*f) () = hes_getmailhost; |
84e70f78 | 14397 | #endif |
cd958eb3 MB |
14398 | #ifdef __cplusplus |
14399 | } | |
14400 | #endif | |
14401 | ||
14402 | int | |
14403 | main () | |
14404 | { | |
9e71690e | 14405 | return f != hes_getmailhost; |
84e70f78 KR |
14406 | ; |
14407 | return 0; | |
14408 | } | |
14409 | _ACEOF | |
14410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14412 | (eval $ac_link) 2>&5 |
14413 | ac_status=$? | |
c0d27fcc | 14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14415 | (exit $ac_status); } && |
14416 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14418 | (eval $ac_try) 2>&5 |
14419 | ac_status=$? | |
c0d27fcc | 14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14421 | (exit $ac_status); }; }; then |
14422 | ac_cv_func_hes_getmailhost=yes | |
14423 | else | |
14424 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14425 | sed 's/^/| /' conftest.$ac_ext >&5 |
14426 | ||
84e70f78 KR |
14427 | ac_cv_func_hes_getmailhost=no |
14428 | fi | |
14429 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14430 | fi | |
c0d27fcc | 14431 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
14432 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
14433 | if test $ac_cv_func_hes_getmailhost = yes; then | |
14434 | : | |
14435 | else | |
c0d27fcc | 14436 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
14437 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
14438 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
14439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14440 | else | |
14441 | ac_check_lib_save_LIBS=$LIBS | |
14442 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
14443 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 14444 | #line $LINENO "configure" |
cd958eb3 MB |
14445 | /* confdefs.h. */ |
14446 | _ACEOF | |
14447 | cat confdefs.h >>conftest.$ac_ext | |
14448 | cat >>conftest.$ac_ext <<_ACEOF | |
14449 | /* end confdefs.h. */ | |
84e70f78 KR |
14450 | |
14451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14452 | #ifdef __cplusplus | |
14453 | extern "C" | |
14454 | #endif | |
14455 | /* We use char because int might match the return type of a gcc2 | |
14456 | builtin and then its argument prototype would still apply. */ | |
14457 | char hes_getmailhost (); | |
14458 | int | |
14459 | main () | |
14460 | { | |
14461 | hes_getmailhost (); | |
14462 | ; | |
14463 | return 0; | |
14464 | } | |
14465 | _ACEOF | |
14466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14468 | (eval $ac_link) 2>&5 |
14469 | ac_status=$? | |
c0d27fcc | 14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14471 | (exit $ac_status); } && |
14472 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14474 | (eval $ac_try) 2>&5 |
14475 | ac_status=$? | |
c0d27fcc | 14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14477 | (exit $ac_status); }; }; then |
14478 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
14479 | else | |
14480 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
14482 | ||
84e70f78 KR |
14483 | ac_cv_lib_hesiod_hes_getmailhost=no |
14484 | fi | |
14485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14486 | LIBS=$ac_check_lib_save_LIBS | |
14487 | fi | |
c0d27fcc | 14488 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
14489 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
14490 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 14491 | |
c0d27fcc | 14492 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 14493 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 14494 | _ACEOF |
84e70f78 KR |
14495 | |
14496 | else | |
14497 | : | |
14498 | fi | |
14499 | ||
14500 | fi | |
14501 | ||
14502 | fi | |
14503 | ||
a21616bd KR |
14504 | # These tell us which Kerberos-related libraries to use. |
14505 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 14506 | |
c0d27fcc | 14507 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
14508 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
14509 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
14510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14511 | else |
503d2be0 | 14512 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14513 | LIBS="-lcom_err $LIBS" |
503d2be0 | 14514 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14515 | #line $LINENO "configure" |
cd958eb3 MB |
14516 | /* confdefs.h. */ |
14517 | _ACEOF | |
14518 | cat confdefs.h >>conftest.$ac_ext | |
14519 | cat >>conftest.$ac_ext <<_ACEOF | |
14520 | /* end confdefs.h. */ | |
503d2be0 | 14521 | |
a21616bd | 14522 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14523 | #ifdef __cplusplus |
14524 | extern "C" | |
14525 | #endif | |
a21616bd | 14526 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14527 | builtin and then its argument prototype would still apply. */ |
14528 | char com_err (); | |
14529 | int | |
14530 | main () | |
14531 | { | |
14532 | com_err (); | |
14533 | ; | |
14534 | return 0; | |
14535 | } | |
14536 | _ACEOF | |
14537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14539 | (eval $ac_link) 2>&5 |
14540 | ac_status=$? | |
c0d27fcc | 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14542 | (exit $ac_status); } && |
14543 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14545 | (eval $ac_try) 2>&5 |
14546 | ac_status=$? | |
c0d27fcc | 14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14548 | (exit $ac_status); }; }; then |
14549 | ac_cv_lib_com_err_com_err=yes | |
14550 | else | |
14551 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14552 | sed 's/^/| /' conftest.$ac_ext >&5 |
14553 | ||
503d2be0 AS |
14554 | ac_cv_lib_com_err_com_err=no |
14555 | fi | |
14556 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14557 | LIBS=$ac_check_lib_save_LIBS | |
14558 | fi | |
c0d27fcc | 14559 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
14560 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
14561 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 14562 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14563 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 14564 | _ACEOF |
a21616bd KR |
14565 | |
14566 | LIBS="-lcom_err $LIBS" | |
14567 | ||
a21616bd KR |
14568 | fi |
14569 | ||
c0d27fcc MR |
14570 | |
14571 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
14572 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
14573 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
14574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14575 | else |
503d2be0 | 14576 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14577 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 14578 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14579 | #line $LINENO "configure" |
cd958eb3 MB |
14580 | /* confdefs.h. */ |
14581 | _ACEOF | |
14582 | cat confdefs.h >>conftest.$ac_ext | |
14583 | cat >>conftest.$ac_ext <<_ACEOF | |
14584 | /* end confdefs.h. */ | |
503d2be0 | 14585 | |
a21616bd | 14586 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14587 | #ifdef __cplusplus |
14588 | extern "C" | |
14589 | #endif | |
a21616bd | 14590 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14591 | builtin and then its argument prototype would still apply. */ |
14592 | char mit_des_cbc_encrypt (); | |
14593 | int | |
14594 | main () | |
14595 | { | |
14596 | mit_des_cbc_encrypt (); | |
14597 | ; | |
14598 | return 0; | |
14599 | } | |
14600 | _ACEOF | |
14601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14603 | (eval $ac_link) 2>&5 |
14604 | ac_status=$? | |
c0d27fcc | 14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14606 | (exit $ac_status); } && |
14607 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14609 | (eval $ac_try) 2>&5 |
14610 | ac_status=$? | |
c0d27fcc | 14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14612 | (exit $ac_status); }; }; then |
14613 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
14614 | else | |
14615 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14616 | sed 's/^/| /' conftest.$ac_ext >&5 |
14617 | ||
503d2be0 AS |
14618 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
14619 | fi | |
14620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14621 | LIBS=$ac_check_lib_save_LIBS | |
14622 | fi | |
c0d27fcc | 14623 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
14624 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
14625 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 14626 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14627 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 14628 | _ACEOF |
a21616bd KR |
14629 | |
14630 | LIBS="-lk5crypto $LIBS" | |
14631 | ||
a21616bd KR |
14632 | fi |
14633 | ||
c0d27fcc MR |
14634 | |
14635 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
14636 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
14637 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
14638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14639 | else |
503d2be0 | 14640 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14641 | LIBS="-lcrypto $LIBS" |
503d2be0 | 14642 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14643 | #line $LINENO "configure" |
cd958eb3 MB |
14644 | /* confdefs.h. */ |
14645 | _ACEOF | |
14646 | cat confdefs.h >>conftest.$ac_ext | |
14647 | cat >>conftest.$ac_ext <<_ACEOF | |
14648 | /* end confdefs.h. */ | |
503d2be0 | 14649 | |
a21616bd | 14650 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14651 | #ifdef __cplusplus |
14652 | extern "C" | |
14653 | #endif | |
a21616bd | 14654 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14655 | builtin and then its argument prototype would still apply. */ |
14656 | char mit_des_cbc_encrypt (); | |
14657 | int | |
14658 | main () | |
14659 | { | |
14660 | mit_des_cbc_encrypt (); | |
14661 | ; | |
14662 | return 0; | |
14663 | } | |
14664 | _ACEOF | |
14665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14667 | (eval $ac_link) 2>&5 |
14668 | ac_status=$? | |
c0d27fcc | 14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14670 | (exit $ac_status); } && |
14671 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14673 | (eval $ac_try) 2>&5 |
14674 | ac_status=$? | |
c0d27fcc | 14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14676 | (exit $ac_status); }; }; then |
14677 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
14678 | else | |
14679 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14680 | sed 's/^/| /' conftest.$ac_ext >&5 |
14681 | ||
503d2be0 AS |
14682 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
14683 | fi | |
14684 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14685 | LIBS=$ac_check_lib_save_LIBS | |
14686 | fi | |
c0d27fcc | 14687 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
14688 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
14689 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 14690 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14691 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 14692 | _ACEOF |
a21616bd KR |
14693 | |
14694 | LIBS="-lcrypto $LIBS" | |
14695 | ||
a21616bd KR |
14696 | fi |
14697 | ||
c0d27fcc MR |
14698 | |
14699 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
14700 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
14701 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
14702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14703 | else |
503d2be0 | 14704 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14705 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 14706 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14707 | #line $LINENO "configure" |
cd958eb3 MB |
14708 | /* confdefs.h. */ |
14709 | _ACEOF | |
14710 | cat confdefs.h >>conftest.$ac_ext | |
14711 | cat >>conftest.$ac_ext <<_ACEOF | |
14712 | /* end confdefs.h. */ | |
a21616bd | 14713 | |
503d2be0 AS |
14714 | /* Override any gcc2 internal prototype to avoid an error. */ |
14715 | #ifdef __cplusplus | |
14716 | extern "C" | |
14717 | #endif | |
14718 | /* We use char because int might match the return type of a gcc2 | |
14719 | builtin and then its argument prototype would still apply. */ | |
14720 | char krb5_init_context (); | |
14721 | int | |
14722 | main () | |
14723 | { | |
14724 | krb5_init_context (); | |
14725 | ; | |
14726 | return 0; | |
14727 | } | |
14728 | _ACEOF | |
14729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14731 | (eval $ac_link) 2>&5 |
14732 | ac_status=$? | |
c0d27fcc | 14733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14734 | (exit $ac_status); } && |
14735 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14737 | (eval $ac_try) 2>&5 |
14738 | ac_status=$? | |
c0d27fcc | 14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14740 | (exit $ac_status); }; }; then |
14741 | ac_cv_lib_krb5_krb5_init_context=yes | |
14742 | else | |
14743 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14744 | sed 's/^/| /' conftest.$ac_ext >&5 |
14745 | ||
503d2be0 AS |
14746 | ac_cv_lib_krb5_krb5_init_context=no |
14747 | fi | |
14748 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14749 | LIBS=$ac_check_lib_save_LIBS | |
14750 | fi | |
c0d27fcc | 14751 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
14752 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
14753 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 14754 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14755 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 14756 | _ACEOF |
a21616bd KR |
14757 | |
14758 | LIBS="-lkrb5 $LIBS" | |
14759 | ||
a21616bd KR |
14760 | fi |
14761 | ||
14762 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 14763 | |
c0d27fcc | 14764 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
14765 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
14766 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
14767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14768 | else |
503d2be0 | 14769 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14770 | LIBS="-ldes425 $LIBS" |
503d2be0 | 14771 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14772 | #line $LINENO "configure" |
cd958eb3 MB |
14773 | /* confdefs.h. */ |
14774 | _ACEOF | |
14775 | cat confdefs.h >>conftest.$ac_ext | |
14776 | cat >>conftest.$ac_ext <<_ACEOF | |
14777 | /* end confdefs.h. */ | |
503d2be0 | 14778 | |
a21616bd | 14779 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14780 | #ifdef __cplusplus |
14781 | extern "C" | |
14782 | #endif | |
a21616bd | 14783 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14784 | builtin and then its argument prototype would still apply. */ |
14785 | char des_cbc_encrypt (); | |
14786 | int | |
14787 | main () | |
14788 | { | |
14789 | des_cbc_encrypt (); | |
14790 | ; | |
14791 | return 0; | |
14792 | } | |
14793 | _ACEOF | |
14794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14796 | (eval $ac_link) 2>&5 |
14797 | ac_status=$? | |
c0d27fcc | 14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14799 | (exit $ac_status); } && |
14800 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14802 | (eval $ac_try) 2>&5 |
14803 | ac_status=$? | |
c0d27fcc | 14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14805 | (exit $ac_status); }; }; then |
14806 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
14807 | else | |
14808 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14809 | sed 's/^/| /' conftest.$ac_ext >&5 |
14810 | ||
503d2be0 AS |
14811 | ac_cv_lib_des425_des_cbc_encrypt=no |
14812 | fi | |
14813 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14814 | LIBS=$ac_check_lib_save_LIBS | |
14815 | fi | |
c0d27fcc | 14816 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
14817 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
14818 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 14819 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14820 | #define HAVE_LIBDES425 1 |
c0d27fcc | 14821 | _ACEOF |
a21616bd KR |
14822 | |
14823 | LIBS="-ldes425 $LIBS" | |
14824 | ||
14825 | else | |
503d2be0 | 14826 | |
c0d27fcc | 14827 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
14828 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
14829 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14831 | else |
503d2be0 | 14832 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14833 | LIBS="-ldes $LIBS" |
503d2be0 | 14834 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14835 | #line $LINENO "configure" |
cd958eb3 MB |
14836 | /* confdefs.h. */ |
14837 | _ACEOF | |
14838 | cat confdefs.h >>conftest.$ac_ext | |
14839 | cat >>conftest.$ac_ext <<_ACEOF | |
14840 | /* end confdefs.h. */ | |
503d2be0 | 14841 | |
a21616bd | 14842 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14843 | #ifdef __cplusplus |
14844 | extern "C" | |
14845 | #endif | |
a21616bd | 14846 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14847 | builtin and then its argument prototype would still apply. */ |
14848 | char des_cbc_encrypt (); | |
14849 | int | |
14850 | main () | |
14851 | { | |
14852 | des_cbc_encrypt (); | |
14853 | ; | |
14854 | return 0; | |
14855 | } | |
14856 | _ACEOF | |
14857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14859 | (eval $ac_link) 2>&5 |
14860 | ac_status=$? | |
c0d27fcc | 14861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14862 | (exit $ac_status); } && |
14863 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14865 | (eval $ac_try) 2>&5 |
14866 | ac_status=$? | |
c0d27fcc | 14867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14868 | (exit $ac_status); }; }; then |
14869 | ac_cv_lib_des_des_cbc_encrypt=yes | |
14870 | else | |
14871 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14872 | sed 's/^/| /' conftest.$ac_ext >&5 |
14873 | ||
503d2be0 AS |
14874 | ac_cv_lib_des_des_cbc_encrypt=no |
14875 | fi | |
14876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14877 | LIBS=$ac_check_lib_save_LIBS | |
14878 | fi | |
c0d27fcc | 14879 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
14880 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
14881 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 14882 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14883 | #define HAVE_LIBDES 1 |
c0d27fcc | 14884 | _ACEOF |
a21616bd KR |
14885 | |
14886 | LIBS="-ldes $LIBS" | |
14887 | ||
a21616bd KR |
14888 | fi |
14889 | ||
14890 | fi | |
14891 | ||
c0d27fcc MR |
14892 | |
14893 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
14894 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
14895 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
14896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14897 | else |
503d2be0 | 14898 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14899 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 14900 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14901 | #line $LINENO "configure" |
cd958eb3 MB |
14902 | /* confdefs.h. */ |
14903 | _ACEOF | |
14904 | cat confdefs.h >>conftest.$ac_ext | |
14905 | cat >>conftest.$ac_ext <<_ACEOF | |
14906 | /* end confdefs.h. */ | |
503d2be0 | 14907 | |
a21616bd | 14908 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14909 | #ifdef __cplusplus |
14910 | extern "C" | |
14911 | #endif | |
a21616bd | 14912 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14913 | builtin and then its argument prototype would still apply. */ |
14914 | char krb_get_cred (); | |
14915 | int | |
14916 | main () | |
14917 | { | |
14918 | krb_get_cred (); | |
14919 | ; | |
14920 | return 0; | |
14921 | } | |
14922 | _ACEOF | |
14923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14925 | (eval $ac_link) 2>&5 |
14926 | ac_status=$? | |
c0d27fcc | 14927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14928 | (exit $ac_status); } && |
14929 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14931 | (eval $ac_try) 2>&5 |
14932 | ac_status=$? | |
c0d27fcc | 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14934 | (exit $ac_status); }; }; then |
14935 | ac_cv_lib_krb4_krb_get_cred=yes | |
14936 | else | |
14937 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
14938 | sed 's/^/| /' conftest.$ac_ext >&5 |
14939 | ||
503d2be0 AS |
14940 | ac_cv_lib_krb4_krb_get_cred=no |
14941 | fi | |
14942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14943 | LIBS=$ac_check_lib_save_LIBS | |
14944 | fi | |
c0d27fcc | 14945 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
14946 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
14947 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 14948 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14949 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 14950 | _ACEOF |
a21616bd KR |
14951 | |
14952 | LIBS="-lkrb4 $LIBS" | |
14953 | ||
14954 | else | |
503d2be0 | 14955 | |
c0d27fcc | 14956 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
14957 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
14958 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
14959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14960 | else |
503d2be0 | 14961 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14962 | LIBS="-lkrb $LIBS" |
503d2be0 | 14963 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 14964 | #line $LINENO "configure" |
cd958eb3 MB |
14965 | /* confdefs.h. */ |
14966 | _ACEOF | |
14967 | cat confdefs.h >>conftest.$ac_ext | |
14968 | cat >>conftest.$ac_ext <<_ACEOF | |
14969 | /* end confdefs.h. */ | |
503d2be0 | 14970 | |
a21616bd | 14971 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14972 | #ifdef __cplusplus |
14973 | extern "C" | |
14974 | #endif | |
a21616bd | 14975 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14976 | builtin and then its argument prototype would still apply. */ |
14977 | char krb_get_cred (); | |
14978 | int | |
14979 | main () | |
14980 | { | |
14981 | krb_get_cred (); | |
14982 | ; | |
14983 | return 0; | |
14984 | } | |
14985 | _ACEOF | |
14986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14988 | (eval $ac_link) 2>&5 |
14989 | ac_status=$? | |
c0d27fcc | 14990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14991 | (exit $ac_status); } && |
14992 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14994 | (eval $ac_try) 2>&5 |
14995 | ac_status=$? | |
c0d27fcc | 14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14997 | (exit $ac_status); }; }; then |
14998 | ac_cv_lib_krb_krb_get_cred=yes | |
14999 | else | |
15000 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15001 | sed 's/^/| /' conftest.$ac_ext >&5 |
15002 | ||
503d2be0 AS |
15003 | ac_cv_lib_krb_krb_get_cred=no |
15004 | fi | |
15005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15006 | LIBS=$ac_check_lib_save_LIBS | |
15007 | fi | |
c0d27fcc | 15008 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
15009 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
15010 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 15011 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15012 | #define HAVE_LIBKRB 1 |
c0d27fcc | 15013 | _ACEOF |
a21616bd KR |
15014 | |
15015 | LIBS="-lkrb $LIBS" | |
15016 | ||
a21616bd KR |
15017 | fi |
15018 | ||
15019 | fi | |
15020 | ||
15021 | fi | |
15022 | ||
15023 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
15024 | |
15025 | for ac_header in krb5.h | |
a21616bd | 15026 | do |
503d2be0 | 15027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15033 | fi |
15034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15036 | else |
c0d27fcc MR |
15037 | # Is the header compilable? |
15038 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15039 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15040 | cat >conftest.$ac_ext <<_ACEOF | |
15041 | #line $LINENO "configure" | |
cd958eb3 MB |
15042 | /* confdefs.h. */ |
15043 | _ACEOF | |
15044 | cat confdefs.h >>conftest.$ac_ext | |
15045 | cat >>conftest.$ac_ext <<_ACEOF | |
15046 | /* end confdefs.h. */ | |
c0d27fcc MR |
15047 | $ac_includes_default |
15048 | #include <$ac_header> | |
15049 | _ACEOF | |
15050 | rm -f conftest.$ac_objext | |
15051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15052 | (eval $ac_compile) 2>&5 | |
15053 | ac_status=$? | |
15054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15055 | (exit $ac_status); } && | |
15056 | { ac_try='test -s conftest.$ac_objext' | |
15057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15058 | (eval $ac_try) 2>&5 | |
15059 | ac_status=$? | |
15060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15061 | (exit $ac_status); }; }; then | |
15062 | ac_header_compiler=yes | |
15063 | else | |
15064 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15065 | sed 's/^/| /' conftest.$ac_ext >&5 |
15066 | ||
c0d27fcc MR |
15067 | ac_header_compiler=no |
15068 | fi | |
15069 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15070 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15071 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15072 | ||
15073 | # Is the header present? | |
15074 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15075 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15076 | cat >conftest.$ac_ext <<_ACEOF | |
15077 | #line $LINENO "configure" | |
cd958eb3 MB |
15078 | /* confdefs.h. */ |
15079 | _ACEOF | |
15080 | cat confdefs.h >>conftest.$ac_ext | |
15081 | cat >>conftest.$ac_ext <<_ACEOF | |
15082 | /* end confdefs.h. */ | |
503d2be0 AS |
15083 | #include <$ac_header> |
15084 | _ACEOF | |
c0d27fcc | 15085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15087 | ac_status=$? | |
6bae0ccf | 15088 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15089 | rm -f conftest.er1 |
15090 | cat conftest.err >&5 | |
c0d27fcc | 15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15092 | (exit $ac_status); } >/dev/null; then |
15093 | if test -s conftest.err; then | |
15094 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15095 | else | |
15096 | ac_cpp_err= | |
15097 | fi | |
15098 | else | |
15099 | ac_cpp_err=yes | |
15100 | fi | |
15101 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15102 | ac_header_preproc=yes |
503d2be0 AS |
15103 | else |
15104 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15105 | sed 's/^/| /' conftest.$ac_ext >&5 |
15106 | ||
c0d27fcc | 15107 | ac_header_preproc=no |
a21616bd | 15108 | fi |
503d2be0 | 15109 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15110 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15111 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15112 | ||
15113 | # So? What about this header? | |
15114 | case $ac_header_compiler:$ac_header_preproc in | |
15115 | yes:no ) | |
15116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15119 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15120 | ( | |
15121 | cat <<\_ASBOX | |
15122 | ## ------------------------------------ ## | |
15123 | ## Report this to bug-autoconf@gnu.org. ## | |
15124 | ## ------------------------------------ ## | |
15125 | _ASBOX | |
15126 | ) | | |
15127 | sed "s/^/$as_me: WARNING: /" >&2 | |
15128 | ;; | |
c0d27fcc MR |
15129 | no:yes ) |
15130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15136 | ( | |
15137 | cat <<\_ASBOX | |
15138 | ## ------------------------------------ ## | |
15139 | ## Report this to bug-autoconf@gnu.org. ## | |
15140 | ## ------------------------------------ ## | |
15141 | _ASBOX | |
15142 | ) | | |
15143 | sed "s/^/$as_me: WARNING: /" >&2 | |
15144 | ;; | |
c0d27fcc MR |
15145 | esac |
15146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15150 | else | |
15151 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15152 | fi |
c0d27fcc | 15153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15155 | |
15156 | fi | |
503d2be0 | 15157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15158 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15160 | _ACEOF |
503d2be0 | 15161 | |
a21616bd | 15162 | fi |
c0d27fcc | 15163 | |
a21616bd KR |
15164 | done |
15165 | ||
15166 | else | |
503d2be0 AS |
15167 | |
15168 | for ac_header in des.h | |
a21616bd | 15169 | do |
503d2be0 | 15170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15176 | fi |
15177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15178 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15179 | else |
c0d27fcc MR |
15180 | # Is the header compilable? |
15181 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15182 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15183 | cat >conftest.$ac_ext <<_ACEOF | |
15184 | #line $LINENO "configure" | |
cd958eb3 MB |
15185 | /* confdefs.h. */ |
15186 | _ACEOF | |
15187 | cat confdefs.h >>conftest.$ac_ext | |
15188 | cat >>conftest.$ac_ext <<_ACEOF | |
15189 | /* end confdefs.h. */ | |
c0d27fcc MR |
15190 | $ac_includes_default |
15191 | #include <$ac_header> | |
15192 | _ACEOF | |
15193 | rm -f conftest.$ac_objext | |
15194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15195 | (eval $ac_compile) 2>&5 | |
15196 | ac_status=$? | |
15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15198 | (exit $ac_status); } && | |
15199 | { ac_try='test -s conftest.$ac_objext' | |
15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15201 | (eval $ac_try) 2>&5 | |
15202 | ac_status=$? | |
15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15204 | (exit $ac_status); }; }; then | |
15205 | ac_header_compiler=yes | |
15206 | else | |
15207 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15208 | sed 's/^/| /' conftest.$ac_ext >&5 |
15209 | ||
c0d27fcc MR |
15210 | ac_header_compiler=no |
15211 | fi | |
15212 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15213 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15214 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15215 | ||
15216 | # Is the header present? | |
15217 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15218 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15219 | cat >conftest.$ac_ext <<_ACEOF | |
15220 | #line $LINENO "configure" | |
cd958eb3 MB |
15221 | /* confdefs.h. */ |
15222 | _ACEOF | |
15223 | cat confdefs.h >>conftest.$ac_ext | |
15224 | cat >>conftest.$ac_ext <<_ACEOF | |
15225 | /* end confdefs.h. */ | |
503d2be0 AS |
15226 | #include <$ac_header> |
15227 | _ACEOF | |
c0d27fcc | 15228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15230 | ac_status=$? | |
6bae0ccf | 15231 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15232 | rm -f conftest.er1 |
15233 | cat conftest.err >&5 | |
c0d27fcc | 15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15235 | (exit $ac_status); } >/dev/null; then |
15236 | if test -s conftest.err; then | |
15237 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15238 | else | |
15239 | ac_cpp_err= | |
15240 | fi | |
15241 | else | |
15242 | ac_cpp_err=yes | |
15243 | fi | |
15244 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15245 | ac_header_preproc=yes |
503d2be0 AS |
15246 | else |
15247 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15248 | sed 's/^/| /' conftest.$ac_ext >&5 |
15249 | ||
c0d27fcc | 15250 | ac_header_preproc=no |
a21616bd | 15251 | fi |
503d2be0 | 15252 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15253 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15254 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15255 | ||
15256 | # So? What about this header? | |
15257 | case $ac_header_compiler:$ac_header_preproc in | |
15258 | yes:no ) | |
15259 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15260 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15263 | ( | |
15264 | cat <<\_ASBOX | |
15265 | ## ------------------------------------ ## | |
15266 | ## Report this to bug-autoconf@gnu.org. ## | |
15267 | ## ------------------------------------ ## | |
15268 | _ASBOX | |
15269 | ) | | |
15270 | sed "s/^/$as_me: WARNING: /" >&2 | |
15271 | ;; | |
c0d27fcc MR |
15272 | no:yes ) |
15273 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15275 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15276 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15278 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15279 | ( | |
15280 | cat <<\_ASBOX | |
15281 | ## ------------------------------------ ## | |
15282 | ## Report this to bug-autoconf@gnu.org. ## | |
15283 | ## ------------------------------------ ## | |
15284 | _ASBOX | |
15285 | ) | | |
15286 | sed "s/^/$as_me: WARNING: /" >&2 | |
15287 | ;; | |
c0d27fcc MR |
15288 | esac |
15289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15293 | else | |
15294 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15295 | fi |
c0d27fcc | 15296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15298 | |
15299 | fi | |
503d2be0 | 15300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15301 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15302 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15303 | _ACEOF |
503d2be0 | 15304 | |
a21616bd | 15305 | else |
503d2be0 AS |
15306 | |
15307 | for ac_header in kerberosIV/des.h | |
a21616bd | 15308 | do |
503d2be0 | 15309 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15311 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15315 | fi |
15316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15317 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15318 | else |
c0d27fcc MR |
15319 | # Is the header compilable? |
15320 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15321 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15322 | cat >conftest.$ac_ext <<_ACEOF | |
15323 | #line $LINENO "configure" | |
cd958eb3 MB |
15324 | /* confdefs.h. */ |
15325 | _ACEOF | |
15326 | cat confdefs.h >>conftest.$ac_ext | |
15327 | cat >>conftest.$ac_ext <<_ACEOF | |
15328 | /* end confdefs.h. */ | |
c0d27fcc MR |
15329 | $ac_includes_default |
15330 | #include <$ac_header> | |
15331 | _ACEOF | |
15332 | rm -f conftest.$ac_objext | |
15333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15334 | (eval $ac_compile) 2>&5 | |
15335 | ac_status=$? | |
15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15337 | (exit $ac_status); } && | |
15338 | { ac_try='test -s conftest.$ac_objext' | |
15339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15340 | (eval $ac_try) 2>&5 | |
15341 | ac_status=$? | |
15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15343 | (exit $ac_status); }; }; then | |
15344 | ac_header_compiler=yes | |
15345 | else | |
15346 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15347 | sed 's/^/| /' conftest.$ac_ext >&5 |
15348 | ||
c0d27fcc MR |
15349 | ac_header_compiler=no |
15350 | fi | |
15351 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15353 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15354 | ||
15355 | # Is the header present? | |
15356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15358 | cat >conftest.$ac_ext <<_ACEOF | |
15359 | #line $LINENO "configure" | |
cd958eb3 MB |
15360 | /* confdefs.h. */ |
15361 | _ACEOF | |
15362 | cat confdefs.h >>conftest.$ac_ext | |
15363 | cat >>conftest.$ac_ext <<_ACEOF | |
15364 | /* end confdefs.h. */ | |
503d2be0 AS |
15365 | #include <$ac_header> |
15366 | _ACEOF | |
c0d27fcc | 15367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15369 | ac_status=$? | |
6bae0ccf | 15370 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15371 | rm -f conftest.er1 |
15372 | cat conftest.err >&5 | |
c0d27fcc | 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15374 | (exit $ac_status); } >/dev/null; then |
15375 | if test -s conftest.err; then | |
15376 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15377 | else | |
15378 | ac_cpp_err= | |
15379 | fi | |
15380 | else | |
15381 | ac_cpp_err=yes | |
15382 | fi | |
15383 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15384 | ac_header_preproc=yes |
503d2be0 AS |
15385 | else |
15386 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15387 | sed 's/^/| /' conftest.$ac_ext >&5 |
15388 | ||
c0d27fcc | 15389 | ac_header_preproc=no |
a21616bd | 15390 | fi |
503d2be0 | 15391 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15393 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15394 | ||
15395 | # So? What about this header? | |
15396 | case $ac_header_compiler:$ac_header_preproc in | |
15397 | yes:no ) | |
15398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15402 | ( | |
15403 | cat <<\_ASBOX | |
15404 | ## ------------------------------------ ## | |
15405 | ## Report this to bug-autoconf@gnu.org. ## | |
15406 | ## ------------------------------------ ## | |
15407 | _ASBOX | |
15408 | ) | | |
15409 | sed "s/^/$as_me: WARNING: /" >&2 | |
15410 | ;; | |
c0d27fcc MR |
15411 | no:yes ) |
15412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15418 | ( | |
15419 | cat <<\_ASBOX | |
15420 | ## ------------------------------------ ## | |
15421 | ## Report this to bug-autoconf@gnu.org. ## | |
15422 | ## ------------------------------------ ## | |
15423 | _ASBOX | |
15424 | ) | | |
15425 | sed "s/^/$as_me: WARNING: /" >&2 | |
15426 | ;; | |
c0d27fcc MR |
15427 | esac |
15428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15432 | else | |
15433 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15434 | fi |
c0d27fcc | 15435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15437 | |
15438 | fi | |
503d2be0 | 15439 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15440 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15441 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15442 | _ACEOF |
503d2be0 | 15443 | |
a21616bd | 15444 | else |
503d2be0 AS |
15445 | |
15446 | for ac_header in kerberos/des.h | |
a21616bd | 15447 | do |
503d2be0 | 15448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15454 | fi |
15455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15457 | else |
c0d27fcc MR |
15458 | # Is the header compilable? |
15459 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15460 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15461 | cat >conftest.$ac_ext <<_ACEOF | |
15462 | #line $LINENO "configure" | |
cd958eb3 MB |
15463 | /* confdefs.h. */ |
15464 | _ACEOF | |
15465 | cat confdefs.h >>conftest.$ac_ext | |
15466 | cat >>conftest.$ac_ext <<_ACEOF | |
15467 | /* end confdefs.h. */ | |
c0d27fcc MR |
15468 | $ac_includes_default |
15469 | #include <$ac_header> | |
15470 | _ACEOF | |
15471 | rm -f conftest.$ac_objext | |
15472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15473 | (eval $ac_compile) 2>&5 | |
15474 | ac_status=$? | |
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15476 | (exit $ac_status); } && | |
15477 | { ac_try='test -s conftest.$ac_objext' | |
15478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15479 | (eval $ac_try) 2>&5 | |
15480 | ac_status=$? | |
15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15482 | (exit $ac_status); }; }; then | |
15483 | ac_header_compiler=yes | |
15484 | else | |
15485 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15486 | sed 's/^/| /' conftest.$ac_ext >&5 |
15487 | ||
c0d27fcc MR |
15488 | ac_header_compiler=no |
15489 | fi | |
15490 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15491 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15492 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15493 | ||
15494 | # Is the header present? | |
15495 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15496 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15497 | cat >conftest.$ac_ext <<_ACEOF | |
15498 | #line $LINENO "configure" | |
cd958eb3 MB |
15499 | /* confdefs.h. */ |
15500 | _ACEOF | |
15501 | cat confdefs.h >>conftest.$ac_ext | |
15502 | cat >>conftest.$ac_ext <<_ACEOF | |
15503 | /* end confdefs.h. */ | |
503d2be0 AS |
15504 | #include <$ac_header> |
15505 | _ACEOF | |
c0d27fcc | 15506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15508 | ac_status=$? | |
6bae0ccf | 15509 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15510 | rm -f conftest.er1 |
15511 | cat conftest.err >&5 | |
c0d27fcc | 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15513 | (exit $ac_status); } >/dev/null; then |
15514 | if test -s conftest.err; then | |
15515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15516 | else | |
15517 | ac_cpp_err= | |
15518 | fi | |
15519 | else | |
15520 | ac_cpp_err=yes | |
15521 | fi | |
15522 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15523 | ac_header_preproc=yes |
503d2be0 AS |
15524 | else |
15525 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15526 | sed 's/^/| /' conftest.$ac_ext >&5 |
15527 | ||
c0d27fcc | 15528 | ac_header_preproc=no |
a21616bd | 15529 | fi |
503d2be0 | 15530 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15531 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15532 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15533 | ||
15534 | # So? What about this header? | |
15535 | case $ac_header_compiler:$ac_header_preproc in | |
15536 | yes:no ) | |
15537 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15538 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15541 | ( | |
15542 | cat <<\_ASBOX | |
15543 | ## ------------------------------------ ## | |
15544 | ## Report this to bug-autoconf@gnu.org. ## | |
15545 | ## ------------------------------------ ## | |
15546 | _ASBOX | |
15547 | ) | | |
15548 | sed "s/^/$as_me: WARNING: /" >&2 | |
15549 | ;; | |
c0d27fcc MR |
15550 | no:yes ) |
15551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15556 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15557 | ( | |
15558 | cat <<\_ASBOX | |
15559 | ## ------------------------------------ ## | |
15560 | ## Report this to bug-autoconf@gnu.org. ## | |
15561 | ## ------------------------------------ ## | |
15562 | _ASBOX | |
15563 | ) | | |
15564 | sed "s/^/$as_me: WARNING: /" >&2 | |
15565 | ;; | |
c0d27fcc MR |
15566 | esac |
15567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15571 | else | |
15572 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15573 | fi |
c0d27fcc | 15574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15576 | |
15577 | fi | |
503d2be0 | 15578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15579 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15581 | _ACEOF |
a21616bd KR |
15582 | |
15583 | fi | |
c0d27fcc | 15584 | |
a21616bd KR |
15585 | done |
15586 | ||
98418dba | 15587 | fi |
c0d27fcc | 15588 | |
925c2f3f EZ |
15589 | done |
15590 | ||
98418dba | 15591 | fi |
c0d27fcc | 15592 | |
925c2f3f | 15593 | done |
98418dba | 15594 | |
c0d27fcc | 15595 | |
925c2f3f EZ |
15596 | for ac_header in krb.h |
15597 | do | |
15598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
15601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15604 | fi |
15605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15607 | else | |
15608 | # Is the header compilable? | |
15609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15611 | cat >conftest.$ac_ext <<_ACEOF | |
15612 | #line $LINENO "configure" | |
cd958eb3 MB |
15613 | /* confdefs.h. */ |
15614 | _ACEOF | |
15615 | cat confdefs.h >>conftest.$ac_ext | |
15616 | cat >>conftest.$ac_ext <<_ACEOF | |
15617 | /* end confdefs.h. */ | |
c0d27fcc MR |
15618 | $ac_includes_default |
15619 | #include <$ac_header> | |
15620 | _ACEOF | |
15621 | rm -f conftest.$ac_objext | |
15622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15623 | (eval $ac_compile) 2>&5 | |
15624 | ac_status=$? | |
15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15626 | (exit $ac_status); } && | |
15627 | { ac_try='test -s conftest.$ac_objext' | |
15628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15629 | (eval $ac_try) 2>&5 | |
15630 | ac_status=$? | |
15631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15632 | (exit $ac_status); }; }; then | |
15633 | ac_header_compiler=yes | |
925c2f3f | 15634 | else |
c0d27fcc | 15635 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
15636 | sed 's/^/| /' conftest.$ac_ext >&5 |
15637 | ||
c0d27fcc MR |
15638 | ac_header_compiler=no |
15639 | fi | |
15640 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15641 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15642 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15643 | ||
15644 | # Is the header present? | |
15645 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15646 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15647 | cat >conftest.$ac_ext <<_ACEOF | |
15648 | #line $LINENO "configure" | |
cd958eb3 MB |
15649 | /* confdefs.h. */ |
15650 | _ACEOF | |
15651 | cat confdefs.h >>conftest.$ac_ext | |
15652 | cat >>conftest.$ac_ext <<_ACEOF | |
15653 | /* end confdefs.h. */ | |
503d2be0 AS |
15654 | #include <$ac_header> |
15655 | _ACEOF | |
c0d27fcc | 15656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15657 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15658 | ac_status=$? | |
6bae0ccf | 15659 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15660 | rm -f conftest.er1 |
15661 | cat conftest.err >&5 | |
c0d27fcc | 15662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15663 | (exit $ac_status); } >/dev/null; then |
15664 | if test -s conftest.err; then | |
15665 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15666 | else | |
15667 | ac_cpp_err= | |
15668 | fi | |
15669 | else | |
15670 | ac_cpp_err=yes | |
15671 | fi | |
15672 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15673 | ac_header_preproc=yes |
503d2be0 AS |
15674 | else |
15675 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15676 | sed 's/^/| /' conftest.$ac_ext >&5 |
15677 | ||
c0d27fcc | 15678 | ac_header_preproc=no |
a21616bd | 15679 | fi |
503d2be0 | 15680 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15681 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15682 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15683 | ||
15684 | # So? What about this header? | |
15685 | case $ac_header_compiler:$ac_header_preproc in | |
15686 | yes:no ) | |
15687 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15688 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15689 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15690 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15691 | ( | |
15692 | cat <<\_ASBOX | |
15693 | ## ------------------------------------ ## | |
15694 | ## Report this to bug-autoconf@gnu.org. ## | |
15695 | ## ------------------------------------ ## | |
15696 | _ASBOX | |
15697 | ) | | |
15698 | sed "s/^/$as_me: WARNING: /" >&2 | |
15699 | ;; | |
c0d27fcc MR |
15700 | no:yes ) |
15701 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15702 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15703 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15704 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15707 | ( | |
15708 | cat <<\_ASBOX | |
15709 | ## ------------------------------------ ## | |
15710 | ## Report this to bug-autoconf@gnu.org. ## | |
15711 | ## ------------------------------------ ## | |
15712 | _ASBOX | |
15713 | ) | | |
15714 | sed "s/^/$as_me: WARNING: /" >&2 | |
15715 | ;; | |
c0d27fcc MR |
15716 | esac |
15717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15721 | else | |
15722 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15723 | fi |
c0d27fcc | 15724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15726 | |
15727 | fi | |
503d2be0 | 15728 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15729 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15730 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15731 | _ACEOF |
503d2be0 | 15732 | |
a21616bd | 15733 | else |
503d2be0 AS |
15734 | |
15735 | for ac_header in kerberosIV/krb.h | |
a21616bd | 15736 | do |
503d2be0 | 15737 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15743 | fi |
15744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15746 | else |
c0d27fcc MR |
15747 | # Is the header compilable? |
15748 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15749 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15750 | cat >conftest.$ac_ext <<_ACEOF | |
15751 | #line $LINENO "configure" | |
cd958eb3 MB |
15752 | /* confdefs.h. */ |
15753 | _ACEOF | |
15754 | cat confdefs.h >>conftest.$ac_ext | |
15755 | cat >>conftest.$ac_ext <<_ACEOF | |
15756 | /* end confdefs.h. */ | |
c0d27fcc MR |
15757 | $ac_includes_default |
15758 | #include <$ac_header> | |
15759 | _ACEOF | |
15760 | rm -f conftest.$ac_objext | |
15761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15762 | (eval $ac_compile) 2>&5 | |
15763 | ac_status=$? | |
15764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15765 | (exit $ac_status); } && | |
15766 | { ac_try='test -s conftest.$ac_objext' | |
15767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15768 | (eval $ac_try) 2>&5 | |
15769 | ac_status=$? | |
15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); }; }; then | |
15772 | ac_header_compiler=yes | |
15773 | else | |
15774 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15775 | sed 's/^/| /' conftest.$ac_ext >&5 |
15776 | ||
c0d27fcc MR |
15777 | ac_header_compiler=no |
15778 | fi | |
15779 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15780 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15781 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15782 | ||
15783 | # Is the header present? | |
15784 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15786 | cat >conftest.$ac_ext <<_ACEOF | |
15787 | #line $LINENO "configure" | |
cd958eb3 MB |
15788 | /* confdefs.h. */ |
15789 | _ACEOF | |
15790 | cat confdefs.h >>conftest.$ac_ext | |
15791 | cat >>conftest.$ac_ext <<_ACEOF | |
15792 | /* end confdefs.h. */ | |
503d2be0 AS |
15793 | #include <$ac_header> |
15794 | _ACEOF | |
c0d27fcc | 15795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15797 | ac_status=$? | |
6bae0ccf | 15798 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15799 | rm -f conftest.er1 |
15800 | cat conftest.err >&5 | |
c0d27fcc | 15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15802 | (exit $ac_status); } >/dev/null; then |
15803 | if test -s conftest.err; then | |
15804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15805 | else | |
15806 | ac_cpp_err= | |
15807 | fi | |
15808 | else | |
15809 | ac_cpp_err=yes | |
15810 | fi | |
15811 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15812 | ac_header_preproc=yes |
503d2be0 AS |
15813 | else |
15814 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15815 | sed 's/^/| /' conftest.$ac_ext >&5 |
15816 | ||
c0d27fcc | 15817 | ac_header_preproc=no |
a21616bd | 15818 | fi |
503d2be0 | 15819 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15820 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15821 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15822 | ||
15823 | # So? What about this header? | |
15824 | case $ac_header_compiler:$ac_header_preproc in | |
15825 | yes:no ) | |
15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15830 | ( | |
15831 | cat <<\_ASBOX | |
15832 | ## ------------------------------------ ## | |
15833 | ## Report this to bug-autoconf@gnu.org. ## | |
15834 | ## ------------------------------------ ## | |
15835 | _ASBOX | |
15836 | ) | | |
15837 | sed "s/^/$as_me: WARNING: /" >&2 | |
15838 | ;; | |
c0d27fcc MR |
15839 | no:yes ) |
15840 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15841 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15842 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15843 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15844 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15845 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15846 | ( | |
15847 | cat <<\_ASBOX | |
15848 | ## ------------------------------------ ## | |
15849 | ## Report this to bug-autoconf@gnu.org. ## | |
15850 | ## ------------------------------------ ## | |
15851 | _ASBOX | |
15852 | ) | | |
15853 | sed "s/^/$as_me: WARNING: /" >&2 | |
15854 | ;; | |
c0d27fcc MR |
15855 | esac |
15856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15860 | else | |
15861 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 15862 | fi |
c0d27fcc | 15863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15865 | |
15866 | fi | |
503d2be0 | 15867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15868 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15870 | _ACEOF |
503d2be0 | 15871 | |
a21616bd | 15872 | else |
503d2be0 AS |
15873 | |
15874 | for ac_header in kerberos/krb.h | |
a21616bd | 15875 | do |
503d2be0 | 15876 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15878 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15882 | fi |
15883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15884 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15885 | else |
c0d27fcc MR |
15886 | # Is the header compilable? |
15887 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15888 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15889 | cat >conftest.$ac_ext <<_ACEOF | |
15890 | #line $LINENO "configure" | |
cd958eb3 MB |
15891 | /* confdefs.h. */ |
15892 | _ACEOF | |
15893 | cat confdefs.h >>conftest.$ac_ext | |
15894 | cat >>conftest.$ac_ext <<_ACEOF | |
15895 | /* end confdefs.h. */ | |
c0d27fcc MR |
15896 | $ac_includes_default |
15897 | #include <$ac_header> | |
15898 | _ACEOF | |
15899 | rm -f conftest.$ac_objext | |
15900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15901 | (eval $ac_compile) 2>&5 | |
15902 | ac_status=$? | |
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15904 | (exit $ac_status); } && | |
15905 | { ac_try='test -s conftest.$ac_objext' | |
15906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15907 | (eval $ac_try) 2>&5 | |
15908 | ac_status=$? | |
15909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15910 | (exit $ac_status); }; }; then | |
15911 | ac_header_compiler=yes | |
15912 | else | |
15913 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15914 | sed 's/^/| /' conftest.$ac_ext >&5 |
15915 | ||
c0d27fcc MR |
15916 | ac_header_compiler=no |
15917 | fi | |
15918 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15921 | ||
15922 | # Is the header present? | |
15923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15925 | cat >conftest.$ac_ext <<_ACEOF | |
15926 | #line $LINENO "configure" | |
cd958eb3 MB |
15927 | /* confdefs.h. */ |
15928 | _ACEOF | |
15929 | cat confdefs.h >>conftest.$ac_ext | |
15930 | cat >>conftest.$ac_ext <<_ACEOF | |
15931 | /* end confdefs.h. */ | |
503d2be0 AS |
15932 | #include <$ac_header> |
15933 | _ACEOF | |
c0d27fcc | 15934 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15935 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15936 | ac_status=$? | |
6bae0ccf | 15937 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15938 | rm -f conftest.er1 |
15939 | cat conftest.err >&5 | |
c0d27fcc | 15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15941 | (exit $ac_status); } >/dev/null; then |
15942 | if test -s conftest.err; then | |
15943 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15944 | else | |
15945 | ac_cpp_err= | |
15946 | fi | |
15947 | else | |
15948 | ac_cpp_err=yes | |
15949 | fi | |
15950 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15951 | ac_header_preproc=yes |
503d2be0 AS |
15952 | else |
15953 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
15954 | sed 's/^/| /' conftest.$ac_ext >&5 |
15955 | ||
c0d27fcc | 15956 | ac_header_preproc=no |
a21616bd | 15957 | fi |
503d2be0 | 15958 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15961 | ||
15962 | # So? What about this header? | |
15963 | case $ac_header_compiler:$ac_header_preproc in | |
15964 | yes:no ) | |
15965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15968 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15969 | ( | |
15970 | cat <<\_ASBOX | |
15971 | ## ------------------------------------ ## | |
15972 | ## Report this to bug-autoconf@gnu.org. ## | |
15973 | ## ------------------------------------ ## | |
15974 | _ASBOX | |
15975 | ) | | |
15976 | sed "s/^/$as_me: WARNING: /" >&2 | |
15977 | ;; | |
c0d27fcc MR |
15978 | no:yes ) |
15979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
15984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
15985 | ( | |
15986 | cat <<\_ASBOX | |
15987 | ## ------------------------------------ ## | |
15988 | ## Report this to bug-autoconf@gnu.org. ## | |
15989 | ## ------------------------------------ ## | |
15990 | _ASBOX | |
15991 | ) | | |
15992 | sed "s/^/$as_me: WARNING: /" >&2 | |
15993 | ;; | |
c0d27fcc MR |
15994 | esac |
15995 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15997 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15999 | else | |
16000 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 16001 | fi |
c0d27fcc | 16002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16003 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16004 | |
16005 | fi | |
503d2be0 | 16006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16007 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16009 | _ACEOF |
503d2be0 | 16010 | |
a21616bd | 16011 | fi |
c0d27fcc | 16012 | |
a21616bd KR |
16013 | done |
16014 | ||
16015 | fi | |
c0d27fcc | 16016 | |
a21616bd KR |
16017 | done |
16018 | ||
16019 | fi | |
c0d27fcc | 16020 | |
a21616bd KR |
16021 | done |
16022 | ||
16023 | fi | |
503d2be0 AS |
16024 | |
16025 | for ac_header in com_err.h | |
a21616bd | 16026 | do |
503d2be0 | 16027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
16028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
16030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
16031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16033 | fi |
16034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 16036 | else |
c0d27fcc MR |
16037 | # Is the header compilable? |
16038 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16039 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16040 | cat >conftest.$ac_ext <<_ACEOF | |
16041 | #line $LINENO "configure" | |
cd958eb3 MB |
16042 | /* confdefs.h. */ |
16043 | _ACEOF | |
16044 | cat confdefs.h >>conftest.$ac_ext | |
16045 | cat >>conftest.$ac_ext <<_ACEOF | |
16046 | /* end confdefs.h. */ | |
c0d27fcc MR |
16047 | $ac_includes_default |
16048 | #include <$ac_header> | |
16049 | _ACEOF | |
16050 | rm -f conftest.$ac_objext | |
16051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16052 | (eval $ac_compile) 2>&5 | |
16053 | ac_status=$? | |
16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16055 | (exit $ac_status); } && | |
16056 | { ac_try='test -s conftest.$ac_objext' | |
16057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16058 | (eval $ac_try) 2>&5 | |
16059 | ac_status=$? | |
16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16061 | (exit $ac_status); }; }; then | |
16062 | ac_header_compiler=yes | |
16063 | else | |
16064 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16065 | sed 's/^/| /' conftest.$ac_ext >&5 |
16066 | ||
c0d27fcc MR |
16067 | ac_header_compiler=no |
16068 | fi | |
16069 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16070 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16071 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16072 | ||
16073 | # Is the header present? | |
16074 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16075 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16076 | cat >conftest.$ac_ext <<_ACEOF | |
16077 | #line $LINENO "configure" | |
cd958eb3 MB |
16078 | /* confdefs.h. */ |
16079 | _ACEOF | |
16080 | cat confdefs.h >>conftest.$ac_ext | |
16081 | cat >>conftest.$ac_ext <<_ACEOF | |
16082 | /* end confdefs.h. */ | |
503d2be0 AS |
16083 | #include <$ac_header> |
16084 | _ACEOF | |
c0d27fcc | 16085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16087 | ac_status=$? | |
6bae0ccf | 16088 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16089 | rm -f conftest.er1 |
16090 | cat conftest.err >&5 | |
c0d27fcc | 16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16092 | (exit $ac_status); } >/dev/null; then |
16093 | if test -s conftest.err; then | |
16094 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16095 | else | |
16096 | ac_cpp_err= | |
16097 | fi | |
16098 | else | |
16099 | ac_cpp_err=yes | |
16100 | fi | |
16101 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16102 | ac_header_preproc=yes |
503d2be0 AS |
16103 | else |
16104 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16105 | sed 's/^/| /' conftest.$ac_ext >&5 |
16106 | ||
c0d27fcc | 16107 | ac_header_preproc=no |
a21616bd | 16108 | fi |
503d2be0 | 16109 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16110 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16111 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16112 | ||
16113 | # So? What about this header? | |
16114 | case $ac_header_compiler:$ac_header_preproc in | |
16115 | yes:no ) | |
16116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16119 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
16120 | ( | |
16121 | cat <<\_ASBOX | |
16122 | ## ------------------------------------ ## | |
16123 | ## Report this to bug-autoconf@gnu.org. ## | |
16124 | ## ------------------------------------ ## | |
16125 | _ASBOX | |
16126 | ) | | |
16127 | sed "s/^/$as_me: WARNING: /" >&2 | |
16128 | ;; | |
c0d27fcc MR |
16129 | no:yes ) |
16130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
16136 | ( | |
16137 | cat <<\_ASBOX | |
16138 | ## ------------------------------------ ## | |
16139 | ## Report this to bug-autoconf@gnu.org. ## | |
16140 | ## ------------------------------------ ## | |
16141 | _ASBOX | |
16142 | ) | | |
16143 | sed "s/^/$as_me: WARNING: /" >&2 | |
16144 | ;; | |
c0d27fcc MR |
16145 | esac |
16146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16150 | else | |
16151 | eval "$as_ac_Header=$ac_header_preproc" | |
a21616bd | 16152 | fi |
c0d27fcc | 16153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16155 | |
16156 | fi | |
503d2be0 | 16157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16158 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16160 | _ACEOF |
503d2be0 | 16161 | |
a21616bd | 16162 | fi |
c0d27fcc | 16163 | |
a21616bd KR |
16164 | done |
16165 | ||
16166 | fi | |
16167 | ||
ba4481b5 DL |
16168 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
16169 | # to return localized messages. | |
503d2be0 | 16170 | |
c0d27fcc | 16171 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
16172 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
16173 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
16174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16175 | else |
503d2be0 | 16176 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16177 | LIBS="-lintl $LIBS" |
503d2be0 | 16178 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16179 | #line $LINENO "configure" |
cd958eb3 MB |
16180 | /* confdefs.h. */ |
16181 | _ACEOF | |
16182 | cat confdefs.h >>conftest.$ac_ext | |
16183 | cat >>conftest.$ac_ext <<_ACEOF | |
16184 | /* end confdefs.h. */ | |
503d2be0 | 16185 | |
ba4481b5 | 16186 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16187 | #ifdef __cplusplus |
16188 | extern "C" | |
16189 | #endif | |
ba4481b5 | 16190 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16191 | builtin and then its argument prototype would still apply. */ |
16192 | char dgettext (); | |
16193 | int | |
16194 | main () | |
16195 | { | |
16196 | dgettext (); | |
16197 | ; | |
16198 | return 0; | |
16199 | } | |
16200 | _ACEOF | |
16201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16203 | (eval $ac_link) 2>&5 |
16204 | ac_status=$? | |
c0d27fcc | 16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16206 | (exit $ac_status); } && |
16207 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16209 | (eval $ac_try) 2>&5 |
16210 | ac_status=$? | |
c0d27fcc | 16211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16212 | (exit $ac_status); }; }; then |
16213 | ac_cv_lib_intl_dgettext=yes | |
16214 | else | |
16215 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16216 | sed 's/^/| /' conftest.$ac_ext >&5 |
16217 | ||
503d2be0 AS |
16218 | ac_cv_lib_intl_dgettext=no |
16219 | fi | |
16220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16221 | LIBS=$ac_check_lib_save_LIBS | |
16222 | fi | |
c0d27fcc | 16223 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
16224 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
16225 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 16226 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16227 | #define HAVE_LIBINTL 1 |
c0d27fcc | 16228 | _ACEOF |
ba4481b5 DL |
16229 | |
16230 | LIBS="-lintl $LIBS" | |
16231 | ||
ba4481b5 DL |
16232 | fi |
16233 | ||
c0d27fcc MR |
16234 | |
16235 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
16236 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
16237 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
16239 | else |
16240 | if test x$ac_cv_func_tzset = xyes; then | |
16241 | if test "$cross_compiling" = yes; then | |
16242 | # If we have tzset, assume the worst when cross-compiling. | |
16243 | emacs_cv_localtime_cache=yes | |
16244 | else | |
503d2be0 | 16245 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16246 | #line $LINENO "configure" |
cd958eb3 MB |
16247 | /* confdefs.h. */ |
16248 | _ACEOF | |
16249 | cat confdefs.h >>conftest.$ac_ext | |
16250 | cat >>conftest.$ac_ext <<_ACEOF | |
16251 | /* end confdefs.h. */ | |
ba4481b5 | 16252 | #include <time.h> |
ba4481b5 DL |
16253 | extern char **environ; |
16254 | unset_TZ () | |
16255 | { | |
16256 | char **from, **to; | |
16257 | for (to = from = environ; (*to = *from); from++) | |
16258 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
16259 | to++; | |
16260 | } | |
16261 | char TZ_GMT0[] = "TZ=GMT0"; | |
16262 | char TZ_PST8[] = "TZ=PST8"; | |
16263 | main() | |
16264 | { | |
16265 | time_t now = time ((time_t *) 0); | |
16266 | int hour_GMT0, hour_unset; | |
16267 | if (putenv (TZ_GMT0) != 0) | |
16268 | exit (1); | |
16269 | hour_GMT0 = localtime (&now)->tm_hour; | |
16270 | unset_TZ (); | |
16271 | hour_unset = localtime (&now)->tm_hour; | |
16272 | if (putenv (TZ_PST8) != 0) | |
16273 | exit (1); | |
16274 | if (localtime (&now)->tm_hour == hour_GMT0) | |
16275 | exit (1); | |
16276 | unset_TZ (); | |
16277 | if (localtime (&now)->tm_hour != hour_unset) | |
16278 | exit (1); | |
16279 | exit (0); | |
16280 | } | |
503d2be0 AS |
16281 | _ACEOF |
16282 | rm -f conftest$ac_exeext | |
c0d27fcc | 16283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16284 | (eval $ac_link) 2>&5 |
16285 | ac_status=$? | |
c0d27fcc | 16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16287 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 16288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16289 | (eval $ac_try) 2>&5 |
16290 | ac_status=$? | |
c0d27fcc | 16291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16292 | (exit $ac_status); }; }; then |
ba4481b5 DL |
16293 | emacs_cv_localtime_cache=no |
16294 | else | |
503d2be0 AS |
16295 | echo "$as_me: program exited with status $ac_status" >&5 |
16296 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16297 | sed 's/^/| /' conftest.$ac_ext >&5 |
16298 | ||
c0d27fcc | 16299 | ( exit $ac_status ) |
503d2be0 | 16300 | emacs_cv_localtime_cache=yes |
ba4481b5 | 16301 | fi |
6bae0ccf | 16302 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 16303 | fi |
ba4481b5 DL |
16304 | else |
16305 | # If we lack tzset, report that localtime does not cache TZ, | |
16306 | # since we can't invalidate the cache if we don't have tzset. | |
16307 | emacs_cv_localtime_cache=no | |
16308 | fi | |
16309 | fi | |
c0d27fcc | 16310 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 16311 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 16312 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 16313 | |
c0d27fcc | 16314 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16315 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 16316 | _ACEOF |
ba4481b5 DL |
16317 | |
16318 | fi | |
16319 | ||
16320 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
16321 | |
16322 | for ac_func in gettimeofday | |
48d4b120 | 16323 | do |
503d2be0 | 16324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 16325 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16327 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 16329 | else |
503d2be0 | 16330 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16331 | #line $LINENO "configure" |
cd958eb3 MB |
16332 | /* confdefs.h. */ |
16333 | _ACEOF | |
16334 | cat confdefs.h >>conftest.$ac_ext | |
16335 | cat >>conftest.$ac_ext <<_ACEOF | |
16336 | /* end confdefs.h. */ | |
48d4b120 | 16337 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
16338 | which can conflict with char $ac_func (); below. |
16339 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16340 | <limits.h> exists even on freestanding compilers. */ | |
16341 | #ifdef __STDC__ | |
16342 | # include <limits.h> | |
16343 | #else | |
16344 | # include <assert.h> | |
16345 | #endif | |
48d4b120 | 16346 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16347 | #ifdef __cplusplus |
16348 | extern "C" | |
cd958eb3 | 16349 | { |
503d2be0 | 16350 | #endif |
48d4b120 | 16351 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16352 | builtin and then its argument prototype would still apply. */ |
16353 | char $ac_func (); | |
48d4b120 DL |
16354 | /* The GNU C library defines this for functions which it implements |
16355 | to always fail with ENOSYS. Some functions are actually named | |
16356 | something starting with __ and the normal name is an alias. */ | |
16357 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16358 | choke me | |
16359 | #else | |
cd958eb3 | 16360 | char (*f) () = $ac_func; |
48d4b120 | 16361 | #endif |
cd958eb3 MB |
16362 | #ifdef __cplusplus |
16363 | } | |
16364 | #endif | |
16365 | ||
16366 | int | |
16367 | main () | |
16368 | { | |
9e71690e | 16369 | return f != $ac_func; |
503d2be0 AS |
16370 | ; |
16371 | return 0; | |
16372 | } | |
16373 | _ACEOF | |
16374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16376 | (eval $ac_link) 2>&5 |
16377 | ac_status=$? | |
c0d27fcc | 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16379 | (exit $ac_status); } && |
16380 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16382 | (eval $ac_try) 2>&5 |
16383 | ac_status=$? | |
c0d27fcc | 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16385 | (exit $ac_status); }; }; then |
16386 | eval "$as_ac_var=yes" | |
16387 | else | |
16388 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16389 | sed 's/^/| /' conftest.$ac_ext >&5 |
16390 | ||
503d2be0 AS |
16391 | eval "$as_ac_var=no" |
16392 | fi | |
16393 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16394 | fi | |
c0d27fcc | 16395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16398 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16400 | _ACEOF |
48d4b120 | 16401 | |
48d4b120 DL |
16402 | fi |
16403 | done | |
16404 | ||
b936fae4 | 16405 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 16406 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
16407 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
16408 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16410 | else |
503d2be0 | 16411 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16412 | #line $LINENO "configure" |
cd958eb3 MB |
16413 | /* confdefs.h. */ |
16414 | _ACEOF | |
16415 | cat confdefs.h >>conftest.$ac_ext | |
16416 | cat >>conftest.$ac_ext <<_ACEOF | |
16417 | /* end confdefs.h. */ | |
ba4481b5 | 16418 | |
a3f08d9e DL |
16419 | #ifdef TIME_WITH_SYS_TIME |
16420 | #include <sys/time.h> | |
16421 | #include <time.h> | |
16422 | #else | |
16423 | #ifdef HAVE_SYS_TIME_H | |
16424 | #include <sys/time.h> | |
16425 | #else | |
16426 | #include <time.h> | |
16427 | #endif | |
16428 | #endif | |
503d2be0 AS |
16429 | int |
16430 | main () | |
16431 | { | |
a3f08d9e | 16432 | struct timeval time; |
b936fae4 | 16433 | gettimeofday (&time, 0); |
503d2be0 AS |
16434 | ; |
16435 | return 0; | |
16436 | } | |
16437 | _ACEOF | |
16438 | rm -f conftest.$ac_objext | |
c0d27fcc | 16439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
16440 | (eval $ac_compile) 2>&5 |
16441 | ac_status=$? | |
c0d27fcc | 16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16443 | (exit $ac_status); } && |
16444 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16446 | (eval $ac_try) 2>&5 |
16447 | ac_status=$? | |
c0d27fcc | 16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16449 | (exit $ac_status); }; }; then |
ba4481b5 DL |
16450 | emacs_cv_gettimeofday_two_arguments=yes |
16451 | else | |
503d2be0 | 16452 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
16453 | sed 's/^/| /' conftest.$ac_ext >&5 |
16454 | ||
503d2be0 | 16455 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 16456 | fi |
503d2be0 | 16457 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 16458 | fi |
c0d27fcc | 16459 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 16460 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
16461 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
16462 | ||
c0d27fcc | 16463 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16464 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 16465 | _ACEOF |
ba4481b5 | 16466 | |
b936fae4 | 16467 | fi |
ba4481b5 DL |
16468 | fi |
16469 | fi | |
16470 | ||
48d4b120 | 16471 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 16472 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
16473 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
16474 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
16475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 16476 | else |
503d2be0 | 16477 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16478 | #line $LINENO "configure" |
cd958eb3 MB |
16479 | /* confdefs.h. */ |
16480 | _ACEOF | |
16481 | cat confdefs.h >>conftest.$ac_ext | |
16482 | cat >>conftest.$ac_ext <<_ACEOF | |
16483 | /* end confdefs.h. */ | |
48d4b120 | 16484 | #include <sys/time.h> |
503d2be0 AS |
16485 | int |
16486 | main () | |
16487 | { | |
48d4b120 | 16488 | struct timezone tz; |
503d2be0 AS |
16489 | ; |
16490 | return 0; | |
16491 | } | |
16492 | _ACEOF | |
16493 | rm -f conftest.$ac_objext | |
c0d27fcc | 16494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
16495 | (eval $ac_compile) 2>&5 |
16496 | ac_status=$? | |
c0d27fcc | 16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16498 | (exit $ac_status); } && |
16499 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16501 | (eval $ac_try) 2>&5 |
16502 | ac_status=$? | |
c0d27fcc | 16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16504 | (exit $ac_status); }; }; then |
48d4b120 DL |
16505 | if test "$cross_compiling" = yes; then |
16506 | emacs_cv_struct_timezone=yes | |
16507 | else | |
503d2be0 | 16508 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16509 | #line $LINENO "configure" |
cd958eb3 MB |
16510 | /* confdefs.h. */ |
16511 | _ACEOF | |
16512 | cat confdefs.h >>conftest.$ac_ext | |
16513 | cat >>conftest.$ac_ext <<_ACEOF | |
16514 | /* end confdefs.h. */ | |
48d4b120 DL |
16515 | |
16516 | #ifdef TIME_WITH_SYS_TIME | |
16517 | #include <sys/time.h> | |
16518 | #include <time.h> | |
16519 | #else | |
16520 | #ifdef HAVE_SYS_TIME_H | |
16521 | #include <sys/time.h> | |
16522 | #else | |
16523 | #include <time.h> | |
16524 | #endif | |
16525 | #endif | |
16526 | main () { | |
16527 | struct timeval time; | |
16528 | struct timezone dummy; | |
16529 | exit (gettimeofday (&time, &dummy)); | |
16530 | } | |
503d2be0 AS |
16531 | _ACEOF |
16532 | rm -f conftest$ac_exeext | |
c0d27fcc | 16533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16534 | (eval $ac_link) 2>&5 |
16535 | ac_status=$? | |
c0d27fcc | 16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 16538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16539 | (eval $ac_try) 2>&5 |
16540 | ac_status=$? | |
c0d27fcc | 16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16542 | (exit $ac_status); }; }; then |
48d4b120 DL |
16543 | emacs_cv_struct_timezone=yes |
16544 | else | |
503d2be0 AS |
16545 | echo "$as_me: program exited with status $ac_status" >&5 |
16546 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16547 | sed 's/^/| /' conftest.$ac_ext >&5 |
16548 | ||
c0d27fcc | 16549 | ( exit $ac_status ) |
503d2be0 | 16550 | emacs_cv_struct_timezone=no |
48d4b120 | 16551 | fi |
6bae0ccf | 16552 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 16553 | fi |
48d4b120 | 16554 | else |
503d2be0 | 16555 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
16557 | ||
503d2be0 | 16558 | emacs_cv_struct_timezone=no |
48d4b120 | 16559 | fi |
503d2be0 | 16560 | rm -f conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 16561 | fi |
c0d27fcc | 16562 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 16563 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
16564 | fi |
16565 | ||
ba4481b5 | 16566 | ok_so_far=yes |
c0d27fcc | 16567 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
16568 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
16569 | if test "${ac_cv_func_socket+set}" = set; then | |
16570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16571 | else |
503d2be0 | 16572 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16573 | #line $LINENO "configure" |
cd958eb3 MB |
16574 | /* confdefs.h. */ |
16575 | _ACEOF | |
16576 | cat confdefs.h >>conftest.$ac_ext | |
16577 | cat >>conftest.$ac_ext <<_ACEOF | |
16578 | /* end confdefs.h. */ | |
ba4481b5 | 16579 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
16580 | which can conflict with char socket (); below. |
16581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16582 | <limits.h> exists even on freestanding compilers. */ | |
16583 | #ifdef __STDC__ | |
16584 | # include <limits.h> | |
16585 | #else | |
16586 | # include <assert.h> | |
16587 | #endif | |
ba4481b5 | 16588 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16589 | #ifdef __cplusplus |
16590 | extern "C" | |
cd958eb3 | 16591 | { |
503d2be0 | 16592 | #endif |
ba4481b5 | 16593 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16594 | builtin and then its argument prototype would still apply. */ |
16595 | char socket (); | |
ba4481b5 DL |
16596 | /* The GNU C library defines this for functions which it implements |
16597 | to always fail with ENOSYS. Some functions are actually named | |
16598 | something starting with __ and the normal name is an alias. */ | |
16599 | #if defined (__stub_socket) || defined (__stub___socket) | |
16600 | choke me | |
16601 | #else | |
cd958eb3 | 16602 | char (*f) () = socket; |
ba4481b5 | 16603 | #endif |
cd958eb3 MB |
16604 | #ifdef __cplusplus |
16605 | } | |
16606 | #endif | |
16607 | ||
16608 | int | |
16609 | main () | |
16610 | { | |
9e71690e | 16611 | return f != socket; |
503d2be0 AS |
16612 | ; |
16613 | return 0; | |
16614 | } | |
16615 | _ACEOF | |
16616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16618 | (eval $ac_link) 2>&5 |
16619 | ac_status=$? | |
c0d27fcc | 16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16621 | (exit $ac_status); } && |
16622 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16624 | (eval $ac_try) 2>&5 |
16625 | ac_status=$? | |
c0d27fcc | 16626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16627 | (exit $ac_status); }; }; then |
16628 | ac_cv_func_socket=yes | |
16629 | else | |
16630 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16631 | sed 's/^/| /' conftest.$ac_ext >&5 |
16632 | ||
503d2be0 AS |
16633 | ac_cv_func_socket=no |
16634 | fi | |
16635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16636 | fi | |
c0d27fcc | 16637 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
16638 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
16639 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
16640 | : |
16641 | else | |
503d2be0 | 16642 | ok_so_far=no |
ba4481b5 DL |
16643 | fi |
16644 | ||
16645 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
16646 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
16647 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
16648 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
16649 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
16650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16651 | fi |
16652 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
16653 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 16654 | else |
c0d27fcc MR |
16655 | # Is the header compilable? |
16656 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
16657 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
16658 | cat >conftest.$ac_ext <<_ACEOF | |
16659 | #line $LINENO "configure" | |
cd958eb3 MB |
16660 | /* confdefs.h. */ |
16661 | _ACEOF | |
16662 | cat confdefs.h >>conftest.$ac_ext | |
16663 | cat >>conftest.$ac_ext <<_ACEOF | |
16664 | /* end confdefs.h. */ | |
c0d27fcc MR |
16665 | $ac_includes_default |
16666 | #include <netinet/in.h> | |
16667 | _ACEOF | |
16668 | rm -f conftest.$ac_objext | |
16669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16670 | (eval $ac_compile) 2>&5 | |
16671 | ac_status=$? | |
16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16673 | (exit $ac_status); } && | |
16674 | { ac_try='test -s conftest.$ac_objext' | |
16675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16676 | (eval $ac_try) 2>&5 | |
16677 | ac_status=$? | |
16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16679 | (exit $ac_status); }; }; then | |
16680 | ac_header_compiler=yes | |
16681 | else | |
16682 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16683 | sed 's/^/| /' conftest.$ac_ext >&5 |
16684 | ||
c0d27fcc MR |
16685 | ac_header_compiler=no |
16686 | fi | |
16687 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16688 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16689 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16690 | ||
16691 | # Is the header present? | |
16692 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
16693 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | #line $LINENO "configure" | |
cd958eb3 MB |
16696 | /* confdefs.h. */ |
16697 | _ACEOF | |
16698 | cat confdefs.h >>conftest.$ac_ext | |
16699 | cat >>conftest.$ac_ext <<_ACEOF | |
16700 | /* end confdefs.h. */ | |
ba4481b5 | 16701 | #include <netinet/in.h> |
503d2be0 | 16702 | _ACEOF |
c0d27fcc | 16703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16705 | ac_status=$? | |
6bae0ccf | 16706 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16707 | rm -f conftest.er1 |
16708 | cat conftest.err >&5 | |
c0d27fcc | 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16710 | (exit $ac_status); } >/dev/null; then |
16711 | if test -s conftest.err; then | |
16712 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16713 | else | |
16714 | ac_cpp_err= | |
16715 | fi | |
16716 | else | |
16717 | ac_cpp_err=yes | |
16718 | fi | |
16719 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16720 | ac_header_preproc=yes |
ba4481b5 | 16721 | else |
503d2be0 | 16722 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 |
16724 | ||
c0d27fcc | 16725 | ac_header_preproc=no |
ba4481b5 | 16726 | fi |
503d2be0 | 16727 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16728 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16729 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16730 | ||
16731 | # So? What about this header? | |
16732 | case $ac_header_compiler:$ac_header_preproc in | |
16733 | yes:no ) | |
16734 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16735 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16736 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16737 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
16738 | ( | |
16739 | cat <<\_ASBOX | |
16740 | ## ------------------------------------ ## | |
16741 | ## Report this to bug-autoconf@gnu.org. ## | |
16742 | ## ------------------------------------ ## | |
16743 | _ASBOX | |
16744 | ) | | |
16745 | sed "s/^/$as_me: WARNING: /" >&2 | |
16746 | ;; | |
c0d27fcc MR |
16747 | no:yes ) |
16748 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
16749 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
16750 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
16751 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
16752 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16753 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
16754 | ( | |
16755 | cat <<\_ASBOX | |
16756 | ## ------------------------------------ ## | |
16757 | ## Report this to bug-autoconf@gnu.org. ## | |
16758 | ## ------------------------------------ ## | |
16759 | _ASBOX | |
16760 | ) | | |
16761 | sed "s/^/$as_me: WARNING: /" >&2 | |
16762 | ;; | |
c0d27fcc MR |
16763 | esac |
16764 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
16765 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
16766 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
16767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16768 | else | |
16769 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 16770 | fi |
c0d27fcc | 16771 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 16772 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
16773 | |
16774 | fi | |
503d2be0 | 16775 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
16776 | : |
16777 | else | |
503d2be0 | 16778 | ok_so_far=no |
ba4481b5 DL |
16779 | fi |
16780 | ||
c0d27fcc | 16781 | |
ba4481b5 DL |
16782 | fi |
16783 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
16784 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
16785 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
16786 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
16787 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
16788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16789 | fi |
16790 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
16791 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 16792 | else |
c0d27fcc MR |
16793 | # Is the header compilable? |
16794 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
16795 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
16796 | cat >conftest.$ac_ext <<_ACEOF | |
16797 | #line $LINENO "configure" | |
cd958eb3 MB |
16798 | /* confdefs.h. */ |
16799 | _ACEOF | |
16800 | cat confdefs.h >>conftest.$ac_ext | |
16801 | cat >>conftest.$ac_ext <<_ACEOF | |
16802 | /* end confdefs.h. */ | |
c0d27fcc MR |
16803 | $ac_includes_default |
16804 | #include <arpa/inet.h> | |
16805 | _ACEOF | |
16806 | rm -f conftest.$ac_objext | |
16807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16808 | (eval $ac_compile) 2>&5 | |
16809 | ac_status=$? | |
16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); } && | |
16812 | { ac_try='test -s conftest.$ac_objext' | |
16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16814 | (eval $ac_try) 2>&5 | |
16815 | ac_status=$? | |
16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16817 | (exit $ac_status); }; }; then | |
16818 | ac_header_compiler=yes | |
16819 | else | |
16820 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
16821 | sed 's/^/| /' conftest.$ac_ext >&5 |
16822 | ||
c0d27fcc MR |
16823 | ac_header_compiler=no |
16824 | fi | |
16825 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16826 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16827 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16828 | ||
16829 | # Is the header present? | |
16830 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
16831 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
16832 | cat >conftest.$ac_ext <<_ACEOF | |
16833 | #line $LINENO "configure" | |
cd958eb3 MB |
16834 | /* confdefs.h. */ |
16835 | _ACEOF | |
16836 | cat confdefs.h >>conftest.$ac_ext | |
16837 | cat >>conftest.$ac_ext <<_ACEOF | |
16838 | /* end confdefs.h. */ | |
ba4481b5 | 16839 | #include <arpa/inet.h> |
503d2be0 | 16840 | _ACEOF |
c0d27fcc | 16841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16843 | ac_status=$? | |
6bae0ccf | 16844 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16845 | rm -f conftest.er1 |
16846 | cat conftest.err >&5 | |
c0d27fcc | 16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16848 | (exit $ac_status); } >/dev/null; then |
16849 | if test -s conftest.err; then | |
16850 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16851 | else | |
16852 | ac_cpp_err= | |
16853 | fi | |
16854 | else | |
16855 | ac_cpp_err=yes | |
16856 | fi | |
16857 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16858 | ac_header_preproc=yes |
ba4481b5 | 16859 | else |
503d2be0 | 16860 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
16861 | sed 's/^/| /' conftest.$ac_ext >&5 |
16862 | ||
c0d27fcc | 16863 | ac_header_preproc=no |
ba4481b5 | 16864 | fi |
503d2be0 | 16865 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16866 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16867 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16868 | ||
16869 | # So? What about this header? | |
16870 | case $ac_header_compiler:$ac_header_preproc in | |
16871 | yes:no ) | |
16872 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16873 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16874 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16875 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
16876 | ( | |
16877 | cat <<\_ASBOX | |
16878 | ## ------------------------------------ ## | |
16879 | ## Report this to bug-autoconf@gnu.org. ## | |
16880 | ## ------------------------------------ ## | |
16881 | _ASBOX | |
16882 | ) | | |
16883 | sed "s/^/$as_me: WARNING: /" >&2 | |
16884 | ;; | |
c0d27fcc MR |
16885 | no:yes ) |
16886 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
16887 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
16888 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
16889 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
16890 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
16891 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
16892 | ( | |
16893 | cat <<\_ASBOX | |
16894 | ## ------------------------------------ ## | |
16895 | ## Report this to bug-autoconf@gnu.org. ## | |
16896 | ## ------------------------------------ ## | |
16897 | _ASBOX | |
16898 | ) | | |
16899 | sed "s/^/$as_me: WARNING: /" >&2 | |
16900 | ;; | |
c0d27fcc MR |
16901 | esac |
16902 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
16903 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
16904 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
16905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16906 | else | |
16907 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 16908 | fi |
c0d27fcc | 16909 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 16910 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
16911 | |
16912 | fi | |
503d2be0 | 16913 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
16914 | : |
16915 | else | |
503d2be0 | 16916 | ok_so_far=no |
ba4481b5 DL |
16917 | fi |
16918 | ||
c0d27fcc | 16919 | |
ba4481b5 DL |
16920 | fi |
16921 | if test $ok_so_far = yes; then | |
b936fae4 | 16922 | |
c0d27fcc | 16923 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16924 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 16925 | _ACEOF |
ba4481b5 DL |
16926 | |
16927 | fi | |
16928 | ||
16929 | if test -f /usr/lpp/X11/bin/smt.exp; then | |
b936fae4 | 16930 | |
c0d27fcc | 16931 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16932 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 16933 | _ACEOF |
ba4481b5 DL |
16934 | |
16935 | fi | |
16936 | ||
c0d27fcc | 16937 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 16938 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 16939 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 16940 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 16941 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 16942 | |
c0d27fcc | 16943 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 16944 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 16945 | _ACEOF |
3d9fec71 DL |
16946 | |
16947 | else | |
c0d27fcc | 16948 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 16949 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
16950 | fi |
16951 | ||
c0d27fcc | 16952 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
16953 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
16954 | if test "${ac_cv_type_pid_t+set}" = set; then | |
16955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 16956 | else |
503d2be0 | 16957 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 16958 | #line $LINENO "configure" |
cd958eb3 MB |
16959 | /* confdefs.h. */ |
16960 | _ACEOF | |
16961 | cat confdefs.h >>conftest.$ac_ext | |
16962 | cat >>conftest.$ac_ext <<_ACEOF | |
16963 | /* end confdefs.h. */ | |
503d2be0 AS |
16964 | $ac_includes_default |
16965 | int | |
16966 | main () | |
16967 | { | |
16968 | if ((pid_t *) 0) | |
16969 | return 0; | |
16970 | if (sizeof (pid_t)) | |
16971 | return 0; | |
16972 | ; | |
16973 | return 0; | |
16974 | } | |
16975 | _ACEOF | |
16976 | rm -f conftest.$ac_objext | |
c0d27fcc | 16977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
16978 | (eval $ac_compile) 2>&5 |
16979 | ac_status=$? | |
c0d27fcc | 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16981 | (exit $ac_status); } && |
16982 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16984 | (eval $ac_try) 2>&5 |
16985 | ac_status=$? | |
c0d27fcc | 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16987 | (exit $ac_status); }; }; then |
647847ea DL |
16988 | ac_cv_type_pid_t=yes |
16989 | else | |
503d2be0 | 16990 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
16991 | sed 's/^/| /' conftest.$ac_ext >&5 |
16992 | ||
503d2be0 | 16993 | ac_cv_type_pid_t=no |
647847ea | 16994 | fi |
503d2be0 | 16995 | rm -f conftest.$ac_objext conftest.$ac_ext |
647847ea | 16996 | fi |
c0d27fcc | 16997 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
16998 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
16999 | if test $ac_cv_type_pid_t = yes; then | |
17000 | : | |
17001 | else | |
17002 | ||
c0d27fcc | 17003 | cat >>confdefs.h <<_ACEOF |
647847ea | 17004 | #define pid_t int |
c0d27fcc | 17005 | _ACEOF |
647847ea DL |
17006 | |
17007 | fi | |
17008 | ||
c0d27fcc MR |
17009 | |
17010 | ||
503d2be0 AS |
17011 | for ac_header in unistd.h vfork.h |
17012 | do | |
17013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
17014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17015 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17019 | fi |
17020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17021 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17022 | else |
c0d27fcc MR |
17023 | # Is the header compilable? |
17024 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17025 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17026 | cat >conftest.$ac_ext <<_ACEOF | |
17027 | #line $LINENO "configure" | |
cd958eb3 MB |
17028 | /* confdefs.h. */ |
17029 | _ACEOF | |
17030 | cat confdefs.h >>conftest.$ac_ext | |
17031 | cat >>conftest.$ac_ext <<_ACEOF | |
17032 | /* end confdefs.h. */ | |
c0d27fcc MR |
17033 | $ac_includes_default |
17034 | #include <$ac_header> | |
17035 | _ACEOF | |
17036 | rm -f conftest.$ac_objext | |
17037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17038 | (eval $ac_compile) 2>&5 | |
17039 | ac_status=$? | |
17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17041 | (exit $ac_status); } && | |
17042 | { ac_try='test -s conftest.$ac_objext' | |
17043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17044 | (eval $ac_try) 2>&5 | |
17045 | ac_status=$? | |
17046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17047 | (exit $ac_status); }; }; then | |
17048 | ac_header_compiler=yes | |
17049 | else | |
17050 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17051 | sed 's/^/| /' conftest.$ac_ext >&5 |
17052 | ||
c0d27fcc MR |
17053 | ac_header_compiler=no |
17054 | fi | |
17055 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17056 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17057 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17058 | ||
17059 | # Is the header present? | |
17060 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17061 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17062 | cat >conftest.$ac_ext <<_ACEOF | |
17063 | #line $LINENO "configure" | |
cd958eb3 MB |
17064 | /* confdefs.h. */ |
17065 | _ACEOF | |
17066 | cat confdefs.h >>conftest.$ac_ext | |
17067 | cat >>conftest.$ac_ext <<_ACEOF | |
17068 | /* end confdefs.h. */ | |
503d2be0 AS |
17069 | #include <$ac_header> |
17070 | _ACEOF | |
c0d27fcc | 17071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17073 | ac_status=$? | |
6bae0ccf | 17074 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17075 | rm -f conftest.er1 |
17076 | cat conftest.err >&5 | |
c0d27fcc | 17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17078 | (exit $ac_status); } >/dev/null; then |
17079 | if test -s conftest.err; then | |
17080 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17081 | else | |
17082 | ac_cpp_err= | |
17083 | fi | |
647847ea | 17084 | else |
503d2be0 AS |
17085 | ac_cpp_err=yes |
17086 | fi | |
17087 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17088 | ac_header_preproc=yes |
647847ea | 17089 | else |
503d2be0 | 17090 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
17091 | sed 's/^/| /' conftest.$ac_ext >&5 |
17092 | ||
c0d27fcc | 17093 | ac_header_preproc=no |
647847ea | 17094 | fi |
503d2be0 | 17095 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17096 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17097 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17098 | ||
17099 | # So? What about this header? | |
17100 | case $ac_header_compiler:$ac_header_preproc in | |
17101 | yes:no ) | |
17102 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17103 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17104 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
17105 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
17106 | ( | |
17107 | cat <<\_ASBOX | |
17108 | ## ------------------------------------ ## | |
17109 | ## Report this to bug-autoconf@gnu.org. ## | |
17110 | ## ------------------------------------ ## | |
17111 | _ASBOX | |
17112 | ) | | |
17113 | sed "s/^/$as_me: WARNING: /" >&2 | |
17114 | ;; | |
c0d27fcc MR |
17115 | no:yes ) |
17116 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17117 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17118 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17119 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
17121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
17122 | ( | |
17123 | cat <<\_ASBOX | |
17124 | ## ------------------------------------ ## | |
17125 | ## Report this to bug-autoconf@gnu.org. ## | |
17126 | ## ------------------------------------ ## | |
17127 | _ASBOX | |
17128 | ) | | |
17129 | sed "s/^/$as_me: WARNING: /" >&2 | |
17130 | ;; | |
c0d27fcc MR |
17131 | esac |
17132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17136 | else | |
17137 | eval "$as_ac_Header=$ac_header_preproc" | |
647847ea | 17138 | fi |
c0d27fcc | 17139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 17140 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17141 | |
17142 | fi | |
503d2be0 | 17143 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17144 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17145 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17146 | _ACEOF |
647847ea | 17147 | |
73b77ee5 | 17148 | fi |
c0d27fcc | 17149 | |
503d2be0 | 17150 | done |
73b77ee5 | 17151 | |
c0d27fcc MR |
17152 | |
17153 | ||
503d2be0 AS |
17154 | for ac_func in fork vfork |
17155 | do | |
17156 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 17157 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
17158 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
17159 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 17161 | else |
503d2be0 | 17162 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 17163 | #line $LINENO "configure" |
cd958eb3 MB |
17164 | /* confdefs.h. */ |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
fa0b693c | 17169 | /* System header to define __stub macros and hopefully few prototypes, |
9e71690e DK |
17170 | which can conflict with char $ac_func (); below. |
17171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17172 | <limits.h> exists even on freestanding compilers. */ | |
17173 | #ifdef __STDC__ | |
17174 | # include <limits.h> | |
17175 | #else | |
17176 | # include <assert.h> | |
17177 | #endif | |
fa0b693c | 17178 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17179 | #ifdef __cplusplus |
17180 | extern "C" | |
cd958eb3 | 17181 | { |
503d2be0 | 17182 | #endif |
fa0b693c | 17183 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17184 | builtin and then its argument prototype would still apply. */ |
17185 | char $ac_func (); | |
fa0b693c GM |
17186 | /* The GNU C library defines this for functions which it implements |
17187 | to always fail with ENOSYS. Some functions are actually named | |
17188 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 17189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
17190 | choke me |
17191 | #else | |
cd958eb3 MB |
17192 | char (*f) () = $ac_func; |
17193 | #endif | |
17194 | #ifdef __cplusplus | |
17195 | } | |
fa0b693c GM |
17196 | #endif |
17197 | ||
cd958eb3 MB |
17198 | int |
17199 | main () | |
17200 | { | |
9e71690e | 17201 | return f != $ac_func; |
503d2be0 AS |
17202 | ; |
17203 | return 0; | |
17204 | } | |
17205 | _ACEOF | |
17206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17208 | (eval $ac_link) 2>&5 |
17209 | ac_status=$? | |
c0d27fcc | 17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17211 | (exit $ac_status); } && |
17212 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17214 | (eval $ac_try) 2>&5 |
17215 | ac_status=$? | |
c0d27fcc | 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17217 | (exit $ac_status); }; }; then |
17218 | eval "$as_ac_var=yes" | |
17219 | else | |
17220 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17221 | sed 's/^/| /' conftest.$ac_ext >&5 |
17222 | ||
503d2be0 AS |
17223 | eval "$as_ac_var=no" |
17224 | fi | |
17225 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17226 | fi | |
c0d27fcc | 17227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
17228 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
17229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 17230 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17232 | _ACEOF |
503d2be0 | 17233 | |
fa0b693c | 17234 | fi |
503d2be0 | 17235 | done |
fa0b693c | 17236 | |
503d2be0 | 17237 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 17238 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
17239 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
17240 | if test "${ac_cv_func_fork_works+set}" = set; then | |
17241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 17242 | else |
503d2be0 AS |
17243 | if test "$cross_compiling" = yes; then |
17244 | ac_cv_func_fork_works=cross | |
17245 | else | |
17246 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 17247 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
17248 | #include <sys/types.h> |
17249 | #if HAVE_UNISTD_H | |
17250 | # include <unistd.h> | |
17251 | #endif | |
17252 | /* Some systems only have a dummy stub for fork() */ | |
17253 | int main () | |
17254 | { | |
17255 | if (fork() < 0) | |
17256 | exit (1); | |
17257 | exit (0); | |
17258 | } | |
17259 | _ACEOF | |
17260 | rm -f conftest$ac_exeext | |
c0d27fcc | 17261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17262 | (eval $ac_link) 2>&5 |
17263 | ac_status=$? | |
c0d27fcc | 17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17265 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 17266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17267 | (eval $ac_try) 2>&5 |
17268 | ac_status=$? | |
c0d27fcc | 17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17270 | (exit $ac_status); }; }; then |
17271 | ac_cv_func_fork_works=yes | |
17272 | else | |
17273 | echo "$as_me: program exited with status $ac_status" >&5 | |
17274 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17275 | sed 's/^/| /' conftest.$ac_ext >&5 |
17276 | ||
c0d27fcc | 17277 | ( exit $ac_status ) |
503d2be0 AS |
17278 | ac_cv_func_fork_works=no |
17279 | fi | |
6bae0ccf | 17280 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
17281 | fi |
17282 | fi | |
c0d27fcc | 17283 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
17284 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
17285 | ||
6bae0ccf DL |
17286 | else |
17287 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
17288 | fi |
17289 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17290 | case $host in | |
17291 | *-*-amigaos* | *-*-msdosdjgpp*) | |
17292 | # Override, as these systems have only a dummy fork() stub | |
17293 | ac_cv_func_fork_works=no | |
17294 | ;; | |
17295 | *) | |
17296 | ac_cv_func_fork_works=yes | |
17297 | ;; | |
17298 | esac | |
c0d27fcc MR |
17299 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
17300 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 17301 | fi |
73b77ee5 | 17302 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 17303 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 17304 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
17305 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
17306 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
17307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17308 | else | |
17309 | if test "$cross_compiling" = yes; then | |
17310 | ac_cv_func_vfork_works=cross | |
fa0b693c | 17311 | else |
503d2be0 | 17312 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 17313 | #line $LINENO "configure" |
cd958eb3 MB |
17314 | /* confdefs.h. */ |
17315 | _ACEOF | |
17316 | cat confdefs.h >>conftest.$ac_ext | |
17317 | cat >>conftest.$ac_ext <<_ACEOF | |
17318 | /* end confdefs.h. */ | |
73b77ee5 GM |
17319 | /* Thanks to Paul Eggert for this test. */ |
17320 | #include <stdio.h> | |
cd958eb3 | 17321 | #include <stdlib.h> |
fa0b693c | 17322 | #include <sys/types.h> |
73b77ee5 | 17323 | #include <sys/stat.h> |
cd958eb3 | 17324 | #include <sys/wait.h> |
503d2be0 AS |
17325 | #if HAVE_UNISTD_H |
17326 | # include <unistd.h> | |
73b77ee5 | 17327 | #endif |
503d2be0 AS |
17328 | #if HAVE_VFORK_H |
17329 | # include <vfork.h> | |
73b77ee5 GM |
17330 | #endif |
17331 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
17332 | argument registers are propagated back to the parent. The compiler |
17333 | is told about this with #include <vfork.h>, but some compilers | |
17334 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
17335 | static variable whose address is put into a register that is | |
17336 | clobbered by the vfork. */ | |
cd958eb3 | 17337 | static void |
fa0b693c | 17338 | #ifdef __cplusplus |
73b77ee5 | 17339 | sparc_address_test (int arg) |
503d2be0 | 17340 | # else |
73b77ee5 | 17341 | sparc_address_test (arg) int arg; |
fa0b693c | 17342 | #endif |
fa0b693c | 17343 | { |
73b77ee5 GM |
17344 | static pid_t child; |
17345 | if (!child) { | |
17346 | child = vfork (); | |
17347 | if (child < 0) { | |
17348 | perror ("vfork"); | |
17349 | _exit(2); | |
17350 | } | |
17351 | if (!child) { | |
17352 | arg = getpid(); | |
17353 | write(-1, "", 0); | |
17354 | _exit (arg); | |
17355 | } | |
17356 | } | |
17357 | } | |
503d2be0 AS |
17358 | |
17359 | int | |
17360 | main () | |
17361 | { | |
73b77ee5 GM |
17362 | pid_t parent = getpid (); |
17363 | pid_t child; | |
fa0b693c | 17364 | |
cd958eb3 | 17365 | sparc_address_test (0); |
fa0b693c | 17366 | |
73b77ee5 | 17367 | child = vfork (); |
fa0b693c | 17368 | |
73b77ee5 | 17369 | if (child == 0) { |
503d2be0 AS |
17370 | /* Here is another test for sparc vfork register problems. This |
17371 | test uses lots of local variables, at least as many local | |
17372 | variables as main has allocated so far including compiler | |
17373 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
17374 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
17375 | reuse the register of parent for one of the local variables, | |
17376 | since it will think that parent can't possibly be used any more | |
17377 | in this routine. Assigning to the local variable will thus | |
17378 | munge parent in the parent process. */ | |
73b77ee5 GM |
17379 | pid_t |
17380 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
17381 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
17382 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
17383 | use the same hardware register for all 8 local variables. */ | |
17384 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
17385 | || p != p5 || p != p6 || p != p7) | |
17386 | _exit(1); | |
fa0b693c | 17387 | |
503d2be0 AS |
17388 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
17389 | from child file descriptors. If the child closes a descriptor | |
17390 | before it execs or exits, this munges the parent's descriptor | |
17391 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
17392 | _exit(close(fileno(stdout)) != 0); |
17393 | } else { | |
17394 | int status; | |
17395 | struct stat st; | |
17396 | ||
17397 | while (wait(&status) != child) | |
17398 | ; | |
17399 | exit( | |
17400 | /* Was there some problem with vforking? */ | |
17401 | child < 0 | |
17402 | ||
17403 | /* Did the child fail? (This shouldn't happen.) */ | |
17404 | || status | |
17405 | ||
17406 | /* Did the vfork/compiler bug occur? */ | |
17407 | || parent != getpid() | |
fa0b693c | 17408 | |
73b77ee5 GM |
17409 | /* Did the file descriptor bug occur? */ |
17410 | || fstat(fileno(stdout), &st) != 0 | |
17411 | ); | |
17412 | } | |
17413 | } | |
503d2be0 AS |
17414 | _ACEOF |
17415 | rm -f conftest$ac_exeext | |
c0d27fcc | 17416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17417 | (eval $ac_link) 2>&5 |
17418 | ac_status=$? | |
c0d27fcc | 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17422 | (eval $ac_try) 2>&5 |
17423 | ac_status=$? | |
c0d27fcc | 17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17425 | (exit $ac_status); }; }; then |
73b77ee5 | 17426 | ac_cv_func_vfork_works=yes |
fa0b693c | 17427 | else |
503d2be0 AS |
17428 | echo "$as_me: program exited with status $ac_status" >&5 |
17429 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17430 | sed 's/^/| /' conftest.$ac_ext >&5 |
17431 | ||
c0d27fcc | 17432 | ( exit $ac_status ) |
503d2be0 AS |
17433 | ac_cv_func_vfork_works=no |
17434 | fi | |
6bae0ccf | 17435 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 17436 | fi |
fa0b693c | 17437 | fi |
c0d27fcc | 17438 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 17439 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 17440 | |
503d2be0 AS |
17441 | fi; |
17442 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17443 | ac_cv_func_vfork_works=ac_cv_func_vfork | |
c0d27fcc MR |
17444 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
17445 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
17446 | fi |
17447 | ||
503d2be0 AS |
17448 | if test "x$ac_cv_func_vfork_works" = xyes; then |
17449 | ||
c0d27fcc | 17450 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 17451 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 17452 | _ACEOF |
503d2be0 AS |
17453 | |
17454 | else | |
17455 | ||
c0d27fcc | 17456 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 17457 | #define vfork fork |
c0d27fcc | 17458 | _ACEOF |
fa0b693c GM |
17459 | |
17460 | fi | |
503d2be0 AS |
17461 | if test "x$ac_cv_func_fork_works" = xyes; then |
17462 | ||
c0d27fcc | 17463 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 17464 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 17465 | _ACEOF |
fa0b693c | 17466 | |
503d2be0 | 17467 | fi |
647847ea | 17468 | |
c0d27fcc | 17469 | |
6a3a24fa JD |
17470 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
17471 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
17472 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17474 | else | |
17475 | cat >conftest.$ac_ext <<_ACEOF | |
17476 | #line $LINENO "configure" | |
17477 | /* confdefs.h. */ | |
17478 | _ACEOF | |
17479 | cat confdefs.h >>conftest.$ac_ext | |
17480 | cat >>conftest.$ac_ext <<_ACEOF | |
17481 | /* end confdefs.h. */ | |
17482 | #include <langinfo.h> | |
17483 | int | |
17484 | main () | |
17485 | { | |
17486 | char* cs = nl_langinfo(CODESET); | |
17487 | ; | |
17488 | return 0; | |
17489 | } | |
17490 | _ACEOF | |
17491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17493 | (eval $ac_link) 2>&5 | |
17494 | ac_status=$? | |
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17496 | (exit $ac_status); } && | |
17497 | { ac_try='test -s conftest$ac_exeext' | |
17498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17499 | (eval $ac_try) 2>&5 | |
17500 | ac_status=$? | |
17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17502 | (exit $ac_status); }; }; then | |
17503 | emacs_cv_langinfo_codeset=yes | |
17504 | else | |
17505 | echo "$as_me: failed program was:" >&5 | |
17506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17507 | ||
17508 | emacs_cv_langinfo_codeset=no | |
17509 | fi | |
17510 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17511 | ||
17512 | fi | |
17513 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
17514 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
17515 | if test $emacs_cv_langinfo_codeset = yes; then | |
17516 | ||
17517 | cat >>confdefs.h <<\_ACEOF | |
17518 | #define HAVE_LANGINFO_CODESET 1 | |
17519 | _ACEOF | |
17520 | ||
17521 | fi | |
17522 | ||
c0d27fcc | 17523 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
17524 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
17525 | if test "${ac_cv_type_size_t+set}" = set; then | |
17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 17527 | else |
503d2be0 | 17528 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 17529 | #line $LINENO "configure" |
cd958eb3 MB |
17530 | /* confdefs.h. */ |
17531 | _ACEOF | |
17532 | cat confdefs.h >>conftest.$ac_ext | |
17533 | cat >>conftest.$ac_ext <<_ACEOF | |
17534 | /* end confdefs.h. */ | |
503d2be0 AS |
17535 | $ac_includes_default |
17536 | int | |
17537 | main () | |
17538 | { | |
17539 | if ((size_t *) 0) | |
17540 | return 0; | |
17541 | if (sizeof (size_t)) | |
17542 | return 0; | |
17543 | ; | |
17544 | return 0; | |
17545 | } | |
17546 | _ACEOF | |
17547 | rm -f conftest.$ac_objext | |
c0d27fcc | 17548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
17549 | (eval $ac_compile) 2>&5 |
17550 | ac_status=$? | |
c0d27fcc | 17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17552 | (exit $ac_status); } && |
17553 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 17554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17555 | (eval $ac_try) 2>&5 |
17556 | ac_status=$? | |
c0d27fcc | 17557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17558 | (exit $ac_status); }; }; then |
8730a8da DL |
17559 | ac_cv_type_size_t=yes |
17560 | else | |
503d2be0 | 17561 | echo "$as_me: failed program was:" >&5 |
cd958eb3 MB |
17562 | sed 's/^/| /' conftest.$ac_ext >&5 |
17563 | ||
503d2be0 | 17564 | ac_cv_type_size_t=no |
8730a8da | 17565 | fi |
503d2be0 | 17566 | rm -f conftest.$ac_objext conftest.$ac_ext |
8730a8da | 17567 | fi |
c0d27fcc | 17568 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
17569 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
17570 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 17571 | |
c0d27fcc MR |
17572 | cat >>confdefs.h <<_ACEOF |
17573 | #define HAVE_SIZE_T 1 | |
17574 | _ACEOF | |
17575 | ||
8730a8da DL |
17576 | |
17577 | fi | |
17578 | ||
c0d27fcc | 17579 | |
22044edf DL |
17580 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
17581 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
17582 | if test "${emacs_cv_c_restrict+set}" = set; then | |
17583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17584 | else | |
17585 | cat >conftest.$ac_ext <<_ACEOF | |
17586 | #line $LINENO "configure" | |
cd958eb3 MB |
17587 | /* confdefs.h. */ |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
22044edf DL |
17592 | void fred (int *restrict x); |
17593 | int | |
17594 | main () | |
17595 | { | |
b936fae4 | 17596 | |
22044edf DL |
17597 | ; |
17598 | return 0; | |
17599 | } | |
c0d27fcc | 17600 | _ACEOF |
22044edf DL |
17601 | rm -f conftest.$ac_objext |
17602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17603 | (eval $ac_compile) 2>&5 | |
17604 | ac_status=$? | |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17606 | (exit $ac_status); } && | |
17607 | { ac_try='test -s conftest.$ac_objext' | |
17608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17609 | (eval $ac_try) 2>&5 | |
17610 | ac_status=$? | |
17611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17612 | (exit $ac_status); }; }; then | |
17613 | emacs_cv_c_restrict=yes | |
17614 | else | |
17615 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17616 | sed 's/^/| /' conftest.$ac_ext >&5 |
17617 | ||
22044edf DL |
17618 | cat >conftest.$ac_ext <<_ACEOF |
17619 | #line $LINENO "configure" | |
cd958eb3 MB |
17620 | /* confdefs.h. */ |
17621 | _ACEOF | |
17622 | cat confdefs.h >>conftest.$ac_ext | |
17623 | cat >>conftest.$ac_ext <<_ACEOF | |
17624 | /* end confdefs.h. */ | |
22044edf DL |
17625 | void fred (int *__restrict x); |
17626 | int | |
17627 | main () | |
17628 | { | |
c0d27fcc | 17629 | |
22044edf DL |
17630 | ; |
17631 | return 0; | |
17632 | } | |
c0d27fcc | 17633 | _ACEOF |
22044edf DL |
17634 | rm -f conftest.$ac_objext |
17635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17636 | (eval $ac_compile) 2>&5 | |
17637 | ac_status=$? | |
17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17639 | (exit $ac_status); } && | |
17640 | { ac_try='test -s conftest.$ac_objext' | |
17641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17642 | (eval $ac_try) 2>&5 | |
17643 | ac_status=$? | |
17644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17645 | (exit $ac_status); }; }; then | |
17646 | emacs_cv_c_restrict=__restrict | |
17647 | else | |
17648 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17649 | sed 's/^/| /' conftest.$ac_ext >&5 |
17650 | ||
22044edf | 17651 | emacs_cv_c_restrict=no |
ba4481b5 | 17652 | fi |
22044edf | 17653 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 17654 | fi |
22044edf | 17655 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 17656 | fi |
22044edf DL |
17657 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
17658 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
17659 | case "$emacs_cv_c_restrict" in | |
17660 | yes) emacs_restrict=restrict;; | |
17661 | no) emacs_restrict="";; | |
17662 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
17663 | esac | |
17664 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 17665 | |
22044edf DL |
17666 | cat >>confdefs.h <<_ACEOF |
17667 | #define __restrict $emacs_restrict | |
c0d27fcc | 17668 | _ACEOF |
ba4481b5 DL |
17669 | |
17670 | fi | |
ba4481b5 | 17671 | |
22044edf DL |
17672 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
17673 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
17674 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
17675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17676 | else | |
17677 | cat >conftest.$ac_ext <<_ACEOF | |
17678 | #line $LINENO "configure" | |
cd958eb3 MB |
17679 | /* confdefs.h. */ |
17680 | _ACEOF | |
17681 | cat confdefs.h >>conftest.$ac_ext | |
17682 | cat >>conftest.$ac_ext <<_ACEOF | |
17683 | /* end confdefs.h. */ | |
22044edf DL |
17684 | void fred (int x[__restrict]); |
17685 | int | |
17686 | main () | |
17687 | { | |
b936fae4 | 17688 | |
22044edf DL |
17689 | ; |
17690 | return 0; | |
17691 | } | |
c0d27fcc | 17692 | _ACEOF |
22044edf DL |
17693 | rm -f conftest.$ac_objext |
17694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17695 | (eval $ac_compile) 2>&5 | |
17696 | ac_status=$? | |
17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17698 | (exit $ac_status); } && | |
17699 | { ac_try='test -s conftest.$ac_objext' | |
17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17701 | (eval $ac_try) 2>&5 | |
17702 | ac_status=$? | |
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17704 | (exit $ac_status); }; }; then | |
17705 | emacs_cv_c_restrict_arr=yes | |
17706 | else | |
17707 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17708 | sed 's/^/| /' conftest.$ac_ext >&5 |
17709 | ||
22044edf | 17710 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 17711 | fi |
22044edf DL |
17712 | rm -f conftest.$ac_objext conftest.$ac_ext |
17713 | fi | |
17714 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
17715 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
17716 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 17717 | |
c0d27fcc | 17718 | cat >>confdefs.h <<\_ACEOF |
22044edf | 17719 | #define __restrict_arr __restrict |
c0d27fcc | 17720 | _ACEOF |
ba4481b5 | 17721 | |
ba4481b5 DL |
17722 | fi |
17723 | ||
c0d27fcc | 17724 | |
f0f2756d SS |
17725 | for ac_header in nlist.h |
17726 | do | |
17727 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
17728 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f0f2756d SS |
17730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17733 | fi |
17734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17735 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17736 | else |
c0d27fcc MR |
17737 | # Is the header compilable? |
17738 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17739 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17740 | cat >conftest.$ac_ext <<_ACEOF | |
17741 | #line $LINENO "configure" | |
cd958eb3 MB |
17742 | /* confdefs.h. */ |
17743 | _ACEOF | |
17744 | cat confdefs.h >>conftest.$ac_ext | |
17745 | cat >>conftest.$ac_ext <<_ACEOF | |
17746 | /* end confdefs.h. */ | |
c0d27fcc MR |
17747 | $ac_includes_default |
17748 | #include <$ac_header> | |
17749 | _ACEOF | |
17750 | rm -f conftest.$ac_objext | |
17751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17752 | (eval $ac_compile) 2>&5 | |
17753 | ac_status=$? | |
17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17755 | (exit $ac_status); } && | |
17756 | { ac_try='test -s conftest.$ac_objext' | |
17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17758 | (eval $ac_try) 2>&5 | |
17759 | ac_status=$? | |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; }; then | |
17762 | ac_header_compiler=yes | |
17763 | else | |
17764 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17765 | sed 's/^/| /' conftest.$ac_ext >&5 |
17766 | ||
c0d27fcc MR |
17767 | ac_header_compiler=no |
17768 | fi | |
17769 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17771 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17772 | ||
17773 | # Is the header present? | |
17774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17776 | cat >conftest.$ac_ext <<_ACEOF | |
17777 | #line $LINENO "configure" | |
cd958eb3 MB |
17778 | /* confdefs.h. */ |
17779 | _ACEOF | |
17780 | cat confdefs.h >>conftest.$ac_ext | |
17781 | cat >>conftest.$ac_ext <<_ACEOF | |
17782 | /* end confdefs.h. */ | |
f0f2756d SS |
17783 | #include <$ac_header> |
17784 | _ACEOF | |
c0d27fcc | 17785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f0f2756d SS |
17786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17787 | ac_status=$? | |
6bae0ccf | 17788 | grep -v '^ *+' conftest.er1 >conftest.err |
f0f2756d SS |
17789 | rm -f conftest.er1 |
17790 | cat conftest.err >&5 | |
c0d27fcc | 17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f0f2756d SS |
17792 | (exit $ac_status); } >/dev/null; then |
17793 | if test -s conftest.err; then | |
17794 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17795 | else | |
17796 | ac_cpp_err= | |
17797 | fi | |
17798 | else | |
17799 | ac_cpp_err=yes | |
17800 | fi | |
17801 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17802 | ac_header_preproc=yes |
f0f2756d SS |
17803 | else |
17804 | echo "$as_me: failed program was:" >&5 | |
cd958eb3 MB |
17805 | sed 's/^/| /' conftest.$ac_ext >&5 |
17806 | ||
c0d27fcc | 17807 | ac_header_preproc=no |
f0f2756d SS |
17808 | fi |
17809 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
17810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17811 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17812 | ||
17813 | # So? What about this header? | |
17814 | case $ac_header_compiler:$ac_header_preproc in | |
17815 | yes:no ) | |
17816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17817 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
17819 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
17820 | ( | |
17821 | cat <<\_ASBOX | |
17822 | ## ------------------------------------ ## | |
17823 | ## Report this to bug-autoconf@gnu.org. ## | |
17824 | ## ------------------------------------ ## | |
17825 | _ASBOX | |
17826 | ) | | |
17827 | sed "s/^/$as_me: WARNING: /" >&2 | |
17828 | ;; | |
c0d27fcc MR |
17829 | no:yes ) |
17830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
cd958eb3 MB |
17835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
17836 | ( | |
17837 | cat <<\_ASBOX | |
17838 | ## ------------------------------------ ## | |
17839 | ## Report this to bug-autoconf@gnu.org. ## | |
17840 | ## ------------------------------------ ## | |
17841 | _ASBOX | |
17842 | ) | | |
17843 | sed "s/^/$as_me: WARNING: /" >&2 | |
17844 | ;; | |
c0d27fcc MR |
17845 | esac |
17846 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17848 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17850 | else | |
17851 | eval "$as_ac_Header=$ac_header_preproc" | |
f0f2756d | 17852 | fi |
c0d27fcc | 17853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f0f2756d | 17854 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17855 | |
17856 | fi | |
f0f2756d | 17857 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17858 | cat >>confdefs.h <<_ACEOF |
f0f2756d | 17859 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17860 | _ACEOF |
f0f2756d | 17861 | |
c0d27fcc | 17862 | cat >>confdefs.h <<\_ACEOF |
f0f2756d | 17863 | #define NLIST_STRUCT 1 |
c0d27fcc | 17864 | _ACEOF |
f0f2756d SS |
17865 | |
17866 | fi | |
c0d27fcc | 17867 | |
f0f2756d SS |
17868 | done |
17869 | ||
c0d27fcc MR |
17870 | |
17871 | ||
17872 | ||
22044edf DL |
17873 | # Set up the CFLAGS for real compilation, so we can substitute it. |
17874 | CFLAGS="$REAL_CFLAGS" | |
17875 | CPPFLAGS="$REAL_CPPFLAGS" | |
17876 | ||
17877 | #### Find out which version of Emacs this is. | |
17878 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
17879 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
17880 | if test x"${version}" = x; then | |
17881 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
17882 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
17883 | { (exit 1); exit 1; }; } | |
17884 | fi | |
17885 | ||
17886 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
17887 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
17888 | ||
17889 | ||
17890 | ||
17891 | ||
17892 | ||
17893 | ||
17894 | ||
17895 | ||
17896 | ||
17897 | ||
17898 | ||
17899 | ||
17900 | ||
17901 | ||
17902 | ||
17903 | ||
17904 | ||
17905 | ||
17906 | ||
17907 | ||
17908 | ||
17909 | ||
17910 | ||
17911 | ||
17912 | ||
17913 | ||
17914 | ||
17915 | ||
17916 | ||
17917 | ||
17918 | ||
17919 | ||
6a3a24fa | 17920 | |
22044edf DL |
17921 | |
17922 | ||
17923 | cat >>confdefs.h <<_ACEOF | |
17924 | #define EMACS_CONFIGURATION "${canonical}" | |
17925 | _ACEOF | |
17926 | ||
17927 | ||
17928 | cat >>confdefs.h <<_ACEOF | |
17929 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
17930 | _ACEOF | |
17931 | ||
17932 | ||
17933 | cat >>confdefs.h <<_ACEOF | |
17934 | #define config_machfile "${machfile}" | |
17935 | _ACEOF | |
17936 | ||
17937 | ||
17938 | cat >>confdefs.h <<_ACEOF | |
17939 | #define config_opsysfile "${opsysfile}" | |
17940 | _ACEOF | |
17941 | ||
17942 | ||
17943 | cat >>confdefs.h <<_ACEOF | |
17944 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
17945 | _ACEOF | |
17946 | ||
17947 | ||
17948 | cat >>confdefs.h <<_ACEOF | |
17949 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
17950 | _ACEOF | |
17951 | ||
17952 | ||
17953 | cat >>confdefs.h <<_ACEOF | |
17954 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
17955 | _ACEOF | |
17956 | ||
17957 | ||
17958 | cat >>confdefs.h <<_ACEOF | |
17959 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
17960 | _ACEOF | |
17961 | ||
17962 | ||
17963 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
17964 | ||
17965 | cat >>confdefs.h <<\_ACEOF | |
17966 | #define HAVE_X_WINDOWS 1 | |
17967 | _ACEOF | |
17968 | ||
17969 | fi | |
17970 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
17971 | ||
17972 | cat >>confdefs.h <<\_ACEOF | |
17973 | #define USE_X_TOOLKIT 1 | |
17974 | _ACEOF | |
17975 | ||
17976 | fi | |
17977 | if test "${HAVE_X11}" = "yes" ; then | |
17978 | ||
17979 | cat >>confdefs.h <<\_ACEOF | |
17980 | #define HAVE_X11 1 | |
17981 | _ACEOF | |
17982 | ||
17983 | fi | |
17984 | if test "${HAVE_XFREE386}" = "yes" ; then | |
17985 | ||
17986 | cat >>confdefs.h <<\_ACEOF | |
17987 | #define HAVE_XFREE386 1 | |
17988 | _ACEOF | |
17989 | ||
17990 | fi | |
17991 | if test "${HAVE_MENUS}" = "yes" ; then | |
17992 | ||
17993 | cat >>confdefs.h <<\_ACEOF | |
17994 | #define HAVE_MENUS 1 | |
17995 | _ACEOF | |
17996 | ||
17997 | fi | |
17998 | if test "${GNU_MALLOC}" = "yes" ; then | |
17999 | ||
18000 | cat >>confdefs.h <<\_ACEOF | |
18001 | #define GNU_MALLOC 1 | |
18002 | _ACEOF | |
18003 | ||
18004 | fi | |
18005 | if test "${REL_ALLOC}" = "yes" ; then | |
18006 | ||
18007 | cat >>confdefs.h <<\_ACEOF | |
18008 | #define REL_ALLOC 1 | |
18009 | _ACEOF | |
18010 | ||
18011 | fi | |
18012 | ||
18013 | ||
18014 | ||
c0d27fcc MR |
18015 | |
18016 | ||
ba4481b5 | 18017 | #### Report on what we decided to do. |
488dd4c4 JD |
18018 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
18019 | #### It makes printing result more understandable as using GTK sets | |
18020 | #### toolkit_scroll_bars to yes by default. | |
18021 | if test "${HAVE_GTK}" = "yes"; then | |
18022 | USE_X_TOOLKIT=GTK | |
18023 | fi | |
18024 | ||
ba4481b5 DL |
18025 | echo " |
18026 | Configured for \`${canonical}'. | |
18027 | ||
18028 | Where should the build process find the source code? ${srcdir} | |
18029 | What operating system and machine description files should Emacs use? | |
18030 | \`${opsysfile}' and \`${machfile}' | |
18031 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
18032 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 18033 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 18034 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 18035 | What window system should Emacs use? ${window_system} |
8e967cf7 | 18036 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
18037 | |
18038 | if test -n "${x_includes}"; then | |
18039 | echo " Where do we find X Windows header files? ${x_includes}" | |
18040 | else | |
18041 | echo " Where do we find X Windows header files? Standard dirs" | |
18042 | fi | |
18043 | if test -n "${x_libraries}"; then | |
18044 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
18045 | else | |
18046 | echo " Where do we find X Windows libraries? Standard dirs" | |
18047 | fi | |
18048 | ||
18049 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
18050 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
18051 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
18052 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
18053 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
18054 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
18055 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
18056 | echo | |
18057 | ||
18058 | # Remove any trailing slashes in these variables. | |
18059 | test "${prefix}" != NONE && | |
18060 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
18061 | test "${exec_prefix}" != NONE && | |
18062 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
18063 | ||
d0e9bfd2 GM |
18064 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
18065 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
18066 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
18067 | ## C preprocessor. | |
18068 | ||
503d2be0 | 18069 | cat >conftest.$ac_ext <<_ACEOF |
c0d27fcc | 18070 | #line $LINENO "configure" |
cd958eb3 MB |
18071 | /* confdefs.h. */ |
18072 | _ACEOF | |
18073 | cat confdefs.h >>conftest.$ac_ext | |
18074 | cat >>conftest.$ac_ext <<_ACEOF | |
18075 | /* end confdefs.h. */ | |
d0e9bfd2 | 18076 | yes..yes |
503d2be0 | 18077 | _ACEOF |
d0e9bfd2 | 18078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 18079 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
18080 | CPP_NEED_TRADITIONAL=no |
18081 | else | |
d0e9bfd2 GM |
18082 | CPP_NEED_TRADITIONAL=yes |
18083 | fi | |
18084 | rm -f conftest* | |
18085 | ||
c0d27fcc | 18086 | |
6bae0ccf DL |
18087 | 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" |
18088 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 18089 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
18090 | # This file is a shell script that caches the results of configure |
18091 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
18092 | # scripts and configure runs, see configure's option --config-cache. |
18093 | # It is not useful on other systems. If it contains results you don't | |
18094 | # want to keep, you may remove or edit it. | |
ba4481b5 | 18095 | # |
503d2be0 AS |
18096 | # config.status only pays attention to the cache file if you give it |
18097 | # the --recheck option to rerun configure. | |
ba4481b5 | 18098 | # |
6bae0ccf | 18099 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
18100 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
18101 | # following values. | |
18102 | ||
18103 | _ACEOF | |
18104 | ||
ba4481b5 DL |
18105 | # The following way of writing the cache mishandles newlines in values, |
18106 | # but we know of no workaround that is simple, portable, and efficient. | |
18107 | # So, don't put newlines in cache variables' values. | |
18108 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18109 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
18110 | { |
18111 | (set) 2>&1 | | |
18112 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18113 | *ac_space=\ *) | |
18114 | # `set' does not quote correctly, so add quotes (double-quote | |
18115 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18116 | sed -n \ | |
18117 | "s/'/'\\\\''/g; | |
18118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18119 | ;; | |
18120 | *) | |
18121 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18122 | sed -n \ | |
18123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
18124 | ;; | |
18125 | esac; | |
18126 | } | | |
18127 | sed ' | |
18128 | t clear | |
18129 | : clear | |
18130 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18131 | t end | |
18132 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18133 | : end' >>confcache | |
cd958eb3 | 18134 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 18135 | if test -w $cache_file; then |
503d2be0 AS |
18136 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18137 | cat confcache >$cache_file | |
ba4481b5 DL |
18138 | else |
18139 | echo "not updating unwritable cache $cache_file" | |
18140 | fi | |
18141 | fi | |
18142 | rm -f confcache | |
18143 | ||
ba4481b5 DL |
18144 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18145 | # Let make expand exec_prefix. | |
18146 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18147 | ||
503d2be0 AS |
18148 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18149 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18150 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18151 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 18152 | if test "x$srcdir" = x.; then |
503d2be0 AS |
18153 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
18154 | s/:*\$(srcdir):*/:/; | |
18155 | s/:*\${srcdir}:*/:/; | |
18156 | s/:*@srcdir@:*/:/; | |
18157 | s/^\([^=]*=[ ]*\):*/\1/; | |
18158 | s/:*$//; | |
18159 | s/^[^=]*=[ ]*$//; | |
18160 | }' | |
ba4481b5 DL |
18161 | fi |
18162 | ||
ba4481b5 DL |
18163 | DEFS=-DHAVE_CONFIG_H |
18164 | ||
6bae0ccf DL |
18165 | ac_libobjs= |
18166 | ac_ltlibobjs= | |
18167 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18168 | # 1. Remove the extension, and $U if already installed. | |
18169 | ac_i=`echo "$ac_i" | | |
18170 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
18171 | # 2. Add them. | |
18172 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
18173 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
18174 | done | |
18175 | LIBOBJS=$ac_libobjs | |
18176 | ||
18177 | LTLIBOBJS=$ac_ltlibobjs | |
18178 | ||
18179 | ||
c0d27fcc | 18180 | |
ba4481b5 | 18181 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
18182 | ac_clean_files_save=$ac_clean_files |
18183 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 18184 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
18185 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
18186 | cat >$CONFIG_STATUS <<_ACEOF | |
18187 | #! $SHELL | |
c0d27fcc | 18188 | # Generated by $as_me. |
ba4481b5 | 18189 | # Run this file to recreate the current configuration. |
ba4481b5 | 18190 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 18191 | # configure, is in config.log if it exists. |
ba4481b5 | 18192 | |
503d2be0 | 18193 | debug=false |
cd958eb3 MB |
18194 | ac_cs_recheck=false |
18195 | ac_cs_silent=false | |
503d2be0 | 18196 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
18197 | _ACEOF |
18198 | ||
18199 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
18200 | ## --------------------- ## |
18201 | ## M4sh Initialization. ## | |
18202 | ## --------------------- ## | |
18203 | ||
503d2be0 AS |
18204 | # Be Bourne compatible |
18205 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18206 | emulate sh | |
18207 | NULLCMD=: | |
6bae0ccf DL |
18208 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18209 | # is contrary to our usage. Disable this feature. | |
18210 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
18211 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
18212 | set -o posix | |
18213 | fi | |
18214 | ||
c0d27fcc MR |
18215 | # Support unset when possible. |
18216 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
18217 | as_unset=unset | |
18218 | else | |
18219 | as_unset=false | |
18220 | fi | |
18221 | ||
6bae0ccf DL |
18222 | |
18223 | # Work around bugs in pre-3.0 UWIN ksh. | |
18224 | $as_unset ENV MAIL MAILPATH | |
18225 | PS1='$ ' | |
18226 | PS2='> ' | |
18227 | PS4='+ ' | |
18228 | ||
18229 | # NLS nuisances. | |
cd958eb3 MB |
18230 | for as_var in \ |
18231 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
18232 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
18233 | LC_TELEPHONE LC_TIME | |
6bae0ccf DL |
18234 | do |
18235 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
18236 | eval $as_var=C; export $as_var | |
18237 | else | |
18238 | $as_unset $as_var | |
18239 | fi | |
18240 | done | |
18241 | ||
18242 | # Required to use basename. | |
18243 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
18244 | as_expr=expr | |
18245 | else | |
18246 | as_expr=false | |
18247 | fi | |
18248 | ||
18249 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
18250 | as_basename=basename | |
18251 | else | |
18252 | as_basename=false | |
18253 | fi | |
c0d27fcc MR |
18254 | |
18255 | ||
503d2be0 | 18256 | # Name of the executable. |
6bae0ccf | 18257 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
18258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18259 | X"$0" : 'X\(//\)$' \| \ | |
18260 | X"$0" : 'X\(/\)$' \| \ | |
18261 | . : '\(.\)' 2>/dev/null || | |
18262 | echo X/"$0" | | |
18263 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
18264 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
18265 | /^X\/\(\/\).*/{ s//\1/; q; } | |
18266 | s/.*/./; q'` | |
18267 | ||
6bae0ccf | 18268 | |
c0d27fcc MR |
18269 | # PATH needs CR, and LINENO needs CR and PATH. |
18270 | # Avoid depending upon Character Ranges. | |
18271 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18272 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18273 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18274 | as_cr_digits='0123456789' | |
18275 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18276 | ||
18277 | # The user is always right. | |
18278 | if test "${PATH_SEPARATOR+set}" != set; then | |
cd958eb3 MB |
18279 | echo "#! /bin/sh" >conf$$.sh |
18280 | echo "exit 0" >>conf$$.sh | |
18281 | chmod +x conf$$.sh | |
18282 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
18283 | PATH_SEPARATOR=';' |
18284 | else | |
18285 | PATH_SEPARATOR=: | |
18286 | fi | |
cd958eb3 | 18287 | rm -f conf$$.sh |
c0d27fcc MR |
18288 | fi |
18289 | ||
18290 | ||
18291 | as_lineno_1=$LINENO | |
18292 | as_lineno_2=$LINENO | |
18293 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
18294 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
18295 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
18296 | # Find who we are. Look in the path if we contain no path at all | |
18297 | # relative or not. | |
18298 | case $0 in | |
18299 | *[\\/]* ) as_myself=$0 ;; | |
18300 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18301 | for as_dir in $PATH | |
18302 | do | |
18303 | IFS=$as_save_IFS | |
18304 | test -z "$as_dir" && as_dir=. | |
18305 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18306 | done | |
18307 | ||
18308 | ;; | |
18309 | esac | |
18310 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18311 | # in which case we are not to be found in the path. | |
18312 | if test "x$as_myself" = x; then | |
18313 | as_myself=$0 | |
18314 | fi | |
18315 | if test ! -f "$as_myself"; then | |
18316 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
18317 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
18318 | { (exit 1); exit 1; }; } | |
18319 | fi | |
18320 | case $CONFIG_SHELL in | |
18321 | '') | |
18322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18323 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
18324 | do | |
18325 | IFS=$as_save_IFS | |
18326 | test -z "$as_dir" && as_dir=. | |
18327 | for as_base in sh bash ksh sh5; do | |
18328 | case $as_dir in | |
18329 | /*) | |
18330 | if ("$as_dir/$as_base" -c ' | |
18331 | as_lineno_1=$LINENO | |
18332 | as_lineno_2=$LINENO | |
18333 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
18334 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
18335 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
18336 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
18337 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
18338 | CONFIG_SHELL=$as_dir/$as_base |
18339 | export CONFIG_SHELL | |
18340 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
18341 | fi;; | |
18342 | esac | |
18343 | done | |
18344 | done | |
18345 | ;; | |
18346 | esac | |
18347 | ||
18348 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
18349 | # uniformly replaced by the line number. The first 'sed' inserts a | |
18350 | # line-number line before each line; the second 'sed' does the real | |
18351 | # work. The second script uses 'N' to pair each line-number line | |
18352 | # with the numbered line, and appends trailing '-' during | |
18353 | # substitution so that $LINENO is not a special case at line end. | |
18354 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
18355 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
18356 | sed '=' <$as_myself | | |
18357 | sed ' | |
18358 | N | |
18359 | s,$,-, | |
18360 | : loop | |
18361 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
18362 | t loop | |
18363 | s,-$,, | |
18364 | s,^['$as_cr_digits']*\n,, | |
18365 | ' >$as_me.lineno && | |
18366 | chmod +x $as_me.lineno || | |
18367 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
18368 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
18369 | { (exit 1); exit 1; }; } | |
18370 | ||
18371 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18372 | # (the dirname of $[0] is not the place where we might find the | |
18373 | # original and so on. Autoconf is especially sensible to this). | |
18374 | . ./$as_me.lineno | |
18375 | # Exit status is that of the last command. | |
18376 | exit | |
18377 | } | |
18378 | ||
18379 | ||
18380 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
18381 | *c*,-n*) ECHO_N= ECHO_C=' | |
18382 | ' ECHO_T=' ' ;; | |
18383 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
18384 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
18385 | esac | |
503d2be0 AS |
18386 | |
18387 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
18388 | as_expr=expr | |
18389 | else | |
18390 | as_expr=false | |
18391 | fi | |
18392 | ||
18393 | rm -f conf$$ conf$$.exe conf$$.file | |
18394 | echo >conf$$.file | |
18395 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18396 | # We could just check for DJGPP; but this test a) works b) is more generic | |
18397 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
18398 | if test -f conf$$.exe; then | |
18399 | # Don't use ln at all; we don't have any links | |
18400 | as_ln_s='cp -p' | |
18401 | else | |
18402 | as_ln_s='ln -s' | |
18403 | fi | |
18404 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18405 | as_ln_s=ln | |
18406 | else | |
18407 | as_ln_s='cp -p' | |
18408 | fi | |
18409 | rm -f conf$$ conf$$.exe conf$$.file | |
18410 | ||
6bae0ccf DL |
18411 | if mkdir -p . 2>/dev/null; then |
18412 | as_mkdir_p=: | |
18413 | else | |
18414 | as_mkdir_p=false | |
18415 | fi | |
18416 | ||
503d2be0 AS |
18417 | as_executable_p="test -f" |
18418 | ||
c0d27fcc MR |
18419 | # Sed expression to map a string onto a valid CPP name. |
18420 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
18421 | ||
18422 | # Sed expression to map a string onto a valid variable name. | |
18423 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
503d2be0 | 18424 | |
503d2be0 AS |
18425 | |
18426 | # IFS | |
18427 | # We need space, tab and new line, in precisely that order. | |
18428 | as_nl=' | |
18429 | ' | |
18430 | IFS=" $as_nl" | |
18431 | ||
18432 | # CDPATH. | |
6bae0ccf | 18433 | $as_unset CDPATH |
503d2be0 AS |
18434 | |
18435 | exec 6>&1 | |
18436 | ||
c0d27fcc MR |
18437 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
18438 | # report actual input values of CONFIG_FILES etc. instead of their | |
18439 | # values after options handling. Logging --version etc. is OK. | |
18440 | exec 5>>config.log | |
18441 | { | |
18442 | echo | |
18443 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18444 | ## Running $as_me. ## | |
18445 | _ASBOX | |
18446 | } >&5 | |
18447 | cat >&5 <<_CSEOF | |
18448 | ||
18449 | This file was extended by $as_me, which was | |
9e71690e | 18450 | generated by GNU Autoconf 2.57. Invocation command line was |
c0d27fcc MR |
18451 | |
18452 | CONFIG_FILES = $CONFIG_FILES | |
18453 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18454 | CONFIG_LINKS = $CONFIG_LINKS | |
18455 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18456 | $ $0 $@ | |
18457 | ||
18458 | _CSEOF | |
18459 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
18460 | echo >&5 | |
503d2be0 AS |
18461 | _ACEOF |
18462 | ||
18463 | # Files that config.status was made for. | |
18464 | if test -n "$ac_config_files"; then | |
18465 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
18466 | fi | |
18467 | ||
18468 | if test -n "$ac_config_headers"; then | |
18469 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
18470 | fi | |
18471 | ||
18472 | if test -n "$ac_config_links"; then | |
18473 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
18474 | fi | |
18475 | ||
18476 | if test -n "$ac_config_commands"; then | |
18477 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
18478 | fi | |
18479 | ||
c0d27fcc | 18480 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
18481 | |
18482 | ac_cs_usage="\ | |
18483 | \`$as_me' instantiates files from templates according to the | |
18484 | current configuration. | |
18485 | ||
18486 | Usage: $0 [OPTIONS] [FILE]... | |
18487 | ||
18488 | -h, --help print this help, then exit | |
18489 | -V, --version print version number, then exit | |
cd958eb3 | 18490 | -q, --quiet do not print progress messages |
503d2be0 AS |
18491 | -d, --debug don't remove temporary files |
18492 | --recheck update $as_me by reconfiguring in the same conditions | |
18493 | --file=FILE[:TEMPLATE] | |
18494 | instantiate the configuration file FILE | |
18495 | --header=FILE[:TEMPLATE] | |
18496 | instantiate the configuration header FILE | |
18497 | ||
18498 | Configuration files: | |
18499 | $config_files | |
18500 | ||
18501 | Configuration headers: | |
18502 | $config_headers | |
18503 | ||
18504 | Configuration commands: | |
18505 | $config_commands | |
18506 | ||
18507 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 18508 | _ACEOF |
503d2be0 | 18509 | |
c0d27fcc | 18510 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
18511 | ac_cs_version="\\ |
18512 | config.status | |
9e71690e | 18513 | configured by $0, generated by GNU Autoconf 2.57, |
503d2be0 AS |
18514 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
18515 | ||
18516 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
18517 | Free Software Foundation, Inc. | |
18518 | This config.status script is free software; the Free Software Foundation | |
18519 | gives unlimited permission to copy, distribute and modify it." | |
18520 | srcdir=$srcdir | |
18521 | INSTALL="$INSTALL" | |
c0d27fcc | 18522 | _ACEOF |
503d2be0 | 18523 | |
c0d27fcc | 18524 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
18525 | # If no file are specified by the user, then we need to provide default |
18526 | # value. By we need to know if files were specified by the user. | |
18527 | ac_need_defaults=: | |
18528 | while test $# != 0 | |
ba4481b5 | 18529 | do |
503d2be0 AS |
18530 | case $1 in |
18531 | --*=*) | |
18532 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
18533 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
18534 | ac_shift=: |
18535 | ;; | |
18536 | -*) | |
18537 | ac_option=$1 | |
18538 | ac_optarg=$2 | |
18539 | ac_shift=shift | |
503d2be0 | 18540 | ;; |
503d2be0 AS |
18541 | *) # This is not an option, so the user has probably given explicit |
18542 | # arguments. | |
6bae0ccf | 18543 | ac_option=$1 |
503d2be0 AS |
18544 | ac_need_defaults=false;; |
18545 | esac | |
18546 | ||
6bae0ccf | 18547 | case $ac_option in |
503d2be0 | 18548 | # Handling of the options. |
c0d27fcc | 18549 | _ACEOF |
c0d27fcc | 18550 | cat >>$CONFIG_STATUS <<\_ACEOF |
cd958eb3 MB |
18551 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18552 | ac_cs_recheck=: ;; | |
503d2be0 AS |
18553 | --version | --vers* | -V ) |
18554 | echo "$ac_cs_version"; exit 0 ;; | |
18555 | --he | --h) | |
18556 | # Conflict between --help and --header | |
c0d27fcc | 18557 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
18558 | Try \`$0 --help' for more information." >&5 |
18559 | echo "$as_me: error: ambiguous option: $1 | |
18560 | Try \`$0 --help' for more information." >&2;} | |
18561 | { (exit 1); exit 1; }; };; | |
18562 | --help | --hel | -h ) | |
18563 | echo "$ac_cs_usage"; exit 0 ;; | |
18564 | --debug | --d* | -d ) | |
18565 | debug=: ;; | |
18566 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
18567 | $ac_shift |
18568 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
18569 | ac_need_defaults=false;; |
18570 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
18571 | $ac_shift |
18572 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 18573 | ac_need_defaults=false;; |
cd958eb3 MB |
18574 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18575 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18576 | ac_cs_silent=: ;; | |
503d2be0 AS |
18577 | |
18578 | # This is an error. | |
c0d27fcc | 18579 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
18580 | Try \`$0 --help' for more information." >&5 |
18581 | echo "$as_me: error: unrecognized option: $1 | |
18582 | Try \`$0 --help' for more information." >&2;} | |
18583 | { (exit 1); exit 1; }; } ;; | |
18584 | ||
18585 | *) ac_config_targets="$ac_config_targets $1" ;; | |
18586 | ||
ba4481b5 | 18587 | esac |
503d2be0 | 18588 | shift |
ba4481b5 DL |
18589 | done |
18590 | ||
cd958eb3 MB |
18591 | ac_configure_extra_args= |
18592 | ||
18593 | if $ac_cs_silent; then | |
18594 | exec 6>/dev/null | |
18595 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18596 | fi | |
18597 | ||
18598 | _ACEOF | |
18599 | cat >>$CONFIG_STATUS <<_ACEOF | |
18600 | if \$ac_cs_recheck; then | |
18601 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
18602 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
18603 | fi | |
18604 | ||
503d2be0 | 18605 | _ACEOF |
ba4481b5 | 18606 | |
c0d27fcc | 18607 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
18608 | # |
18609 | # INIT-COMMANDS section. | |
18610 | # | |
ba4481b5 | 18611 | |
503d2be0 AS |
18612 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
18613 | ||
c0d27fcc MR |
18614 | _ACEOF |
18615 | ||
503d2be0 | 18616 | |
c0d27fcc MR |
18617 | |
18618 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
18619 | for ac_config_target in $ac_config_targets |
18620 | do | |
18621 | case "$ac_config_target" in | |
18622 | # Handling of arguments. | |
18623 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18624 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
18625 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
18626 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
18627 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
18628 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
18629 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 18630 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 18631 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
18632 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
18633 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
18634 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 18635 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
18636 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
18637 | { (exit 1); exit 1; }; };; | |
18638 | esac | |
ba4481b5 | 18639 | done |
503d2be0 AS |
18640 | |
18641 | # If the user did not use the arguments to specify the items to instantiate, | |
18642 | # then the envvar interface is used. Set only those that are not. | |
18643 | # We use the long form for the default assignment because of an extremely | |
18644 | # bizarre bug on SunOS 4.1.3. | |
18645 | if $ac_need_defaults; then | |
18646 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18647 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18648 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 18649 | fi |
503d2be0 | 18650 | |
cd958eb3 MB |
18651 | # Have a temporary directory for convenience. Make it in the build tree |
18652 | # simply because there is no reason to put it here, and in addition, | |
18653 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
18654 | # Create a temporary directory, and hook for its removal unless debugging. |
18655 | $debug || | |
18656 | { | |
18657 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
18658 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
18659 | } | |
18660 | ||
18661 | # Create a (secure) tmp directory for tmp files. | |
cd958eb3 | 18662 | |
503d2be0 | 18663 | { |
cd958eb3 | 18664 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
18665 | test -n "$tmp" && test -d "$tmp" |
18666 | } || | |
18667 | { | |
cd958eb3 | 18668 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
18669 | (umask 077 && mkdir $tmp) |
18670 | } || | |
18671 | { | |
cd958eb3 | 18672 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
18673 | { (exit 1); exit 1; } |
18674 | } | |
18675 | ||
c0d27fcc | 18676 | _ACEOF |
503d2be0 | 18677 | |
c0d27fcc | 18678 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
18679 | |
18680 | # | |
18681 | # CONFIG_FILES section. | |
18682 | # | |
18683 | ||
18684 | # No need to generate the scripts if there are no CONFIG_FILES. | |
18685 | # This happens for instance when ./config.status config.h | |
18686 | if test -n "\$CONFIG_FILES"; then | |
18687 | # Protect against being on the right side of a sed subst in config.status. | |
18688 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
18689 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
18690 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
18691 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18692 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
18693 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
18694 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
18695 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
18696 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
18697 | s,@exec_prefix@,$exec_prefix,;t t |
18698 | s,@prefix@,$prefix,;t t | |
18699 | s,@program_transform_name@,$program_transform_name,;t t | |
18700 | s,@bindir@,$bindir,;t t | |
18701 | s,@sbindir@,$sbindir,;t t | |
18702 | s,@libexecdir@,$libexecdir,;t t | |
18703 | s,@datadir@,$datadir,;t t | |
18704 | s,@sysconfdir@,$sysconfdir,;t t | |
18705 | s,@sharedstatedir@,$sharedstatedir,;t t | |
18706 | s,@localstatedir@,$localstatedir,;t t | |
18707 | s,@libdir@,$libdir,;t t | |
18708 | s,@includedir@,$includedir,;t t | |
18709 | s,@oldincludedir@,$oldincludedir,;t t | |
18710 | s,@infodir@,$infodir,;t t | |
18711 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
18712 | s,@build_alias@,$build_alias,;t t |
18713 | s,@host_alias@,$host_alias,;t t | |
18714 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 18715 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
18716 | s,@ECHO_C@,$ECHO_C,;t t |
18717 | s,@ECHO_N@,$ECHO_N,;t t | |
18718 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 AS |
18719 | s,@LIBS@,$LIBS,;t t |
18720 | s,@build@,$build,;t t | |
18721 | s,@build_cpu@,$build_cpu,;t t | |
18722 | s,@build_vendor@,$build_vendor,;t t | |
18723 | s,@build_os@,$build_os,;t t | |
18724 | s,@host@,$host,;t t | |
18725 | s,@host_cpu@,$host_cpu,;t t | |
18726 | s,@host_vendor@,$host_vendor,;t t | |
18727 | s,@host_os@,$host_os,;t t | |
18728 | s,@CC@,$CC,;t t | |
18729 | s,@CFLAGS@,$CFLAGS,;t t | |
18730 | s,@LDFLAGS@,$LDFLAGS,;t t | |
18731 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
18732 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
18733 | s,@EXEEXT@,$EXEEXT,;t t | |
18734 | s,@OBJEXT@,$OBJEXT,;t t | |
18735 | s,@LN_S@,$LN_S,;t t | |
18736 | s,@CPP@,$CPP,;t t | |
18737 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
18738 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
18739 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
18740 | s,@RANLIB@,$RANLIB,;t t |
18741 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 18742 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 18743 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
18744 | s,@LIBSOUND@,$LIBSOUND,;t t |
18745 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
18746 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
18747 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
18748 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
18749 | s,@ALLOCA@,$ALLOCA,;t t |
18750 | s,@liblockfile@,$liblockfile,;t t | |
18751 | s,@LIBOBJS@,$LIBOBJS,;t t | |
18752 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
18753 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
18754 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
18755 | s,@version@,$version,;t t | |
18756 | s,@configuration@,$configuration,;t t | |
18757 | s,@canonical@,$canonical,;t t | |
18758 | s,@srcdir@,$srcdir,;t t | |
18759 | s,@lispdir@,$lispdir,;t t | |
18760 | s,@locallisppath@,$locallisppath,;t t | |
18761 | s,@lisppath@,$lisppath,;t t | |
18762 | s,@x_default_search_path@,$x_default_search_path,;t t | |
18763 | s,@etcdir@,$etcdir,;t t | |
18764 | s,@archlibdir@,$archlibdir,;t t | |
18765 | s,@docdir@,$docdir,;t t | |
18766 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
18767 | s,@gamedir@,$gamedir,;t t |
18768 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
18769 | s,@c_switch_system@,$c_switch_system,;t t |
18770 | s,@c_switch_machine@,$c_switch_machine,;t t | |
18771 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
18772 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
18773 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
18774 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
18775 | s,@machfile@,$machfile,;t t | |
18776 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 18777 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 18778 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
18779 | CEOF |
18780 | ||
c0d27fcc | 18781 | _ACEOF |
ba4481b5 | 18782 | |
c0d27fcc | 18783 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
18784 | # Split the substitutions into bite-sized pieces for seds with |
18785 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18786 | ac_max_sed_lines=48 | |
18787 | ac_sed_frag=1 # Number of current file. | |
18788 | ac_beg=1 # First line for current file. | |
18789 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
18790 | ac_more_lines=: | |
18791 | ac_sed_cmds= | |
18792 | while $ac_more_lines; do | |
18793 | if test $ac_beg -gt 1; then | |
18794 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
18795 | else | |
18796 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
18797 | fi | |
18798 | if test ! -s $tmp/subs.frag; then | |
18799 | ac_more_lines=false | |
18800 | else | |
18801 | # The purpose of the label and of the branching condition is to | |
18802 | # speed up the sed processing (if there are no `@' at all, there | |
18803 | # is no need to browse any of the substitutions). | |
18804 | # These are the two extra sed commands mentioned above. | |
18805 | (echo ':t | |
18806 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
18807 | if test -z "$ac_sed_cmds"; then | |
18808 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
18809 | else | |
18810 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
18811 | fi | |
18812 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
18813 | ac_beg=$ac_end | |
18814 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
18815 | fi | |
18816 | done | |
18817 | if test -z "$ac_sed_cmds"; then | |
18818 | ac_sed_cmds=cat | |
18819 | fi | |
18820 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 18821 | |
c0d27fcc MR |
18822 | _ACEOF |
18823 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 18824 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 18825 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
18826 | case $ac_file in |
18827 | - | *:- | *:-:* ) # input from stdin | |
18828 | cat >$tmp/stdin | |
18829 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18830 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18831 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18832 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18833 | * ) ac_file_in=$ac_file.in ;; | |
ba4481b5 DL |
18834 | esac |
18835 | ||
503d2be0 | 18836 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
18837 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
18838 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
503d2be0 AS |
18839 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18840 | X"$ac_file" : 'X\(//\)$' \| \ | |
18841 | X"$ac_file" : 'X\(/\)' \| \ | |
18842 | . : '\(.\)' 2>/dev/null || | |
18843 | echo X"$ac_file" | | |
18844 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18845 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18846 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18847 | /^X\(\/\).*/{ s//\1/; q; } | |
18848 | s/.*/./; q'` | |
6bae0ccf DL |
18849 | { if $as_mkdir_p; then |
18850 | mkdir -p "$ac_dir" | |
18851 | else | |
18852 | as_dir="$ac_dir" | |
18853 | as_dirs= | |
18854 | while test ! -d "$as_dir"; do | |
18855 | as_dirs="$as_dir $as_dirs" | |
18856 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18857 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18858 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18859 | X"$as_dir" : 'X\(//\)$' \| \ | |
18860 | X"$as_dir" : 'X\(/\)' \| \ | |
18861 | . : '\(.\)' 2>/dev/null || | |
18862 | echo X"$as_dir" | | |
18863 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18864 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18865 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18866 | /^X\(\/\).*/{ s//\1/; q; } | |
18867 | s/.*/./; q'` | |
18868 | done | |
18869 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18870 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18871 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18872 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 18873 | |
c0d27fcc | 18874 | ac_builddir=. |
98418dba | 18875 | |
c0d27fcc MR |
18876 | if test "$ac_dir" != .; then |
18877 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18878 | # A "../" for each directory in $ac_dir_suffix. | |
18879 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18880 | else | |
18881 | ac_dir_suffix= ac_top_builddir= | |
18882 | fi | |
18883 | ||
18884 | case $srcdir in | |
18885 | .) # No --srcdir option. We are building in place. | |
18886 | ac_srcdir=. | |
18887 | if test -z "$ac_top_builddir"; then | |
18888 | ac_top_srcdir=. | |
18889 | else | |
18890 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18891 | fi ;; | |
18892 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
18893 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18894 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 18895 | *) # Relative path. |
c0d27fcc MR |
18896 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
18897 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18898 | esac | |
18899 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
18900 | # absolute. | |
18901 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 18902 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
18903 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
18904 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
18905 | ||
ba4481b5 | 18906 | |
503d2be0 AS |
18907 | case $INSTALL in |
18908 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 18909 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
18910 | esac |
18911 | ||
503d2be0 | 18912 | if test x"$ac_file" != x-; then |
c0d27fcc | 18913 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
18914 | echo "$as_me: creating $ac_file" >&6;} |
18915 | rm -f "$ac_file" | |
18916 | fi | |
18917 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18918 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
18919 | # /* config.h. Generated by config.status. */ |
18920 | if test x"$ac_file" = x-; then | |
18921 | configure_input= | |
18922 | else | |
18923 | configure_input="$ac_file. " | |
18924 | fi | |
18925 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
18926 | sed 's,.*/,,'` by configure." | |
503d2be0 AS |
18927 | |
18928 | # First look for the input files in the build tree, otherwise in the | |
18929 | # src tree. | |
18930 | ac_file_inputs=`IFS=: | |
18931 | for f in $ac_file_in; do | |
18932 | case $f in | |
18933 | -) echo $tmp/stdin ;; | |
18934 | [\\/$]*) | |
18935 | # Absolute (can't be DOS-style, as IFS=:) | |
c0d27fcc | 18936 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
503d2be0 AS |
18937 | echo "$as_me: error: cannot find input file: $f" >&2;} |
18938 | { (exit 1); exit 1; }; } | |
18939 | echo $f;; | |
18940 | *) # Relative | |
18941 | if test -f "$f"; then | |
18942 | # Build tree | |
18943 | echo $f | |
18944 | elif test -f "$srcdir/$f"; then | |
18945 | # Source tree | |
18946 | echo $srcdir/$f | |
18947 | else | |
18948 | # /dev/null tree | |
c0d27fcc | 18949 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
503d2be0 AS |
18950 | echo "$as_me: error: cannot find input file: $f" >&2;} |
18951 | { (exit 1); exit 1; }; } | |
18952 | fi;; | |
18953 | esac | |
18954 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
18955 | _ACEOF |
18956 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
18957 | sed "$ac_vpsub |
18958 | $extrasub | |
c0d27fcc MR |
18959 | _ACEOF |
18960 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
18961 | :t |
18962 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18963 | s,@configure_input@,$configure_input,;t t | |
18964 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 18965 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 18966 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
18967 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
18968 | s,@builddir@,$ac_builddir,;t t | |
18969 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
18970 | s,@top_builddir@,$ac_top_builddir,;t t | |
18971 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
18972 | s,@INSTALL@,$ac_INSTALL,;t t |
18973 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
18974 | rm -f $tmp/stdin | |
18975 | if test x"$ac_file" != x-; then | |
18976 | mv $tmp/out $ac_file | |
18977 | else | |
18978 | cat $tmp/out | |
18979 | rm -f $tmp/out | |
18980 | fi | |
18981 | ||
18982 | done | |
c0d27fcc MR |
18983 | _ACEOF |
18984 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 18985 | |
503d2be0 AS |
18986 | # |
18987 | # CONFIG_HEADER section. | |
18988 | # | |
ba4481b5 DL |
18989 | |
18990 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18991 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18992 | # | |
18993 | # ac_d sets the value in "#define NAME VALUE" lines. | |
503d2be0 AS |
18994 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18995 | ac_dB='[ ].*$,\1#\2' | |
18996 | ac_dC=' ' | |
18997 | ac_dD=',;t' | |
18998 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18999 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19000 | ac_uB='$,\1#\2define\3' | |
ba4481b5 | 19001 | ac_uC=' ' |
503d2be0 | 19002 | ac_uD=',;t' |
ba4481b5 | 19003 | |
503d2be0 | 19004 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 19005 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
19006 | case $ac_file in |
19007 | - | *:- | *:-:* ) # input from stdin | |
19008 | cat >$tmp/stdin | |
19009 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
19010 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
19011 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
19012 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
19013 | * ) ac_file_in=$ac_file.in ;; | |
ba4481b5 DL |
19014 | esac |
19015 | ||
c0d27fcc | 19016 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
19017 | echo "$as_me: creating $ac_file" >&6;} |
19018 | ||
19019 | # First look for the input files in the build tree, otherwise in the | |
19020 | # src tree. | |
19021 | ac_file_inputs=`IFS=: | |
19022 | for f in $ac_file_in; do | |
19023 | case $f in | |
19024 | -) echo $tmp/stdin ;; | |
19025 | [\\/$]*) | |
19026 | # Absolute (can't be DOS-style, as IFS=:) | |
c0d27fcc | 19027 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
503d2be0 AS |
19028 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19029 | { (exit 1); exit 1; }; } | |
19030 | echo $f;; | |
19031 | *) # Relative | |
19032 | if test -f "$f"; then | |
19033 | # Build tree | |
19034 | echo $f | |
19035 | elif test -f "$srcdir/$f"; then | |
19036 | # Source tree | |
19037 | echo $srcdir/$f | |
19038 | else | |
19039 | # /dev/null tree | |
c0d27fcc | 19040 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
503d2be0 AS |
19041 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19042 | { (exit 1); exit 1; }; } | |
19043 | fi;; | |
19044 | esac | |
19045 | done` || { (exit 1); exit 1; } | |
19046 | # Remove the trailing spaces. | |
19047 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
19048 | ||
c0d27fcc | 19049 | _ACEOF |
503d2be0 AS |
19050 | |
19051 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
19052 | # `conftest.undefs', that substitutes the proper values into | |
19053 | # config.h.in to produce config.h. The first handles `#define' | |
19054 | # templates, and the second `#undef' templates. | |
19055 | # And first: Protect against being on the right side of a sed subst in | |
19056 | # config.status. Protect against being in an unquoted here document | |
19057 | # in config.status. | |
19058 | rm -f conftest.defines conftest.undefs | |
19059 | # Using a here document instead of a string reduces the quoting nightmare. | |
19060 | # Putting comments in sed scripts is not portable. | |
19061 | # | |
19062 | # `end' is used to avoid that the second main sed command (meant for | |
19063 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
19064 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 19065 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
19066 | s/[\\&,]/\\&/g |
19067 | s,[\\$`],\\&,g | |
19068 | t clear | |
19069 | : clear | |
c0d27fcc | 19070 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 AS |
19071 | t end |
19072 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
19073 | : end | |
c0d27fcc | 19074 | _ACEOF |
503d2be0 AS |
19075 | # If some macros were called several times there might be several times |
19076 | # the same #defines, which is useless. Nevertheless, we may not want to | |
19077 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
19078 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
19079 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
19080 | rm -f confdef2sed.sed | |
ba4481b5 DL |
19081 | |
19082 | # This sed command replaces #undef with comments. This is necessary, for | |
19083 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
19084 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 19085 | cat >>conftest.undefs <<\_ACEOF |
503d2be0 | 19086 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 19087 | _ACEOF |
ba4481b5 | 19088 | |
503d2be0 AS |
19089 | # Break up conftest.defines because some shells have a limit on the size |
19090 | # of here documents, and old seds have small limits too (100 cmds). | |
19091 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
6bae0ccf | 19092 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
19093 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
19094 | echo ' :' >>$CONFIG_STATUS | |
19095 | rm -f conftest.tail | |
19096 | while grep . conftest.defines >/dev/null | |
19097 | do | |
19098 | # Write a limited-size here document to $tmp/defines.sed. | |
19099 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
19100 | # Speed up: don't consider the non `#define' lines. | |
19101 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
19102 | # Work around the forget-to-reset-the-flag bug. | |
19103 | echo 't clr' >>$CONFIG_STATUS | |
19104 | echo ': clr' >>$CONFIG_STATUS | |
19105 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
19106 | echo 'CEOF | |
19107 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
19108 | rm -f $tmp/in | |
19109 | mv $tmp/out $tmp/in | |
19110 | ' >>$CONFIG_STATUS | |
19111 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
19112 | rm -f conftest.defines | |
19113 | mv conftest.tail conftest.defines | |
19114 | done | |
19115 | rm -f conftest.defines | |
6bae0ccf | 19116 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 19117 | echo >>$CONFIG_STATUS |
ba4481b5 | 19118 | |
503d2be0 AS |
19119 | # Break up conftest.undefs because some shells have a limit on the size |
19120 | # of here documents, and old seds have small limits too (100 cmds). | |
19121 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 19122 | rm -f conftest.tail |
503d2be0 | 19123 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 19124 | do |
503d2be0 AS |
19125 | # Write a limited-size here document to $tmp/undefs.sed. |
19126 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
19127 | # Speed up: don't consider the non `#undef' | |
19128 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
19129 | # Work around the forget-to-reset-the-flag bug. | |
19130 | echo 't clr' >>$CONFIG_STATUS | |
19131 | echo ': clr' >>$CONFIG_STATUS | |
19132 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 19133 | echo 'CEOF |
503d2be0 AS |
19134 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
19135 | rm -f $tmp/in | |
19136 | mv $tmp/out $tmp/in | |
19137 | ' >>$CONFIG_STATUS | |
19138 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
19139 | rm -f conftest.undefs | |
19140 | mv conftest.tail conftest.undefs | |
ba4481b5 | 19141 | done |
503d2be0 AS |
19142 | rm -f conftest.undefs |
19143 | ||
c0d27fcc | 19144 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
19145 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19146 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 19147 | # /* config.h. Generated by config.status. */ |
503d2be0 | 19148 | if test x"$ac_file" = x-; then |
c0d27fcc | 19149 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 19150 | else |
c0d27fcc | 19151 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
19152 | fi |
19153 | cat $tmp/in >>$tmp/config.h | |
19154 | rm -f $tmp/in | |
19155 | if test x"$ac_file" != x-; then | |
cd958eb3 | 19156 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 19157 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
19158 | echo "$as_me: $ac_file is unchanged" >&6;} |
19159 | else | |
c0d27fcc MR |
19160 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19161 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
503d2be0 AS |
19162 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19163 | X"$ac_file" : 'X\(//\)$' \| \ | |
19164 | X"$ac_file" : 'X\(/\)' \| \ | |
19165 | . : '\(.\)' 2>/dev/null || | |
19166 | echo X"$ac_file" | | |
19167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19168 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19169 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19170 | /^X\(\/\).*/{ s//\1/; q; } | |
19171 | s/.*/./; q'` | |
6bae0ccf DL |
19172 | { if $as_mkdir_p; then |
19173 | mkdir -p "$ac_dir" | |
19174 | else | |
19175 | as_dir="$ac_dir" | |
19176 | as_dirs= | |
19177 | while test ! -d "$as_dir"; do | |
19178 | as_dirs="$as_dir $as_dirs" | |
19179 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
19180 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19181 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19182 | X"$as_dir" : 'X\(//\)$' \| \ | |
19183 | X"$as_dir" : 'X\(/\)' \| \ | |
19184 | . : '\(.\)' 2>/dev/null || | |
19185 | echo X"$as_dir" | | |
19186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19187 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19188 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19189 | /^X\(\/\).*/{ s//\1/; q; } | |
19190 | s/.*/./; q'` | |
19191 | done | |
19192 | test ! -n "$as_dirs" || mkdir $as_dirs | |
19193 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
19194 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
19195 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 19196 | |
503d2be0 AS |
19197 | rm -f $ac_file |
19198 | mv $tmp/config.h $ac_file | |
ba4481b5 | 19199 | fi |
503d2be0 AS |
19200 | else |
19201 | cat $tmp/config.h | |
19202 | rm -f $tmp/config.h | |
ba4481b5 | 19203 | fi |
503d2be0 | 19204 | done |
c0d27fcc MR |
19205 | _ACEOF |
19206 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
19207 | |
19208 | # | |
19209 | # CONFIG_COMMANDS section. | |
19210 | # | |
19211 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
19212 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
19213 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
19214 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
19215 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19216 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
19217 | X"$ac_dest" : 'X\(//\)$' \| \ | |
19218 | X"$ac_dest" : 'X\(/\)' \| \ | |
19219 | . : '\(.\)' 2>/dev/null || | |
19220 | echo X"$ac_dest" | | |
19221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19222 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19223 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19224 | /^X\(\/\).*/{ s//\1/; q; } | |
19225 | s/.*/./; q'` | |
19226 | ac_builddir=. | |
19227 | ||
19228 | if test "$ac_dir" != .; then | |
19229 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
19230 | # A "../" for each directory in $ac_dir_suffix. | |
19231 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
19232 | else | |
19233 | ac_dir_suffix= ac_top_builddir= | |
19234 | fi | |
19235 | ||
19236 | case $srcdir in | |
19237 | .) # No --srcdir option. We are building in place. | |
19238 | ac_srcdir=. | |
19239 | if test -z "$ac_top_builddir"; then | |
19240 | ac_top_srcdir=. | |
19241 | else | |
19242 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
19243 | fi ;; | |
19244 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
19245 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19246 | ac_top_srcdir=$srcdir ;; | |
19247 | *) # Relative path. | |
19248 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
19249 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
19250 | esac | |
19251 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
19252 | # absolute. | |
19253 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 19254 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
19255 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
19256 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
ba4481b5 | 19257 | |
c0d27fcc MR |
19258 | |
19259 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
19260 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
19261 | case $ac_dest in |
19262 | default ) | |
ba4481b5 DL |
19263 | |
19264 | ### Make the necessary directories, if they don't exist. | |
19265 | for dir in etc lisp ; do | |
19266 | test -d ${dir} || mkdir ${dir} | |
19267 | done | |
19268 | ||
19269 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
19270 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
19271 | # This must be done after src/config.h is built, since we rely on that file. | |
19272 | ||
19273 | # Now get this: Some word that is part of the ${srcdir} directory name | |
19274 | # or the ${configuration} value might, just might, happen to be an | |
19275 | # identifier like `sun4' or `i386' or something, and be predefined by | |
19276 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
19277 | # string. Needless to say consequent macro substitutions are less | |
19278 | # than conducive to the makefile finding the correct directory. | |
19279 | undefs="`echo $top_srcdir $configuration $canonical | | |
19280 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
19281 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
19282 | `" | |
19283 | ||
19284 | echo creating src/epaths.h | |
4aa6b955 | 19285 | ${MAKE-make} epaths-force |
ba4481b5 | 19286 | |
1c203d4c DL |
19287 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
19288 | # `..' to `. .' unless invoked with -traditional | |
19289 | ||
d0e9bfd2 | 19290 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
19291 | CPPFLAGS="$CPPFLAGS -traditional" |
19292 | fi | |
19293 | ||
ba4481b5 DL |
19294 | echo creating lib-src/Makefile |
19295 | ( cd lib-src | |
19296 | rm -f junk.c junk1.c junk2.c | |
19297 | sed -e '/start of cpp stuff/q' \ | |
19298 | < Makefile.c > junk1.c | |
19299 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 19300 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 19301 | < Makefile.c > junk.c |
503d2be0 | 19302 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
19303 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
19304 | cat junk1.c junk2.c > Makefile.new | |
19305 | rm -f junk.c junk1.c junk2.c | |
19306 | chmod 444 Makefile.new | |
19307 | mv -f Makefile.new Makefile | |
19308 | ) | |
19309 | ||
19310 | echo creating src/Makefile | |
19311 | ( cd src | |
19312 | rm -f junk.c junk1.c junk2.c | |
19313 | sed -e '/start of cpp stuff/q' \ | |
19314 | < Makefile.c > junk1.c | |
19315 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 19316 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 19317 | < Makefile.c > junk.c |
503d2be0 | 19318 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
19319 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
19320 | cat junk1.c junk2.c > Makefile.new | |
19321 | rm -f junk.c junk1.c junk2.c | |
19322 | chmod 444 Makefile.new | |
19323 | mv -f Makefile.new Makefile | |
19324 | ) | |
19325 | ||
503d2be0 | 19326 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 19327 | echo creating src/.gdbinit |
503d2be0 | 19328 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
19329 | fi |
19330 | ||
19331 | # This is how we know whether to re-run configure in certain cases. | |
19332 | touch src/config.stamp | |
19333 | ||
503d2be0 AS |
19334 | ;; |
19335 | esac | |
19336 | done | |
c0d27fcc | 19337 | _ACEOF |
503d2be0 | 19338 | |
c0d27fcc | 19339 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 19340 | |
503d2be0 | 19341 | { (exit 0); exit 0; } |
c0d27fcc | 19342 | _ACEOF |
ba4481b5 | 19343 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
19344 | ac_clean_files=$ac_clean_files_save |
19345 | ||
c0d27fcc | 19346 | |
503d2be0 AS |
19347 | # configure is writing to config.log, and then calls config.status. |
19348 | # config.status does its own redirection, appending to config.log. | |
19349 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19350 | # by configure, so config.status won't be able to write to it; its | |
19351 | # output is simply discarded. So we exec the FD to /dev/null, | |
19352 | # effectively closing config.log, so it can be properly (re)opened and | |
19353 | # appended to by config.status. When coming back to configure, we | |
19354 | # need to make the FD available again. | |
19355 | if test "$no_create" != yes; then | |
19356 | ac_cs_success=: | |
cd958eb3 MB |
19357 | ac_config_status_args= |
19358 | test "$silent" = yes && | |
19359 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 19360 | exec 5>/dev/null |
cd958eb3 | 19361 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
19362 | exec 5>>config.log |
19363 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19364 | # would make configure fail if this is the last instruction. | |
19365 | $ac_cs_success || { (exit 1); exit 1; } | |
19366 | fi | |
f5f47add | 19367 | |
c0d27fcc | 19368 |