configure revision 1.1 1 1.1 christos #! /bin/sh
2 1.1 christos # Guess values for system-dependent variables and create Makefiles.
3 1.1 christos # Generated by GNU Autoconf 2.61 for top 3.8beta1.
4 1.1 christos #
5 1.1 christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 1.1 christos # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 1.1 christos # This configure script is free software; the Free Software Foundation
8 1.1 christos # gives unlimited permission to copy, distribute and modify it.
9 1.1 christos ## --------------------- ##
10 1.1 christos ## M4sh Initialization. ##
11 1.1 christos ## --------------------- ##
12 1.1 christos
13 1.1 christos # Be more Bourne compatible
14 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
15 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 1.1 christos emulate sh
17 1.1 christos NULLCMD=:
18 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 1.1 christos # is contrary to our usage. Disable this feature.
20 1.1 christos alias -g '${1+"$@"}'='"$@"'
21 1.1 christos setopt NO_GLOB_SUBST
22 1.1 christos else
23 1.1 christos case `(set -o) 2>/dev/null` in
24 1.1 christos *posix*) set -o posix ;;
25 1.1 christos esac
26 1.1 christos
27 1.1 christos fi
28 1.1 christos
29 1.1 christos
30 1.1 christos
31 1.1 christos
32 1.1 christos # PATH needs CR
33 1.1 christos # Avoid depending upon Character Ranges.
34 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 1.1 christos as_cr_digits='0123456789'
38 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
39 1.1 christos
40 1.1 christos # The user is always right.
41 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
42 1.1 christos echo "#! /bin/sh" >conf$$.sh
43 1.1 christos echo "exit 0" >>conf$$.sh
44 1.1 christos chmod +x conf$$.sh
45 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 1.1 christos PATH_SEPARATOR=';'
47 1.1 christos else
48 1.1 christos PATH_SEPARATOR=:
49 1.1 christos fi
50 1.1 christos rm -f conf$$.sh
51 1.1 christos fi
52 1.1 christos
53 1.1 christos # Support unset when possible.
54 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 1.1 christos as_unset=unset
56 1.1 christos else
57 1.1 christos as_unset=false
58 1.1 christos fi
59 1.1 christos
60 1.1 christos
61 1.1 christos # IFS
62 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
63 1.1 christos # there to prevent editors from complaining about space-tab.
64 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 1.1 christos # splitting by setting IFS to empty value.)
66 1.1 christos as_nl='
67 1.1 christos '
68 1.1 christos IFS=" "" $as_nl"
69 1.1 christos
70 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
71 1.1 christos case $0 in
72 1.1 christos *[\\/]* ) as_myself=$0 ;;
73 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 1.1 christos for as_dir in $PATH
75 1.1 christos do
76 1.1 christos IFS=$as_save_IFS
77 1.1 christos test -z "$as_dir" && as_dir=.
78 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 1.1 christos done
80 1.1 christos IFS=$as_save_IFS
81 1.1 christos
82 1.1 christos ;;
83 1.1 christos esac
84 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
85 1.1 christos # in which case we are not to be found in the path.
86 1.1 christos if test "x$as_myself" = x; then
87 1.1 christos as_myself=$0
88 1.1 christos fi
89 1.1 christos if test ! -f "$as_myself"; then
90 1.1 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 1.1 christos { (exit 1); exit 1; }
92 1.1 christos fi
93 1.1 christos
94 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
95 1.1 christos for as_var in ENV MAIL MAILPATH
96 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 1.1 christos done
98 1.1 christos PS1='$ '
99 1.1 christos PS2='> '
100 1.1 christos PS4='+ '
101 1.1 christos
102 1.1 christos # NLS nuisances.
103 1.1 christos for as_var in \
104 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 1.1 christos LC_TELEPHONE LC_TIME
107 1.1 christos do
108 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 1.1 christos eval $as_var=C; export $as_var
110 1.1 christos else
111 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 1.1 christos fi
113 1.1 christos done
114 1.1 christos
115 1.1 christos # Required to use basename.
116 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
117 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 1.1 christos as_expr=expr
119 1.1 christos else
120 1.1 christos as_expr=false
121 1.1 christos fi
122 1.1 christos
123 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 1.1 christos as_basename=basename
125 1.1 christos else
126 1.1 christos as_basename=false
127 1.1 christos fi
128 1.1 christos
129 1.1 christos
130 1.1 christos # Name of the executable.
131 1.1 christos as_me=`$as_basename -- "$0" ||
132 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 1.1 christos X"$0" : 'X\(//\)$' \| \
134 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 1.1 christos echo X/"$0" |
136 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
137 1.1 christos s//\1/
138 1.1 christos q
139 1.1 christos }
140 1.1 christos /^X\/\(\/\/\)$/{
141 1.1 christos s//\1/
142 1.1 christos q
143 1.1 christos }
144 1.1 christos /^X\/\(\/\).*/{
145 1.1 christos s//\1/
146 1.1 christos q
147 1.1 christos }
148 1.1 christos s/.*/./; q'`
149 1.1 christos
150 1.1 christos # CDPATH.
151 1.1 christos $as_unset CDPATH
152 1.1 christos
153 1.1 christos
154 1.1 christos if test "x$CONFIG_SHELL" = x; then
155 1.1 christos if (eval ":") 2>/dev/null; then
156 1.1 christos as_have_required=yes
157 1.1 christos else
158 1.1 christos as_have_required=no
159 1.1 christos fi
160 1.1 christos
161 1.1 christos if test $as_have_required = yes && (eval ":
162 1.1 christos (as_func_return () {
163 1.1 christos (exit \$1)
164 1.1 christos }
165 1.1 christos as_func_success () {
166 1.1 christos as_func_return 0
167 1.1 christos }
168 1.1 christos as_func_failure () {
169 1.1 christos as_func_return 1
170 1.1 christos }
171 1.1 christos as_func_ret_success () {
172 1.1 christos return 0
173 1.1 christos }
174 1.1 christos as_func_ret_failure () {
175 1.1 christos return 1
176 1.1 christos }
177 1.1 christos
178 1.1 christos exitcode=0
179 1.1 christos if as_func_success; then
180 1.1 christos :
181 1.1 christos else
182 1.1 christos exitcode=1
183 1.1 christos echo as_func_success failed.
184 1.1 christos fi
185 1.1 christos
186 1.1 christos if as_func_failure; then
187 1.1 christos exitcode=1
188 1.1 christos echo as_func_failure succeeded.
189 1.1 christos fi
190 1.1 christos
191 1.1 christos if as_func_ret_success; then
192 1.1 christos :
193 1.1 christos else
194 1.1 christos exitcode=1
195 1.1 christos echo as_func_ret_success failed.
196 1.1 christos fi
197 1.1 christos
198 1.1 christos if as_func_ret_failure; then
199 1.1 christos exitcode=1
200 1.1 christos echo as_func_ret_failure succeeded.
201 1.1 christos fi
202 1.1 christos
203 1.1 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 1.1 christos :
205 1.1 christos else
206 1.1 christos exitcode=1
207 1.1 christos echo positional parameters were not saved.
208 1.1 christos fi
209 1.1 christos
210 1.1 christos test \$exitcode = 0) || { (exit 1); exit 1; }
211 1.1 christos
212 1.1 christos (
213 1.1 christos as_lineno_1=\$LINENO
214 1.1 christos as_lineno_2=\$LINENO
215 1.1 christos test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 1.1 christos test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 1.1 christos ") 2> /dev/null; then
218 1.1 christos :
219 1.1 christos else
220 1.1 christos as_candidate_shells=
221 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 1.1 christos do
224 1.1 christos IFS=$as_save_IFS
225 1.1 christos test -z "$as_dir" && as_dir=.
226 1.1 christos case $as_dir in
227 1.1 christos /*)
228 1.1 christos for as_base in sh bash ksh sh5; do
229 1.1 christos as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 1.1 christos done;;
231 1.1 christos esac
232 1.1 christos done
233 1.1 christos IFS=$as_save_IFS
234 1.1 christos
235 1.1 christos
236 1.1 christos for as_shell in $as_candidate_shells $SHELL; do
237 1.1 christos # Try only shells that exist, to save several forks.
238 1.1 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 1.1 christos { ("$as_shell") 2> /dev/null <<\_ASEOF
240 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 1.1 christos emulate sh
242 1.1 christos NULLCMD=:
243 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 1.1 christos # is contrary to our usage. Disable this feature.
245 1.1 christos alias -g '${1+"$@"}'='"$@"'
246 1.1 christos setopt NO_GLOB_SUBST
247 1.1 christos else
248 1.1 christos case `(set -o) 2>/dev/null` in
249 1.1 christos *posix*) set -o posix ;;
250 1.1 christos esac
251 1.1 christos
252 1.1 christos fi
253 1.1 christos
254 1.1 christos
255 1.1 christos :
256 1.1 christos _ASEOF
257 1.1 christos }; then
258 1.1 christos CONFIG_SHELL=$as_shell
259 1.1 christos as_have_required=yes
260 1.1 christos if { "$as_shell" 2> /dev/null <<\_ASEOF
261 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 1.1 christos emulate sh
263 1.1 christos NULLCMD=:
264 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 1.1 christos # is contrary to our usage. Disable this feature.
266 1.1 christos alias -g '${1+"$@"}'='"$@"'
267 1.1 christos setopt NO_GLOB_SUBST
268 1.1 christos else
269 1.1 christos case `(set -o) 2>/dev/null` in
270 1.1 christos *posix*) set -o posix ;;
271 1.1 christos esac
272 1.1 christos
273 1.1 christos fi
274 1.1 christos
275 1.1 christos
276 1.1 christos :
277 1.1 christos (as_func_return () {
278 1.1 christos (exit $1)
279 1.1 christos }
280 1.1 christos as_func_success () {
281 1.1 christos as_func_return 0
282 1.1 christos }
283 1.1 christos as_func_failure () {
284 1.1 christos as_func_return 1
285 1.1 christos }
286 1.1 christos as_func_ret_success () {
287 1.1 christos return 0
288 1.1 christos }
289 1.1 christos as_func_ret_failure () {
290 1.1 christos return 1
291 1.1 christos }
292 1.1 christos
293 1.1 christos exitcode=0
294 1.1 christos if as_func_success; then
295 1.1 christos :
296 1.1 christos else
297 1.1 christos exitcode=1
298 1.1 christos echo as_func_success failed.
299 1.1 christos fi
300 1.1 christos
301 1.1 christos if as_func_failure; then
302 1.1 christos exitcode=1
303 1.1 christos echo as_func_failure succeeded.
304 1.1 christos fi
305 1.1 christos
306 1.1 christos if as_func_ret_success; then
307 1.1 christos :
308 1.1 christos else
309 1.1 christos exitcode=1
310 1.1 christos echo as_func_ret_success failed.
311 1.1 christos fi
312 1.1 christos
313 1.1 christos if as_func_ret_failure; then
314 1.1 christos exitcode=1
315 1.1 christos echo as_func_ret_failure succeeded.
316 1.1 christos fi
317 1.1 christos
318 1.1 christos if ( set x; as_func_ret_success y && test x = "$1" ); then
319 1.1 christos :
320 1.1 christos else
321 1.1 christos exitcode=1
322 1.1 christos echo positional parameters were not saved.
323 1.1 christos fi
324 1.1 christos
325 1.1 christos test $exitcode = 0) || { (exit 1); exit 1; }
326 1.1 christos
327 1.1 christos (
328 1.1 christos as_lineno_1=$LINENO
329 1.1 christos as_lineno_2=$LINENO
330 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
331 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332 1.1 christos
333 1.1 christos _ASEOF
334 1.1 christos }; then
335 1.1 christos break
336 1.1 christos fi
337 1.1 christos
338 1.1 christos fi
339 1.1 christos
340 1.1 christos done
341 1.1 christos
342 1.1 christos if test "x$CONFIG_SHELL" != x; then
343 1.1 christos for as_var in BASH_ENV ENV
344 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 1.1 christos done
346 1.1 christos export CONFIG_SHELL
347 1.1 christos exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 1.1 christos fi
349 1.1 christos
350 1.1 christos
351 1.1 christos if test $as_have_required = no; then
352 1.1 christos echo This script requires a shell more modern than all the
353 1.1 christos echo shells that I found on your system. Please install a
354 1.1 christos echo modern shell, or manually run the script under such a
355 1.1 christos echo shell if you do have one.
356 1.1 christos { (exit 1); exit 1; }
357 1.1 christos fi
358 1.1 christos
359 1.1 christos
360 1.1 christos fi
361 1.1 christos
362 1.1 christos fi
363 1.1 christos
364 1.1 christos
365 1.1 christos
366 1.1 christos (eval "as_func_return () {
367 1.1 christos (exit \$1)
368 1.1 christos }
369 1.1 christos as_func_success () {
370 1.1 christos as_func_return 0
371 1.1 christos }
372 1.1 christos as_func_failure () {
373 1.1 christos as_func_return 1
374 1.1 christos }
375 1.1 christos as_func_ret_success () {
376 1.1 christos return 0
377 1.1 christos }
378 1.1 christos as_func_ret_failure () {
379 1.1 christos return 1
380 1.1 christos }
381 1.1 christos
382 1.1 christos exitcode=0
383 1.1 christos if as_func_success; then
384 1.1 christos :
385 1.1 christos else
386 1.1 christos exitcode=1
387 1.1 christos echo as_func_success failed.
388 1.1 christos fi
389 1.1 christos
390 1.1 christos if as_func_failure; then
391 1.1 christos exitcode=1
392 1.1 christos echo as_func_failure succeeded.
393 1.1 christos fi
394 1.1 christos
395 1.1 christos if as_func_ret_success; then
396 1.1 christos :
397 1.1 christos else
398 1.1 christos exitcode=1
399 1.1 christos echo as_func_ret_success failed.
400 1.1 christos fi
401 1.1 christos
402 1.1 christos if as_func_ret_failure; then
403 1.1 christos exitcode=1
404 1.1 christos echo as_func_ret_failure succeeded.
405 1.1 christos fi
406 1.1 christos
407 1.1 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 1.1 christos :
409 1.1 christos else
410 1.1 christos exitcode=1
411 1.1 christos echo positional parameters were not saved.
412 1.1 christos fi
413 1.1 christos
414 1.1 christos test \$exitcode = 0") || {
415 1.1 christos echo No shell found that supports shell functions.
416 1.1 christos echo Please tell autoconf@gnu.org about your system,
417 1.1 christos echo including any error possibly output before this
418 1.1 christos echo message
419 1.1 christos }
420 1.1 christos
421 1.1 christos
422 1.1 christos
423 1.1 christos as_lineno_1=$LINENO
424 1.1 christos as_lineno_2=$LINENO
425 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
426 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427 1.1 christos
428 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
430 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
431 1.1 christos # does the real work. The second script uses 'N' to pair each
432 1.1 christos # line-number line with the line containing $LINENO, and appends
433 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
434 1.1 christos # case at line end.
435 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
437 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
438 1.1 christos sed -n '
439 1.1 christos p
440 1.1 christos /[$]LINENO/=
441 1.1 christos ' <$as_myself |
442 1.1 christos sed '
443 1.1 christos s/[$]LINENO.*/&-/
444 1.1 christos t lineno
445 1.1 christos b
446 1.1 christos :lineno
447 1.1 christos N
448 1.1 christos :loop
449 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 1.1 christos t loop
451 1.1 christos s/-\n.*//
452 1.1 christos ' >$as_me.lineno &&
453 1.1 christos chmod +x "$as_me.lineno" ||
454 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 1.1 christos { (exit 1); exit 1; }; }
456 1.1 christos
457 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
458 1.1 christos # (the dirname of $[0] is not the place where we might find the
459 1.1 christos # original and so on. Autoconf is especially sensitive to this).
460 1.1 christos . "./$as_me.lineno"
461 1.1 christos # Exit status is that of the last command.
462 1.1 christos exit
463 1.1 christos }
464 1.1 christos
465 1.1 christos
466 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 1.1 christos as_dirname=dirname
468 1.1 christos else
469 1.1 christos as_dirname=false
470 1.1 christos fi
471 1.1 christos
472 1.1 christos ECHO_C= ECHO_N= ECHO_T=
473 1.1 christos case `echo -n x` in
474 1.1 christos -n*)
475 1.1 christos case `echo 'x\c'` in
476 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 1.1 christos *) ECHO_C='\c';;
478 1.1 christos esac;;
479 1.1 christos *)
480 1.1 christos ECHO_N='-n';;
481 1.1 christos esac
482 1.1 christos
483 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
484 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 1.1 christos as_expr=expr
486 1.1 christos else
487 1.1 christos as_expr=false
488 1.1 christos fi
489 1.1 christos
490 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
491 1.1 christos if test -d conf$$.dir; then
492 1.1 christos rm -f conf$$.dir/conf$$.file
493 1.1 christos else
494 1.1 christos rm -f conf$$.dir
495 1.1 christos mkdir conf$$.dir
496 1.1 christos fi
497 1.1 christos echo >conf$$.file
498 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
499 1.1 christos as_ln_s='ln -s'
500 1.1 christos # ... but there are two gotchas:
501 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 1.1 christos # In both cases, we have to default to `cp -p'.
504 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 1.1 christos as_ln_s='cp -p'
506 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
507 1.1 christos as_ln_s=ln
508 1.1 christos else
509 1.1 christos as_ln_s='cp -p'
510 1.1 christos fi
511 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 1.1 christos rmdir conf$$.dir 2>/dev/null
513 1.1 christos
514 1.1 christos if mkdir -p . 2>/dev/null; then
515 1.1 christos as_mkdir_p=:
516 1.1 christos else
517 1.1 christos test -d ./-p && rmdir ./-p
518 1.1 christos as_mkdir_p=false
519 1.1 christos fi
520 1.1 christos
521 1.1 christos if test -x / >/dev/null 2>&1; then
522 1.1 christos as_test_x='test -x'
523 1.1 christos else
524 1.1 christos if ls -dL / >/dev/null 2>&1; then
525 1.1 christos as_ls_L_option=L
526 1.1 christos else
527 1.1 christos as_ls_L_option=
528 1.1 christos fi
529 1.1 christos as_test_x='
530 1.1 christos eval sh -c '\''
531 1.1 christos if test -d "$1"; then
532 1.1 christos test -d "$1/.";
533 1.1 christos else
534 1.1 christos case $1 in
535 1.1 christos -*)set "./$1";;
536 1.1 christos esac;
537 1.1 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 1.1 christos ???[sx]*):;;*)false;;esac;fi
539 1.1 christos '\'' sh
540 1.1 christos '
541 1.1 christos fi
542 1.1 christos as_executable_p=$as_test_x
543 1.1 christos
544 1.1 christos # Sed expression to map a string onto a valid CPP name.
545 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546 1.1 christos
547 1.1 christos # Sed expression to map a string onto a valid variable name.
548 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 1.1 christos
550 1.1 christos
551 1.1 christos
552 1.1 christos exec 7<&0 </dev/null 6>&1
553 1.1 christos
554 1.1 christos # Name of the host.
555 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 1.1 christos # so uname gets run too.
557 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 1.1 christos
559 1.1 christos #
560 1.1 christos # Initializations.
561 1.1 christos #
562 1.1 christos ac_default_prefix=/usr/local
563 1.1 christos ac_clean_files=
564 1.1 christos ac_config_libobj_dir=.
565 1.1 christos LIBOBJS=
566 1.1 christos cross_compiling=no
567 1.1 christos subdirs=
568 1.1 christos MFLAGS=
569 1.1 christos MAKEFLAGS=
570 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh}
571 1.1 christos
572 1.1 christos # Identity of this package.
573 1.1 christos PACKAGE_NAME='top'
574 1.1 christos PACKAGE_TARNAME='top'
575 1.1 christos PACKAGE_VERSION='3.8beta1'
576 1.1 christos PACKAGE_STRING='top 3.8beta1'
577 1.1 christos PACKAGE_BUGREPORT=''
578 1.1 christos
579 1.1 christos # Factoring default headers for most tests.
580 1.1 christos ac_includes_default="\
581 1.1 christos #include <stdio.h>
582 1.1 christos #ifdef HAVE_SYS_TYPES_H
583 1.1 christos # include <sys/types.h>
584 1.1 christos #endif
585 1.1 christos #ifdef HAVE_SYS_STAT_H
586 1.1 christos # include <sys/stat.h>
587 1.1 christos #endif
588 1.1 christos #ifdef STDC_HEADERS
589 1.1 christos # include <stdlib.h>
590 1.1 christos # include <stddef.h>
591 1.1 christos #else
592 1.1 christos # ifdef HAVE_STDLIB_H
593 1.1 christos # include <stdlib.h>
594 1.1 christos # endif
595 1.1 christos #endif
596 1.1 christos #ifdef HAVE_STRING_H
597 1.1 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 1.1 christos # include <memory.h>
599 1.1 christos # endif
600 1.1 christos # include <string.h>
601 1.1 christos #endif
602 1.1 christos #ifdef HAVE_STRINGS_H
603 1.1 christos # include <strings.h>
604 1.1 christos #endif
605 1.1 christos #ifdef HAVE_INTTYPES_H
606 1.1 christos # include <inttypes.h>
607 1.1 christos #endif
608 1.1 christos #ifdef HAVE_STDINT_H
609 1.1 christos # include <stdint.h>
610 1.1 christos #endif
611 1.1 christos #ifdef HAVE_UNISTD_H
612 1.1 christos # include <unistd.h>
613 1.1 christos #endif"
614 1.1 christos
615 1.1 christos ac_subst_vars='SHELL
616 1.1 christos PATH_SEPARATOR
617 1.1 christos PACKAGE_NAME
618 1.1 christos PACKAGE_TARNAME
619 1.1 christos PACKAGE_VERSION
620 1.1 christos PACKAGE_STRING
621 1.1 christos PACKAGE_BUGREPORT
622 1.1 christos exec_prefix
623 1.1 christos prefix
624 1.1 christos program_transform_name
625 1.1 christos bindir
626 1.1 christos sbindir
627 1.1 christos libexecdir
628 1.1 christos datarootdir
629 1.1 christos datadir
630 1.1 christos sysconfdir
631 1.1 christos sharedstatedir
632 1.1 christos localstatedir
633 1.1 christos includedir
634 1.1 christos oldincludedir
635 1.1 christos docdir
636 1.1 christos infodir
637 1.1 christos htmldir
638 1.1 christos dvidir
639 1.1 christos pdfdir
640 1.1 christos psdir
641 1.1 christos libdir
642 1.1 christos localedir
643 1.1 christos mandir
644 1.1 christos DEFS
645 1.1 christos ECHO_C
646 1.1 christos ECHO_N
647 1.1 christos ECHO_T
648 1.1 christos LIBS
649 1.1 christos build_alias
650 1.1 christos host_alias
651 1.1 christos target_alias
652 1.1 christos build
653 1.1 christos build_cpu
654 1.1 christos build_vendor
655 1.1 christos build_os
656 1.1 christos host
657 1.1 christos host_cpu
658 1.1 christos host_vendor
659 1.1 christos host_os
660 1.1 christos target
661 1.1 christos target_cpu
662 1.1 christos target_vendor
663 1.1 christos target_os
664 1.1 christos DEFAULT_TOPN
665 1.1 christos NOMINAL_TOPN
666 1.1 christos DEFAULT_DELAY
667 1.1 christos ENABLE_KILL
668 1.1 christos MAKE
669 1.1 christos CC
670 1.1 christos CFLAGS
671 1.1 christos LDFLAGS
672 1.1 christos CPPFLAGS
673 1.1 christos ac_ct_CC
674 1.1 christos EXEEXT
675 1.1 christos OBJEXT
676 1.1 christos AWK
677 1.1 christos INSTALL_PROGRAM
678 1.1 christos INSTALL_SCRIPT
679 1.1 christos INSTALL_DATA
680 1.1 christos ISAINFO
681 1.1 christos ISAEXEC
682 1.1 christos UNAME
683 1.1 christos CPP
684 1.1 christos GREP
685 1.1 christos EGREP
686 1.1 christos SIGNAL_H
687 1.1 christos HAVE_GETOPT_LONG
688 1.1 christos SRC
689 1.1 christos OBJ
690 1.1 christos CLEAN_EXTRA
691 1.1 christos ARCHFLAG
692 1.1 christos MODULE
693 1.1 christos MODULE_CFLAGS
694 1.1 christos INSTALL_OPTS_PROG
695 1.1 christos LIBOBJS
696 1.1 christos LTLIBOBJS'
697 1.1 christos ac_subst_files='FIRST_RULE
698 1.1 christos INSTALL_RULE
699 1.1 christos MAN_SUPPLEMENT'
700 1.1 christos ac_precious_vars='build_alias
701 1.1 christos host_alias
702 1.1 christos target_alias
703 1.1 christos CC
704 1.1 christos CFLAGS
705 1.1 christos LDFLAGS
706 1.1 christos LIBS
707 1.1 christos CPPFLAGS
708 1.1 christos CPP'
709 1.1 christos
710 1.1 christos
711 1.1 christos # Initialize some variables set by options.
712 1.1 christos ac_init_help=
713 1.1 christos ac_init_version=false
714 1.1 christos # The variables have the same names as the options, with
715 1.1 christos # dashes changed to underlines.
716 1.1 christos cache_file=/dev/null
717 1.1 christos exec_prefix=NONE
718 1.1 christos no_create=
719 1.1 christos no_recursion=
720 1.1 christos prefix=NONE
721 1.1 christos program_prefix=NONE
722 1.1 christos program_suffix=NONE
723 1.1 christos program_transform_name=s,x,x,
724 1.1 christos silent=
725 1.1 christos site=
726 1.1 christos srcdir=
727 1.1 christos verbose=
728 1.1 christos x_includes=NONE
729 1.1 christos x_libraries=NONE
730 1.1 christos
731 1.1 christos # Installation directory options.
732 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
733 1.1 christos # and all the variables that are supposed to be based on exec_prefix
734 1.1 christos # by default will actually change.
735 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
736 1.1 christos # (The list follows the same order as the GNU Coding Standards.)
737 1.1 christos bindir='${exec_prefix}/bin'
738 1.1 christos sbindir='${exec_prefix}/sbin'
739 1.1 christos libexecdir='${exec_prefix}/libexec'
740 1.1 christos datarootdir='${prefix}/share'
741 1.1 christos datadir='${datarootdir}'
742 1.1 christos sysconfdir='${prefix}/etc'
743 1.1 christos sharedstatedir='${prefix}/com'
744 1.1 christos localstatedir='${prefix}/var'
745 1.1 christos includedir='${prefix}/include'
746 1.1 christos oldincludedir='/usr/include'
747 1.1 christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
748 1.1 christos infodir='${datarootdir}/info'
749 1.1 christos htmldir='${docdir}'
750 1.1 christos dvidir='${docdir}'
751 1.1 christos pdfdir='${docdir}'
752 1.1 christos psdir='${docdir}'
753 1.1 christos libdir='${exec_prefix}/lib'
754 1.1 christos localedir='${datarootdir}/locale'
755 1.1 christos mandir='${datarootdir}/man'
756 1.1 christos
757 1.1 christos ac_prev=
758 1.1 christos ac_dashdash=
759 1.1 christos for ac_option
760 1.1 christos do
761 1.1 christos # If the previous option needs an argument, assign it.
762 1.1 christos if test -n "$ac_prev"; then
763 1.1 christos eval $ac_prev=\$ac_option
764 1.1 christos ac_prev=
765 1.1 christos continue
766 1.1 christos fi
767 1.1 christos
768 1.1 christos case $ac_option in
769 1.1 christos *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 1.1 christos *) ac_optarg=yes ;;
771 1.1 christos esac
772 1.1 christos
773 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
774 1.1 christos
775 1.1 christos case $ac_dashdash$ac_option in
776 1.1 christos --)
777 1.1 christos ac_dashdash=yes ;;
778 1.1 christos
779 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
780 1.1 christos ac_prev=bindir ;;
781 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
782 1.1 christos bindir=$ac_optarg ;;
783 1.1 christos
784 1.1 christos -build | --build | --buil | --bui | --bu)
785 1.1 christos ac_prev=build_alias ;;
786 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787 1.1 christos build_alias=$ac_optarg ;;
788 1.1 christos
789 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
790 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791 1.1 christos ac_prev=cache_file ;;
792 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794 1.1 christos cache_file=$ac_optarg ;;
795 1.1 christos
796 1.1 christos --config-cache | -C)
797 1.1 christos cache_file=config.cache ;;
798 1.1 christos
799 1.1 christos -datadir | --datadir | --datadi | --datad)
800 1.1 christos ac_prev=datadir ;;
801 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
802 1.1 christos datadir=$ac_optarg ;;
803 1.1 christos
804 1.1 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805 1.1 christos | --dataroo | --dataro | --datar)
806 1.1 christos ac_prev=datarootdir ;;
807 1.1 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808 1.1 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809 1.1 christos datarootdir=$ac_optarg ;;
810 1.1 christos
811 1.1 christos -disable-* | --disable-*)
812 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813 1.1 christos # Reject names that are not valid shell variable names.
814 1.1 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816 1.1 christos { (exit 1); exit 1; }; }
817 1.1 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
818 1.1 christos eval enable_$ac_feature=no ;;
819 1.1 christos
820 1.1 christos -docdir | --docdir | --docdi | --doc | --do)
821 1.1 christos ac_prev=docdir ;;
822 1.1 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 1.1 christos docdir=$ac_optarg ;;
824 1.1 christos
825 1.1 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 1.1 christos ac_prev=dvidir ;;
827 1.1 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 1.1 christos dvidir=$ac_optarg ;;
829 1.1 christos
830 1.1 christos -enable-* | --enable-*)
831 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 1.1 christos # Reject names that are not valid shell variable names.
833 1.1 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835 1.1 christos { (exit 1); exit 1; }; }
836 1.1 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837 1.1 christos eval enable_$ac_feature=\$ac_optarg ;;
838 1.1 christos
839 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841 1.1 christos | --exec | --exe | --ex)
842 1.1 christos ac_prev=exec_prefix ;;
843 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845 1.1 christos | --exec=* | --exe=* | --ex=*)
846 1.1 christos exec_prefix=$ac_optarg ;;
847 1.1 christos
848 1.1 christos -gas | --gas | --ga | --g)
849 1.1 christos # Obsolete; use --with-gas.
850 1.1 christos with_gas=yes ;;
851 1.1 christos
852 1.1 christos -help | --help | --hel | --he | -h)
853 1.1 christos ac_init_help=long ;;
854 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855 1.1 christos ac_init_help=recursive ;;
856 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857 1.1 christos ac_init_help=short ;;
858 1.1 christos
859 1.1 christos -host | --host | --hos | --ho)
860 1.1 christos ac_prev=host_alias ;;
861 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
862 1.1 christos host_alias=$ac_optarg ;;
863 1.1 christos
864 1.1 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
865 1.1 christos ac_prev=htmldir ;;
866 1.1 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
867 1.1 christos | --ht=*)
868 1.1 christos htmldir=$ac_optarg ;;
869 1.1 christos
870 1.1 christos -includedir | --includedir | --includedi | --included | --include \
871 1.1 christos | --includ | --inclu | --incl | --inc)
872 1.1 christos ac_prev=includedir ;;
873 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
875 1.1 christos includedir=$ac_optarg ;;
876 1.1 christos
877 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
878 1.1 christos ac_prev=infodir ;;
879 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880 1.1 christos infodir=$ac_optarg ;;
881 1.1 christos
882 1.1 christos -libdir | --libdir | --libdi | --libd)
883 1.1 christos ac_prev=libdir ;;
884 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
885 1.1 christos libdir=$ac_optarg ;;
886 1.1 christos
887 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888 1.1 christos | --libexe | --libex | --libe)
889 1.1 christos ac_prev=libexecdir ;;
890 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891 1.1 christos | --libexe=* | --libex=* | --libe=*)
892 1.1 christos libexecdir=$ac_optarg ;;
893 1.1 christos
894 1.1 christos -localedir | --localedir | --localedi | --localed | --locale)
895 1.1 christos ac_prev=localedir ;;
896 1.1 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897 1.1 christos localedir=$ac_optarg ;;
898 1.1 christos
899 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
900 1.1 christos | --localstate | --localstat | --localsta | --localst | --locals)
901 1.1 christos ac_prev=localstatedir ;;
902 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904 1.1 christos localstatedir=$ac_optarg ;;
905 1.1 christos
906 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
907 1.1 christos ac_prev=mandir ;;
908 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909 1.1 christos mandir=$ac_optarg ;;
910 1.1 christos
911 1.1 christos -nfp | --nfp | --nf)
912 1.1 christos # Obsolete; use --without-fp.
913 1.1 christos with_fp=no ;;
914 1.1 christos
915 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916 1.1 christos | --no-cr | --no-c | -n)
917 1.1 christos no_create=yes ;;
918 1.1 christos
919 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
921 1.1 christos no_recursion=yes ;;
922 1.1 christos
923 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925 1.1 christos | --oldin | --oldi | --old | --ol | --o)
926 1.1 christos ac_prev=oldincludedir ;;
927 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930 1.1 christos oldincludedir=$ac_optarg ;;
931 1.1 christos
932 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
933 1.1 christos ac_prev=prefix ;;
934 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
935 1.1 christos prefix=$ac_optarg ;;
936 1.1 christos
937 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
938 1.1 christos | --program-pre | --program-pr | --program-p)
939 1.1 christos ac_prev=program_prefix ;;
940 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
941 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942 1.1 christos program_prefix=$ac_optarg ;;
943 1.1 christos
944 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
945 1.1 christos | --program-suf | --program-su | --program-s)
946 1.1 christos ac_prev=program_suffix ;;
947 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
948 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949 1.1 christos program_suffix=$ac_optarg ;;
950 1.1 christos
951 1.1 christos -program-transform-name | --program-transform-name \
952 1.1 christos | --program-transform-nam | --program-transform-na \
953 1.1 christos | --program-transform-n | --program-transform- \
954 1.1 christos | --program-transform | --program-transfor \
955 1.1 christos | --program-transfo | --program-transf \
956 1.1 christos | --program-trans | --program-tran \
957 1.1 christos | --progr-tra | --program-tr | --program-t)
958 1.1 christos ac_prev=program_transform_name ;;
959 1.1 christos -program-transform-name=* | --program-transform-name=* \
960 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
961 1.1 christos | --program-transform-n=* | --program-transform-=* \
962 1.1 christos | --program-transform=* | --program-transfor=* \
963 1.1 christos | --program-transfo=* | --program-transf=* \
964 1.1 christos | --program-trans=* | --program-tran=* \
965 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
966 1.1 christos program_transform_name=$ac_optarg ;;
967 1.1 christos
968 1.1 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
969 1.1 christos ac_prev=pdfdir ;;
970 1.1 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
971 1.1 christos pdfdir=$ac_optarg ;;
972 1.1 christos
973 1.1 christos -psdir | --psdir | --psdi | --psd | --ps)
974 1.1 christos ac_prev=psdir ;;
975 1.1 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
976 1.1 christos psdir=$ac_optarg ;;
977 1.1 christos
978 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
979 1.1 christos | -silent | --silent | --silen | --sile | --sil)
980 1.1 christos silent=yes ;;
981 1.1 christos
982 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
983 1.1 christos ac_prev=sbindir ;;
984 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
985 1.1 christos | --sbi=* | --sb=*)
986 1.1 christos sbindir=$ac_optarg ;;
987 1.1 christos
988 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
989 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
991 1.1 christos | --sha | --sh)
992 1.1 christos ac_prev=sharedstatedir ;;
993 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
996 1.1 christos | --sha=* | --sh=*)
997 1.1 christos sharedstatedir=$ac_optarg ;;
998 1.1 christos
999 1.1 christos -site | --site | --sit)
1000 1.1 christos ac_prev=site ;;
1001 1.1 christos -site=* | --site=* | --sit=*)
1002 1.1 christos site=$ac_optarg ;;
1003 1.1 christos
1004 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1005 1.1 christos ac_prev=srcdir ;;
1006 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007 1.1 christos srcdir=$ac_optarg ;;
1008 1.1 christos
1009 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
1011 1.1 christos ac_prev=sysconfdir ;;
1012 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014 1.1 christos sysconfdir=$ac_optarg ;;
1015 1.1 christos
1016 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
1017 1.1 christos ac_prev=target_alias ;;
1018 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019 1.1 christos target_alias=$ac_optarg ;;
1020 1.1 christos
1021 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
1022 1.1 christos verbose=yes ;;
1023 1.1 christos
1024 1.1 christos -version | --version | --versio | --versi | --vers | -V)
1025 1.1 christos ac_init_version=: ;;
1026 1.1 christos
1027 1.1 christos -with-* | --with-*)
1028 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029 1.1 christos # Reject names that are not valid shell variable names.
1030 1.1 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
1032 1.1 christos { (exit 1); exit 1; }; }
1033 1.1 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1034 1.1 christos eval with_$ac_package=\$ac_optarg ;;
1035 1.1 christos
1036 1.1 christos -without-* | --without-*)
1037 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 1.1 christos # Reject names that are not valid shell variable names.
1039 1.1 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 1.1 christos { (exit 1); exit 1; }; }
1042 1.1 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 1.1 christos eval with_$ac_package=no ;;
1044 1.1 christos
1045 1.1 christos --x)
1046 1.1 christos # Obsolete; use --with-x.
1047 1.1 christos with_x=yes ;;
1048 1.1 christos
1049 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1050 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
1051 1.1 christos ac_prev=x_includes ;;
1052 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1053 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1054 1.1 christos x_includes=$ac_optarg ;;
1055 1.1 christos
1056 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
1057 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1058 1.1 christos ac_prev=x_libraries ;;
1059 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1060 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1061 1.1 christos x_libraries=$ac_optarg ;;
1062 1.1 christos
1063 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option
1064 1.1 christos Try \`$0 --help' for more information." >&2
1065 1.1 christos { (exit 1); exit 1; }; }
1066 1.1 christos ;;
1067 1.1 christos
1068 1.1 christos *=*)
1069 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 1.1 christos # Reject names that are not valid shell variable names.
1071 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1072 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1073 1.1 christos { (exit 1); exit 1; }; }
1074 1.1 christos eval $ac_envvar=\$ac_optarg
1075 1.1 christos export $ac_envvar ;;
1076 1.1 christos
1077 1.1 christos *)
1078 1.1 christos # FIXME: should be removed in autoconf 3.0.
1079 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1080 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1082 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1083 1.1 christos ;;
1084 1.1 christos
1085 1.1 christos esac
1086 1.1 christos done
1087 1.1 christos
1088 1.1 christos if test -n "$ac_prev"; then
1089 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1090 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2
1091 1.1 christos { (exit 1); exit 1; }; }
1092 1.1 christos fi
1093 1.1 christos
1094 1.1 christos # Be sure to have absolute directory names.
1095 1.1 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1096 1.1 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1097 1.1 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1098 1.1 christos libdir localedir mandir
1099 1.1 christos do
1100 1.1 christos eval ac_val=\$$ac_var
1101 1.1 christos case $ac_val in
1102 1.1 christos [\\/$]* | ?:[\\/]* ) continue;;
1103 1.1 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104 1.1 christos esac
1105 1.1 christos { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1106 1.1 christos { (exit 1); exit 1; }; }
1107 1.1 christos done
1108 1.1 christos
1109 1.1 christos # There might be people who depend on the old broken behavior: `$host'
1110 1.1 christos # used to hold the argument of --host etc.
1111 1.1 christos # FIXME: To remove some day.
1112 1.1 christos build=$build_alias
1113 1.1 christos host=$host_alias
1114 1.1 christos target=$target_alias
1115 1.1 christos
1116 1.1 christos # FIXME: To remove some day.
1117 1.1 christos if test "x$host_alias" != x; then
1118 1.1 christos if test "x$build_alias" = x; then
1119 1.1 christos cross_compiling=maybe
1120 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1121 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2
1122 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
1123 1.1 christos cross_compiling=yes
1124 1.1 christos fi
1125 1.1 christos fi
1126 1.1 christos
1127 1.1 christos ac_tool_prefix=
1128 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
1129 1.1 christos
1130 1.1 christos test "$silent" = yes && exec 6>/dev/null
1131 1.1 christos
1132 1.1 christos
1133 1.1 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1134 1.1 christos ac_ls_di=`ls -di .` &&
1135 1.1 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1136 1.1 christos { echo "$as_me: error: Working directory cannot be determined" >&2
1137 1.1 christos { (exit 1); exit 1; }; }
1138 1.1 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139 1.1 christos { echo "$as_me: error: pwd does not report name of working directory" >&2
1140 1.1 christos { (exit 1); exit 1; }; }
1141 1.1 christos
1142 1.1 christos
1143 1.1 christos # Find the source files, if location was not specified.
1144 1.1 christos if test -z "$srcdir"; then
1145 1.1 christos ac_srcdir_defaulted=yes
1146 1.1 christos # Try the directory containing this script, then the parent directory.
1147 1.1 christos ac_confdir=`$as_dirname -- "$0" ||
1148 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1149 1.1 christos X"$0" : 'X\(//\)[^/]' \| \
1150 1.1 christos X"$0" : 'X\(//\)$' \| \
1151 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1152 1.1 christos echo X"$0" |
1153 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1154 1.1 christos s//\1/
1155 1.1 christos q
1156 1.1 christos }
1157 1.1 christos /^X\(\/\/\)[^/].*/{
1158 1.1 christos s//\1/
1159 1.1 christos q
1160 1.1 christos }
1161 1.1 christos /^X\(\/\/\)$/{
1162 1.1 christos s//\1/
1163 1.1 christos q
1164 1.1 christos }
1165 1.1 christos /^X\(\/\).*/{
1166 1.1 christos s//\1/
1167 1.1 christos q
1168 1.1 christos }
1169 1.1 christos s/.*/./; q'`
1170 1.1 christos srcdir=$ac_confdir
1171 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1172 1.1 christos srcdir=..
1173 1.1 christos fi
1174 1.1 christos else
1175 1.1 christos ac_srcdir_defaulted=no
1176 1.1 christos fi
1177 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1178 1.1 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1179 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1180 1.1 christos { (exit 1); exit 1; }; }
1181 1.1 christos fi
1182 1.1 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1183 1.1 christos ac_abs_confdir=`(
1184 1.1 christos cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1185 1.1 christos { (exit 1); exit 1; }; }
1186 1.1 christos pwd)`
1187 1.1 christos # When building in place, set srcdir=.
1188 1.1 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1189 1.1 christos srcdir=.
1190 1.1 christos fi
1191 1.1 christos # Remove unnecessary trailing slashes from srcdir.
1192 1.1 christos # Double slashes in file names in object file debugging info
1193 1.1 christos # mess up M-x gdb in Emacs.
1194 1.1 christos case $srcdir in
1195 1.1 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196 1.1 christos esac
1197 1.1 christos for ac_var in $ac_precious_vars; do
1198 1.1 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1199 1.1 christos eval ac_env_${ac_var}_value=\$${ac_var}
1200 1.1 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1201 1.1 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202 1.1 christos done
1203 1.1 christos
1204 1.1 christos #
1205 1.1 christos # Report the --help message.
1206 1.1 christos #
1207 1.1 christos if test "$ac_init_help" = "long"; then
1208 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1209 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1210 1.1 christos cat <<_ACEOF
1211 1.1 christos \`configure' configures top 3.8beta1 to adapt to many kinds of systems.
1212 1.1 christos
1213 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1214 1.1 christos
1215 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1217 1.1 christos
1218 1.1 christos Defaults for the options are specified in brackets.
1219 1.1 christos
1220 1.1 christos Configuration:
1221 1.1 christos -h, --help display this help and exit
1222 1.1 christos --help=short display options specific to this package
1223 1.1 christos --help=recursive display the short help of all the included packages
1224 1.1 christos -V, --version display version information and exit
1225 1.1 christos -q, --quiet, --silent do not print \`checking...' messages
1226 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1227 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1228 1.1 christos -n, --no-create do not create output files
1229 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1230 1.1 christos
1231 1.1 christos Installation directories:
1232 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1233 1.1 christos [$ac_default_prefix]
1234 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1235 1.1 christos [PREFIX]
1236 1.1 christos
1237 1.1 christos By default, \`make install' will install all the files in
1238 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1239 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240 1.1 christos for instance \`--prefix=\$HOME'.
1241 1.1 christos
1242 1.1 christos For better control, use the options below.
1243 1.1 christos
1244 1.1 christos Fine tuning of the installation directories:
1245 1.1 christos --bindir=DIR user executables [EPREFIX/bin]
1246 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1247 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1248 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1249 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1250 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1251 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib]
1252 1.1 christos --includedir=DIR C header files [PREFIX/include]
1253 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1254 1.1 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1255 1.1 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1256 1.1 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1257 1.1 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1258 1.1 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1259 1.1 christos --docdir=DIR documentation root [DATAROOTDIR/doc/top]
1260 1.1 christos --htmldir=DIR html documentation [DOCDIR]
1261 1.1 christos --dvidir=DIR dvi documentation [DOCDIR]
1262 1.1 christos --pdfdir=DIR pdf documentation [DOCDIR]
1263 1.1 christos --psdir=DIR ps documentation [DOCDIR]
1264 1.1 christos _ACEOF
1265 1.1 christos
1266 1.1 christos cat <<\_ACEOF
1267 1.1 christos
1268 1.1 christos System types:
1269 1.1 christos --build=BUILD configure for building on BUILD [guessed]
1270 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD]
1271 1.1 christos --target=TARGET configure for building compilers for TARGET [HOST]
1272 1.1 christos _ACEOF
1273 1.1 christos fi
1274 1.1 christos
1275 1.1 christos if test -n "$ac_init_help"; then
1276 1.1 christos case $ac_init_help in
1277 1.1 christos short | recursive ) echo "Configuration of top 3.8beta1:";;
1278 1.1 christos esac
1279 1.1 christos cat <<\_ACEOF
1280 1.1 christos
1281 1.1 christos Optional Features:
1282 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 1.1 christos --enable-debug enable support for debugging output
1285 1.1 christos --disable-kill disable kill and renice commands
1286 1.1 christos --disable-color disable the use of color
1287 1.1 christos --disable-colour synonym for --disable-color
1288 1.1 christos --enable-dualarch enable or disable a dual architecture (32-bit and
1289 1.1 christos 64-bit) compile
1290 1.1 christos
1291 1.1 christos Optional Packages:
1292 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1293 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1294 1.1 christos --with-module=NAME use the platform module NAME
1295 1.1 christos --with-ext=EXT use the extension EXT
1296 1.1 christos --with-default-topn=N use N as the default for number of processes
1297 1.1 christos --with-nominal-topn=N use N as the default number of processes for
1298 1.1 christos non-terminals
1299 1.1 christos --with-default-delay=SEC
1300 1.1 christos use a default delay of SEC seconds
1301 1.1 christos
1302 1.1 christos Some influential environment variables:
1303 1.1 christos CC C compiler command
1304 1.1 christos CFLAGS C compiler flags
1305 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1306 1.1 christos nonstandard directory <lib dir>
1307 1.1 christos LIBS libraries to pass to the linker, e.g. -l<library>
1308 1.1 christos CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1309 1.1 christos you have headers in a nonstandard directory <include dir>
1310 1.1 christos CPP C preprocessor
1311 1.1 christos
1312 1.1 christos Use these variables to override the choices made by `configure' or to help
1313 1.1 christos it to find libraries and programs with nonstandard names/locations.
1314 1.1 christos
1315 1.1 christos _ACEOF
1316 1.1 christos ac_status=$?
1317 1.1 christos fi
1318 1.1 christos
1319 1.1 christos if test "$ac_init_help" = "recursive"; then
1320 1.1 christos # If there are subdirs, report their specific --help.
1321 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1322 1.1 christos test -d "$ac_dir" || continue
1323 1.1 christos ac_builddir=.
1324 1.1 christos
1325 1.1 christos case "$ac_dir" in
1326 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 1.1 christos *)
1328 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1329 1.1 christos # A ".." for each directory in $ac_dir_suffix.
1330 1.1 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1331 1.1 christos case $ac_top_builddir_sub in
1332 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1334 1.1 christos esac ;;
1335 1.1 christos esac
1336 1.1 christos ac_abs_top_builddir=$ac_pwd
1337 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1338 1.1 christos # for backward compatibility:
1339 1.1 christos ac_top_builddir=$ac_top_build_prefix
1340 1.1 christos
1341 1.1 christos case $srcdir in
1342 1.1 christos .) # We are building in place.
1343 1.1 christos ac_srcdir=.
1344 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
1345 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
1346 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1347 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1348 1.1 christos ac_top_srcdir=$srcdir
1349 1.1 christos ac_abs_top_srcdir=$srcdir ;;
1350 1.1 christos *) # Relative name.
1351 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1352 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1353 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1354 1.1 christos esac
1355 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356 1.1 christos
1357 1.1 christos cd "$ac_dir" || { ac_status=$?; continue; }
1358 1.1 christos # Check for guested configure.
1359 1.1 christos if test -f "$ac_srcdir/configure.gnu"; then
1360 1.1 christos echo &&
1361 1.1 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1362 1.1 christos elif test -f "$ac_srcdir/configure"; then
1363 1.1 christos echo &&
1364 1.1 christos $SHELL "$ac_srcdir/configure" --help=recursive
1365 1.1 christos else
1366 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367 1.1 christos fi || ac_status=$?
1368 1.1 christos cd "$ac_pwd" || { ac_status=$?; break; }
1369 1.1 christos done
1370 1.1 christos fi
1371 1.1 christos
1372 1.1 christos test -n "$ac_init_help" && exit $ac_status
1373 1.1 christos if $ac_init_version; then
1374 1.1 christos cat <<\_ACEOF
1375 1.1 christos top configure 3.8beta1
1376 1.1 christos generated by GNU Autoconf 2.61
1377 1.1 christos
1378 1.1 christos Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1379 1.1 christos 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1380 1.1 christos This configure script is free software; the Free Software Foundation
1381 1.1 christos gives unlimited permission to copy, distribute and modify it.
1382 1.1 christos _ACEOF
1383 1.1 christos exit
1384 1.1 christos fi
1385 1.1 christos cat >config.log <<_ACEOF
1386 1.1 christos This file contains any messages produced by compilers while
1387 1.1 christos running configure, to aid debugging if configure makes a mistake.
1388 1.1 christos
1389 1.1 christos It was created by top $as_me 3.8beta1, which was
1390 1.1 christos generated by GNU Autoconf 2.61. Invocation command line was
1391 1.1 christos
1392 1.1 christos $ $0 $@
1393 1.1 christos
1394 1.1 christos _ACEOF
1395 1.1 christos exec 5>>config.log
1396 1.1 christos {
1397 1.1 christos cat <<_ASUNAME
1398 1.1 christos ## --------- ##
1399 1.1 christos ## Platform. ##
1400 1.1 christos ## --------- ##
1401 1.1 christos
1402 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1403 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1404 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1405 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1406 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1407 1.1 christos
1408 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1409 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1410 1.1 christos
1411 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1412 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1413 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1414 1.1 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1415 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1416 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1417 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1418 1.1 christos
1419 1.1 christos _ASUNAME
1420 1.1 christos
1421 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 1.1 christos for as_dir in $PATH
1423 1.1 christos do
1424 1.1 christos IFS=$as_save_IFS
1425 1.1 christos test -z "$as_dir" && as_dir=.
1426 1.1 christos echo "PATH: $as_dir"
1427 1.1 christos done
1428 1.1 christos IFS=$as_save_IFS
1429 1.1 christos
1430 1.1 christos } >&5
1431 1.1 christos
1432 1.1 christos cat >&5 <<_ACEOF
1433 1.1 christos
1434 1.1 christos
1435 1.1 christos ## ----------- ##
1436 1.1 christos ## Core tests. ##
1437 1.1 christos ## ----------- ##
1438 1.1 christos
1439 1.1 christos _ACEOF
1440 1.1 christos
1441 1.1 christos
1442 1.1 christos # Keep a trace of the command line.
1443 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
1444 1.1 christos # Strip out --silent because we don't want to record it for future runs.
1445 1.1 christos # Also quote any args containing shell meta-characters.
1446 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
1447 1.1 christos ac_configure_args=
1448 1.1 christos ac_configure_args0=
1449 1.1 christos ac_configure_args1=
1450 1.1 christos ac_must_keep_next=false
1451 1.1 christos for ac_pass in 1 2
1452 1.1 christos do
1453 1.1 christos for ac_arg
1454 1.1 christos do
1455 1.1 christos case $ac_arg in
1456 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1457 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1458 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1459 1.1 christos continue ;;
1460 1.1 christos *\'*)
1461 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 1.1 christos esac
1463 1.1 christos case $ac_pass in
1464 1.1 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1465 1.1 christos 2)
1466 1.1 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1467 1.1 christos if test $ac_must_keep_next = true; then
1468 1.1 christos ac_must_keep_next=false # Got value, back to normal.
1469 1.1 christos else
1470 1.1 christos case $ac_arg in
1471 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1472 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1473 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1474 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
1475 1.1 christos case "$ac_configure_args0 " in
1476 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1477 1.1 christos esac
1478 1.1 christos ;;
1479 1.1 christos -* ) ac_must_keep_next=true ;;
1480 1.1 christos esac
1481 1.1 christos fi
1482 1.1 christos ac_configure_args="$ac_configure_args '$ac_arg'"
1483 1.1 christos ;;
1484 1.1 christos esac
1485 1.1 christos done
1486 1.1 christos done
1487 1.1 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1488 1.1 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1489 1.1 christos
1490 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
1491 1.1 christos # config.log. We remove comments because anyway the quotes in there
1492 1.1 christos # would cause problems or look ugly.
1493 1.1 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
1494 1.1 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1495 1.1 christos trap 'exit_status=$?
1496 1.1 christos # Save into config.log some information that might help in debugging.
1497 1.1 christos {
1498 1.1 christos echo
1499 1.1 christos
1500 1.1 christos cat <<\_ASBOX
1501 1.1 christos ## ---------------- ##
1502 1.1 christos ## Cache variables. ##
1503 1.1 christos ## ---------------- ##
1504 1.1 christos _ASBOX
1505 1.1 christos echo
1506 1.1 christos # The following way of writing the cache mishandles newlines in values,
1507 1.1 christos (
1508 1.1 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1509 1.1 christos eval ac_val=\$$ac_var
1510 1.1 christos case $ac_val in #(
1511 1.1 christos *${as_nl}*)
1512 1.1 christos case $ac_var in #(
1513 1.1 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1514 1.1 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1515 1.1 christos esac
1516 1.1 christos case $ac_var in #(
1517 1.1 christos _ | IFS | as_nl) ;; #(
1518 1.1 christos *) $as_unset $ac_var ;;
1519 1.1 christos esac ;;
1520 1.1 christos esac
1521 1.1 christos done
1522 1.1 christos (set) 2>&1 |
1523 1.1 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1524 1.1 christos *${as_nl}ac_space=\ *)
1525 1.1 christos sed -n \
1526 1.1 christos "s/'\''/'\''\\\\'\'''\''/g;
1527 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1528 1.1 christos ;; #(
1529 1.1 christos *)
1530 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1531 1.1 christos ;;
1532 1.1 christos esac |
1533 1.1 christos sort
1534 1.1 christos )
1535 1.1 christos echo
1536 1.1 christos
1537 1.1 christos cat <<\_ASBOX
1538 1.1 christos ## ----------------- ##
1539 1.1 christos ## Output variables. ##
1540 1.1 christos ## ----------------- ##
1541 1.1 christos _ASBOX
1542 1.1 christos echo
1543 1.1 christos for ac_var in $ac_subst_vars
1544 1.1 christos do
1545 1.1 christos eval ac_val=\$$ac_var
1546 1.1 christos case $ac_val in
1547 1.1 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1548 1.1 christos esac
1549 1.1 christos echo "$ac_var='\''$ac_val'\''"
1550 1.1 christos done | sort
1551 1.1 christos echo
1552 1.1 christos
1553 1.1 christos if test -n "$ac_subst_files"; then
1554 1.1 christos cat <<\_ASBOX
1555 1.1 christos ## ------------------- ##
1556 1.1 christos ## File substitutions. ##
1557 1.1 christos ## ------------------- ##
1558 1.1 christos _ASBOX
1559 1.1 christos echo
1560 1.1 christos for ac_var in $ac_subst_files
1561 1.1 christos do
1562 1.1 christos eval ac_val=\$$ac_var
1563 1.1 christos case $ac_val in
1564 1.1 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 1.1 christos esac
1566 1.1 christos echo "$ac_var='\''$ac_val'\''"
1567 1.1 christos done | sort
1568 1.1 christos echo
1569 1.1 christos fi
1570 1.1 christos
1571 1.1 christos if test -s confdefs.h; then
1572 1.1 christos cat <<\_ASBOX
1573 1.1 christos ## ----------- ##
1574 1.1 christos ## confdefs.h. ##
1575 1.1 christos ## ----------- ##
1576 1.1 christos _ASBOX
1577 1.1 christos echo
1578 1.1 christos cat confdefs.h
1579 1.1 christos echo
1580 1.1 christos fi
1581 1.1 christos test "$ac_signal" != 0 &&
1582 1.1 christos echo "$as_me: caught signal $ac_signal"
1583 1.1 christos echo "$as_me: exit $exit_status"
1584 1.1 christos } >&5
1585 1.1 christos rm -f core *.core core.conftest.* &&
1586 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1587 1.1 christos exit $exit_status
1588 1.1 christos ' 0
1589 1.1 christos for ac_signal in 1 2 13 15; do
1590 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1591 1.1 christos done
1592 1.1 christos ac_signal=0
1593 1.1 christos
1594 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
1595 1.1 christos rm -f -r conftest* confdefs.h
1596 1.1 christos
1597 1.1 christos # Predefined preprocessor variables.
1598 1.1 christos
1599 1.1 christos cat >>confdefs.h <<_ACEOF
1600 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
1601 1.1 christos _ACEOF
1602 1.1 christos
1603 1.1 christos
1604 1.1 christos cat >>confdefs.h <<_ACEOF
1605 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1606 1.1 christos _ACEOF
1607 1.1 christos
1608 1.1 christos
1609 1.1 christos cat >>confdefs.h <<_ACEOF
1610 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
1611 1.1 christos _ACEOF
1612 1.1 christos
1613 1.1 christos
1614 1.1 christos cat >>confdefs.h <<_ACEOF
1615 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
1616 1.1 christos _ACEOF
1617 1.1 christos
1618 1.1 christos
1619 1.1 christos cat >>confdefs.h <<_ACEOF
1620 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1621 1.1 christos _ACEOF
1622 1.1 christos
1623 1.1 christos
1624 1.1 christos # Let the site file select an alternate cache file if it wants to.
1625 1.1 christos # Prefer explicitly selected file to automatically selected ones.
1626 1.1 christos if test -n "$CONFIG_SITE"; then
1627 1.1 christos set x "$CONFIG_SITE"
1628 1.1 christos elif test "x$prefix" != xNONE; then
1629 1.1 christos set x "$prefix/share/config.site" "$prefix/etc/config.site"
1630 1.1 christos else
1631 1.1 christos set x "$ac_default_prefix/share/config.site" \
1632 1.1 christos "$ac_default_prefix/etc/config.site"
1633 1.1 christos fi
1634 1.1 christos shift
1635 1.1 christos for ac_site_file
1636 1.1 christos do
1637 1.1 christos if test -r "$ac_site_file"; then
1638 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1639 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;}
1640 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
1641 1.1 christos . "$ac_site_file"
1642 1.1 christos fi
1643 1.1 christos done
1644 1.1 christos
1645 1.1 christos if test -r "$cache_file"; then
1646 1.1 christos # Some versions of bash will fail to source /dev/null (special
1647 1.1 christos # files actually), so we avoid doing that.
1648 1.1 christos if test -f "$cache_file"; then
1649 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1650 1.1 christos echo "$as_me: loading cache $cache_file" >&6;}
1651 1.1 christos case $cache_file in
1652 1.1 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
1653 1.1 christos *) . "./$cache_file";;
1654 1.1 christos esac
1655 1.1 christos fi
1656 1.1 christos else
1657 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1658 1.1 christos echo "$as_me: creating cache $cache_file" >&6;}
1659 1.1 christos >$cache_file
1660 1.1 christos fi
1661 1.1 christos
1662 1.1 christos # Check that the precious variables saved in the cache have kept the same
1663 1.1 christos # value.
1664 1.1 christos ac_cache_corrupted=false
1665 1.1 christos for ac_var in $ac_precious_vars; do
1666 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
1667 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
1668 1.1 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
1669 1.1 christos eval ac_new_val=\$ac_env_${ac_var}_value
1670 1.1 christos case $ac_old_set,$ac_new_set in
1671 1.1 christos set,)
1672 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1673 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1674 1.1 christos ac_cache_corrupted=: ;;
1675 1.1 christos ,set)
1676 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1677 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1678 1.1 christos ac_cache_corrupted=: ;;
1679 1.1 christos ,);;
1680 1.1 christos *)
1681 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
1682 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1683 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1684 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1685 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;}
1686 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1687 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;}
1688 1.1 christos ac_cache_corrupted=:
1689 1.1 christos fi;;
1690 1.1 christos esac
1691 1.1 christos # Pass precious variables to config.status.
1692 1.1 christos if test "$ac_new_set" = set; then
1693 1.1 christos case $ac_new_val in
1694 1.1 christos *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1695 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
1696 1.1 christos esac
1697 1.1 christos case " $ac_configure_args " in
1698 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1699 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1700 1.1 christos esac
1701 1.1 christos fi
1702 1.1 christos done
1703 1.1 christos if $ac_cache_corrupted; then
1704 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1705 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1706 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1707 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1708 1.1 christos { (exit 1); exit 1; }; }
1709 1.1 christos fi
1710 1.1 christos
1711 1.1 christos
1712 1.1 christos
1713 1.1 christos
1714 1.1 christos
1715 1.1 christos
1716 1.1 christos
1717 1.1 christos
1718 1.1 christos
1719 1.1 christos
1720 1.1 christos
1721 1.1 christos
1722 1.1 christos
1723 1.1 christos
1724 1.1 christos
1725 1.1 christos
1726 1.1 christos
1727 1.1 christos
1728 1.1 christos
1729 1.1 christos
1730 1.1 christos
1731 1.1 christos
1732 1.1 christos
1733 1.1 christos
1734 1.1 christos
1735 1.1 christos ac_ext=c
1736 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1737 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740 1.1 christos
1741 1.1 christos
1742 1.1 christos
1743 1.1 christos # AX_CHECK_VARIADIC_MACROS...
1744 1.1 christos # -----
1745 1.1 christos
1746 1.1 christos
1747 1.1 christos # AC_CHECK_CFLAG...
1748 1.1 christos # -----
1749 1.1 christos # AC_CHECK_CFLAG
1750 1.1 christos
1751 1.1 christos echo "Configuring $PACKAGE_STRING"
1752 1.1 christos
1753 1.1 christos ac_config_headers="$ac_config_headers config.h"
1754 1.1 christos
1755 1.1 christos ac_aux_dir=
1756 1.1 christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1757 1.1 christos if test -f "$ac_dir/install-sh"; then
1758 1.1 christos ac_aux_dir=$ac_dir
1759 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
1760 1.1 christos break
1761 1.1 christos elif test -f "$ac_dir/install.sh"; then
1762 1.1 christos ac_aux_dir=$ac_dir
1763 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
1764 1.1 christos break
1765 1.1 christos elif test -f "$ac_dir/shtool"; then
1766 1.1 christos ac_aux_dir=$ac_dir
1767 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
1768 1.1 christos break
1769 1.1 christos fi
1770 1.1 christos done
1771 1.1 christos if test -z "$ac_aux_dir"; then
1772 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1773 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1774 1.1 christos { (exit 1); exit 1; }; }
1775 1.1 christos fi
1776 1.1 christos
1777 1.1 christos # These three variables are undocumented and unsupported,
1778 1.1 christos # and are intended to be withdrawn in a future Autoconf release.
1779 1.1 christos # They can cause serious problems if a builder's source tree is in a directory
1780 1.1 christos # whose full name contains unusual characters.
1781 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1782 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1783 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1784 1.1 christos
1785 1.1 christos
1786 1.1 christos # Make sure we can run config.sub.
1787 1.1 christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1788 1.1 christos { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1789 1.1 christos echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1790 1.1 christos { (exit 1); exit 1; }; }
1791 1.1 christos
1792 1.1 christos { echo "$as_me:$LINENO: checking build system type" >&5
1793 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1794 1.1 christos if test "${ac_cv_build+set}" = set; then
1795 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1796 1.1 christos else
1797 1.1 christos ac_build_alias=$build_alias
1798 1.1 christos test "x$ac_build_alias" = x &&
1799 1.1 christos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1800 1.1 christos test "x$ac_build_alias" = x &&
1801 1.1 christos { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1802 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1803 1.1 christos { (exit 1); exit 1; }; }
1804 1.1 christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1805 1.1 christos { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1806 1.1 christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1807 1.1 christos { (exit 1); exit 1; }; }
1808 1.1 christos
1809 1.1 christos fi
1810 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1811 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6; }
1812 1.1 christos case $ac_cv_build in
1813 1.1 christos *-*-*) ;;
1814 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1815 1.1 christos echo "$as_me: error: invalid value of canonical build" >&2;}
1816 1.1 christos { (exit 1); exit 1; }; };;
1817 1.1 christos esac
1818 1.1 christos build=$ac_cv_build
1819 1.1 christos ac_save_IFS=$IFS; IFS='-'
1820 1.1 christos set x $ac_cv_build
1821 1.1 christos shift
1822 1.1 christos build_cpu=$1
1823 1.1 christos build_vendor=$2
1824 1.1 christos shift; shift
1825 1.1 christos # Remember, the first character of IFS is used to create $*,
1826 1.1 christos # except with old shells:
1827 1.1 christos build_os=$*
1828 1.1 christos IFS=$ac_save_IFS
1829 1.1 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1830 1.1 christos
1831 1.1 christos
1832 1.1 christos { echo "$as_me:$LINENO: checking host system type" >&5
1833 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1834 1.1 christos if test "${ac_cv_host+set}" = set; then
1835 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1836 1.1 christos else
1837 1.1 christos if test "x$host_alias" = x; then
1838 1.1 christos ac_cv_host=$ac_cv_build
1839 1.1 christos else
1840 1.1 christos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1841 1.1 christos { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1842 1.1 christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1843 1.1 christos { (exit 1); exit 1; }; }
1844 1.1 christos fi
1845 1.1 christos
1846 1.1 christos fi
1847 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1848 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6; }
1849 1.1 christos case $ac_cv_host in
1850 1.1 christos *-*-*) ;;
1851 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1852 1.1 christos echo "$as_me: error: invalid value of canonical host" >&2;}
1853 1.1 christos { (exit 1); exit 1; }; };;
1854 1.1 christos esac
1855 1.1 christos host=$ac_cv_host
1856 1.1 christos ac_save_IFS=$IFS; IFS='-'
1857 1.1 christos set x $ac_cv_host
1858 1.1 christos shift
1859 1.1 christos host_cpu=$1
1860 1.1 christos host_vendor=$2
1861 1.1 christos shift; shift
1862 1.1 christos # Remember, the first character of IFS is used to create $*,
1863 1.1 christos # except with old shells:
1864 1.1 christos host_os=$*
1865 1.1 christos IFS=$ac_save_IFS
1866 1.1 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1867 1.1 christos
1868 1.1 christos
1869 1.1 christos { echo "$as_me:$LINENO: checking target system type" >&5
1870 1.1 christos echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1871 1.1 christos if test "${ac_cv_target+set}" = set; then
1872 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1873 1.1 christos else
1874 1.1 christos if test "x$target_alias" = x; then
1875 1.1 christos ac_cv_target=$ac_cv_host
1876 1.1 christos else
1877 1.1 christos ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1878 1.1 christos { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1879 1.1 christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1880 1.1 christos { (exit 1); exit 1; }; }
1881 1.1 christos fi
1882 1.1 christos
1883 1.1 christos fi
1884 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1885 1.1 christos echo "${ECHO_T}$ac_cv_target" >&6; }
1886 1.1 christos case $ac_cv_target in
1887 1.1 christos *-*-*) ;;
1888 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1889 1.1 christos echo "$as_me: error: invalid value of canonical target" >&2;}
1890 1.1 christos { (exit 1); exit 1; }; };;
1891 1.1 christos esac
1892 1.1 christos target=$ac_cv_target
1893 1.1 christos ac_save_IFS=$IFS; IFS='-'
1894 1.1 christos set x $ac_cv_target
1895 1.1 christos shift
1896 1.1 christos target_cpu=$1
1897 1.1 christos target_vendor=$2
1898 1.1 christos shift; shift
1899 1.1 christos # Remember, the first character of IFS is used to create $*,
1900 1.1 christos # except with old shells:
1901 1.1 christos target_os=$*
1902 1.1 christos IFS=$ac_save_IFS
1903 1.1 christos case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1904 1.1 christos
1905 1.1 christos
1906 1.1 christos # The aliases save the names the user supplied, while $host etc.
1907 1.1 christos # will get canonicalized.
1908 1.1 christos test -n "$target_alias" &&
1909 1.1 christos test "$program_prefix$program_suffix$program_transform_name" = \
1910 1.1 christos NONENONEs,x,x, &&
1911 1.1 christos program_prefix=${target_alias}-
1912 1.1 christos
1913 1.1 christos # options processing
1914 1.1 christos
1915 1.1 christos # Check whether --with-module was given.
1916 1.1 christos if test "${with_module+set}" = set; then
1917 1.1 christos withval=$with_module; if test ! -f machine/m_$withval.c;
1918 1.1 christos then { { echo "$as_me:$LINENO: error: No such module $withval" >&5
1919 1.1 christos echo "$as_me: error: No such module $withval" >&2;}
1920 1.1 christos { (exit 1); exit 1; }; }; fi
1921 1.1 christos fi
1922 1.1 christos
1923 1.1 christos
1924 1.1 christos
1925 1.1 christos # Check whether --with-ext was given.
1926 1.1 christos if test "${with_ext+set}" = set; then
1927 1.1 christos withval=$with_ext; if test -f ext/$withval.c; then
1928 1.1 christos
1929 1.1 christos cat >>confdefs.h <<\_ACEOF
1930 1.1 christos #define WITH_EXT 1
1931 1.1 christos _ACEOF
1932 1.1 christos
1933 1.1 christos SRC="$SRC ext/$withval.c"
1934 1.1 christos OBJ="$OBJ $withval.o"
1935 1.1 christos else
1936 1.1 christos { { echo "$as_me:$LINENO: error: No such extension $withval" >&5
1937 1.1 christos echo "$as_me: error: No such extension $withval" >&2;}
1938 1.1 christos { (exit 1); exit 1; }; }
1939 1.1 christos fi
1940 1.1 christos fi
1941 1.1 christos
1942 1.1 christos
1943 1.1 christos DEFAULT_TOPN=30
1944 1.1 christos
1945 1.1 christos # Check whether --with-default-topn was given.
1946 1.1 christos if test "${with_default_topn+set}" = set; then
1947 1.1 christos withval=$with_default_topn; if test x"$with_default_topn" = xall; then
1948 1.1 christos DEFAULT_TOPN="-1"
1949 1.1 christos elif test x`echo $with_default_topn | tr -d '0-9+-'` = x; then
1950 1.1 christos DEFAULT_TOPN=$with_default_topn
1951 1.1 christos fi
1952 1.1 christos fi
1953 1.1 christos
1954 1.1 christos
1955 1.1 christos cat >>confdefs.h <<_ACEOF
1956 1.1 christos #define DEFAULT_TOPN $DEFAULT_TOPN
1957 1.1 christos _ACEOF
1958 1.1 christos
1959 1.1 christos
1960 1.1 christos
1961 1.1 christos NOMINAL_TOPN=40
1962 1.1 christos
1963 1.1 christos # Check whether --with-nominal-topn was given.
1964 1.1 christos if test "${with_nominal_topn+set}" = set; then
1965 1.1 christos withval=$with_nominal_topn; if test x"$with_nominal_topn" = xall; then
1966 1.1 christos NOMINAL_TOPN="-1"
1967 1.1 christos elif test x`echo $with_nominal_topn | tr -d '0-9+-'` = x; then
1968 1.1 christos NOMINAL_TOPN=$with_nominal_topn
1969 1.1 christos fi
1970 1.1 christos fi
1971 1.1 christos
1972 1.1 christos
1973 1.1 christos cat >>confdefs.h <<_ACEOF
1974 1.1 christos #define NOMINAL_TOPN $NOMINAL_TOPN
1975 1.1 christos _ACEOF
1976 1.1 christos
1977 1.1 christos
1978 1.1 christos
1979 1.1 christos DEFAULT_DELAY=5
1980 1.1 christos
1981 1.1 christos # Check whether --with-default-delay was given.
1982 1.1 christos if test "${with_default_delay+set}" = set; then
1983 1.1 christos withval=$with_default_delay; if test x`echo $with_default_delay | tr -d '0-9+-'` = x; then
1984 1.1 christos DEFAULT_DELAY=$with_default_delay
1985 1.1 christos fi
1986 1.1 christos fi
1987 1.1 christos
1988 1.1 christos
1989 1.1 christos cat >>confdefs.h <<_ACEOF
1990 1.1 christos #define DEFAULT_DELAY $DEFAULT_DELAY
1991 1.1 christos _ACEOF
1992 1.1 christos
1993 1.1 christos
1994 1.1 christos
1995 1.1 christos # Check whether --enable-debug was given.
1996 1.1 christos if test "${enable_debug+set}" = set; then
1997 1.1 christos enableval=$enable_debug;
1998 1.1 christos fi
1999 1.1 christos
2000 1.1 christos if test "x$enable_debug" = xyes; then
2001 1.1 christos
2002 1.1 christos cat >>confdefs.h <<\_ACEOF
2003 1.1 christos #define DEBUG 1
2004 1.1 christos _ACEOF
2005 1.1 christos
2006 1.1 christos fi
2007 1.1 christos
2008 1.1 christos ENABLE_KILL=0
2009 1.1 christos # Check whether --enable-kill was given.
2010 1.1 christos if test "${enable_kill+set}" = set; then
2011 1.1 christos enableval=$enable_kill;
2012 1.1 christos fi
2013 1.1 christos
2014 1.1 christos if test x$enable_kill != xno; then
2015 1.1 christos
2016 1.1 christos cat >>confdefs.h <<\_ACEOF
2017 1.1 christos #define ENABLE_KILL 1
2018 1.1 christos _ACEOF
2019 1.1 christos
2020 1.1 christos ENABLE_KILL=1
2021 1.1 christos fi
2022 1.1 christos
2023 1.1 christos
2024 1.1 christos
2025 1.1 christos # Check whether --enable-color was given.
2026 1.1 christos if test "${enable_color+set}" = set; then
2027 1.1 christos enableval=$enable_color;
2028 1.1 christos fi
2029 1.1 christos
2030 1.1 christos # Check whether --enable-colour was given.
2031 1.1 christos if test "${enable_colour+set}" = set; then
2032 1.1 christos enableval=$enable_colour;
2033 1.1 christos fi
2034 1.1 christos
2035 1.1 christos if test x$enable_color != xno -a x$enable_colour != xno; then
2036 1.1 christos
2037 1.1 christos cat >>confdefs.h <<\_ACEOF
2038 1.1 christos #define ENABLE_COLOR 1
2039 1.1 christos _ACEOF
2040 1.1 christos
2041 1.1 christos fi
2042 1.1 christos
2043 1.1 christos # Check whether --enable-dualarch was given.
2044 1.1 christos if test "${enable_dualarch+set}" = set; then
2045 1.1 christos enableval=$enable_dualarch;
2046 1.1 christos fi
2047 1.1 christos
2048 1.1 christos
2049 1.1 christos # check for needed programs
2050 1.1 christos for ac_prog in make
2051 1.1 christos do
2052 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 1.1 christos set dummy $ac_prog; ac_word=$2
2054 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 1.1 christos if test "${ac_cv_prog_MAKE+set}" = set; then
2057 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2058 1.1 christos else
2059 1.1 christos if test -n "$MAKE"; then
2060 1.1 christos ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2061 1.1 christos else
2062 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 1.1 christos for as_dir in $PATH
2064 1.1 christos do
2065 1.1 christos IFS=$as_save_IFS
2066 1.1 christos test -z "$as_dir" && as_dir=.
2067 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2068 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 1.1 christos ac_cv_prog_MAKE="$ac_prog"
2070 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 1.1 christos break 2
2072 1.1 christos fi
2073 1.1 christos done
2074 1.1 christos done
2075 1.1 christos IFS=$as_save_IFS
2076 1.1 christos
2077 1.1 christos fi
2078 1.1 christos fi
2079 1.1 christos MAKE=$ac_cv_prog_MAKE
2080 1.1 christos if test -n "$MAKE"; then
2081 1.1 christos { echo "$as_me:$LINENO: result: $MAKE" >&5
2082 1.1 christos echo "${ECHO_T}$MAKE" >&6; }
2083 1.1 christos else
2084 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2085 1.1 christos echo "${ECHO_T}no" >&6; }
2086 1.1 christos fi
2087 1.1 christos
2088 1.1 christos
2089 1.1 christos test -n "$MAKE" && break
2090 1.1 christos done
2091 1.1 christos
2092 1.1 christos ac_ext=c
2093 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2094 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 1.1 christos if test -n "$ac_tool_prefix"; then
2098 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2099 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
2100 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2102 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2103 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2104 1.1 christos else
2105 1.1 christos if test -n "$CC"; then
2106 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2107 1.1 christos else
2108 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 1.1 christos for as_dir in $PATH
2110 1.1 christos do
2111 1.1 christos IFS=$as_save_IFS
2112 1.1 christos test -z "$as_dir" && as_dir=.
2113 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2114 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2115 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
2116 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 1.1 christos break 2
2118 1.1 christos fi
2119 1.1 christos done
2120 1.1 christos done
2121 1.1 christos IFS=$as_save_IFS
2122 1.1 christos
2123 1.1 christos fi
2124 1.1 christos fi
2125 1.1 christos CC=$ac_cv_prog_CC
2126 1.1 christos if test -n "$CC"; then
2127 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2128 1.1 christos echo "${ECHO_T}$CC" >&6; }
2129 1.1 christos else
2130 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2131 1.1 christos echo "${ECHO_T}no" >&6; }
2132 1.1 christos fi
2133 1.1 christos
2134 1.1 christos
2135 1.1 christos fi
2136 1.1 christos if test -z "$ac_cv_prog_CC"; then
2137 1.1 christos ac_ct_CC=$CC
2138 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
2139 1.1 christos set dummy gcc; ac_word=$2
2140 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2144 1.1 christos else
2145 1.1 christos if test -n "$ac_ct_CC"; then
2146 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 1.1 christos else
2148 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 1.1 christos for as_dir in $PATH
2150 1.1 christos do
2151 1.1 christos IFS=$as_save_IFS
2152 1.1 christos test -z "$as_dir" && as_dir=.
2153 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2154 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
2156 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 1.1 christos break 2
2158 1.1 christos fi
2159 1.1 christos done
2160 1.1 christos done
2161 1.1 christos IFS=$as_save_IFS
2162 1.1 christos
2163 1.1 christos fi
2164 1.1 christos fi
2165 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166 1.1 christos if test -n "$ac_ct_CC"; then
2167 1.1 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
2169 1.1 christos else
2170 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2171 1.1 christos echo "${ECHO_T}no" >&6; }
2172 1.1 christos fi
2173 1.1 christos
2174 1.1 christos if test "x$ac_ct_CC" = x; then
2175 1.1 christos CC=""
2176 1.1 christos else
2177 1.1 christos case $cross_compiling:$ac_tool_warned in
2178 1.1 christos yes:)
2179 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2180 1.1 christos whose name does not start with the host triplet. If you think this
2181 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2182 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2183 1.1 christos whose name does not start with the host triplet. If you think this
2184 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2185 1.1 christos ac_tool_warned=yes ;;
2186 1.1 christos esac
2187 1.1 christos CC=$ac_ct_CC
2188 1.1 christos fi
2189 1.1 christos else
2190 1.1 christos CC="$ac_cv_prog_CC"
2191 1.1 christos fi
2192 1.1 christos
2193 1.1 christos if test -z "$CC"; then
2194 1.1 christos if test -n "$ac_tool_prefix"; then
2195 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2196 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
2197 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2200 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2201 1.1 christos else
2202 1.1 christos if test -n "$CC"; then
2203 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2204 1.1 christos else
2205 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 1.1 christos for as_dir in $PATH
2207 1.1 christos do
2208 1.1 christos IFS=$as_save_IFS
2209 1.1 christos test -z "$as_dir" && as_dir=.
2210 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2211 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
2213 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 1.1 christos break 2
2215 1.1 christos fi
2216 1.1 christos done
2217 1.1 christos done
2218 1.1 christos IFS=$as_save_IFS
2219 1.1 christos
2220 1.1 christos fi
2221 1.1 christos fi
2222 1.1 christos CC=$ac_cv_prog_CC
2223 1.1 christos if test -n "$CC"; then
2224 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2225 1.1 christos echo "${ECHO_T}$CC" >&6; }
2226 1.1 christos else
2227 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2228 1.1 christos echo "${ECHO_T}no" >&6; }
2229 1.1 christos fi
2230 1.1 christos
2231 1.1 christos
2232 1.1 christos fi
2233 1.1 christos fi
2234 1.1 christos if test -z "$CC"; then
2235 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
2236 1.1 christos set dummy cc; ac_word=$2
2237 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2240 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2241 1.1 christos else
2242 1.1 christos if test -n "$CC"; then
2243 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2244 1.1 christos else
2245 1.1 christos ac_prog_rejected=no
2246 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 1.1 christos for as_dir in $PATH
2248 1.1 christos do
2249 1.1 christos IFS=$as_save_IFS
2250 1.1 christos test -z "$as_dir" && as_dir=.
2251 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2252 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2254 1.1 christos ac_prog_rejected=yes
2255 1.1 christos continue
2256 1.1 christos fi
2257 1.1 christos ac_cv_prog_CC="cc"
2258 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 1.1 christos break 2
2260 1.1 christos fi
2261 1.1 christos done
2262 1.1 christos done
2263 1.1 christos IFS=$as_save_IFS
2264 1.1 christos
2265 1.1 christos if test $ac_prog_rejected = yes; then
2266 1.1 christos # We found a bogon in the path, so make sure we never use it.
2267 1.1 christos set dummy $ac_cv_prog_CC
2268 1.1 christos shift
2269 1.1 christos if test $# != 0; then
2270 1.1 christos # We chose a different compiler from the bogus one.
2271 1.1 christos # However, it has the same basename, so the bogon will be chosen
2272 1.1 christos # first if we set CC to just the basename; use the full file name.
2273 1.1 christos shift
2274 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275 1.1 christos fi
2276 1.1 christos fi
2277 1.1 christos fi
2278 1.1 christos fi
2279 1.1 christos CC=$ac_cv_prog_CC
2280 1.1 christos if test -n "$CC"; then
2281 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2282 1.1 christos echo "${ECHO_T}$CC" >&6; }
2283 1.1 christos else
2284 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2285 1.1 christos echo "${ECHO_T}no" >&6; }
2286 1.1 christos fi
2287 1.1 christos
2288 1.1 christos
2289 1.1 christos fi
2290 1.1 christos if test -z "$CC"; then
2291 1.1 christos if test -n "$ac_tool_prefix"; then
2292 1.1 christos for ac_prog in cl.exe
2293 1.1 christos do
2294 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2296 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2299 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2300 1.1 christos else
2301 1.1 christos if test -n "$CC"; then
2302 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2303 1.1 christos else
2304 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 1.1 christos for as_dir in $PATH
2306 1.1 christos do
2307 1.1 christos IFS=$as_save_IFS
2308 1.1 christos test -z "$as_dir" && as_dir=.
2309 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2310 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2312 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 1.1 christos break 2
2314 1.1 christos fi
2315 1.1 christos done
2316 1.1 christos done
2317 1.1 christos IFS=$as_save_IFS
2318 1.1 christos
2319 1.1 christos fi
2320 1.1 christos fi
2321 1.1 christos CC=$ac_cv_prog_CC
2322 1.1 christos if test -n "$CC"; then
2323 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2324 1.1 christos echo "${ECHO_T}$CC" >&6; }
2325 1.1 christos else
2326 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2327 1.1 christos echo "${ECHO_T}no" >&6; }
2328 1.1 christos fi
2329 1.1 christos
2330 1.1 christos
2331 1.1 christos test -n "$CC" && break
2332 1.1 christos done
2333 1.1 christos fi
2334 1.1 christos if test -z "$CC"; then
2335 1.1 christos ac_ct_CC=$CC
2336 1.1 christos for ac_prog in cl.exe
2337 1.1 christos do
2338 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 1.1 christos set dummy $ac_prog; ac_word=$2
2340 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2344 1.1 christos else
2345 1.1 christos if test -n "$ac_ct_CC"; then
2346 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 1.1 christos else
2348 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 1.1 christos for as_dir in $PATH
2350 1.1 christos do
2351 1.1 christos IFS=$as_save_IFS
2352 1.1 christos test -z "$as_dir" && as_dir=.
2353 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2354 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
2356 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 1.1 christos break 2
2358 1.1 christos fi
2359 1.1 christos done
2360 1.1 christos done
2361 1.1 christos IFS=$as_save_IFS
2362 1.1 christos
2363 1.1 christos fi
2364 1.1 christos fi
2365 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366 1.1 christos if test -n "$ac_ct_CC"; then
2367 1.1 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
2369 1.1 christos else
2370 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2371 1.1 christos echo "${ECHO_T}no" >&6; }
2372 1.1 christos fi
2373 1.1 christos
2374 1.1 christos
2375 1.1 christos test -n "$ac_ct_CC" && break
2376 1.1 christos done
2377 1.1 christos
2378 1.1 christos if test "x$ac_ct_CC" = x; then
2379 1.1 christos CC=""
2380 1.1 christos else
2381 1.1 christos case $cross_compiling:$ac_tool_warned in
2382 1.1 christos yes:)
2383 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384 1.1 christos whose name does not start with the host triplet. If you think this
2385 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2386 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387 1.1 christos whose name does not start with the host triplet. If you think this
2388 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2389 1.1 christos ac_tool_warned=yes ;;
2390 1.1 christos esac
2391 1.1 christos CC=$ac_ct_CC
2392 1.1 christos fi
2393 1.1 christos fi
2394 1.1 christos
2395 1.1 christos fi
2396 1.1 christos
2397 1.1 christos
2398 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2399 1.1 christos See \`config.log' for more details." >&5
2400 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH
2401 1.1 christos See \`config.log' for more details." >&2;}
2402 1.1 christos { (exit 1); exit 1; }; }
2403 1.1 christos
2404 1.1 christos # Provide some information about the compiler.
2405 1.1 christos echo "$as_me:$LINENO: checking for C compiler version" >&5
2406 1.1 christos ac_compiler=`set X $ac_compile; echo $2`
2407 1.1 christos { (ac_try="$ac_compiler --version >&5"
2408 1.1 christos case "(($ac_try" in
2409 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 1.1 christos *) ac_try_echo=$ac_try;;
2411 1.1 christos esac
2412 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 1.1 christos (eval "$ac_compiler --version >&5") 2>&5
2414 1.1 christos ac_status=$?
2415 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 1.1 christos (exit $ac_status); }
2417 1.1 christos { (ac_try="$ac_compiler -v >&5"
2418 1.1 christos case "(($ac_try" in
2419 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 1.1 christos *) ac_try_echo=$ac_try;;
2421 1.1 christos esac
2422 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 1.1 christos (eval "$ac_compiler -v >&5") 2>&5
2424 1.1 christos ac_status=$?
2425 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 1.1 christos (exit $ac_status); }
2427 1.1 christos { (ac_try="$ac_compiler -V >&5"
2428 1.1 christos case "(($ac_try" in
2429 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 1.1 christos *) ac_try_echo=$ac_try;;
2431 1.1 christos esac
2432 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 1.1 christos (eval "$ac_compiler -V >&5") 2>&5
2434 1.1 christos ac_status=$?
2435 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 1.1 christos (exit $ac_status); }
2437 1.1 christos
2438 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2439 1.1 christos /* confdefs.h. */
2440 1.1 christos _ACEOF
2441 1.1 christos cat confdefs.h >>conftest.$ac_ext
2442 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2443 1.1 christos /* end confdefs.h. */
2444 1.1 christos
2445 1.1 christos int
2446 1.1 christos main ()
2447 1.1 christos {
2448 1.1 christos
2449 1.1 christos ;
2450 1.1 christos return 0;
2451 1.1 christos }
2452 1.1 christos _ACEOF
2453 1.1 christos ac_clean_files_save=$ac_clean_files
2454 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
2455 1.1 christos # Try to create an executable without -o first, disregard a.out.
2456 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
2457 1.1 christos # of exeext.
2458 1.1 christos { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2459 1.1 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2460 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2461 1.1 christos #
2462 1.1 christos # List of possible output files, starting from the most likely.
2463 1.1 christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2464 1.1 christos # only as a last resort. b.out is created by i960 compilers.
2465 1.1 christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2466 1.1 christos #
2467 1.1 christos # The IRIX 6 linker writes into existing files which may not be
2468 1.1 christos # executable, retaining their permissions. Remove them first so a
2469 1.1 christos # subsequent execution test works.
2470 1.1 christos ac_rmfiles=
2471 1.1 christos for ac_file in $ac_files
2472 1.1 christos do
2473 1.1 christos case $ac_file in
2474 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2475 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2476 1.1 christos esac
2477 1.1 christos done
2478 1.1 christos rm -f $ac_rmfiles
2479 1.1 christos
2480 1.1 christos if { (ac_try="$ac_link_default"
2481 1.1 christos case "(($ac_try" in
2482 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 1.1 christos *) ac_try_echo=$ac_try;;
2484 1.1 christos esac
2485 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 1.1 christos (eval "$ac_link_default") 2>&5
2487 1.1 christos ac_status=$?
2488 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 1.1 christos (exit $ac_status); }; then
2490 1.1 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2491 1.1 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2492 1.1 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
2493 1.1 christos # so that the user can short-circuit this test for compilers unknown to
2494 1.1 christos # Autoconf.
2495 1.1 christos for ac_file in $ac_files ''
2496 1.1 christos do
2497 1.1 christos test -f "$ac_file" || continue
2498 1.1 christos case $ac_file in
2499 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2500 1.1 christos ;;
2501 1.1 christos [ab].out )
2502 1.1 christos # We found the default executable, but exeext='' is most
2503 1.1 christos # certainly right.
2504 1.1 christos break;;
2505 1.1 christos *.* )
2506 1.1 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2507 1.1 christos then :; else
2508 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 1.1 christos fi
2510 1.1 christos # We set ac_cv_exeext here because the later test for it is not
2511 1.1 christos # safe: cross compilers may not add the suffix if given an `-o'
2512 1.1 christos # argument, so we may need to know it at that point already.
2513 1.1 christos # Even if this section looks crufty: it has the advantage of
2514 1.1 christos # actually working.
2515 1.1 christos break;;
2516 1.1 christos * )
2517 1.1 christos break;;
2518 1.1 christos esac
2519 1.1 christos done
2520 1.1 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
2521 1.1 christos
2522 1.1 christos else
2523 1.1 christos ac_file=''
2524 1.1 christos fi
2525 1.1 christos
2526 1.1 christos { echo "$as_me:$LINENO: result: $ac_file" >&5
2527 1.1 christos echo "${ECHO_T}$ac_file" >&6; }
2528 1.1 christos if test -z "$ac_file"; then
2529 1.1 christos echo "$as_me: failed program was:" >&5
2530 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2531 1.1 christos
2532 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2533 1.1 christos See \`config.log' for more details." >&5
2534 1.1 christos echo "$as_me: error: C compiler cannot create executables
2535 1.1 christos See \`config.log' for more details." >&2;}
2536 1.1 christos { (exit 77); exit 77; }; }
2537 1.1 christos fi
2538 1.1 christos
2539 1.1 christos ac_exeext=$ac_cv_exeext
2540 1.1 christos
2541 1.1 christos # Check that the compiler produces executables we can run. If not, either
2542 1.1 christos # the compiler is broken, or we cross compile.
2543 1.1 christos { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2544 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2545 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2546 1.1 christos # If not cross compiling, check that we can run a simple program.
2547 1.1 christos if test "$cross_compiling" != yes; then
2548 1.1 christos if { ac_try='./$ac_file'
2549 1.1 christos { (case "(($ac_try" in
2550 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 1.1 christos *) ac_try_echo=$ac_try;;
2552 1.1 christos esac
2553 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 1.1 christos (eval "$ac_try") 2>&5
2555 1.1 christos ac_status=$?
2556 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 1.1 christos (exit $ac_status); }; }; then
2558 1.1 christos cross_compiling=no
2559 1.1 christos else
2560 1.1 christos if test "$cross_compiling" = maybe; then
2561 1.1 christos cross_compiling=yes
2562 1.1 christos else
2563 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 1.1 christos If you meant to cross compile, use \`--host'.
2565 1.1 christos See \`config.log' for more details." >&5
2566 1.1 christos echo "$as_me: error: cannot run C compiled programs.
2567 1.1 christos If you meant to cross compile, use \`--host'.
2568 1.1 christos See \`config.log' for more details." >&2;}
2569 1.1 christos { (exit 1); exit 1; }; }
2570 1.1 christos fi
2571 1.1 christos fi
2572 1.1 christos fi
2573 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
2574 1.1 christos echo "${ECHO_T}yes" >&6; }
2575 1.1 christos
2576 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 1.1 christos ac_clean_files=$ac_clean_files_save
2578 1.1 christos # Check that the compiler produces executables we can run. If not, either
2579 1.1 christos # the compiler is broken, or we cross compile.
2580 1.1 christos { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2582 1.1 christos { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 1.1 christos echo "${ECHO_T}$cross_compiling" >&6; }
2584 1.1 christos
2585 1.1 christos { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2587 1.1 christos if { (ac_try="$ac_link"
2588 1.1 christos case "(($ac_try" in
2589 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 1.1 christos *) ac_try_echo=$ac_try;;
2591 1.1 christos esac
2592 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 1.1 christos (eval "$ac_link") 2>&5
2594 1.1 christos ac_status=$?
2595 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 1.1 christos (exit $ac_status); }; then
2597 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2599 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 1.1 christos # `rm'.
2601 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
2602 1.1 christos test -f "$ac_file" || continue
2603 1.1 christos case $ac_file in
2604 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2605 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606 1.1 christos break;;
2607 1.1 christos * ) break;;
2608 1.1 christos esac
2609 1.1 christos done
2610 1.1 christos else
2611 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 1.1 christos See \`config.log' for more details." >&5
2613 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 1.1 christos See \`config.log' for more details." >&2;}
2615 1.1 christos { (exit 1); exit 1; }; }
2616 1.1 christos fi
2617 1.1 christos
2618 1.1 christos rm -f conftest$ac_cv_exeext
2619 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6; }
2621 1.1 christos
2622 1.1 christos rm -f conftest.$ac_ext
2623 1.1 christos EXEEXT=$ac_cv_exeext
2624 1.1 christos ac_exeext=$EXEEXT
2625 1.1 christos { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2627 1.1 christos if test "${ac_cv_objext+set}" = set; then
2628 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2629 1.1 christos else
2630 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2631 1.1 christos /* confdefs.h. */
2632 1.1 christos _ACEOF
2633 1.1 christos cat confdefs.h >>conftest.$ac_ext
2634 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2635 1.1 christos /* end confdefs.h. */
2636 1.1 christos
2637 1.1 christos int
2638 1.1 christos main ()
2639 1.1 christos {
2640 1.1 christos
2641 1.1 christos ;
2642 1.1 christos return 0;
2643 1.1 christos }
2644 1.1 christos _ACEOF
2645 1.1 christos rm -f conftest.o conftest.obj
2646 1.1 christos if { (ac_try="$ac_compile"
2647 1.1 christos case "(($ac_try" in
2648 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 1.1 christos *) ac_try_echo=$ac_try;;
2650 1.1 christos esac
2651 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 1.1 christos (eval "$ac_compile") 2>&5
2653 1.1 christos ac_status=$?
2654 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 1.1 christos (exit $ac_status); }; then
2656 1.1 christos for ac_file in conftest.o conftest.obj conftest.*; do
2657 1.1 christos test -f "$ac_file" || continue;
2658 1.1 christos case $ac_file in
2659 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2660 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2661 1.1 christos break;;
2662 1.1 christos esac
2663 1.1 christos done
2664 1.1 christos else
2665 1.1 christos echo "$as_me: failed program was:" >&5
2666 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2667 1.1 christos
2668 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2669 1.1 christos See \`config.log' for more details." >&5
2670 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
2671 1.1 christos See \`config.log' for more details." >&2;}
2672 1.1 christos { (exit 1); exit 1; }; }
2673 1.1 christos fi
2674 1.1 christos
2675 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 1.1 christos fi
2677 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2678 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6; }
2679 1.1 christos OBJEXT=$ac_cv_objext
2680 1.1 christos ac_objext=$OBJEXT
2681 1.1 christos { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2682 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2683 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
2684 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2685 1.1 christos else
2686 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2687 1.1 christos /* confdefs.h. */
2688 1.1 christos _ACEOF
2689 1.1 christos cat confdefs.h >>conftest.$ac_ext
2690 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2691 1.1 christos /* end confdefs.h. */
2692 1.1 christos
2693 1.1 christos int
2694 1.1 christos main ()
2695 1.1 christos {
2696 1.1 christos #ifndef __GNUC__
2697 1.1 christos choke me
2698 1.1 christos #endif
2699 1.1 christos
2700 1.1 christos ;
2701 1.1 christos return 0;
2702 1.1 christos }
2703 1.1 christos _ACEOF
2704 1.1 christos rm -f conftest.$ac_objext
2705 1.1 christos if { (ac_try="$ac_compile"
2706 1.1 christos case "(($ac_try" in
2707 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 1.1 christos *) ac_try_echo=$ac_try;;
2709 1.1 christos esac
2710 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 1.1 christos (eval "$ac_compile") 2>conftest.er1
2712 1.1 christos ac_status=$?
2713 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2714 1.1 christos rm -f conftest.er1
2715 1.1 christos cat conftest.err >&5
2716 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 1.1 christos (exit $ac_status); } && {
2718 1.1 christos test -z "$ac_c_werror_flag" ||
2719 1.1 christos test ! -s conftest.err
2720 1.1 christos } && test -s conftest.$ac_objext; then
2721 1.1 christos ac_compiler_gnu=yes
2722 1.1 christos else
2723 1.1 christos echo "$as_me: failed program was:" >&5
2724 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2725 1.1 christos
2726 1.1 christos ac_compiler_gnu=no
2727 1.1 christos fi
2728 1.1 christos
2729 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
2731 1.1 christos
2732 1.1 christos fi
2733 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2734 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2735 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes`
2736 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
2737 1.1 christos ac_save_CFLAGS=$CFLAGS
2738 1.1 christos { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2739 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2740 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then
2741 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2742 1.1 christos else
2743 1.1 christos ac_save_c_werror_flag=$ac_c_werror_flag
2744 1.1 christos ac_c_werror_flag=yes
2745 1.1 christos ac_cv_prog_cc_g=no
2746 1.1 christos CFLAGS="-g"
2747 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2748 1.1 christos /* confdefs.h. */
2749 1.1 christos _ACEOF
2750 1.1 christos cat confdefs.h >>conftest.$ac_ext
2751 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2752 1.1 christos /* end confdefs.h. */
2753 1.1 christos
2754 1.1 christos int
2755 1.1 christos main ()
2756 1.1 christos {
2757 1.1 christos
2758 1.1 christos ;
2759 1.1 christos return 0;
2760 1.1 christos }
2761 1.1 christos _ACEOF
2762 1.1 christos rm -f conftest.$ac_objext
2763 1.1 christos if { (ac_try="$ac_compile"
2764 1.1 christos case "(($ac_try" in
2765 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 1.1 christos *) ac_try_echo=$ac_try;;
2767 1.1 christos esac
2768 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 1.1 christos (eval "$ac_compile") 2>conftest.er1
2770 1.1 christos ac_status=$?
2771 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2772 1.1 christos rm -f conftest.er1
2773 1.1 christos cat conftest.err >&5
2774 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 1.1 christos (exit $ac_status); } && {
2776 1.1 christos test -z "$ac_c_werror_flag" ||
2777 1.1 christos test ! -s conftest.err
2778 1.1 christos } && test -s conftest.$ac_objext; then
2779 1.1 christos ac_cv_prog_cc_g=yes
2780 1.1 christos else
2781 1.1 christos echo "$as_me: failed program was:" >&5
2782 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2783 1.1 christos
2784 1.1 christos CFLAGS=""
2785 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2786 1.1 christos /* confdefs.h. */
2787 1.1 christos _ACEOF
2788 1.1 christos cat confdefs.h >>conftest.$ac_ext
2789 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2790 1.1 christos /* end confdefs.h. */
2791 1.1 christos
2792 1.1 christos int
2793 1.1 christos main ()
2794 1.1 christos {
2795 1.1 christos
2796 1.1 christos ;
2797 1.1 christos return 0;
2798 1.1 christos }
2799 1.1 christos _ACEOF
2800 1.1 christos rm -f conftest.$ac_objext
2801 1.1 christos if { (ac_try="$ac_compile"
2802 1.1 christos case "(($ac_try" in
2803 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 1.1 christos *) ac_try_echo=$ac_try;;
2805 1.1 christos esac
2806 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 1.1 christos (eval "$ac_compile") 2>conftest.er1
2808 1.1 christos ac_status=$?
2809 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2810 1.1 christos rm -f conftest.er1
2811 1.1 christos cat conftest.err >&5
2812 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 1.1 christos (exit $ac_status); } && {
2814 1.1 christos test -z "$ac_c_werror_flag" ||
2815 1.1 christos test ! -s conftest.err
2816 1.1 christos } && test -s conftest.$ac_objext; then
2817 1.1 christos :
2818 1.1 christos else
2819 1.1 christos echo "$as_me: failed program was:" >&5
2820 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2821 1.1 christos
2822 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2823 1.1 christos CFLAGS="-g"
2824 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2825 1.1 christos /* confdefs.h. */
2826 1.1 christos _ACEOF
2827 1.1 christos cat confdefs.h >>conftest.$ac_ext
2828 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2829 1.1 christos /* end confdefs.h. */
2830 1.1 christos
2831 1.1 christos int
2832 1.1 christos main ()
2833 1.1 christos {
2834 1.1 christos
2835 1.1 christos ;
2836 1.1 christos return 0;
2837 1.1 christos }
2838 1.1 christos _ACEOF
2839 1.1 christos rm -f conftest.$ac_objext
2840 1.1 christos if { (ac_try="$ac_compile"
2841 1.1 christos case "(($ac_try" in
2842 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 1.1 christos *) ac_try_echo=$ac_try;;
2844 1.1 christos esac
2845 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 1.1 christos (eval "$ac_compile") 2>conftest.er1
2847 1.1 christos ac_status=$?
2848 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2849 1.1 christos rm -f conftest.er1
2850 1.1 christos cat conftest.err >&5
2851 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 1.1 christos (exit $ac_status); } && {
2853 1.1 christos test -z "$ac_c_werror_flag" ||
2854 1.1 christos test ! -s conftest.err
2855 1.1 christos } && test -s conftest.$ac_objext; then
2856 1.1 christos ac_cv_prog_cc_g=yes
2857 1.1 christos else
2858 1.1 christos echo "$as_me: failed program was:" >&5
2859 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2860 1.1 christos
2861 1.1 christos
2862 1.1 christos fi
2863 1.1 christos
2864 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 1.1 christos fi
2866 1.1 christos
2867 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 1.1 christos fi
2869 1.1 christos
2870 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2872 1.1 christos fi
2873 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2874 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2875 1.1 christos if test "$ac_test_CFLAGS" = set; then
2876 1.1 christos CFLAGS=$ac_save_CFLAGS
2877 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
2878 1.1 christos if test "$GCC" = yes; then
2879 1.1 christos CFLAGS="-g -O2"
2880 1.1 christos else
2881 1.1 christos CFLAGS="-g"
2882 1.1 christos fi
2883 1.1 christos else
2884 1.1 christos if test "$GCC" = yes; then
2885 1.1 christos CFLAGS="-O2"
2886 1.1 christos else
2887 1.1 christos CFLAGS=
2888 1.1 christos fi
2889 1.1 christos fi
2890 1.1 christos { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2891 1.1 christos echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2892 1.1 christos if test "${ac_cv_prog_cc_c89+set}" = set; then
2893 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2894 1.1 christos else
2895 1.1 christos ac_cv_prog_cc_c89=no
2896 1.1 christos ac_save_CC=$CC
2897 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2898 1.1 christos /* confdefs.h. */
2899 1.1 christos _ACEOF
2900 1.1 christos cat confdefs.h >>conftest.$ac_ext
2901 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2902 1.1 christos /* end confdefs.h. */
2903 1.1 christos #include <stdarg.h>
2904 1.1 christos #include <stdio.h>
2905 1.1 christos #include <sys/types.h>
2906 1.1 christos #include <sys/stat.h>
2907 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2908 1.1 christos struct buf { int x; };
2909 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
2910 1.1 christos static char *e (p, i)
2911 1.1 christos char **p;
2912 1.1 christos int i;
2913 1.1 christos {
2914 1.1 christos return p[i];
2915 1.1 christos }
2916 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
2917 1.1 christos {
2918 1.1 christos char *s;
2919 1.1 christos va_list v;
2920 1.1 christos va_start (v,p);
2921 1.1 christos s = g (p, va_arg (v,int));
2922 1.1 christos va_end (v);
2923 1.1 christos return s;
2924 1.1 christos }
2925 1.1 christos
2926 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2927 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
2928 1.1 christos These don't provoke an error unfortunately, instead are silently treated
2929 1.1 christos as 'x'. The following induces an error, until -std is added to get
2930 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2931 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
2932 1.1 christos that's true only with -std. */
2933 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2934 1.1 christos
2935 1.1 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2936 1.1 christos inside strings and character constants. */
2937 1.1 christos #define FOO(x) 'x'
2938 1.1 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2939 1.1 christos
2940 1.1 christos int test (int i, double x);
2941 1.1 christos struct s1 {int (*f) (int a);};
2942 1.1 christos struct s2 {int (*f) (double a);};
2943 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944 1.1 christos int argc;
2945 1.1 christos char **argv;
2946 1.1 christos int
2947 1.1 christos main ()
2948 1.1 christos {
2949 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2950 1.1 christos ;
2951 1.1 christos return 0;
2952 1.1 christos }
2953 1.1 christos _ACEOF
2954 1.1 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2955 1.1 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 1.1 christos do
2957 1.1 christos CC="$ac_save_CC $ac_arg"
2958 1.1 christos rm -f conftest.$ac_objext
2959 1.1 christos if { (ac_try="$ac_compile"
2960 1.1 christos case "(($ac_try" in
2961 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 1.1 christos *) ac_try_echo=$ac_try;;
2963 1.1 christos esac
2964 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 1.1 christos (eval "$ac_compile") 2>conftest.er1
2966 1.1 christos ac_status=$?
2967 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2968 1.1 christos rm -f conftest.er1
2969 1.1 christos cat conftest.err >&5
2970 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 1.1 christos (exit $ac_status); } && {
2972 1.1 christos test -z "$ac_c_werror_flag" ||
2973 1.1 christos test ! -s conftest.err
2974 1.1 christos } && test -s conftest.$ac_objext; then
2975 1.1 christos ac_cv_prog_cc_c89=$ac_arg
2976 1.1 christos else
2977 1.1 christos echo "$as_me: failed program was:" >&5
2978 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2979 1.1 christos
2980 1.1 christos
2981 1.1 christos fi
2982 1.1 christos
2983 1.1 christos rm -f core conftest.err conftest.$ac_objext
2984 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
2985 1.1 christos done
2986 1.1 christos rm -f conftest.$ac_ext
2987 1.1 christos CC=$ac_save_CC
2988 1.1 christos
2989 1.1 christos fi
2990 1.1 christos # AC_CACHE_VAL
2991 1.1 christos case "x$ac_cv_prog_cc_c89" in
2992 1.1 christos x)
2993 1.1 christos { echo "$as_me:$LINENO: result: none needed" >&5
2994 1.1 christos echo "${ECHO_T}none needed" >&6; } ;;
2995 1.1 christos xno)
2996 1.1 christos { echo "$as_me:$LINENO: result: unsupported" >&5
2997 1.1 christos echo "${ECHO_T}unsupported" >&6; } ;;
2998 1.1 christos *)
2999 1.1 christos CC="$CC $ac_cv_prog_cc_c89"
3000 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3001 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3002 1.1 christos esac
3003 1.1 christos
3004 1.1 christos
3005 1.1 christos ac_ext=c
3006 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3007 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 1.1 christos
3011 1.1 christos if test "$ac_cv_c_compiler_gnu" = "yes"; then
3012 1.1 christos ax_cv_c_compiler_vendor="gnu"
3013 1.1 christos else
3014 1.1 christos
3015 1.1 christos
3016 1.1 christos { echo "$as_me:$LINENO: checking for C compiler vendor" >&5
3017 1.1 christos echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6; }
3018 1.1 christos if test "${ax_cv_c_compiler_vendor+set}" = set; then
3019 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3020 1.1 christos else
3021 1.1 christos ax_cv_c_compiler_vendor=unknown
3022 1.1 christos # note: don't check for gcc first since some other compilers define __GNUC__
3023 1.1 christos for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
3024 1.1 christos vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
3025 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3026 1.1 christos /* confdefs.h. */
3027 1.1 christos _ACEOF
3028 1.1 christos cat confdefs.h >>conftest.$ac_ext
3029 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3030 1.1 christos /* end confdefs.h. */
3031 1.1 christos
3032 1.1 christos int
3033 1.1 christos main ()
3034 1.1 christos {
3035 1.1 christos
3036 1.1 christos #if !($vencpp)
3037 1.1 christos thisisanerror;
3038 1.1 christos #endif
3039 1.1 christos
3040 1.1 christos ;
3041 1.1 christos return 0;
3042 1.1 christos }
3043 1.1 christos _ACEOF
3044 1.1 christos rm -f conftest.$ac_objext
3045 1.1 christos if { (ac_try="$ac_compile"
3046 1.1 christos case "(($ac_try" in
3047 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 1.1 christos *) ac_try_echo=$ac_try;;
3049 1.1 christos esac
3050 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 1.1 christos (eval "$ac_compile") 2>conftest.er1
3052 1.1 christos ac_status=$?
3053 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3054 1.1 christos rm -f conftest.er1
3055 1.1 christos cat conftest.err >&5
3056 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 1.1 christos (exit $ac_status); } && {
3058 1.1 christos test -z "$ac_c_werror_flag" ||
3059 1.1 christos test ! -s conftest.err
3060 1.1 christos } && test -s conftest.$ac_objext; then
3061 1.1 christos ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
3062 1.1 christos else
3063 1.1 christos echo "$as_me: failed program was:" >&5
3064 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3065 1.1 christos
3066 1.1 christos
3067 1.1 christos fi
3068 1.1 christos
3069 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 1.1 christos done
3071 1.1 christos
3072 1.1 christos fi
3073 1.1 christos { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5
3074 1.1 christos echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6; }
3075 1.1 christos
3076 1.1 christos fi
3077 1.1 christos for ac_prog in gawk mawk nawk awk
3078 1.1 christos do
3079 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 1.1 christos set dummy $ac_prog; ac_word=$2
3081 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then
3084 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3085 1.1 christos else
3086 1.1 christos if test -n "$AWK"; then
3087 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test.
3088 1.1 christos else
3089 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 1.1 christos for as_dir in $PATH
3091 1.1 christos do
3092 1.1 christos IFS=$as_save_IFS
3093 1.1 christos test -z "$as_dir" && as_dir=.
3094 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3095 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 1.1 christos ac_cv_prog_AWK="$ac_prog"
3097 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 1.1 christos break 2
3099 1.1 christos fi
3100 1.1 christos done
3101 1.1 christos done
3102 1.1 christos IFS=$as_save_IFS
3103 1.1 christos
3104 1.1 christos fi
3105 1.1 christos fi
3106 1.1 christos AWK=$ac_cv_prog_AWK
3107 1.1 christos if test -n "$AWK"; then
3108 1.1 christos { echo "$as_me:$LINENO: result: $AWK" >&5
3109 1.1 christos echo "${ECHO_T}$AWK" >&6; }
3110 1.1 christos else
3111 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
3112 1.1 christos echo "${ECHO_T}no" >&6; }
3113 1.1 christos fi
3114 1.1 christos
3115 1.1 christos
3116 1.1 christos test -n "$AWK" && break
3117 1.1 christos done
3118 1.1 christos
3119 1.1 christos # Find a good install program. We prefer a C program (faster),
3120 1.1 christos # so one script is as good as another. But avoid the broken or
3121 1.1 christos # incompatible versions:
3122 1.1 christos # SysV /etc/install, /usr/sbin/install
3123 1.1 christos # SunOS /usr/etc/install
3124 1.1 christos # IRIX /sbin/install
3125 1.1 christos # AIX /bin/install
3126 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
3127 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3128 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3129 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3130 1.1 christos # OS/2's system install, which has a completely different semantic
3131 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
3132 1.1 christos { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3133 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3134 1.1 christos if test -z "$INSTALL"; then
3135 1.1 christos if test "${ac_cv_path_install+set}" = set; then
3136 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3137 1.1 christos else
3138 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 1.1 christos for as_dir in $PATH
3140 1.1 christos do
3141 1.1 christos IFS=$as_save_IFS
3142 1.1 christos test -z "$as_dir" && as_dir=.
3143 1.1 christos # Account for people who put trailing slashes in PATH elements.
3144 1.1 christos case $as_dir/ in
3145 1.1 christos ./ | .// | /cC/* | \
3146 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3147 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3148 1.1 christos /usr/ucb/* ) ;;
3149 1.1 christos *)
3150 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
3151 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
3152 1.1 christos # by default.
3153 1.1 christos for ac_prog in ginstall scoinst install; do
3154 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3155 1.1 christos if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3156 1.1 christos if test $ac_prog = install &&
3157 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3158 1.1 christos # AIX install. It has an incompatible calling convention.
3159 1.1 christos :
3160 1.1 christos elif test $ac_prog = install &&
3161 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3162 1.1 christos # program-specific install script used by HP pwplus--don't use.
3163 1.1 christos :
3164 1.1 christos else
3165 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3166 1.1 christos break 3
3167 1.1 christos fi
3168 1.1 christos fi
3169 1.1 christos done
3170 1.1 christos done
3171 1.1 christos ;;
3172 1.1 christos esac
3173 1.1 christos done
3174 1.1 christos IFS=$as_save_IFS
3175 1.1 christos
3176 1.1 christos
3177 1.1 christos fi
3178 1.1 christos if test "${ac_cv_path_install+set}" = set; then
3179 1.1 christos INSTALL=$ac_cv_path_install
3180 1.1 christos else
3181 1.1 christos # As a last resort, use the slow shell script. Don't cache a
3182 1.1 christos # value for INSTALL within a source directory, because that will
3183 1.1 christos # break other packages using the cache if that directory is
3184 1.1 christos # removed, or if the value is a relative name.
3185 1.1 christos INSTALL=$ac_install_sh
3186 1.1 christos fi
3187 1.1 christos fi
3188 1.1 christos { echo "$as_me:$LINENO: result: $INSTALL" >&5
3189 1.1 christos echo "${ECHO_T}$INSTALL" >&6; }
3190 1.1 christos
3191 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3192 1.1 christos # It thinks the first close brace ends the variable substitution.
3193 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3194 1.1 christos
3195 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3196 1.1 christos
3197 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3198 1.1 christos
3199 1.1 christos for ac_prog in isainfo
3200 1.1 christos do
3201 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 1.1 christos set dummy $ac_prog; ac_word=$2
3203 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3205 1.1 christos if test "${ac_cv_path_ISAINFO+set}" = set; then
3206 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3207 1.1 christos else
3208 1.1 christos case $ISAINFO in
3209 1.1 christos [\\/]* | ?:[\\/]*)
3210 1.1 christos ac_cv_path_ISAINFO="$ISAINFO" # Let the user override the test with a path.
3211 1.1 christos ;;
3212 1.1 christos *)
3213 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 1.1 christos for as_dir in $PATH
3215 1.1 christos do
3216 1.1 christos IFS=$as_save_IFS
3217 1.1 christos test -z "$as_dir" && as_dir=.
3218 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3219 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 1.1 christos ac_cv_path_ISAINFO="$as_dir/$ac_word$ac_exec_ext"
3221 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 1.1 christos break 2
3223 1.1 christos fi
3224 1.1 christos done
3225 1.1 christos done
3226 1.1 christos IFS=$as_save_IFS
3227 1.1 christos
3228 1.1 christos ;;
3229 1.1 christos esac
3230 1.1 christos fi
3231 1.1 christos ISAINFO=$ac_cv_path_ISAINFO
3232 1.1 christos if test -n "$ISAINFO"; then
3233 1.1 christos { echo "$as_me:$LINENO: result: $ISAINFO" >&5
3234 1.1 christos echo "${ECHO_T}$ISAINFO" >&6; }
3235 1.1 christos else
3236 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
3237 1.1 christos echo "${ECHO_T}no" >&6; }
3238 1.1 christos fi
3239 1.1 christos
3240 1.1 christos
3241 1.1 christos test -n "$ISAINFO" && break
3242 1.1 christos done
3243 1.1 christos
3244 1.1 christos for ac_prog in isaexec
3245 1.1 christos do
3246 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 1.1 christos set dummy $ac_prog; ac_word=$2
3248 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3250 1.1 christos if test "${ac_cv_path_ISAEXEC+set}" = set; then
3251 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3252 1.1 christos else
3253 1.1 christos case $ISAEXEC in
3254 1.1 christos [\\/]* | ?:[\\/]*)
3255 1.1 christos ac_cv_path_ISAEXEC="$ISAEXEC" # Let the user override the test with a path.
3256 1.1 christos ;;
3257 1.1 christos *)
3258 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 1.1 christos as_dummy="$PATH:/usr/lib:/lib"
3260 1.1 christos for as_dir in $as_dummy
3261 1.1 christos do
3262 1.1 christos IFS=$as_save_IFS
3263 1.1 christos test -z "$as_dir" && as_dir=.
3264 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3265 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 1.1 christos ac_cv_path_ISAEXEC="$as_dir/$ac_word$ac_exec_ext"
3267 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 1.1 christos break 2
3269 1.1 christos fi
3270 1.1 christos done
3271 1.1 christos done
3272 1.1 christos IFS=$as_save_IFS
3273 1.1 christos
3274 1.1 christos ;;
3275 1.1 christos esac
3276 1.1 christos fi
3277 1.1 christos ISAEXEC=$ac_cv_path_ISAEXEC
3278 1.1 christos if test -n "$ISAEXEC"; then
3279 1.1 christos { echo "$as_me:$LINENO: result: $ISAEXEC" >&5
3280 1.1 christos echo "${ECHO_T}$ISAEXEC" >&6; }
3281 1.1 christos else
3282 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
3283 1.1 christos echo "${ECHO_T}no" >&6; }
3284 1.1 christos fi
3285 1.1 christos
3286 1.1 christos
3287 1.1 christos test -n "$ISAEXEC" && break
3288 1.1 christos done
3289 1.1 christos
3290 1.1 christos for ac_prog in uname
3291 1.1 christos do
3292 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 1.1 christos set dummy $ac_prog; ac_word=$2
3294 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296 1.1 christos if test "${ac_cv_path_UNAME+set}" = set; then
3297 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3298 1.1 christos else
3299 1.1 christos case $UNAME in
3300 1.1 christos [\\/]* | ?:[\\/]*)
3301 1.1 christos ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3302 1.1 christos ;;
3303 1.1 christos *)
3304 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 1.1 christos for as_dir in $PATH
3306 1.1 christos do
3307 1.1 christos IFS=$as_save_IFS
3308 1.1 christos test -z "$as_dir" && as_dir=.
3309 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3310 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 1.1 christos ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3312 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 1.1 christos break 2
3314 1.1 christos fi
3315 1.1 christos done
3316 1.1 christos done
3317 1.1 christos IFS=$as_save_IFS
3318 1.1 christos
3319 1.1 christos ;;
3320 1.1 christos esac
3321 1.1 christos fi
3322 1.1 christos UNAME=$ac_cv_path_UNAME
3323 1.1 christos if test -n "$UNAME"; then
3324 1.1 christos { echo "$as_me:$LINENO: result: $UNAME" >&5
3325 1.1 christos echo "${ECHO_T}$UNAME" >&6; }
3326 1.1 christos else
3327 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
3328 1.1 christos echo "${ECHO_T}no" >&6; }
3329 1.1 christos fi
3330 1.1 christos
3331 1.1 christos
3332 1.1 christos test -n "$UNAME" && break
3333 1.1 christos done
3334 1.1 christos
3335 1.1 christos
3336 1.1 christos
3337 1.1 christos # system checks require uname
3338 1.1 christos if test "$UNAME"; then
3339 1.1 christos # we make the version number available as a C preprocessor definition
3340 1.1 christos { echo "$as_me:$LINENO: checking OS revision number" >&5
3341 1.1 christos echo $ECHO_N "checking OS revision number... $ECHO_C" >&6; }
3342 1.1 christos osrev=`$UNAME -r | tr -cd ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`
3343 1.1 christos
3344 1.1 christos if test "$osrev" != "unknown" ; then
3345 1.1 christos
3346 1.1 christos cat >>confdefs.h <<_ACEOF
3347 1.1 christos #define OSREV $osrev
3348 1.1 christos _ACEOF
3349 1.1 christos
3350 1.1 christos osmajor=`$UNAME -r | sed 's/^\([0-9]*\).*$/\1/'`
3351 1.1 christos if test -n "$osmajor"; then
3352 1.1 christos
3353 1.1 christos cat >>confdefs.h <<_ACEOF
3354 1.1 christos #define OSMAJOR $osmajor
3355 1.1 christos _ACEOF
3356 1.1 christos
3357 1.1 christos fi
3358 1.1 christos else
3359 1.1 christos cat >>confdefs.h <<\_ACEOF
3360 1.1 christos #define OSREV ""
3361 1.1 christos _ACEOF
3362 1.1 christos
3363 1.1 christos fi
3364 1.1 christos { echo "$as_me:$LINENO: result: $osrev" >&5
3365 1.1 christos echo "${ECHO_T}$osrev" >&6; }
3366 1.1 christos
3367 1.1 christos # we make the non-canonicalized hardware type available
3368 1.1 christos { echo "$as_me:$LINENO: checking hardware platform" >&5
3369 1.1 christos echo $ECHO_N "checking hardware platform... $ECHO_C" >&6; }
3370 1.1 christos UNAME_HARDWARE=`$UNAME -m`
3371 1.1 christos if test "$UNAME_HARDWARE" != "unknown"; then
3372 1.1 christos
3373 1.1 christos cat >>confdefs.h <<_ACEOF
3374 1.1 christos #define UNAME_HARDWARE "$UNAME_HARDWARE"
3375 1.1 christos _ACEOF
3376 1.1 christos
3377 1.1 christos fi
3378 1.1 christos { echo "$as_me:$LINENO: result: $UNAME_HARDWARE" >&5
3379 1.1 christos echo "${ECHO_T}$UNAME_HARDWARE" >&6; }
3380 1.1 christos fi
3381 1.1 christos
3382 1.1 christos # checks for libraries
3383 1.1 christos
3384 1.1 christos { echo "$as_me:$LINENO: checking for elf32_getphdr in -lelf" >&5
3385 1.1 christos echo $ECHO_N "checking for elf32_getphdr in -lelf... $ECHO_C" >&6; }
3386 1.1 christos if test "${ac_cv_lib_elf_elf32_getphdr+set}" = set; then
3387 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3388 1.1 christos else
3389 1.1 christos ac_check_lib_save_LIBS=$LIBS
3390 1.1 christos LIBS="-lelf $LIBS"
3391 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3392 1.1 christos /* confdefs.h. */
3393 1.1 christos _ACEOF
3394 1.1 christos cat confdefs.h >>conftest.$ac_ext
3395 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3396 1.1 christos /* end confdefs.h. */
3397 1.1 christos
3398 1.1 christos /* Override any GCC internal prototype to avoid an error.
3399 1.1 christos Use char because int might match the return type of a GCC
3400 1.1 christos builtin and then its argument prototype would still apply. */
3401 1.1 christos #ifdef __cplusplus
3402 1.1 christos extern "C"
3403 1.1 christos #endif
3404 1.1 christos char elf32_getphdr ();
3405 1.1 christos int
3406 1.1 christos main ()
3407 1.1 christos {
3408 1.1 christos return elf32_getphdr ();
3409 1.1 christos ;
3410 1.1 christos return 0;
3411 1.1 christos }
3412 1.1 christos _ACEOF
3413 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3414 1.1 christos if { (ac_try="$ac_link"
3415 1.1 christos case "(($ac_try" in
3416 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 1.1 christos *) ac_try_echo=$ac_try;;
3418 1.1 christos esac
3419 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 1.1 christos (eval "$ac_link") 2>conftest.er1
3421 1.1 christos ac_status=$?
3422 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3423 1.1 christos rm -f conftest.er1
3424 1.1 christos cat conftest.err >&5
3425 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 1.1 christos (exit $ac_status); } && {
3427 1.1 christos test -z "$ac_c_werror_flag" ||
3428 1.1 christos test ! -s conftest.err
3429 1.1 christos } && test -s conftest$ac_exeext &&
3430 1.1 christos $as_test_x conftest$ac_exeext; then
3431 1.1 christos ac_cv_lib_elf_elf32_getphdr=yes
3432 1.1 christos else
3433 1.1 christos echo "$as_me: failed program was:" >&5
3434 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3435 1.1 christos
3436 1.1 christos ac_cv_lib_elf_elf32_getphdr=no
3437 1.1 christos fi
3438 1.1 christos
3439 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3440 1.1 christos conftest$ac_exeext conftest.$ac_ext
3441 1.1 christos LIBS=$ac_check_lib_save_LIBS
3442 1.1 christos fi
3443 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf32_getphdr" >&5
3444 1.1 christos echo "${ECHO_T}$ac_cv_lib_elf_elf32_getphdr" >&6; }
3445 1.1 christos if test $ac_cv_lib_elf_elf32_getphdr = yes; then
3446 1.1 christos cat >>confdefs.h <<_ACEOF
3447 1.1 christos #define HAVE_LIBELF 1
3448 1.1 christos _ACEOF
3449 1.1 christos
3450 1.1 christos LIBS="-lelf $LIBS"
3451 1.1 christos
3452 1.1 christos fi
3453 1.1 christos
3454 1.1 christos
3455 1.1 christos { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
3456 1.1 christos echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
3457 1.1 christos if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
3458 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3459 1.1 christos else
3460 1.1 christos ac_check_lib_save_LIBS=$LIBS
3461 1.1 christos LIBS="-lkstat $LIBS"
3462 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3463 1.1 christos /* confdefs.h. */
3464 1.1 christos _ACEOF
3465 1.1 christos cat confdefs.h >>conftest.$ac_ext
3466 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3467 1.1 christos /* end confdefs.h. */
3468 1.1 christos
3469 1.1 christos /* Override any GCC internal prototype to avoid an error.
3470 1.1 christos Use char because int might match the return type of a GCC
3471 1.1 christos builtin and then its argument prototype would still apply. */
3472 1.1 christos #ifdef __cplusplus
3473 1.1 christos extern "C"
3474 1.1 christos #endif
3475 1.1 christos char kstat_open ();
3476 1.1 christos int
3477 1.1 christos main ()
3478 1.1 christos {
3479 1.1 christos return kstat_open ();
3480 1.1 christos ;
3481 1.1 christos return 0;
3482 1.1 christos }
3483 1.1 christos _ACEOF
3484 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3485 1.1 christos if { (ac_try="$ac_link"
3486 1.1 christos case "(($ac_try" in
3487 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 1.1 christos *) ac_try_echo=$ac_try;;
3489 1.1 christos esac
3490 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 1.1 christos (eval "$ac_link") 2>conftest.er1
3492 1.1 christos ac_status=$?
3493 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3494 1.1 christos rm -f conftest.er1
3495 1.1 christos cat conftest.err >&5
3496 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 1.1 christos (exit $ac_status); } && {
3498 1.1 christos test -z "$ac_c_werror_flag" ||
3499 1.1 christos test ! -s conftest.err
3500 1.1 christos } && test -s conftest$ac_exeext &&
3501 1.1 christos $as_test_x conftest$ac_exeext; then
3502 1.1 christos ac_cv_lib_kstat_kstat_open=yes
3503 1.1 christos else
3504 1.1 christos echo "$as_me: failed program was:" >&5
3505 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3506 1.1 christos
3507 1.1 christos ac_cv_lib_kstat_kstat_open=no
3508 1.1 christos fi
3509 1.1 christos
3510 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3511 1.1 christos conftest$ac_exeext conftest.$ac_ext
3512 1.1 christos LIBS=$ac_check_lib_save_LIBS
3513 1.1 christos fi
3514 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
3515 1.1 christos echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
3516 1.1 christos if test $ac_cv_lib_kstat_kstat_open = yes; then
3517 1.1 christos cat >>confdefs.h <<_ACEOF
3518 1.1 christos #define HAVE_LIBKSTAT 1
3519 1.1 christos _ACEOF
3520 1.1 christos
3521 1.1 christos LIBS="-lkstat $LIBS"
3522 1.1 christos
3523 1.1 christos fi
3524 1.1 christos
3525 1.1 christos
3526 1.1 christos { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
3527 1.1 christos echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
3528 1.1 christos if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
3529 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3530 1.1 christos else
3531 1.1 christos ac_check_lib_save_LIBS=$LIBS
3532 1.1 christos LIBS="-lkvm $LIBS"
3533 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3534 1.1 christos /* confdefs.h. */
3535 1.1 christos _ACEOF
3536 1.1 christos cat confdefs.h >>conftest.$ac_ext
3537 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3538 1.1 christos /* end confdefs.h. */
3539 1.1 christos
3540 1.1 christos /* Override any GCC internal prototype to avoid an error.
3541 1.1 christos Use char because int might match the return type of a GCC
3542 1.1 christos builtin and then its argument prototype would still apply. */
3543 1.1 christos #ifdef __cplusplus
3544 1.1 christos extern "C"
3545 1.1 christos #endif
3546 1.1 christos char kvm_open ();
3547 1.1 christos int
3548 1.1 christos main ()
3549 1.1 christos {
3550 1.1 christos return kvm_open ();
3551 1.1 christos ;
3552 1.1 christos return 0;
3553 1.1 christos }
3554 1.1 christos _ACEOF
3555 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3556 1.1 christos if { (ac_try="$ac_link"
3557 1.1 christos case "(($ac_try" in
3558 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 1.1 christos *) ac_try_echo=$ac_try;;
3560 1.1 christos esac
3561 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 1.1 christos (eval "$ac_link") 2>conftest.er1
3563 1.1 christos ac_status=$?
3564 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3565 1.1 christos rm -f conftest.er1
3566 1.1 christos cat conftest.err >&5
3567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 1.1 christos (exit $ac_status); } && {
3569 1.1 christos test -z "$ac_c_werror_flag" ||
3570 1.1 christos test ! -s conftest.err
3571 1.1 christos } && test -s conftest$ac_exeext &&
3572 1.1 christos $as_test_x conftest$ac_exeext; then
3573 1.1 christos ac_cv_lib_kvm_kvm_open=yes
3574 1.1 christos else
3575 1.1 christos echo "$as_me: failed program was:" >&5
3576 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3577 1.1 christos
3578 1.1 christos ac_cv_lib_kvm_kvm_open=no
3579 1.1 christos fi
3580 1.1 christos
3581 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3582 1.1 christos conftest$ac_exeext conftest.$ac_ext
3583 1.1 christos LIBS=$ac_check_lib_save_LIBS
3584 1.1 christos fi
3585 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
3586 1.1 christos echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
3587 1.1 christos if test $ac_cv_lib_kvm_kvm_open = yes; then
3588 1.1 christos cat >>confdefs.h <<_ACEOF
3589 1.1 christos #define HAVE_LIBKVM 1
3590 1.1 christos _ACEOF
3591 1.1 christos
3592 1.1 christos LIBS="-lkvm $LIBS"
3593 1.1 christos
3594 1.1 christos fi
3595 1.1 christos
3596 1.1 christos # -lmld -lmach
3597 1.1 christos
3598 1.1 christos { echo "$as_me:$LINENO: checking for vm_statistics in -lmach" >&5
3599 1.1 christos echo $ECHO_N "checking for vm_statistics in -lmach... $ECHO_C" >&6; }
3600 1.1 christos if test "${ac_cv_lib_mach_vm_statistics+set}" = set; then
3601 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3602 1.1 christos else
3603 1.1 christos ac_check_lib_save_LIBS=$LIBS
3604 1.1 christos LIBS="-lmach $LIBS"
3605 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3606 1.1 christos /* confdefs.h. */
3607 1.1 christos _ACEOF
3608 1.1 christos cat confdefs.h >>conftest.$ac_ext
3609 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3610 1.1 christos /* end confdefs.h. */
3611 1.1 christos
3612 1.1 christos /* Override any GCC internal prototype to avoid an error.
3613 1.1 christos Use char because int might match the return type of a GCC
3614 1.1 christos builtin and then its argument prototype would still apply. */
3615 1.1 christos #ifdef __cplusplus
3616 1.1 christos extern "C"
3617 1.1 christos #endif
3618 1.1 christos char vm_statistics ();
3619 1.1 christos int
3620 1.1 christos main ()
3621 1.1 christos {
3622 1.1 christos return vm_statistics ();
3623 1.1 christos ;
3624 1.1 christos return 0;
3625 1.1 christos }
3626 1.1 christos _ACEOF
3627 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3628 1.1 christos if { (ac_try="$ac_link"
3629 1.1 christos case "(($ac_try" in
3630 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 1.1 christos *) ac_try_echo=$ac_try;;
3632 1.1 christos esac
3633 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 1.1 christos (eval "$ac_link") 2>conftest.er1
3635 1.1 christos ac_status=$?
3636 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3637 1.1 christos rm -f conftest.er1
3638 1.1 christos cat conftest.err >&5
3639 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 1.1 christos (exit $ac_status); } && {
3641 1.1 christos test -z "$ac_c_werror_flag" ||
3642 1.1 christos test ! -s conftest.err
3643 1.1 christos } && test -s conftest$ac_exeext &&
3644 1.1 christos $as_test_x conftest$ac_exeext; then
3645 1.1 christos ac_cv_lib_mach_vm_statistics=yes
3646 1.1 christos else
3647 1.1 christos echo "$as_me: failed program was:" >&5
3648 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3649 1.1 christos
3650 1.1 christos ac_cv_lib_mach_vm_statistics=no
3651 1.1 christos fi
3652 1.1 christos
3653 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3654 1.1 christos conftest$ac_exeext conftest.$ac_ext
3655 1.1 christos LIBS=$ac_check_lib_save_LIBS
3656 1.1 christos fi
3657 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_mach_vm_statistics" >&5
3658 1.1 christos echo "${ECHO_T}$ac_cv_lib_mach_vm_statistics" >&6; }
3659 1.1 christos if test $ac_cv_lib_mach_vm_statistics = yes; then
3660 1.1 christos cat >>confdefs.h <<_ACEOF
3661 1.1 christos #define HAVE_LIBMACH 1
3662 1.1 christos _ACEOF
3663 1.1 christos
3664 1.1 christos LIBS="-lmach $LIBS"
3665 1.1 christos
3666 1.1 christos fi
3667 1.1 christos
3668 1.1 christos { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
3669 1.1 christos echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
3670 1.1 christos if test "${ac_cv_search_tgetent+set}" = set; then
3671 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3672 1.1 christos else
3673 1.1 christos ac_func_search_save_LIBS=$LIBS
3674 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3675 1.1 christos /* confdefs.h. */
3676 1.1 christos _ACEOF
3677 1.1 christos cat confdefs.h >>conftest.$ac_ext
3678 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3679 1.1 christos /* end confdefs.h. */
3680 1.1 christos
3681 1.1 christos /* Override any GCC internal prototype to avoid an error.
3682 1.1 christos Use char because int might match the return type of a GCC
3683 1.1 christos builtin and then its argument prototype would still apply. */
3684 1.1 christos #ifdef __cplusplus
3685 1.1 christos extern "C"
3686 1.1 christos #endif
3687 1.1 christos char tgetent ();
3688 1.1 christos int
3689 1.1 christos main ()
3690 1.1 christos {
3691 1.1 christos return tgetent ();
3692 1.1 christos ;
3693 1.1 christos return 0;
3694 1.1 christos }
3695 1.1 christos _ACEOF
3696 1.1 christos for ac_lib in '' termcap curses ncurses; do
3697 1.1 christos if test -z "$ac_lib"; then
3698 1.1 christos ac_res="none required"
3699 1.1 christos else
3700 1.1 christos ac_res=-l$ac_lib
3701 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3702 1.1 christos fi
3703 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3704 1.1 christos if { (ac_try="$ac_link"
3705 1.1 christos case "(($ac_try" in
3706 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 1.1 christos *) ac_try_echo=$ac_try;;
3708 1.1 christos esac
3709 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 1.1 christos (eval "$ac_link") 2>conftest.er1
3711 1.1 christos ac_status=$?
3712 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3713 1.1 christos rm -f conftest.er1
3714 1.1 christos cat conftest.err >&5
3715 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 1.1 christos (exit $ac_status); } && {
3717 1.1 christos test -z "$ac_c_werror_flag" ||
3718 1.1 christos test ! -s conftest.err
3719 1.1 christos } && test -s conftest$ac_exeext &&
3720 1.1 christos $as_test_x conftest$ac_exeext; then
3721 1.1 christos ac_cv_search_tgetent=$ac_res
3722 1.1 christos else
3723 1.1 christos echo "$as_me: failed program was:" >&5
3724 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3725 1.1 christos
3726 1.1 christos
3727 1.1 christos fi
3728 1.1 christos
3729 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3730 1.1 christos conftest$ac_exeext
3731 1.1 christos if test "${ac_cv_search_tgetent+set}" = set; then
3732 1.1 christos break
3733 1.1 christos fi
3734 1.1 christos done
3735 1.1 christos if test "${ac_cv_search_tgetent+set}" = set; then
3736 1.1 christos :
3737 1.1 christos else
3738 1.1 christos ac_cv_search_tgetent=no
3739 1.1 christos fi
3740 1.1 christos rm conftest.$ac_ext
3741 1.1 christos LIBS=$ac_func_search_save_LIBS
3742 1.1 christos fi
3743 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
3744 1.1 christos echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
3745 1.1 christos ac_res=$ac_cv_search_tgetent
3746 1.1 christos if test "$ac_res" != no; then
3747 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3748 1.1 christos
3749 1.1 christos fi
3750 1.1 christos
3751 1.1 christos
3752 1.1 christos { echo "$as_me:$LINENO: checking for exp in -lm" >&5
3753 1.1 christos echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6; }
3754 1.1 christos if test "${ac_cv_lib_m_exp+set}" = set; then
3755 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3756 1.1 christos else
3757 1.1 christos ac_check_lib_save_LIBS=$LIBS
3758 1.1 christos LIBS="-lm $LIBS"
3759 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3760 1.1 christos /* confdefs.h. */
3761 1.1 christos _ACEOF
3762 1.1 christos cat confdefs.h >>conftest.$ac_ext
3763 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3764 1.1 christos /* end confdefs.h. */
3765 1.1 christos
3766 1.1 christos /* Override any GCC internal prototype to avoid an error.
3767 1.1 christos Use char because int might match the return type of a GCC
3768 1.1 christos builtin and then its argument prototype would still apply. */
3769 1.1 christos #ifdef __cplusplus
3770 1.1 christos extern "C"
3771 1.1 christos #endif
3772 1.1 christos char exp ();
3773 1.1 christos int
3774 1.1 christos main ()
3775 1.1 christos {
3776 1.1 christos return exp ();
3777 1.1 christos ;
3778 1.1 christos return 0;
3779 1.1 christos }
3780 1.1 christos _ACEOF
3781 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3782 1.1 christos if { (ac_try="$ac_link"
3783 1.1 christos case "(($ac_try" in
3784 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 1.1 christos *) ac_try_echo=$ac_try;;
3786 1.1 christos esac
3787 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 1.1 christos (eval "$ac_link") 2>conftest.er1
3789 1.1 christos ac_status=$?
3790 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3791 1.1 christos rm -f conftest.er1
3792 1.1 christos cat conftest.err >&5
3793 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 1.1 christos (exit $ac_status); } && {
3795 1.1 christos test -z "$ac_c_werror_flag" ||
3796 1.1 christos test ! -s conftest.err
3797 1.1 christos } && test -s conftest$ac_exeext &&
3798 1.1 christos $as_test_x conftest$ac_exeext; then
3799 1.1 christos ac_cv_lib_m_exp=yes
3800 1.1 christos else
3801 1.1 christos echo "$as_me: failed program was:" >&5
3802 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3803 1.1 christos
3804 1.1 christos ac_cv_lib_m_exp=no
3805 1.1 christos fi
3806 1.1 christos
3807 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3808 1.1 christos conftest$ac_exeext conftest.$ac_ext
3809 1.1 christos LIBS=$ac_check_lib_save_LIBS
3810 1.1 christos fi
3811 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
3812 1.1 christos echo "${ECHO_T}$ac_cv_lib_m_exp" >&6; }
3813 1.1 christos if test $ac_cv_lib_m_exp = yes; then
3814 1.1 christos cat >>confdefs.h <<_ACEOF
3815 1.1 christos #define HAVE_LIBM 1
3816 1.1 christos _ACEOF
3817 1.1 christos
3818 1.1 christos LIBS="-lm $LIBS"
3819 1.1 christos
3820 1.1 christos fi
3821 1.1 christos
3822 1.1 christos
3823 1.1 christos # check for libraries required by extension
3824 1.1 christos extlibs=""
3825 1.1 christos if test -n "$with_ext" -a -f "${srcdir}/ext/$with_ext.libs"; then
3826 1.1 christos { echo "$as_me:$LINENO: checking for libraries needed by extensions" >&5
3827 1.1 christos echo $ECHO_N "checking for libraries needed by extensions... $ECHO_C" >&6; }
3828 1.1 christos for lib in `cat "${srcdir}/ext/$with_ext.libs"`
3829 1.1 christos do
3830 1.1 christos saveLIBS=$LIBS
3831 1.1 christos LIBS="$LIBS -l$lib"
3832 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3833 1.1 christos /* confdefs.h. */
3834 1.1 christos _ACEOF
3835 1.1 christos cat confdefs.h >>conftest.$ac_ext
3836 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3837 1.1 christos /* end confdefs.h. */
3838 1.1 christos
3839 1.1 christos int
3840 1.1 christos main ()
3841 1.1 christos {
3842 1.1 christos exit(0);
3843 1.1 christos ;
3844 1.1 christos return 0;
3845 1.1 christos }
3846 1.1 christos _ACEOF
3847 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3848 1.1 christos if { (ac_try="$ac_link"
3849 1.1 christos case "(($ac_try" in
3850 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 1.1 christos *) ac_try_echo=$ac_try;;
3852 1.1 christos esac
3853 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 1.1 christos (eval "$ac_link") 2>conftest.er1
3855 1.1 christos ac_status=$?
3856 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3857 1.1 christos rm -f conftest.er1
3858 1.1 christos cat conftest.err >&5
3859 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 1.1 christos (exit $ac_status); } && {
3861 1.1 christos test -z "$ac_c_werror_flag" ||
3862 1.1 christos test ! -s conftest.err
3863 1.1 christos } && test -s conftest$ac_exeext &&
3864 1.1 christos $as_test_x conftest$ac_exeext; then
3865 1.1 christos extlibs="$extlibs -l$lib"
3866 1.1 christos else
3867 1.1 christos echo "$as_me: failed program was:" >&5
3868 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3869 1.1 christos
3870 1.1 christos
3871 1.1 christos fi
3872 1.1 christos
3873 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3874 1.1 christos conftest$ac_exeext conftest.$ac_ext
3875 1.1 christos LIBS=$saveLIBS
3876 1.1 christos done
3877 1.1 christos { echo "$as_me:$LINENO: result: $extlibs" >&5
3878 1.1 christos echo "${ECHO_T}$extlibs" >&6; }
3879 1.1 christos LIBS="$LIBS$extlibs"
3880 1.1 christos fi
3881 1.1 christos
3882 1.1 christos # checks for header files
3883 1.1 christos ac_ext=c
3884 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3885 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 1.1 christos { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3889 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3890 1.1 christos # On Suns, sometimes $CPP names a directory.
3891 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
3892 1.1 christos CPP=
3893 1.1 christos fi
3894 1.1 christos if test -z "$CPP"; then
3895 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then
3896 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3897 1.1 christos else
3898 1.1 christos # Double quotes because CPP needs to be expanded
3899 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3900 1.1 christos do
3901 1.1 christos ac_preproc_ok=false
3902 1.1 christos for ac_c_preproc_warn_flag in '' yes
3903 1.1 christos do
3904 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3905 1.1 christos # with a fresh cross-compiler works.
3906 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907 1.1 christos # <limits.h> exists even on freestanding compilers.
3908 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3909 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3910 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3911 1.1 christos /* confdefs.h. */
3912 1.1 christos _ACEOF
3913 1.1 christos cat confdefs.h >>conftest.$ac_ext
3914 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3915 1.1 christos /* end confdefs.h. */
3916 1.1 christos #ifdef __STDC__
3917 1.1 christos # include <limits.h>
3918 1.1 christos #else
3919 1.1 christos # include <assert.h>
3920 1.1 christos #endif
3921 1.1 christos Syntax error
3922 1.1 christos _ACEOF
3923 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 1.1 christos case "(($ac_try" in
3925 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 1.1 christos *) ac_try_echo=$ac_try;;
3927 1.1 christos esac
3928 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930 1.1 christos ac_status=$?
3931 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3932 1.1 christos rm -f conftest.er1
3933 1.1 christos cat conftest.err >&5
3934 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 1.1 christos (exit $ac_status); } >/dev/null && {
3936 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 1.1 christos test ! -s conftest.err
3938 1.1 christos }; then
3939 1.1 christos :
3940 1.1 christos else
3941 1.1 christos echo "$as_me: failed program was:" >&5
3942 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3943 1.1 christos
3944 1.1 christos # Broken: fails on valid input.
3945 1.1 christos continue
3946 1.1 christos fi
3947 1.1 christos
3948 1.1 christos rm -f conftest.err conftest.$ac_ext
3949 1.1 christos
3950 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
3951 1.1 christos # can be detected and how.
3952 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3953 1.1 christos /* confdefs.h. */
3954 1.1 christos _ACEOF
3955 1.1 christos cat confdefs.h >>conftest.$ac_ext
3956 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3957 1.1 christos /* end confdefs.h. */
3958 1.1 christos #include <ac_nonexistent.h>
3959 1.1 christos _ACEOF
3960 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3961 1.1 christos case "(($ac_try" in
3962 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 1.1 christos *) ac_try_echo=$ac_try;;
3964 1.1 christos esac
3965 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 1.1 christos ac_status=$?
3968 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3969 1.1 christos rm -f conftest.er1
3970 1.1 christos cat conftest.err >&5
3971 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 1.1 christos (exit $ac_status); } >/dev/null && {
3973 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3974 1.1 christos test ! -s conftest.err
3975 1.1 christos }; then
3976 1.1 christos # Broken: success on invalid input.
3977 1.1 christos continue
3978 1.1 christos else
3979 1.1 christos echo "$as_me: failed program was:" >&5
3980 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3981 1.1 christos
3982 1.1 christos # Passes both tests.
3983 1.1 christos ac_preproc_ok=:
3984 1.1 christos break
3985 1.1 christos fi
3986 1.1 christos
3987 1.1 christos rm -f conftest.err conftest.$ac_ext
3988 1.1 christos
3989 1.1 christos done
3990 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 1.1 christos rm -f conftest.err conftest.$ac_ext
3992 1.1 christos if $ac_preproc_ok; then
3993 1.1 christos break
3994 1.1 christos fi
3995 1.1 christos
3996 1.1 christos done
3997 1.1 christos ac_cv_prog_CPP=$CPP
3998 1.1 christos
3999 1.1 christos fi
4000 1.1 christos CPP=$ac_cv_prog_CPP
4001 1.1 christos else
4002 1.1 christos ac_cv_prog_CPP=$CPP
4003 1.1 christos fi
4004 1.1 christos { echo "$as_me:$LINENO: result: $CPP" >&5
4005 1.1 christos echo "${ECHO_T}$CPP" >&6; }
4006 1.1 christos ac_preproc_ok=false
4007 1.1 christos for ac_c_preproc_warn_flag in '' yes
4008 1.1 christos do
4009 1.1 christos # Use a header file that comes with gcc, so configuring glibc
4010 1.1 christos # with a fresh cross-compiler works.
4011 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012 1.1 christos # <limits.h> exists even on freestanding compilers.
4013 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
4014 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
4015 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4016 1.1 christos /* confdefs.h. */
4017 1.1 christos _ACEOF
4018 1.1 christos cat confdefs.h >>conftest.$ac_ext
4019 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4020 1.1 christos /* end confdefs.h. */
4021 1.1 christos #ifdef __STDC__
4022 1.1 christos # include <limits.h>
4023 1.1 christos #else
4024 1.1 christos # include <assert.h>
4025 1.1 christos #endif
4026 1.1 christos Syntax error
4027 1.1 christos _ACEOF
4028 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4029 1.1 christos case "(($ac_try" in
4030 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 1.1 christos *) ac_try_echo=$ac_try;;
4032 1.1 christos esac
4033 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4035 1.1 christos ac_status=$?
4036 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4037 1.1 christos rm -f conftest.er1
4038 1.1 christos cat conftest.err >&5
4039 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 1.1 christos (exit $ac_status); } >/dev/null && {
4041 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4042 1.1 christos test ! -s conftest.err
4043 1.1 christos }; then
4044 1.1 christos :
4045 1.1 christos else
4046 1.1 christos echo "$as_me: failed program was:" >&5
4047 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4048 1.1 christos
4049 1.1 christos # Broken: fails on valid input.
4050 1.1 christos continue
4051 1.1 christos fi
4052 1.1 christos
4053 1.1 christos rm -f conftest.err conftest.$ac_ext
4054 1.1 christos
4055 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
4056 1.1 christos # can be detected and how.
4057 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4058 1.1 christos /* confdefs.h. */
4059 1.1 christos _ACEOF
4060 1.1 christos cat confdefs.h >>conftest.$ac_ext
4061 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4062 1.1 christos /* end confdefs.h. */
4063 1.1 christos #include <ac_nonexistent.h>
4064 1.1 christos _ACEOF
4065 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4066 1.1 christos case "(($ac_try" in
4067 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 1.1 christos *) ac_try_echo=$ac_try;;
4069 1.1 christos esac
4070 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4072 1.1 christos ac_status=$?
4073 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4074 1.1 christos rm -f conftest.er1
4075 1.1 christos cat conftest.err >&5
4076 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 1.1 christos (exit $ac_status); } >/dev/null && {
4078 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4079 1.1 christos test ! -s conftest.err
4080 1.1 christos }; then
4081 1.1 christos # Broken: success on invalid input.
4082 1.1 christos continue
4083 1.1 christos else
4084 1.1 christos echo "$as_me: failed program was:" >&5
4085 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4086 1.1 christos
4087 1.1 christos # Passes both tests.
4088 1.1 christos ac_preproc_ok=:
4089 1.1 christos break
4090 1.1 christos fi
4091 1.1 christos
4092 1.1 christos rm -f conftest.err conftest.$ac_ext
4093 1.1 christos
4094 1.1 christos done
4095 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096 1.1 christos rm -f conftest.err conftest.$ac_ext
4097 1.1 christos if $ac_preproc_ok; then
4098 1.1 christos :
4099 1.1 christos else
4100 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4101 1.1 christos See \`config.log' for more details." >&5
4102 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4103 1.1 christos See \`config.log' for more details." >&2;}
4104 1.1 christos { (exit 1); exit 1; }; }
4105 1.1 christos fi
4106 1.1 christos
4107 1.1 christos ac_ext=c
4108 1.1 christos ac_cpp='$CPP $CPPFLAGS'
4109 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 1.1 christos
4113 1.1 christos
4114 1.1 christos { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4115 1.1 christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4116 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
4117 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4118 1.1 christos else
4119 1.1 christos # Extract the first word of "grep ggrep" to use in msg output
4120 1.1 christos if test -z "$GREP"; then
4121 1.1 christos set dummy grep ggrep; ac_prog_name=$2
4122 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
4123 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4124 1.1 christos else
4125 1.1 christos ac_path_GREP_found=false
4126 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
4127 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129 1.1 christos do
4130 1.1 christos IFS=$as_save_IFS
4131 1.1 christos test -z "$as_dir" && as_dir=.
4132 1.1 christos for ac_prog in grep ggrep; do
4133 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
4134 1.1 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4135 1.1 christos { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4136 1.1 christos # Check for GNU ac_path_GREP and select it if it is found.
4137 1.1 christos # Check for GNU $ac_path_GREP
4138 1.1 christos case `"$ac_path_GREP" --version 2>&1` in
4139 1.1 christos *GNU*)
4140 1.1 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4141 1.1 christos *)
4142 1.1 christos ac_count=0
4143 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4144 1.1 christos while :
4145 1.1 christos do
4146 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4147 1.1 christos mv "conftest.tmp" "conftest.in"
4148 1.1 christos cp "conftest.in" "conftest.nl"
4149 1.1 christos echo 'GREP' >> "conftest.nl"
4150 1.1 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152 1.1 christos ac_count=`expr $ac_count + 1`
4153 1.1 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
4154 1.1 christos # Best one so far, save it but keep looking for a better one
4155 1.1 christos ac_cv_path_GREP="$ac_path_GREP"
4156 1.1 christos ac_path_GREP_max=$ac_count
4157 1.1 christos fi
4158 1.1 christos # 10*(2^10) chars as input seems more than enough
4159 1.1 christos test $ac_count -gt 10 && break
4160 1.1 christos done
4161 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162 1.1 christos esac
4163 1.1 christos
4164 1.1 christos
4165 1.1 christos $ac_path_GREP_found && break 3
4166 1.1 christos done
4167 1.1 christos done
4168 1.1 christos
4169 1.1 christos done
4170 1.1 christos IFS=$as_save_IFS
4171 1.1 christos
4172 1.1 christos
4173 1.1 christos fi
4174 1.1 christos
4175 1.1 christos GREP="$ac_cv_path_GREP"
4176 1.1 christos if test -z "$GREP"; then
4177 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4178 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4179 1.1 christos { (exit 1); exit 1; }; }
4180 1.1 christos fi
4181 1.1 christos
4182 1.1 christos else
4183 1.1 christos ac_cv_path_GREP=$GREP
4184 1.1 christos fi
4185 1.1 christos
4186 1.1 christos
4187 1.1 christos fi
4188 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4189 1.1 christos echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4190 1.1 christos GREP="$ac_cv_path_GREP"
4191 1.1 christos
4192 1.1 christos
4193 1.1 christos { echo "$as_me:$LINENO: checking for egrep" >&5
4194 1.1 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4195 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
4196 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4197 1.1 christos else
4198 1.1 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4199 1.1 christos then ac_cv_path_EGREP="$GREP -E"
4200 1.1 christos else
4201 1.1 christos # Extract the first word of "egrep" to use in msg output
4202 1.1 christos if test -z "$EGREP"; then
4203 1.1 christos set dummy egrep; ac_prog_name=$2
4204 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
4205 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4206 1.1 christos else
4207 1.1 christos ac_path_EGREP_found=false
4208 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
4209 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 1.1 christos do
4212 1.1 christos IFS=$as_save_IFS
4213 1.1 christos test -z "$as_dir" && as_dir=.
4214 1.1 christos for ac_prog in egrep; do
4215 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
4216 1.1 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4217 1.1 christos { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4218 1.1 christos # Check for GNU ac_path_EGREP and select it if it is found.
4219 1.1 christos # Check for GNU $ac_path_EGREP
4220 1.1 christos case `"$ac_path_EGREP" --version 2>&1` in
4221 1.1 christos *GNU*)
4222 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4223 1.1 christos *)
4224 1.1 christos ac_count=0
4225 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4226 1.1 christos while :
4227 1.1 christos do
4228 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 1.1 christos mv "conftest.tmp" "conftest.in"
4230 1.1 christos cp "conftest.in" "conftest.nl"
4231 1.1 christos echo 'EGREP' >> "conftest.nl"
4232 1.1 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 1.1 christos ac_count=`expr $ac_count + 1`
4235 1.1 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4236 1.1 christos # Best one so far, save it but keep looking for a better one
4237 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP"
4238 1.1 christos ac_path_EGREP_max=$ac_count
4239 1.1 christos fi
4240 1.1 christos # 10*(2^10) chars as input seems more than enough
4241 1.1 christos test $ac_count -gt 10 && break
4242 1.1 christos done
4243 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 1.1 christos esac
4245 1.1 christos
4246 1.1 christos
4247 1.1 christos $ac_path_EGREP_found && break 3
4248 1.1 christos done
4249 1.1 christos done
4250 1.1 christos
4251 1.1 christos done
4252 1.1 christos IFS=$as_save_IFS
4253 1.1 christos
4254 1.1 christos
4255 1.1 christos fi
4256 1.1 christos
4257 1.1 christos EGREP="$ac_cv_path_EGREP"
4258 1.1 christos if test -z "$EGREP"; then
4259 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4260 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4261 1.1 christos { (exit 1); exit 1; }; }
4262 1.1 christos fi
4263 1.1 christos
4264 1.1 christos else
4265 1.1 christos ac_cv_path_EGREP=$EGREP
4266 1.1 christos fi
4267 1.1 christos
4268 1.1 christos
4269 1.1 christos fi
4270 1.1 christos fi
4271 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4272 1.1 christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4273 1.1 christos EGREP="$ac_cv_path_EGREP"
4274 1.1 christos
4275 1.1 christos
4276 1.1 christos { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4277 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4278 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then
4279 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4280 1.1 christos else
4281 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4282 1.1 christos /* confdefs.h. */
4283 1.1 christos _ACEOF
4284 1.1 christos cat confdefs.h >>conftest.$ac_ext
4285 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4286 1.1 christos /* end confdefs.h. */
4287 1.1 christos #include <stdlib.h>
4288 1.1 christos #include <stdarg.h>
4289 1.1 christos #include <string.h>
4290 1.1 christos #include <float.h>
4291 1.1 christos
4292 1.1 christos int
4293 1.1 christos main ()
4294 1.1 christos {
4295 1.1 christos
4296 1.1 christos ;
4297 1.1 christos return 0;
4298 1.1 christos }
4299 1.1 christos _ACEOF
4300 1.1 christos rm -f conftest.$ac_objext
4301 1.1 christos if { (ac_try="$ac_compile"
4302 1.1 christos case "(($ac_try" in
4303 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 1.1 christos *) ac_try_echo=$ac_try;;
4305 1.1 christos esac
4306 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 1.1 christos (eval "$ac_compile") 2>conftest.er1
4308 1.1 christos ac_status=$?
4309 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4310 1.1 christos rm -f conftest.er1
4311 1.1 christos cat conftest.err >&5
4312 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 1.1 christos (exit $ac_status); } && {
4314 1.1 christos test -z "$ac_c_werror_flag" ||
4315 1.1 christos test ! -s conftest.err
4316 1.1 christos } && test -s conftest.$ac_objext; then
4317 1.1 christos ac_cv_header_stdc=yes
4318 1.1 christos else
4319 1.1 christos echo "$as_me: failed program was:" >&5
4320 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4321 1.1 christos
4322 1.1 christos ac_cv_header_stdc=no
4323 1.1 christos fi
4324 1.1 christos
4325 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 1.1 christos
4327 1.1 christos if test $ac_cv_header_stdc = yes; then
4328 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4330 1.1 christos /* confdefs.h. */
4331 1.1 christos _ACEOF
4332 1.1 christos cat confdefs.h >>conftest.$ac_ext
4333 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4334 1.1 christos /* end confdefs.h. */
4335 1.1 christos #include <string.h>
4336 1.1 christos
4337 1.1 christos _ACEOF
4338 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then
4340 1.1 christos :
4341 1.1 christos else
4342 1.1 christos ac_cv_header_stdc=no
4343 1.1 christos fi
4344 1.1 christos rm -f conftest*
4345 1.1 christos
4346 1.1 christos fi
4347 1.1 christos
4348 1.1 christos if test $ac_cv_header_stdc = yes; then
4349 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4350 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4351 1.1 christos /* confdefs.h. */
4352 1.1 christos _ACEOF
4353 1.1 christos cat confdefs.h >>conftest.$ac_ext
4354 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4355 1.1 christos /* end confdefs.h. */
4356 1.1 christos #include <stdlib.h>
4357 1.1 christos
4358 1.1 christos _ACEOF
4359 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 1.1 christos $EGREP "free" >/dev/null 2>&1; then
4361 1.1 christos :
4362 1.1 christos else
4363 1.1 christos ac_cv_header_stdc=no
4364 1.1 christos fi
4365 1.1 christos rm -f conftest*
4366 1.1 christos
4367 1.1 christos fi
4368 1.1 christos
4369 1.1 christos if test $ac_cv_header_stdc = yes; then
4370 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4371 1.1 christos if test "$cross_compiling" = yes; then
4372 1.1 christos :
4373 1.1 christos else
4374 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4375 1.1 christos /* confdefs.h. */
4376 1.1 christos _ACEOF
4377 1.1 christos cat confdefs.h >>conftest.$ac_ext
4378 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4379 1.1 christos /* end confdefs.h. */
4380 1.1 christos #include <ctype.h>
4381 1.1 christos #include <stdlib.h>
4382 1.1 christos #if ((' ' & 0x0FF) == 0x020)
4383 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4384 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4385 1.1 christos #else
4386 1.1 christos # define ISLOWER(c) \
4387 1.1 christos (('a' <= (c) && (c) <= 'i') \
4388 1.1 christos || ('j' <= (c) && (c) <= 'r') \
4389 1.1 christos || ('s' <= (c) && (c) <= 'z'))
4390 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4391 1.1 christos #endif
4392 1.1 christos
4393 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4394 1.1 christos int
4395 1.1 christos main ()
4396 1.1 christos {
4397 1.1 christos int i;
4398 1.1 christos for (i = 0; i < 256; i++)
4399 1.1 christos if (XOR (islower (i), ISLOWER (i))
4400 1.1 christos || toupper (i) != TOUPPER (i))
4401 1.1 christos return 2;
4402 1.1 christos return 0;
4403 1.1 christos }
4404 1.1 christos _ACEOF
4405 1.1 christos rm -f conftest$ac_exeext
4406 1.1 christos if { (ac_try="$ac_link"
4407 1.1 christos case "(($ac_try" in
4408 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 1.1 christos *) ac_try_echo=$ac_try;;
4410 1.1 christos esac
4411 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 1.1 christos (eval "$ac_link") 2>&5
4413 1.1 christos ac_status=$?
4414 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4416 1.1 christos { (case "(($ac_try" in
4417 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 1.1 christos *) ac_try_echo=$ac_try;;
4419 1.1 christos esac
4420 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 1.1 christos (eval "$ac_try") 2>&5
4422 1.1 christos ac_status=$?
4423 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 1.1 christos (exit $ac_status); }; }; then
4425 1.1 christos :
4426 1.1 christos else
4427 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
4428 1.1 christos echo "$as_me: failed program was:" >&5
4429 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4430 1.1 christos
4431 1.1 christos ( exit $ac_status )
4432 1.1 christos ac_cv_header_stdc=no
4433 1.1 christos fi
4434 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4435 1.1 christos fi
4436 1.1 christos
4437 1.1 christos
4438 1.1 christos fi
4439 1.1 christos fi
4440 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4441 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4442 1.1 christos if test $ac_cv_header_stdc = yes; then
4443 1.1 christos
4444 1.1 christos cat >>confdefs.h <<\_ACEOF
4445 1.1 christos #define STDC_HEADERS 1
4446 1.1 christos _ACEOF
4447 1.1 christos
4448 1.1 christos fi
4449 1.1 christos
4450 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4451 1.1 christos
4452 1.1 christos
4453 1.1 christos
4454 1.1 christos
4455 1.1 christos
4456 1.1 christos
4457 1.1 christos
4458 1.1 christos
4459 1.1 christos
4460 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4461 1.1 christos inttypes.h stdint.h unistd.h
4462 1.1 christos do
4463 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4464 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4465 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4466 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4467 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4468 1.1 christos else
4469 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4470 1.1 christos /* confdefs.h. */
4471 1.1 christos _ACEOF
4472 1.1 christos cat confdefs.h >>conftest.$ac_ext
4473 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4474 1.1 christos /* end confdefs.h. */
4475 1.1 christos $ac_includes_default
4476 1.1 christos
4477 1.1 christos #include <$ac_header>
4478 1.1 christos _ACEOF
4479 1.1 christos rm -f conftest.$ac_objext
4480 1.1 christos if { (ac_try="$ac_compile"
4481 1.1 christos case "(($ac_try" in
4482 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 1.1 christos *) ac_try_echo=$ac_try;;
4484 1.1 christos esac
4485 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 1.1 christos (eval "$ac_compile") 2>conftest.er1
4487 1.1 christos ac_status=$?
4488 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4489 1.1 christos rm -f conftest.er1
4490 1.1 christos cat conftest.err >&5
4491 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 1.1 christos (exit $ac_status); } && {
4493 1.1 christos test -z "$ac_c_werror_flag" ||
4494 1.1 christos test ! -s conftest.err
4495 1.1 christos } && test -s conftest.$ac_objext; then
4496 1.1 christos eval "$as_ac_Header=yes"
4497 1.1 christos else
4498 1.1 christos echo "$as_me: failed program was:" >&5
4499 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4500 1.1 christos
4501 1.1 christos eval "$as_ac_Header=no"
4502 1.1 christos fi
4503 1.1 christos
4504 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 1.1 christos fi
4506 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4507 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4508 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4509 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4510 1.1 christos cat >>confdefs.h <<_ACEOF
4511 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512 1.1 christos _ACEOF
4513 1.1 christos
4514 1.1 christos fi
4515 1.1 christos
4516 1.1 christos done
4517 1.1 christos
4518 1.1 christos
4519 1.1 christos
4520 1.1 christos
4521 1.1 christos
4522 1.1 christos
4523 1.1 christos
4524 1.1 christos
4525 1.1 christos
4526 1.1 christos
4527 1.1 christos
4528 1.1 christos
4529 1.1 christos
4530 1.1 christos for ac_header in curses.h getopt.h limits.h math.h stdarg.h sysexits.h termcap.h unistd.h sys/resource.h sys/time.h sys/utsname.h
4531 1.1 christos do
4532 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4534 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4536 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4537 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4538 1.1 christos fi
4539 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4540 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4541 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4542 1.1 christos else
4543 1.1 christos # Is the header compilable?
4544 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4545 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4546 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4547 1.1 christos /* confdefs.h. */
4548 1.1 christos _ACEOF
4549 1.1 christos cat confdefs.h >>conftest.$ac_ext
4550 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4551 1.1 christos /* end confdefs.h. */
4552 1.1 christos $ac_includes_default
4553 1.1 christos #include <$ac_header>
4554 1.1 christos _ACEOF
4555 1.1 christos rm -f conftest.$ac_objext
4556 1.1 christos if { (ac_try="$ac_compile"
4557 1.1 christos case "(($ac_try" in
4558 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 1.1 christos *) ac_try_echo=$ac_try;;
4560 1.1 christos esac
4561 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 1.1 christos (eval "$ac_compile") 2>conftest.er1
4563 1.1 christos ac_status=$?
4564 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4565 1.1 christos rm -f conftest.er1
4566 1.1 christos cat conftest.err >&5
4567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 1.1 christos (exit $ac_status); } && {
4569 1.1 christos test -z "$ac_c_werror_flag" ||
4570 1.1 christos test ! -s conftest.err
4571 1.1 christos } && test -s conftest.$ac_objext; then
4572 1.1 christos ac_header_compiler=yes
4573 1.1 christos else
4574 1.1 christos echo "$as_me: failed program was:" >&5
4575 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4576 1.1 christos
4577 1.1 christos ac_header_compiler=no
4578 1.1 christos fi
4579 1.1 christos
4580 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4582 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4583 1.1 christos
4584 1.1 christos # Is the header present?
4585 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4586 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4587 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4588 1.1 christos /* confdefs.h. */
4589 1.1 christos _ACEOF
4590 1.1 christos cat confdefs.h >>conftest.$ac_ext
4591 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4592 1.1 christos /* end confdefs.h. */
4593 1.1 christos #include <$ac_header>
4594 1.1 christos _ACEOF
4595 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4596 1.1 christos case "(($ac_try" in
4597 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 1.1 christos *) ac_try_echo=$ac_try;;
4599 1.1 christos esac
4600 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4602 1.1 christos ac_status=$?
4603 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4604 1.1 christos rm -f conftest.er1
4605 1.1 christos cat conftest.err >&5
4606 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 1.1 christos (exit $ac_status); } >/dev/null && {
4608 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4609 1.1 christos test ! -s conftest.err
4610 1.1 christos }; then
4611 1.1 christos ac_header_preproc=yes
4612 1.1 christos else
4613 1.1 christos echo "$as_me: failed program was:" >&5
4614 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4615 1.1 christos
4616 1.1 christos ac_header_preproc=no
4617 1.1 christos fi
4618 1.1 christos
4619 1.1 christos rm -f conftest.err conftest.$ac_ext
4620 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4621 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4622 1.1 christos
4623 1.1 christos # So? What about this header?
4624 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4625 1.1 christos yes:no: )
4626 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4627 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4628 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4629 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4630 1.1 christos ac_header_preproc=yes
4631 1.1 christos ;;
4632 1.1 christos no:yes:* )
4633 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4634 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4635 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4636 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4637 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4638 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4639 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4640 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4641 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4642 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4643 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4644 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4645 1.1 christos
4646 1.1 christos ;;
4647 1.1 christos esac
4648 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4649 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4650 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4651 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4652 1.1 christos else
4653 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
4654 1.1 christos fi
4655 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4656 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4657 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4658 1.1 christos
4659 1.1 christos fi
4660 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4661 1.1 christos cat >>confdefs.h <<_ACEOF
4662 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663 1.1 christos _ACEOF
4664 1.1 christos
4665 1.1 christos fi
4666 1.1 christos
4667 1.1 christos done
4668 1.1 christos
4669 1.1 christos
4670 1.1 christos for ac_header in term.h
4671 1.1 christos do
4672 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4673 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4675 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4676 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4677 1.1 christos else
4678 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4679 1.1 christos /* confdefs.h. */
4680 1.1 christos _ACEOF
4681 1.1 christos cat confdefs.h >>conftest.$ac_ext
4682 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4683 1.1 christos /* end confdefs.h. */
4684 1.1 christos #if HAVE_CURSES_H
4685 1.1 christos #include <curses.h>
4686 1.1 christos #endif
4687 1.1 christos
4688 1.1 christos
4689 1.1 christos #include <$ac_header>
4690 1.1 christos _ACEOF
4691 1.1 christos rm -f conftest.$ac_objext
4692 1.1 christos if { (ac_try="$ac_compile"
4693 1.1 christos case "(($ac_try" in
4694 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 1.1 christos *) ac_try_echo=$ac_try;;
4696 1.1 christos esac
4697 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 1.1 christos (eval "$ac_compile") 2>conftest.er1
4699 1.1 christos ac_status=$?
4700 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4701 1.1 christos rm -f conftest.er1
4702 1.1 christos cat conftest.err >&5
4703 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 1.1 christos (exit $ac_status); } && {
4705 1.1 christos test -z "$ac_c_werror_flag" ||
4706 1.1 christos test ! -s conftest.err
4707 1.1 christos } && test -s conftest.$ac_objext; then
4708 1.1 christos eval "$as_ac_Header=yes"
4709 1.1 christos else
4710 1.1 christos echo "$as_me: failed program was:" >&5
4711 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4712 1.1 christos
4713 1.1 christos eval "$as_ac_Header=no"
4714 1.1 christos fi
4715 1.1 christos
4716 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 1.1 christos fi
4718 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4719 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4720 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4721 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722 1.1 christos cat >>confdefs.h <<_ACEOF
4723 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 1.1 christos _ACEOF
4725 1.1 christos
4726 1.1 christos fi
4727 1.1 christos
4728 1.1 christos done
4729 1.1 christos
4730 1.1 christos { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4731 1.1 christos echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4732 1.1 christos if test "${ac_cv_header_time+set}" = set; then
4733 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4734 1.1 christos else
4735 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4736 1.1 christos /* confdefs.h. */
4737 1.1 christos _ACEOF
4738 1.1 christos cat confdefs.h >>conftest.$ac_ext
4739 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4740 1.1 christos /* end confdefs.h. */
4741 1.1 christos #include <sys/types.h>
4742 1.1 christos #include <sys/time.h>
4743 1.1 christos #include <time.h>
4744 1.1 christos
4745 1.1 christos int
4746 1.1 christos main ()
4747 1.1 christos {
4748 1.1 christos if ((struct tm *) 0)
4749 1.1 christos return 0;
4750 1.1 christos ;
4751 1.1 christos return 0;
4752 1.1 christos }
4753 1.1 christos _ACEOF
4754 1.1 christos rm -f conftest.$ac_objext
4755 1.1 christos if { (ac_try="$ac_compile"
4756 1.1 christos case "(($ac_try" in
4757 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 1.1 christos *) ac_try_echo=$ac_try;;
4759 1.1 christos esac
4760 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 1.1 christos (eval "$ac_compile") 2>conftest.er1
4762 1.1 christos ac_status=$?
4763 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4764 1.1 christos rm -f conftest.er1
4765 1.1 christos cat conftest.err >&5
4766 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 1.1 christos (exit $ac_status); } && {
4768 1.1 christos test -z "$ac_c_werror_flag" ||
4769 1.1 christos test ! -s conftest.err
4770 1.1 christos } && test -s conftest.$ac_objext; then
4771 1.1 christos ac_cv_header_time=yes
4772 1.1 christos else
4773 1.1 christos echo "$as_me: failed program was:" >&5
4774 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4775 1.1 christos
4776 1.1 christos ac_cv_header_time=no
4777 1.1 christos fi
4778 1.1 christos
4779 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 1.1 christos fi
4781 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4782 1.1 christos echo "${ECHO_T}$ac_cv_header_time" >&6; }
4783 1.1 christos if test $ac_cv_header_time = yes; then
4784 1.1 christos
4785 1.1 christos cat >>confdefs.h <<\_ACEOF
4786 1.1 christos #define TIME_WITH_SYS_TIME 1
4787 1.1 christos _ACEOF
4788 1.1 christos
4789 1.1 christos fi
4790 1.1 christos
4791 1.1 christos { echo "$as_me:$LINENO: checking for a good signal.h" >&5
4792 1.1 christos echo $ECHO_N "checking for a good signal.h... $ECHO_C" >&6; }
4793 1.1 christos SIGNAL_H="no"
4794 1.1 christos for f in /usr/include/signal.h /usr/include/sys/signal.h /usr/include/sys/iso/signal_iso.h /usr/include/bits/signum.h; do
4795 1.1 christos if grep SIGKILL $f >/dev/null 2>&1; then
4796 1.1 christos SIGNAL_H=$f
4797 1.1 christos break
4798 1.1 christos fi
4799 1.1 christos done
4800 1.1 christos { echo "$as_me:$LINENO: result: $SIGNAL_H" >&5
4801 1.1 christos echo "${ECHO_T}$SIGNAL_H" >&6; }
4802 1.1 christos if test "$SIGNAL_H" = "no"; then
4803 1.1 christos SIGNAL_H="/dev/null"
4804 1.1 christos fi
4805 1.1 christos
4806 1.1 christos
4807 1.1 christos # checks for typedefs, structures, and compiler characteristics.
4808 1.1 christos { echo "$as_me:$LINENO: checking for variadic macros" >&5
4809 1.1 christos echo $ECHO_N "checking for variadic macros... $ECHO_C" >&6; }
4810 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4811 1.1 christos /* confdefs.h. */
4812 1.1 christos _ACEOF
4813 1.1 christos cat confdefs.h >>conftest.$ac_ext
4814 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4815 1.1 christos /* end confdefs.h. */
4816 1.1 christos #define a(x, ...) (x, __VA_ARGS__)
4817 1.1 christos int
4818 1.1 christos main ()
4819 1.1 christos {
4820 1.1 christos
4821 1.1 christos ;
4822 1.1 christos return 0;
4823 1.1 christos }
4824 1.1 christos _ACEOF
4825 1.1 christos rm -f conftest.$ac_objext
4826 1.1 christos if { (ac_try="$ac_compile"
4827 1.1 christos case "(($ac_try" in
4828 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 1.1 christos *) ac_try_echo=$ac_try;;
4830 1.1 christos esac
4831 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 1.1 christos (eval "$ac_compile") 2>conftest.er1
4833 1.1 christos ac_status=$?
4834 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4835 1.1 christos rm -f conftest.er1
4836 1.1 christos cat conftest.err >&5
4837 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 1.1 christos (exit $ac_status); } && {
4839 1.1 christos test -z "$ac_c_werror_flag" ||
4840 1.1 christos test ! -s conftest.err
4841 1.1 christos } && test -s conftest.$ac_objext; then
4842 1.1 christos ax_cv_c99_variadic=yes
4843 1.1 christos else
4844 1.1 christos echo "$as_me: failed program was:" >&5
4845 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4846 1.1 christos
4847 1.1 christos ax_cv_c99_variadic=no
4848 1.1 christos fi
4849 1.1 christos
4850 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4852 1.1 christos /* confdefs.h. */
4853 1.1 christos _ACEOF
4854 1.1 christos cat confdefs.h >>conftest.$ac_ext
4855 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4856 1.1 christos /* end confdefs.h. */
4857 1.1 christos #define a(x...) (x)
4858 1.1 christos int
4859 1.1 christos main ()
4860 1.1 christos {
4861 1.1 christos
4862 1.1 christos ;
4863 1.1 christos return 0;
4864 1.1 christos }
4865 1.1 christos _ACEOF
4866 1.1 christos rm -f conftest.$ac_objext
4867 1.1 christos if { (ac_try="$ac_compile"
4868 1.1 christos case "(($ac_try" in
4869 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 1.1 christos *) ac_try_echo=$ac_try;;
4871 1.1 christos esac
4872 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 1.1 christos (eval "$ac_compile") 2>conftest.er1
4874 1.1 christos ac_status=$?
4875 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4876 1.1 christos rm -f conftest.er1
4877 1.1 christos cat conftest.err >&5
4878 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 1.1 christos (exit $ac_status); } && {
4880 1.1 christos test -z "$ac_c_werror_flag" ||
4881 1.1 christos test ! -s conftest.err
4882 1.1 christos } && test -s conftest.$ac_objext; then
4883 1.1 christos ax_cv_gnu_variadic=yes
4884 1.1 christos else
4885 1.1 christos echo "$as_me: failed program was:" >&5
4886 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4887 1.1 christos
4888 1.1 christos ax_cv_gnu_variadic=no
4889 1.1 christos fi
4890 1.1 christos
4891 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 1.1 christos _result=""
4893 1.1 christos if test "$ax_cv_c99_variadic" = "yes"; then
4894 1.1 christos _result=" c99"
4895 1.1 christos
4896 1.1 christos cat >>confdefs.h <<\_ACEOF
4897 1.1 christos #define HAVE_C99_VARIADIC_MACROS 1
4898 1.1 christos _ACEOF
4899 1.1 christos
4900 1.1 christos fi
4901 1.1 christos if test "$ax_cv_gnu_variadic" = "yes"; then
4902 1.1 christos _result="$_result gnu"
4903 1.1 christos
4904 1.1 christos cat >>confdefs.h <<\_ACEOF
4905 1.1 christos #define HAVE_GNU_VARIADIC_MACROS 1
4906 1.1 christos _ACEOF
4907 1.1 christos
4908 1.1 christos fi
4909 1.1 christos if test "x$_result" = x; then
4910 1.1 christos _result="no"
4911 1.1 christos fi
4912 1.1 christos { echo "$as_me:$LINENO: result: $_result" >&5
4913 1.1 christos echo "${ECHO_T}$_result" >&6; }
4914 1.1 christos
4915 1.1 christos { echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
4916 1.1 christos echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6; }
4917 1.1 christos if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
4918 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4919 1.1 christos else
4920 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4921 1.1 christos /* confdefs.h. */
4922 1.1 christos _ACEOF
4923 1.1 christos cat confdefs.h >>conftest.$ac_ext
4924 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4925 1.1 christos /* end confdefs.h. */
4926 1.1 christos $ac_includes_default
4927 1.1 christos int
4928 1.1 christos main ()
4929 1.1 christos {
4930 1.1 christos #ifndef sys_errlist
4931 1.1 christos (void) sys_errlist;
4932 1.1 christos #endif
4933 1.1 christos
4934 1.1 christos ;
4935 1.1 christos return 0;
4936 1.1 christos }
4937 1.1 christos _ACEOF
4938 1.1 christos rm -f conftest.$ac_objext
4939 1.1 christos if { (ac_try="$ac_compile"
4940 1.1 christos case "(($ac_try" in
4941 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 1.1 christos *) ac_try_echo=$ac_try;;
4943 1.1 christos esac
4944 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 1.1 christos (eval "$ac_compile") 2>conftest.er1
4946 1.1 christos ac_status=$?
4947 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4948 1.1 christos rm -f conftest.er1
4949 1.1 christos cat conftest.err >&5
4950 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 1.1 christos (exit $ac_status); } && {
4952 1.1 christos test -z "$ac_c_werror_flag" ||
4953 1.1 christos test ! -s conftest.err
4954 1.1 christos } && test -s conftest.$ac_objext; then
4955 1.1 christos ac_cv_have_decl_sys_errlist=yes
4956 1.1 christos else
4957 1.1 christos echo "$as_me: failed program was:" >&5
4958 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4959 1.1 christos
4960 1.1 christos ac_cv_have_decl_sys_errlist=no
4961 1.1 christos fi
4962 1.1 christos
4963 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 1.1 christos fi
4965 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
4966 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6; }
4967 1.1 christos if test $ac_cv_have_decl_sys_errlist = yes; then
4968 1.1 christos
4969 1.1 christos cat >>confdefs.h <<_ACEOF
4970 1.1 christos #define HAVE_DECL_SYS_ERRLIST 1
4971 1.1 christos _ACEOF
4972 1.1 christos
4973 1.1 christos
4974 1.1 christos else
4975 1.1 christos cat >>confdefs.h <<_ACEOF
4976 1.1 christos #define HAVE_DECL_SYS_ERRLIST 0
4977 1.1 christos _ACEOF
4978 1.1 christos
4979 1.1 christos
4980 1.1 christos fi
4981 1.1 christos
4982 1.1 christos
4983 1.1 christos { echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
4984 1.1 christos echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6; }
4985 1.1 christos if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4986 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4987 1.1 christos else
4988 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4989 1.1 christos /* confdefs.h. */
4990 1.1 christos _ACEOF
4991 1.1 christos cat confdefs.h >>conftest.$ac_ext
4992 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4993 1.1 christos /* end confdefs.h. */
4994 1.1 christos #include <signal.h>
4995 1.1 christos /* NetBSD declares sys_siglist in unistd.h. */
4996 1.1 christos #if HAVE_UNISTD_H
4997 1.1 christos # include <unistd.h>
4998 1.1 christos #endif
4999 1.1 christos
5000 1.1 christos
5001 1.1 christos int
5002 1.1 christos main ()
5003 1.1 christos {
5004 1.1 christos #ifndef sys_signame
5005 1.1 christos (void) sys_signame;
5006 1.1 christos #endif
5007 1.1 christos
5008 1.1 christos ;
5009 1.1 christos return 0;
5010 1.1 christos }
5011 1.1 christos _ACEOF
5012 1.1 christos rm -f conftest.$ac_objext
5013 1.1 christos if { (ac_try="$ac_compile"
5014 1.1 christos case "(($ac_try" in
5015 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 1.1 christos *) ac_try_echo=$ac_try;;
5017 1.1 christos esac
5018 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 1.1 christos (eval "$ac_compile") 2>conftest.er1
5020 1.1 christos ac_status=$?
5021 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5022 1.1 christos rm -f conftest.er1
5023 1.1 christos cat conftest.err >&5
5024 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 1.1 christos (exit $ac_status); } && {
5026 1.1 christos test -z "$ac_c_werror_flag" ||
5027 1.1 christos test ! -s conftest.err
5028 1.1 christos } && test -s conftest.$ac_objext; then
5029 1.1 christos ac_cv_have_decl_sys_signame=yes
5030 1.1 christos else
5031 1.1 christos echo "$as_me: failed program was:" >&5
5032 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5033 1.1 christos
5034 1.1 christos ac_cv_have_decl_sys_signame=no
5035 1.1 christos fi
5036 1.1 christos
5037 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 1.1 christos fi
5039 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
5040 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6; }
5041 1.1 christos if test $ac_cv_have_decl_sys_signame = yes; then
5042 1.1 christos
5043 1.1 christos cat >>confdefs.h <<_ACEOF
5044 1.1 christos #define HAVE_DECL_SYS_SIGNAME 1
5045 1.1 christos _ACEOF
5046 1.1 christos
5047 1.1 christos
5048 1.1 christos else
5049 1.1 christos cat >>confdefs.h <<_ACEOF
5050 1.1 christos #define HAVE_DECL_SYS_SIGNAME 0
5051 1.1 christos _ACEOF
5052 1.1 christos
5053 1.1 christos
5054 1.1 christos fi
5055 1.1 christos
5056 1.1 christos
5057 1.1 christos { echo "$as_me:$LINENO: checking whether tputs is declared" >&5
5058 1.1 christos echo $ECHO_N "checking whether tputs is declared... $ECHO_C" >&6; }
5059 1.1 christos if test "${ac_cv_have_decl_tputs+set}" = set; then
5060 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5061 1.1 christos else
5062 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5063 1.1 christos /* confdefs.h. */
5064 1.1 christos _ACEOF
5065 1.1 christos cat confdefs.h >>conftest.$ac_ext
5066 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5067 1.1 christos /* end confdefs.h. */
5068 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5069 1.1 christos #include <curses.h>
5070 1.1 christos #include <term.h>
5071 1.1 christos #else
5072 1.1 christos #if HAVE_TERMCAP_H
5073 1.1 christos #include <termcap.h>
5074 1.1 christos #else
5075 1.1 christos #if HAVE_CURSES_H
5076 1.1 christos #include <curses.h>
5077 1.1 christos #endif
5078 1.1 christos #endif
5079 1.1 christos #endif
5080 1.1 christos
5081 1.1 christos
5082 1.1 christos int
5083 1.1 christos main ()
5084 1.1 christos {
5085 1.1 christos #ifndef tputs
5086 1.1 christos (void) tputs;
5087 1.1 christos #endif
5088 1.1 christos
5089 1.1 christos ;
5090 1.1 christos return 0;
5091 1.1 christos }
5092 1.1 christos _ACEOF
5093 1.1 christos rm -f conftest.$ac_objext
5094 1.1 christos if { (ac_try="$ac_compile"
5095 1.1 christos case "(($ac_try" in
5096 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 1.1 christos *) ac_try_echo=$ac_try;;
5098 1.1 christos esac
5099 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 1.1 christos (eval "$ac_compile") 2>conftest.er1
5101 1.1 christos ac_status=$?
5102 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5103 1.1 christos rm -f conftest.er1
5104 1.1 christos cat conftest.err >&5
5105 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 1.1 christos (exit $ac_status); } && {
5107 1.1 christos test -z "$ac_c_werror_flag" ||
5108 1.1 christos test ! -s conftest.err
5109 1.1 christos } && test -s conftest.$ac_objext; then
5110 1.1 christos ac_cv_have_decl_tputs=yes
5111 1.1 christos else
5112 1.1 christos echo "$as_me: failed program was:" >&5
5113 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5114 1.1 christos
5115 1.1 christos ac_cv_have_decl_tputs=no
5116 1.1 christos fi
5117 1.1 christos
5118 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 1.1 christos fi
5120 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tputs" >&5
5121 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tputs" >&6; }
5122 1.1 christos if test $ac_cv_have_decl_tputs = yes; then
5123 1.1 christos
5124 1.1 christos cat >>confdefs.h <<_ACEOF
5125 1.1 christos #define HAVE_DECL_TPUTS 1
5126 1.1 christos _ACEOF
5127 1.1 christos
5128 1.1 christos
5129 1.1 christos else
5130 1.1 christos cat >>confdefs.h <<_ACEOF
5131 1.1 christos #define HAVE_DECL_TPUTS 0
5132 1.1 christos _ACEOF
5133 1.1 christos
5134 1.1 christos
5135 1.1 christos fi
5136 1.1 christos { echo "$as_me:$LINENO: checking whether tgoto is declared" >&5
5137 1.1 christos echo $ECHO_N "checking whether tgoto is declared... $ECHO_C" >&6; }
5138 1.1 christos if test "${ac_cv_have_decl_tgoto+set}" = set; then
5139 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5140 1.1 christos else
5141 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5142 1.1 christos /* confdefs.h. */
5143 1.1 christos _ACEOF
5144 1.1 christos cat confdefs.h >>conftest.$ac_ext
5145 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5146 1.1 christos /* end confdefs.h. */
5147 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5148 1.1 christos #include <curses.h>
5149 1.1 christos #include <term.h>
5150 1.1 christos #else
5151 1.1 christos #if HAVE_TERMCAP_H
5152 1.1 christos #include <termcap.h>
5153 1.1 christos #else
5154 1.1 christos #if HAVE_CURSES_H
5155 1.1 christos #include <curses.h>
5156 1.1 christos #endif
5157 1.1 christos #endif
5158 1.1 christos #endif
5159 1.1 christos
5160 1.1 christos
5161 1.1 christos int
5162 1.1 christos main ()
5163 1.1 christos {
5164 1.1 christos #ifndef tgoto
5165 1.1 christos (void) tgoto;
5166 1.1 christos #endif
5167 1.1 christos
5168 1.1 christos ;
5169 1.1 christos return 0;
5170 1.1 christos }
5171 1.1 christos _ACEOF
5172 1.1 christos rm -f conftest.$ac_objext
5173 1.1 christos if { (ac_try="$ac_compile"
5174 1.1 christos case "(($ac_try" in
5175 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 1.1 christos *) ac_try_echo=$ac_try;;
5177 1.1 christos esac
5178 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 1.1 christos (eval "$ac_compile") 2>conftest.er1
5180 1.1 christos ac_status=$?
5181 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5182 1.1 christos rm -f conftest.er1
5183 1.1 christos cat conftest.err >&5
5184 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 1.1 christos (exit $ac_status); } && {
5186 1.1 christos test -z "$ac_c_werror_flag" ||
5187 1.1 christos test ! -s conftest.err
5188 1.1 christos } && test -s conftest.$ac_objext; then
5189 1.1 christos ac_cv_have_decl_tgoto=yes
5190 1.1 christos else
5191 1.1 christos echo "$as_me: failed program was:" >&5
5192 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5193 1.1 christos
5194 1.1 christos ac_cv_have_decl_tgoto=no
5195 1.1 christos fi
5196 1.1 christos
5197 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 1.1 christos fi
5199 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgoto" >&5
5200 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tgoto" >&6; }
5201 1.1 christos if test $ac_cv_have_decl_tgoto = yes; then
5202 1.1 christos
5203 1.1 christos cat >>confdefs.h <<_ACEOF
5204 1.1 christos #define HAVE_DECL_TGOTO 1
5205 1.1 christos _ACEOF
5206 1.1 christos
5207 1.1 christos
5208 1.1 christos else
5209 1.1 christos cat >>confdefs.h <<_ACEOF
5210 1.1 christos #define HAVE_DECL_TGOTO 0
5211 1.1 christos _ACEOF
5212 1.1 christos
5213 1.1 christos
5214 1.1 christos fi
5215 1.1 christos { echo "$as_me:$LINENO: checking whether tgetent is declared" >&5
5216 1.1 christos echo $ECHO_N "checking whether tgetent is declared... $ECHO_C" >&6; }
5217 1.1 christos if test "${ac_cv_have_decl_tgetent+set}" = set; then
5218 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5219 1.1 christos else
5220 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5221 1.1 christos /* confdefs.h. */
5222 1.1 christos _ACEOF
5223 1.1 christos cat confdefs.h >>conftest.$ac_ext
5224 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5225 1.1 christos /* end confdefs.h. */
5226 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5227 1.1 christos #include <curses.h>
5228 1.1 christos #include <term.h>
5229 1.1 christos #else
5230 1.1 christos #if HAVE_TERMCAP_H
5231 1.1 christos #include <termcap.h>
5232 1.1 christos #else
5233 1.1 christos #if HAVE_CURSES_H
5234 1.1 christos #include <curses.h>
5235 1.1 christos #endif
5236 1.1 christos #endif
5237 1.1 christos #endif
5238 1.1 christos
5239 1.1 christos
5240 1.1 christos int
5241 1.1 christos main ()
5242 1.1 christos {
5243 1.1 christos #ifndef tgetent
5244 1.1 christos (void) tgetent;
5245 1.1 christos #endif
5246 1.1 christos
5247 1.1 christos ;
5248 1.1 christos return 0;
5249 1.1 christos }
5250 1.1 christos _ACEOF
5251 1.1 christos rm -f conftest.$ac_objext
5252 1.1 christos if { (ac_try="$ac_compile"
5253 1.1 christos case "(($ac_try" in
5254 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 1.1 christos *) ac_try_echo=$ac_try;;
5256 1.1 christos esac
5257 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 1.1 christos (eval "$ac_compile") 2>conftest.er1
5259 1.1 christos ac_status=$?
5260 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5261 1.1 christos rm -f conftest.er1
5262 1.1 christos cat conftest.err >&5
5263 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 1.1 christos (exit $ac_status); } && {
5265 1.1 christos test -z "$ac_c_werror_flag" ||
5266 1.1 christos test ! -s conftest.err
5267 1.1 christos } && test -s conftest.$ac_objext; then
5268 1.1 christos ac_cv_have_decl_tgetent=yes
5269 1.1 christos else
5270 1.1 christos echo "$as_me: failed program was:" >&5
5271 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5272 1.1 christos
5273 1.1 christos ac_cv_have_decl_tgetent=no
5274 1.1 christos fi
5275 1.1 christos
5276 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 1.1 christos fi
5278 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetent" >&5
5279 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tgetent" >&6; }
5280 1.1 christos if test $ac_cv_have_decl_tgetent = yes; then
5281 1.1 christos
5282 1.1 christos cat >>confdefs.h <<_ACEOF
5283 1.1 christos #define HAVE_DECL_TGETENT 1
5284 1.1 christos _ACEOF
5285 1.1 christos
5286 1.1 christos
5287 1.1 christos else
5288 1.1 christos cat >>confdefs.h <<_ACEOF
5289 1.1 christos #define HAVE_DECL_TGETENT 0
5290 1.1 christos _ACEOF
5291 1.1 christos
5292 1.1 christos
5293 1.1 christos fi
5294 1.1 christos { echo "$as_me:$LINENO: checking whether tgetflag is declared" >&5
5295 1.1 christos echo $ECHO_N "checking whether tgetflag is declared... $ECHO_C" >&6; }
5296 1.1 christos if test "${ac_cv_have_decl_tgetflag+set}" = set; then
5297 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5298 1.1 christos else
5299 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5300 1.1 christos /* confdefs.h. */
5301 1.1 christos _ACEOF
5302 1.1 christos cat confdefs.h >>conftest.$ac_ext
5303 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5304 1.1 christos /* end confdefs.h. */
5305 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5306 1.1 christos #include <curses.h>
5307 1.1 christos #include <term.h>
5308 1.1 christos #else
5309 1.1 christos #if HAVE_TERMCAP_H
5310 1.1 christos #include <termcap.h>
5311 1.1 christos #else
5312 1.1 christos #if HAVE_CURSES_H
5313 1.1 christos #include <curses.h>
5314 1.1 christos #endif
5315 1.1 christos #endif
5316 1.1 christos #endif
5317 1.1 christos
5318 1.1 christos
5319 1.1 christos int
5320 1.1 christos main ()
5321 1.1 christos {
5322 1.1 christos #ifndef tgetflag
5323 1.1 christos (void) tgetflag;
5324 1.1 christos #endif
5325 1.1 christos
5326 1.1 christos ;
5327 1.1 christos return 0;
5328 1.1 christos }
5329 1.1 christos _ACEOF
5330 1.1 christos rm -f conftest.$ac_objext
5331 1.1 christos if { (ac_try="$ac_compile"
5332 1.1 christos case "(($ac_try" in
5333 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 1.1 christos *) ac_try_echo=$ac_try;;
5335 1.1 christos esac
5336 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 1.1 christos (eval "$ac_compile") 2>conftest.er1
5338 1.1 christos ac_status=$?
5339 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5340 1.1 christos rm -f conftest.er1
5341 1.1 christos cat conftest.err >&5
5342 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 1.1 christos (exit $ac_status); } && {
5344 1.1 christos test -z "$ac_c_werror_flag" ||
5345 1.1 christos test ! -s conftest.err
5346 1.1 christos } && test -s conftest.$ac_objext; then
5347 1.1 christos ac_cv_have_decl_tgetflag=yes
5348 1.1 christos else
5349 1.1 christos echo "$as_me: failed program was:" >&5
5350 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5351 1.1 christos
5352 1.1 christos ac_cv_have_decl_tgetflag=no
5353 1.1 christos fi
5354 1.1 christos
5355 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 1.1 christos fi
5357 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetflag" >&5
5358 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tgetflag" >&6; }
5359 1.1 christos if test $ac_cv_have_decl_tgetflag = yes; then
5360 1.1 christos
5361 1.1 christos cat >>confdefs.h <<_ACEOF
5362 1.1 christos #define HAVE_DECL_TGETFLAG 1
5363 1.1 christos _ACEOF
5364 1.1 christos
5365 1.1 christos
5366 1.1 christos else
5367 1.1 christos cat >>confdefs.h <<_ACEOF
5368 1.1 christos #define HAVE_DECL_TGETFLAG 0
5369 1.1 christos _ACEOF
5370 1.1 christos
5371 1.1 christos
5372 1.1 christos fi
5373 1.1 christos { echo "$as_me:$LINENO: checking whether tgetnum is declared" >&5
5374 1.1 christos echo $ECHO_N "checking whether tgetnum is declared... $ECHO_C" >&6; }
5375 1.1 christos if test "${ac_cv_have_decl_tgetnum+set}" = set; then
5376 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5377 1.1 christos else
5378 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5379 1.1 christos /* confdefs.h. */
5380 1.1 christos _ACEOF
5381 1.1 christos cat confdefs.h >>conftest.$ac_ext
5382 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5383 1.1 christos /* end confdefs.h. */
5384 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5385 1.1 christos #include <curses.h>
5386 1.1 christos #include <term.h>
5387 1.1 christos #else
5388 1.1 christos #if HAVE_TERMCAP_H
5389 1.1 christos #include <termcap.h>
5390 1.1 christos #else
5391 1.1 christos #if HAVE_CURSES_H
5392 1.1 christos #include <curses.h>
5393 1.1 christos #endif
5394 1.1 christos #endif
5395 1.1 christos #endif
5396 1.1 christos
5397 1.1 christos
5398 1.1 christos int
5399 1.1 christos main ()
5400 1.1 christos {
5401 1.1 christos #ifndef tgetnum
5402 1.1 christos (void) tgetnum;
5403 1.1 christos #endif
5404 1.1 christos
5405 1.1 christos ;
5406 1.1 christos return 0;
5407 1.1 christos }
5408 1.1 christos _ACEOF
5409 1.1 christos rm -f conftest.$ac_objext
5410 1.1 christos if { (ac_try="$ac_compile"
5411 1.1 christos case "(($ac_try" in
5412 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 1.1 christos *) ac_try_echo=$ac_try;;
5414 1.1 christos esac
5415 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 1.1 christos (eval "$ac_compile") 2>conftest.er1
5417 1.1 christos ac_status=$?
5418 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5419 1.1 christos rm -f conftest.er1
5420 1.1 christos cat conftest.err >&5
5421 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 1.1 christos (exit $ac_status); } && {
5423 1.1 christos test -z "$ac_c_werror_flag" ||
5424 1.1 christos test ! -s conftest.err
5425 1.1 christos } && test -s conftest.$ac_objext; then
5426 1.1 christos ac_cv_have_decl_tgetnum=yes
5427 1.1 christos else
5428 1.1 christos echo "$as_me: failed program was:" >&5
5429 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5430 1.1 christos
5431 1.1 christos ac_cv_have_decl_tgetnum=no
5432 1.1 christos fi
5433 1.1 christos
5434 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 1.1 christos fi
5436 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetnum" >&5
5437 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tgetnum" >&6; }
5438 1.1 christos if test $ac_cv_have_decl_tgetnum = yes; then
5439 1.1 christos
5440 1.1 christos cat >>confdefs.h <<_ACEOF
5441 1.1 christos #define HAVE_DECL_TGETNUM 1
5442 1.1 christos _ACEOF
5443 1.1 christos
5444 1.1 christos
5445 1.1 christos else
5446 1.1 christos cat >>confdefs.h <<_ACEOF
5447 1.1 christos #define HAVE_DECL_TGETNUM 0
5448 1.1 christos _ACEOF
5449 1.1 christos
5450 1.1 christos
5451 1.1 christos fi
5452 1.1 christos { echo "$as_me:$LINENO: checking whether tgetstr is declared" >&5
5453 1.1 christos echo $ECHO_N "checking whether tgetstr is declared... $ECHO_C" >&6; }
5454 1.1 christos if test "${ac_cv_have_decl_tgetstr+set}" = set; then
5455 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5456 1.1 christos else
5457 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5458 1.1 christos /* confdefs.h. */
5459 1.1 christos _ACEOF
5460 1.1 christos cat confdefs.h >>conftest.$ac_ext
5461 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5462 1.1 christos /* end confdefs.h. */
5463 1.1 christos #if HAVE_CURSES_H && HAVE_TERM_H
5464 1.1 christos #include <curses.h>
5465 1.1 christos #include <term.h>
5466 1.1 christos #else
5467 1.1 christos #if HAVE_TERMCAP_H
5468 1.1 christos #include <termcap.h>
5469 1.1 christos #else
5470 1.1 christos #if HAVE_CURSES_H
5471 1.1 christos #include <curses.h>
5472 1.1 christos #endif
5473 1.1 christos #endif
5474 1.1 christos #endif
5475 1.1 christos
5476 1.1 christos
5477 1.1 christos int
5478 1.1 christos main ()
5479 1.1 christos {
5480 1.1 christos #ifndef tgetstr
5481 1.1 christos (void) tgetstr;
5482 1.1 christos #endif
5483 1.1 christos
5484 1.1 christos ;
5485 1.1 christos return 0;
5486 1.1 christos }
5487 1.1 christos _ACEOF
5488 1.1 christos rm -f conftest.$ac_objext
5489 1.1 christos if { (ac_try="$ac_compile"
5490 1.1 christos case "(($ac_try" in
5491 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 1.1 christos *) ac_try_echo=$ac_try;;
5493 1.1 christos esac
5494 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 1.1 christos (eval "$ac_compile") 2>conftest.er1
5496 1.1 christos ac_status=$?
5497 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5498 1.1 christos rm -f conftest.er1
5499 1.1 christos cat conftest.err >&5
5500 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 1.1 christos (exit $ac_status); } && {
5502 1.1 christos test -z "$ac_c_werror_flag" ||
5503 1.1 christos test ! -s conftest.err
5504 1.1 christos } && test -s conftest.$ac_objext; then
5505 1.1 christos ac_cv_have_decl_tgetstr=yes
5506 1.1 christos else
5507 1.1 christos echo "$as_me: failed program was:" >&5
5508 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5509 1.1 christos
5510 1.1 christos ac_cv_have_decl_tgetstr=no
5511 1.1 christos fi
5512 1.1 christos
5513 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 1.1 christos fi
5515 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetstr" >&5
5516 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_tgetstr" >&6; }
5517 1.1 christos if test $ac_cv_have_decl_tgetstr = yes; then
5518 1.1 christos
5519 1.1 christos cat >>confdefs.h <<_ACEOF
5520 1.1 christos #define HAVE_DECL_TGETSTR 1
5521 1.1 christos _ACEOF
5522 1.1 christos
5523 1.1 christos
5524 1.1 christos else
5525 1.1 christos cat >>confdefs.h <<_ACEOF
5526 1.1 christos #define HAVE_DECL_TGETSTR 0
5527 1.1 christos _ACEOF
5528 1.1 christos
5529 1.1 christos
5530 1.1 christos fi
5531 1.1 christos
5532 1.1 christos
5533 1.1 christos
5534 1.1 christos # The third argument to tputs is a putc-like function that takes an
5535 1.1 christos # argument. On most systems that argument is an int, but on some it
5536 1.1 christos # is a char. Determine which.
5537 1.1 christos { echo "$as_me:$LINENO: checking argument type of tputs putc function" >&5
5538 1.1 christos echo $ECHO_N "checking argument type of tputs putc function... $ECHO_C" >&6; }
5539 1.1 christos _savedwerror_flag=$ac_c_werror_flag
5540 1.1 christos ac_c_werror_flag=yes
5541 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5542 1.1 christos /* confdefs.h. */
5543 1.1 christos _ACEOF
5544 1.1 christos cat confdefs.h >>conftest.$ac_ext
5545 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5546 1.1 christos /* end confdefs.h. */
5547 1.1 christos #ifdef HAVE_TERMCAP_H
5548 1.1 christos #include <termcap.h>
5549 1.1 christos #endif
5550 1.1 christos #ifdef HAVE_CURSES_H
5551 1.1 christos #include <curses.h>
5552 1.1 christos #endif
5553 1.1 christos #ifdef HAVE_TERM_H
5554 1.1 christos #include <term.h>
5555 1.1 christos #endif
5556 1.1 christos int f(char i) { }
5557 1.1 christos int
5558 1.1 christos main ()
5559 1.1 christos {
5560 1.1 christos tputs("a", 1, f);
5561 1.1 christos ;
5562 1.1 christos return 0;
5563 1.1 christos }
5564 1.1 christos _ACEOF
5565 1.1 christos rm -f conftest.$ac_objext
5566 1.1 christos if { (ac_try="$ac_compile"
5567 1.1 christos case "(($ac_try" in
5568 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 1.1 christos *) ac_try_echo=$ac_try;;
5570 1.1 christos esac
5571 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 1.1 christos (eval "$ac_compile") 2>conftest.er1
5573 1.1 christos ac_status=$?
5574 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5575 1.1 christos rm -f conftest.er1
5576 1.1 christos cat conftest.err >&5
5577 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 1.1 christos (exit $ac_status); } && {
5579 1.1 christos test -z "$ac_c_werror_flag" ||
5580 1.1 christos test ! -s conftest.err
5581 1.1 christos } && test -s conftest.$ac_objext; then
5582 1.1 christos ac_cv_type_tputs_putc="char"
5583 1.1 christos else
5584 1.1 christos echo "$as_me: failed program was:" >&5
5585 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5586 1.1 christos
5587 1.1 christos ac_cv_type_tputs_putc="int"
5588 1.1 christos fi
5589 1.1 christos
5590 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_tputs_putc" >&5
5592 1.1 christos echo "${ECHO_T}$ac_cv_type_tputs_putc" >&6; }
5593 1.1 christos
5594 1.1 christos cat >>confdefs.h <<_ACEOF
5595 1.1 christos #define TPUTS_PUTC_ARGTYPE $ac_cv_type_tputs_putc
5596 1.1 christos _ACEOF
5597 1.1 christos
5598 1.1 christos ac_c_werror_flag=$_savedwerror_flag
5599 1.1 christos
5600 1.1 christos # Determine presence of needed types
5601 1.1 christos { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5602 1.1 christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5603 1.1 christos if test "${ac_cv_type_signal+set}" = set; then
5604 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5605 1.1 christos else
5606 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5607 1.1 christos /* confdefs.h. */
5608 1.1 christos _ACEOF
5609 1.1 christos cat confdefs.h >>conftest.$ac_ext
5610 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5611 1.1 christos /* end confdefs.h. */
5612 1.1 christos #include <sys/types.h>
5613 1.1 christos #include <signal.h>
5614 1.1 christos
5615 1.1 christos int
5616 1.1 christos main ()
5617 1.1 christos {
5618 1.1 christos return *(signal (0, 0)) (0) == 1;
5619 1.1 christos ;
5620 1.1 christos return 0;
5621 1.1 christos }
5622 1.1 christos _ACEOF
5623 1.1 christos rm -f conftest.$ac_objext
5624 1.1 christos if { (ac_try="$ac_compile"
5625 1.1 christos case "(($ac_try" in
5626 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 1.1 christos *) ac_try_echo=$ac_try;;
5628 1.1 christos esac
5629 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 1.1 christos (eval "$ac_compile") 2>conftest.er1
5631 1.1 christos ac_status=$?
5632 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5633 1.1 christos rm -f conftest.er1
5634 1.1 christos cat conftest.err >&5
5635 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 1.1 christos (exit $ac_status); } && {
5637 1.1 christos test -z "$ac_c_werror_flag" ||
5638 1.1 christos test ! -s conftest.err
5639 1.1 christos } && test -s conftest.$ac_objext; then
5640 1.1 christos ac_cv_type_signal=int
5641 1.1 christos else
5642 1.1 christos echo "$as_me: failed program was:" >&5
5643 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5644 1.1 christos
5645 1.1 christos ac_cv_type_signal=void
5646 1.1 christos fi
5647 1.1 christos
5648 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 1.1 christos fi
5650 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5651 1.1 christos echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5652 1.1 christos
5653 1.1 christos cat >>confdefs.h <<_ACEOF
5654 1.1 christos #define RETSIGTYPE $ac_cv_type_signal
5655 1.1 christos _ACEOF
5656 1.1 christos
5657 1.1 christos
5658 1.1 christos { echo "$as_me:$LINENO: checking for id_t" >&5
5659 1.1 christos echo $ECHO_N "checking for id_t... $ECHO_C" >&6; }
5660 1.1 christos if test "${ac_cv_type_id_t+set}" = set; then
5661 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5662 1.1 christos else
5663 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5664 1.1 christos /* confdefs.h. */
5665 1.1 christos _ACEOF
5666 1.1 christos cat confdefs.h >>conftest.$ac_ext
5667 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5668 1.1 christos /* end confdefs.h. */
5669 1.1 christos $ac_includes_default
5670 1.1 christos typedef id_t ac__type_new_;
5671 1.1 christos int
5672 1.1 christos main ()
5673 1.1 christos {
5674 1.1 christos if ((ac__type_new_ *) 0)
5675 1.1 christos return 0;
5676 1.1 christos if (sizeof (ac__type_new_))
5677 1.1 christos return 0;
5678 1.1 christos ;
5679 1.1 christos return 0;
5680 1.1 christos }
5681 1.1 christos _ACEOF
5682 1.1 christos rm -f conftest.$ac_objext
5683 1.1 christos if { (ac_try="$ac_compile"
5684 1.1 christos case "(($ac_try" in
5685 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 1.1 christos *) ac_try_echo=$ac_try;;
5687 1.1 christos esac
5688 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 1.1 christos (eval "$ac_compile") 2>conftest.er1
5690 1.1 christos ac_status=$?
5691 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5692 1.1 christos rm -f conftest.er1
5693 1.1 christos cat conftest.err >&5
5694 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 1.1 christos (exit $ac_status); } && {
5696 1.1 christos test -z "$ac_c_werror_flag" ||
5697 1.1 christos test ! -s conftest.err
5698 1.1 christos } && test -s conftest.$ac_objext; then
5699 1.1 christos ac_cv_type_id_t=yes
5700 1.1 christos else
5701 1.1 christos echo "$as_me: failed program was:" >&5
5702 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5703 1.1 christos
5704 1.1 christos ac_cv_type_id_t=no
5705 1.1 christos fi
5706 1.1 christos
5707 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 1.1 christos fi
5709 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
5710 1.1 christos echo "${ECHO_T}$ac_cv_type_id_t" >&6; }
5711 1.1 christos if test $ac_cv_type_id_t = yes; then
5712 1.1 christos
5713 1.1 christos cat >>confdefs.h <<_ACEOF
5714 1.1 christos #define HAVE_ID_T 1
5715 1.1 christos _ACEOF
5716 1.1 christos
5717 1.1 christos
5718 1.1 christos fi
5719 1.1 christos { echo "$as_me:$LINENO: checking for lwpid_t" >&5
5720 1.1 christos echo $ECHO_N "checking for lwpid_t... $ECHO_C" >&6; }
5721 1.1 christos if test "${ac_cv_type_lwpid_t+set}" = set; then
5722 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5723 1.1 christos else
5724 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5725 1.1 christos /* confdefs.h. */
5726 1.1 christos _ACEOF
5727 1.1 christos cat confdefs.h >>conftest.$ac_ext
5728 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5729 1.1 christos /* end confdefs.h. */
5730 1.1 christos $ac_includes_default
5731 1.1 christos typedef lwpid_t ac__type_new_;
5732 1.1 christos int
5733 1.1 christos main ()
5734 1.1 christos {
5735 1.1 christos if ((ac__type_new_ *) 0)
5736 1.1 christos return 0;
5737 1.1 christos if (sizeof (ac__type_new_))
5738 1.1 christos return 0;
5739 1.1 christos ;
5740 1.1 christos return 0;
5741 1.1 christos }
5742 1.1 christos _ACEOF
5743 1.1 christos rm -f conftest.$ac_objext
5744 1.1 christos if { (ac_try="$ac_compile"
5745 1.1 christos case "(($ac_try" in
5746 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 1.1 christos *) ac_try_echo=$ac_try;;
5748 1.1 christos esac
5749 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 1.1 christos (eval "$ac_compile") 2>conftest.er1
5751 1.1 christos ac_status=$?
5752 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5753 1.1 christos rm -f conftest.er1
5754 1.1 christos cat conftest.err >&5
5755 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 1.1 christos (exit $ac_status); } && {
5757 1.1 christos test -z "$ac_c_werror_flag" ||
5758 1.1 christos test ! -s conftest.err
5759 1.1 christos } && test -s conftest.$ac_objext; then
5760 1.1 christos ac_cv_type_lwpid_t=yes
5761 1.1 christos else
5762 1.1 christos echo "$as_me: failed program was:" >&5
5763 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5764 1.1 christos
5765 1.1 christos ac_cv_type_lwpid_t=no
5766 1.1 christos fi
5767 1.1 christos
5768 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 1.1 christos fi
5770 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_lwpid_t" >&5
5771 1.1 christos echo "${ECHO_T}$ac_cv_type_lwpid_t" >&6; }
5772 1.1 christos if test $ac_cv_type_lwpid_t = yes; then
5773 1.1 christos
5774 1.1 christos cat >>confdefs.h <<_ACEOF
5775 1.1 christos #define HAVE_LWPID_T 1
5776 1.1 christos _ACEOF
5777 1.1 christos
5778 1.1 christos
5779 1.1 christos fi
5780 1.1 christos { echo "$as_me:$LINENO: checking for pid_t" >&5
5781 1.1 christos echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5782 1.1 christos if test "${ac_cv_type_pid_t+set}" = set; then
5783 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5784 1.1 christos else
5785 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5786 1.1 christos /* confdefs.h. */
5787 1.1 christos _ACEOF
5788 1.1 christos cat confdefs.h >>conftest.$ac_ext
5789 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5790 1.1 christos /* end confdefs.h. */
5791 1.1 christos $ac_includes_default
5792 1.1 christos typedef pid_t ac__type_new_;
5793 1.1 christos int
5794 1.1 christos main ()
5795 1.1 christos {
5796 1.1 christos if ((ac__type_new_ *) 0)
5797 1.1 christos return 0;
5798 1.1 christos if (sizeof (ac__type_new_))
5799 1.1 christos return 0;
5800 1.1 christos ;
5801 1.1 christos return 0;
5802 1.1 christos }
5803 1.1 christos _ACEOF
5804 1.1 christos rm -f conftest.$ac_objext
5805 1.1 christos if { (ac_try="$ac_compile"
5806 1.1 christos case "(($ac_try" in
5807 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 1.1 christos *) ac_try_echo=$ac_try;;
5809 1.1 christos esac
5810 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 1.1 christos (eval "$ac_compile") 2>conftest.er1
5812 1.1 christos ac_status=$?
5813 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5814 1.1 christos rm -f conftest.er1
5815 1.1 christos cat conftest.err >&5
5816 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 1.1 christos (exit $ac_status); } && {
5818 1.1 christos test -z "$ac_c_werror_flag" ||
5819 1.1 christos test ! -s conftest.err
5820 1.1 christos } && test -s conftest.$ac_objext; then
5821 1.1 christos ac_cv_type_pid_t=yes
5822 1.1 christos else
5823 1.1 christos echo "$as_me: failed program was:" >&5
5824 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5825 1.1 christos
5826 1.1 christos ac_cv_type_pid_t=no
5827 1.1 christos fi
5828 1.1 christos
5829 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 1.1 christos fi
5831 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5832 1.1 christos echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5833 1.1 christos if test $ac_cv_type_pid_t = yes; then
5834 1.1 christos
5835 1.1 christos cat >>confdefs.h <<_ACEOF
5836 1.1 christos #define HAVE_PID_T 1
5837 1.1 christos _ACEOF
5838 1.1 christos
5839 1.1 christos
5840 1.1 christos fi
5841 1.1 christos { echo "$as_me:$LINENO: checking for time_t" >&5
5842 1.1 christos echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
5843 1.1 christos if test "${ac_cv_type_time_t+set}" = set; then
5844 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5845 1.1 christos else
5846 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5847 1.1 christos /* confdefs.h. */
5848 1.1 christos _ACEOF
5849 1.1 christos cat confdefs.h >>conftest.$ac_ext
5850 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5851 1.1 christos /* end confdefs.h. */
5852 1.1 christos $ac_includes_default
5853 1.1 christos typedef time_t ac__type_new_;
5854 1.1 christos int
5855 1.1 christos main ()
5856 1.1 christos {
5857 1.1 christos if ((ac__type_new_ *) 0)
5858 1.1 christos return 0;
5859 1.1 christos if (sizeof (ac__type_new_))
5860 1.1 christos return 0;
5861 1.1 christos ;
5862 1.1 christos return 0;
5863 1.1 christos }
5864 1.1 christos _ACEOF
5865 1.1 christos rm -f conftest.$ac_objext
5866 1.1 christos if { (ac_try="$ac_compile"
5867 1.1 christos case "(($ac_try" in
5868 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 1.1 christos *) ac_try_echo=$ac_try;;
5870 1.1 christos esac
5871 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 1.1 christos (eval "$ac_compile") 2>conftest.er1
5873 1.1 christos ac_status=$?
5874 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5875 1.1 christos rm -f conftest.er1
5876 1.1 christos cat conftest.err >&5
5877 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 1.1 christos (exit $ac_status); } && {
5879 1.1 christos test -z "$ac_c_werror_flag" ||
5880 1.1 christos test ! -s conftest.err
5881 1.1 christos } && test -s conftest.$ac_objext; then
5882 1.1 christos ac_cv_type_time_t=yes
5883 1.1 christos else
5884 1.1 christos echo "$as_me: failed program was:" >&5
5885 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5886 1.1 christos
5887 1.1 christos ac_cv_type_time_t=no
5888 1.1 christos fi
5889 1.1 christos
5890 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 1.1 christos fi
5892 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
5893 1.1 christos echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
5894 1.1 christos if test $ac_cv_type_time_t = yes; then
5895 1.1 christos
5896 1.1 christos cat >>confdefs.h <<_ACEOF
5897 1.1 christos #define HAVE_TIME_T 1
5898 1.1 christos _ACEOF
5899 1.1 christos
5900 1.1 christos
5901 1.1 christos fi
5902 1.1 christos { echo "$as_me:$LINENO: checking for uid_t" >&5
5903 1.1 christos echo $ECHO_N "checking for uid_t... $ECHO_C" >&6; }
5904 1.1 christos if test "${ac_cv_type_uid_t+set}" = set; then
5905 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5906 1.1 christos else
5907 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5908 1.1 christos /* confdefs.h. */
5909 1.1 christos _ACEOF
5910 1.1 christos cat confdefs.h >>conftest.$ac_ext
5911 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5912 1.1 christos /* end confdefs.h. */
5913 1.1 christos $ac_includes_default
5914 1.1 christos typedef uid_t ac__type_new_;
5915 1.1 christos int
5916 1.1 christos main ()
5917 1.1 christos {
5918 1.1 christos if ((ac__type_new_ *) 0)
5919 1.1 christos return 0;
5920 1.1 christos if (sizeof (ac__type_new_))
5921 1.1 christos return 0;
5922 1.1 christos ;
5923 1.1 christos return 0;
5924 1.1 christos }
5925 1.1 christos _ACEOF
5926 1.1 christos rm -f conftest.$ac_objext
5927 1.1 christos if { (ac_try="$ac_compile"
5928 1.1 christos case "(($ac_try" in
5929 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 1.1 christos *) ac_try_echo=$ac_try;;
5931 1.1 christos esac
5932 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 1.1 christos (eval "$ac_compile") 2>conftest.er1
5934 1.1 christos ac_status=$?
5935 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5936 1.1 christos rm -f conftest.er1
5937 1.1 christos cat conftest.err >&5
5938 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 1.1 christos (exit $ac_status); } && {
5940 1.1 christos test -z "$ac_c_werror_flag" ||
5941 1.1 christos test ! -s conftest.err
5942 1.1 christos } && test -s conftest.$ac_objext; then
5943 1.1 christos ac_cv_type_uid_t=yes
5944 1.1 christos else
5945 1.1 christos echo "$as_me: failed program was:" >&5
5946 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5947 1.1 christos
5948 1.1 christos ac_cv_type_uid_t=no
5949 1.1 christos fi
5950 1.1 christos
5951 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 1.1 christos fi
5953 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5954 1.1 christos echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5955 1.1 christos if test $ac_cv_type_uid_t = yes; then
5956 1.1 christos
5957 1.1 christos cat >>confdefs.h <<_ACEOF
5958 1.1 christos #define HAVE_UID_T 1
5959 1.1 christos _ACEOF
5960 1.1 christos
5961 1.1 christos
5962 1.1 christos fi
5963 1.1 christos
5964 1.1 christos
5965 1.1 christos # Checks for library functions.
5966 1.1 christos
5967 1.1 christos
5968 1.1 christos
5969 1.1 christos
5970 1.1 christos
5971 1.1 christos
5972 1.1 christos
5973 1.1 christos
5974 1.1 christos
5975 1.1 christos
5976 1.1 christos
5977 1.1 christos
5978 1.1 christos
5979 1.1 christos
5980 1.1 christos
5981 1.1 christos
5982 1.1 christos
5983 1.1 christos
5984 1.1 christos for ac_func in getopt getopt_long gettimeofday memcpy setbuffer setpriority setvbuf strcasecmp strchr strerror snprintf sighold sigrelse sigaction sigprocmask sysconf uname vsnprintf
5985 1.1 christos do
5986 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5987 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
5988 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5989 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5990 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5991 1.1 christos else
5992 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5993 1.1 christos /* confdefs.h. */
5994 1.1 christos _ACEOF
5995 1.1 christos cat confdefs.h >>conftest.$ac_ext
5996 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5997 1.1 christos /* end confdefs.h. */
5998 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5999 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
6000 1.1 christos #define $ac_func innocuous_$ac_func
6001 1.1 christos
6002 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
6003 1.1 christos which can conflict with char $ac_func (); below.
6004 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6005 1.1 christos <limits.h> exists even on freestanding compilers. */
6006 1.1 christos
6007 1.1 christos #ifdef __STDC__
6008 1.1 christos # include <limits.h>
6009 1.1 christos #else
6010 1.1 christos # include <assert.h>
6011 1.1 christos #endif
6012 1.1 christos
6013 1.1 christos #undef $ac_func
6014 1.1 christos
6015 1.1 christos /* Override any GCC internal prototype to avoid an error.
6016 1.1 christos Use char because int might match the return type of a GCC
6017 1.1 christos builtin and then its argument prototype would still apply. */
6018 1.1 christos #ifdef __cplusplus
6019 1.1 christos extern "C"
6020 1.1 christos #endif
6021 1.1 christos char $ac_func ();
6022 1.1 christos /* The GNU C library defines this for functions which it implements
6023 1.1 christos to always fail with ENOSYS. Some functions are actually named
6024 1.1 christos something starting with __ and the normal name is an alias. */
6025 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
6026 1.1 christos choke me
6027 1.1 christos #endif
6028 1.1 christos
6029 1.1 christos int
6030 1.1 christos main ()
6031 1.1 christos {
6032 1.1 christos return $ac_func ();
6033 1.1 christos ;
6034 1.1 christos return 0;
6035 1.1 christos }
6036 1.1 christos _ACEOF
6037 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
6038 1.1 christos if { (ac_try="$ac_link"
6039 1.1 christos case "(($ac_try" in
6040 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 1.1 christos *) ac_try_echo=$ac_try;;
6042 1.1 christos esac
6043 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 1.1 christos (eval "$ac_link") 2>conftest.er1
6045 1.1 christos ac_status=$?
6046 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6047 1.1 christos rm -f conftest.er1
6048 1.1 christos cat conftest.err >&5
6049 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 1.1 christos (exit $ac_status); } && {
6051 1.1 christos test -z "$ac_c_werror_flag" ||
6052 1.1 christos test ! -s conftest.err
6053 1.1 christos } && test -s conftest$ac_exeext &&
6054 1.1 christos $as_test_x conftest$ac_exeext; then
6055 1.1 christos eval "$as_ac_var=yes"
6056 1.1 christos else
6057 1.1 christos echo "$as_me: failed program was:" >&5
6058 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6059 1.1 christos
6060 1.1 christos eval "$as_ac_var=no"
6061 1.1 christos fi
6062 1.1 christos
6063 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6064 1.1 christos conftest$ac_exeext conftest.$ac_ext
6065 1.1 christos fi
6066 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
6067 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
6068 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
6069 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
6070 1.1 christos cat >>confdefs.h <<_ACEOF
6071 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6072 1.1 christos _ACEOF
6073 1.1 christos
6074 1.1 christos fi
6075 1.1 christos done
6076 1.1 christos
6077 1.1 christos
6078 1.1 christos # this is needed in the man page
6079 1.1 christos if test "x$ac_cv_func_getopt_long" = "xyes"; then
6080 1.1 christos HAVE_GETOPT_LONG=1
6081 1.1 christos else
6082 1.1 christos HAVE_GETOPT_LONG=0
6083 1.1 christos fi
6084 1.1 christos
6085 1.1 christos
6086 1.1 christos # if we dont have snprintf/vsnprint then we need to compile the alternate
6087 1.1 christos if test "x$ac_cv_func_snprintf" != "xyes" -o "x$ac_cv_func_vsnprintf" != "xyes"; then
6088 1.1 christos SRC="$SRC ap_snprintf.c"
6089 1.1 christos OBJ="$OBJ ap_snprintf.o"
6090 1.1 christos fi
6091 1.1 christos
6092 1.1 christos
6093 1.1 christos # determine correct user, group, and mode
6094 1.1 christos # these can be overridden later if need be
6095 1.1 christos { echo "$as_me:$LINENO: checking for correct ls options" >&5
6096 1.1 christos echo $ECHO_N "checking for correct ls options... $ECHO_C" >&6; }
6097 1.1 christos lslong="ls -l"
6098 1.1 christos if test `$lslong -d . | wc -w` -lt 9; then
6099 1.1 christos lslong="ls -lg"
6100 1.1 christos fi
6101 1.1 christos { echo "$as_me:$LINENO: result: $lslong" >&5
6102 1.1 christos echo "${ECHO_T}$lslong" >&6; }
6103 1.1 christos
6104 1.1 christos
6105 1.1 christos # determine correct module
6106 1.1 christos { echo "$as_me:$LINENO: checking for a platform module" >&5
6107 1.1 christos echo $ECHO_N "checking for a platform module... $ECHO_C" >&6; }
6108 1.1 christos if test "$with_module"; then
6109 1.1 christos MODULE=$with_module
6110 1.1 christos else
6111 1.1 christos case $target_os in
6112 1.1 christos aix4.2*) MODULE=aix43;;
6113 1.1 christos aix4.3*) MODULE=aix43;;
6114 1.1 christos aix5*) MODULE=aix5;;
6115 1.1 christos dec-osf*) MODULE=decosf1;;
6116 1.1 christos osf1*) MODULE=decosf1;;
6117 1.1 christos osf4*) MODULE=decosf1;;
6118 1.1 christos osf5*) MODULE=decosf1;;
6119 1.1 christos freebsd*) MODULE=freebsd; USE_KMEM=1; USE_FPH=1;;
6120 1.1 christos hpux7*) MODULE=hpux7;;
6121 1.1 christos hpux8*) MODULE=hpux8;;
6122 1.1 christos hpux9*) MODULE=hpux9;;
6123 1.1 christos hpux10*) MODULE=hpux10;;
6124 1.1 christos hpux11*) MODULE=hpux10;;
6125 1.1 christos irix5*) MODULE=irix5;;
6126 1.1 christos irix6*) MODULE=irixsgi;;
6127 1.1 christos linux*) MODULE=linux; USE_FPH=1; SET_MODE=755;;
6128 1.1 christos netbsd*) MODULE=netbsd; SET_MODE=755;;
6129 1.1 christos solaris2*) MODULE=sunos5; USE_FPH=1; SET_MODE=755;;
6130 1.1 christos sunos4*) MODULE=sunos4;;
6131 1.1 christos sysv4*) MODULE=svr4;;
6132 1.1 christos sysv5*) MODULE=svr5;;
6133 1.1 christos darwin*)
6134 1.1 christos echo "macosx"
6135 1.1 christos echo "The macosx module is untested. Use at your own risk."
6136 1.1 christos echo "If you really want to use this module, please run configure as follows:"
6137 1.1 christos echo " ./configure --with-module=macosx"
6138 1.1 christos { { echo "$as_me:$LINENO: error: macosx module unsupported" >&5
6139 1.1 christos echo "$as_me: error: macosx module unsupported" >&2;}
6140 1.1 christos { (exit 1); exit 1; }; };;
6141 1.1 christos *) echo "none"
6142 1.1 christos echo "Configure doesn't recognize this system and doesn't know"
6143 1.1 christos echo "what module to assign to it. Help the cause and run the"
6144 1.1 christos echo "following command to let the maintainers know about this"
6145 1.1 christos echo "deficiency! Thanks. Just cut and paste the following:"
6146 1.1 christos echo "uname -a | mail -s $target_os bill (at] lefebvre.org"
6147 1.1 christos echo ""
6148 1.1 christos { { echo "$as_me:$LINENO: error: System type $target_os unrecognized" >&5
6149 1.1 christos echo "$as_me: error: System type $target_os unrecognized" >&2;}
6150 1.1 christos { (exit 1); exit 1; }; }
6151 1.1 christos esac
6152 1.1 christos fi
6153 1.1 christos { echo "$as_me:$LINENO: result: $MODULE" >&5
6154 1.1 christos echo "${ECHO_T}$MODULE" >&6; }
6155 1.1 christos SRC="$SRC machine/m_$MODULE.c"
6156 1.1 christos OBJ="$OBJ m_$MODULE.o"
6157 1.1 christos CLEAN_EXTRA=""
6158 1.1 christos
6159 1.1 christos
6160 1.1 christos
6161 1.1 christos
6162 1.1 christos cat >>confdefs.h <<_ACEOF
6163 1.1 christos #define MODULE "$MODULE"
6164 1.1 christos _ACEOF
6165 1.1 christos
6166 1.1 christos
6167 1.1 christos FIRST_RULE=/dev/null
6168 1.1 christos INSTALL_RULE=config.default.makeinstall
6169 1.1 christos
6170 1.1 christos # extra things that need to be done for certain systems
6171 1.1 christos # also handle setup for 64-bit detection
6172 1.1 christos bits="default"
6173 1.1 christos case $MODULE in
6174 1.1 christos aix5)
6175 1.1 christos
6176 1.1 christos { echo "$as_me:$LINENO: checking for perfstat_cpu_total in -lperfstat" >&5
6177 1.1 christos echo $ECHO_N "checking for perfstat_cpu_total in -lperfstat... $ECHO_C" >&6; }
6178 1.1 christos if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then
6179 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6180 1.1 christos else
6181 1.1 christos ac_check_lib_save_LIBS=$LIBS
6182 1.1 christos LIBS="-lperfstat $LIBS"
6183 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6184 1.1 christos /* confdefs.h. */
6185 1.1 christos _ACEOF
6186 1.1 christos cat confdefs.h >>conftest.$ac_ext
6187 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6188 1.1 christos /* end confdefs.h. */
6189 1.1 christos
6190 1.1 christos /* Override any GCC internal prototype to avoid an error.
6191 1.1 christos Use char because int might match the return type of a GCC
6192 1.1 christos builtin and then its argument prototype would still apply. */
6193 1.1 christos #ifdef __cplusplus
6194 1.1 christos extern "C"
6195 1.1 christos #endif
6196 1.1 christos char perfstat_cpu_total ();
6197 1.1 christos int
6198 1.1 christos main ()
6199 1.1 christos {
6200 1.1 christos return perfstat_cpu_total ();
6201 1.1 christos ;
6202 1.1 christos return 0;
6203 1.1 christos }
6204 1.1 christos _ACEOF
6205 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
6206 1.1 christos if { (ac_try="$ac_link"
6207 1.1 christos case "(($ac_try" in
6208 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 1.1 christos *) ac_try_echo=$ac_try;;
6210 1.1 christos esac
6211 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 1.1 christos (eval "$ac_link") 2>conftest.er1
6213 1.1 christos ac_status=$?
6214 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6215 1.1 christos rm -f conftest.er1
6216 1.1 christos cat conftest.err >&5
6217 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 1.1 christos (exit $ac_status); } && {
6219 1.1 christos test -z "$ac_c_werror_flag" ||
6220 1.1 christos test ! -s conftest.err
6221 1.1 christos } && test -s conftest$ac_exeext &&
6222 1.1 christos $as_test_x conftest$ac_exeext; then
6223 1.1 christos ac_cv_lib_perfstat_perfstat_cpu_total=yes
6224 1.1 christos else
6225 1.1 christos echo "$as_me: failed program was:" >&5
6226 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6227 1.1 christos
6228 1.1 christos ac_cv_lib_perfstat_perfstat_cpu_total=no
6229 1.1 christos fi
6230 1.1 christos
6231 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6232 1.1 christos conftest$ac_exeext conftest.$ac_ext
6233 1.1 christos LIBS=$ac_check_lib_save_LIBS
6234 1.1 christos fi
6235 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
6236 1.1 christos echo "${ECHO_T}$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
6237 1.1 christos if test $ac_cv_lib_perfstat_perfstat_cpu_total = yes; then
6238 1.1 christos cat >>confdefs.h <<_ACEOF
6239 1.1 christos #define HAVE_LIBPERFSTAT 1
6240 1.1 christos _ACEOF
6241 1.1 christos
6242 1.1 christos LIBS="-lperfstat $LIBS"
6243 1.1 christos
6244 1.1 christos fi
6245 1.1 christos
6246 1.1 christos if test -f /usr/sbin/bootinfo; then
6247 1.1 christos bits="`/usr/sbin/bootinfo -K`"
6248 1.1 christos extra_flag="-q64"
6249 1.1 christos fi
6250 1.1 christos ;;
6251 1.1 christos svr5)
6252 1.1 christos # -lmas
6253 1.1 christos
6254 1.1 christos { echo "$as_me:$LINENO: checking for mas_open in -lmas" >&5
6255 1.1 christos echo $ECHO_N "checking for mas_open in -lmas... $ECHO_C" >&6; }
6256 1.1 christos if test "${ac_cv_lib_mas_mas_open+set}" = set; then
6257 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6258 1.1 christos else
6259 1.1 christos ac_check_lib_save_LIBS=$LIBS
6260 1.1 christos LIBS="-lmas $LIBS"
6261 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6262 1.1 christos /* confdefs.h. */
6263 1.1 christos _ACEOF
6264 1.1 christos cat confdefs.h >>conftest.$ac_ext
6265 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6266 1.1 christos /* end confdefs.h. */
6267 1.1 christos
6268 1.1 christos /* Override any GCC internal prototype to avoid an error.
6269 1.1 christos Use char because int might match the return type of a GCC
6270 1.1 christos builtin and then its argument prototype would still apply. */
6271 1.1 christos #ifdef __cplusplus
6272 1.1 christos extern "C"
6273 1.1 christos #endif
6274 1.1 christos char mas_open ();
6275 1.1 christos int
6276 1.1 christos main ()
6277 1.1 christos {
6278 1.1 christos return mas_open ();
6279 1.1 christos ;
6280 1.1 christos return 0;
6281 1.1 christos }
6282 1.1 christos _ACEOF
6283 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
6284 1.1 christos if { (ac_try="$ac_link"
6285 1.1 christos case "(($ac_try" in
6286 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 1.1 christos *) ac_try_echo=$ac_try;;
6288 1.1 christos esac
6289 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 1.1 christos (eval "$ac_link") 2>conftest.er1
6291 1.1 christos ac_status=$?
6292 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6293 1.1 christos rm -f conftest.er1
6294 1.1 christos cat conftest.err >&5
6295 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 1.1 christos (exit $ac_status); } && {
6297 1.1 christos test -z "$ac_c_werror_flag" ||
6298 1.1 christos test ! -s conftest.err
6299 1.1 christos } && test -s conftest$ac_exeext &&
6300 1.1 christos $as_test_x conftest$ac_exeext; then
6301 1.1 christos ac_cv_lib_mas_mas_open=yes
6302 1.1 christos else
6303 1.1 christos echo "$as_me: failed program was:" >&5
6304 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6305 1.1 christos
6306 1.1 christos ac_cv_lib_mas_mas_open=no
6307 1.1 christos fi
6308 1.1 christos
6309 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6310 1.1 christos conftest$ac_exeext conftest.$ac_ext
6311 1.1 christos LIBS=$ac_check_lib_save_LIBS
6312 1.1 christos fi
6313 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_mas_mas_open" >&5
6314 1.1 christos echo "${ECHO_T}$ac_cv_lib_mas_mas_open" >&6; }
6315 1.1 christos if test $ac_cv_lib_mas_mas_open = yes; then
6316 1.1 christos cat >>confdefs.h <<_ACEOF
6317 1.1 christos #define HAVE_LIBMAS 1
6318 1.1 christos _ACEOF
6319 1.1 christos
6320 1.1 christos LIBS="-lmas $LIBS"
6321 1.1 christos
6322 1.1 christos fi
6323 1.1 christos
6324 1.1 christos ;;
6325 1.1 christos sunos5)
6326 1.1 christos if test "$ISAINFO"; then
6327 1.1 christos bits="`$ISAINFO -b`"
6328 1.1 christos if test "$target_cpu" = "sparc"; then
6329 1.1 christos extra_flag="-xarch=v9"
6330 1.1 christos else
6331 1.1 christos extra_flag="-xarch=amd64"
6332 1.1 christos fi
6333 1.1 christos fi
6334 1.1 christos ;;
6335 1.1 christos esac
6336 1.1 christos
6337 1.1 christos # USE_FPH means the module has format_process_header
6338 1.1 christos if test -n "$USE_FPH"; then
6339 1.1 christos
6340 1.1 christos cat >>confdefs.h <<\_ACEOF
6341 1.1 christos #define HAVE_FORMAT_PROCESS_HEADER 1
6342 1.1 christos _ACEOF
6343 1.1 christos
6344 1.1 christos fi
6345 1.1 christos
6346 1.1 christos # if we are 64-bit, try to turn on the appropriate flags
6347 1.1 christos { echo "$as_me:$LINENO: checking address space size" >&5
6348 1.1 christos echo $ECHO_N "checking address space size... $ECHO_C" >&6; }
6349 1.1 christos ARCHFLAG=""
6350 1.1 christos if test "$bits" = "64"; then
6351 1.1 christos { echo "$as_me:$LINENO: result: 64" >&5
6352 1.1 christos echo "${ECHO_T}64" >&6; }
6353 1.1 christos if test "$ax_cv_c_compiler_vendor" = "gnu"; then
6354 1.1 christos extra_flag="-m64"
6355 1.1 christos fi
6356 1.1 christos # Make sure our compiler accepts the flag we want to use
6357 1.1 christos { echo "$as_me:$LINENO: checking whether compiler accepts $extra_flag" >&5
6358 1.1 christos echo $ECHO_N "checking whether compiler accepts $extra_flag... $ECHO_C" >&6; }
6359 1.1 christos as_ac_Flag=`echo "ac_cv_cflag_$extra_flag" | $as_tr_sh`
6360 1.1 christos _savedcflags=$CFLAGS
6361 1.1 christos _savedwerror_flag=$ac_c_werror_flag
6362 1.1 christos ac_c_werror_flag=yes
6363 1.1 christos CFLAGS=$CFLAGS" $extra_flag"
6364 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6365 1.1 christos /* confdefs.h. */
6366 1.1 christos _ACEOF
6367 1.1 christos cat confdefs.h >>conftest.$ac_ext
6368 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6369 1.1 christos /* end confdefs.h. */
6370 1.1 christos
6371 1.1 christos int
6372 1.1 christos main ()
6373 1.1 christos {
6374 1.1 christos
6375 1.1 christos ;
6376 1.1 christos return 0;
6377 1.1 christos }
6378 1.1 christos _ACEOF
6379 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
6380 1.1 christos if { (ac_try="$ac_link"
6381 1.1 christos case "(($ac_try" in
6382 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 1.1 christos *) ac_try_echo=$ac_try;;
6384 1.1 christos esac
6385 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 1.1 christos (eval "$ac_link") 2>conftest.er1
6387 1.1 christos ac_status=$?
6388 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6389 1.1 christos rm -f conftest.er1
6390 1.1 christos cat conftest.err >&5
6391 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 1.1 christos (exit $ac_status); } && {
6393 1.1 christos test -z "$ac_c_werror_flag" ||
6394 1.1 christos test ! -s conftest.err
6395 1.1 christos } && test -s conftest$ac_exeext &&
6396 1.1 christos $as_test_x conftest$ac_exeext; then
6397 1.1 christos eval "$as_ac_Flag=yes"
6398 1.1 christos else
6399 1.1 christos echo "$as_me: failed program was:" >&5
6400 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6401 1.1 christos
6402 1.1 christos eval "$as_ac_Flag=no"
6403 1.1 christos fi
6404 1.1 christos
6405 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406 1.1 christos conftest$ac_exeext conftest.$ac_ext
6407 1.1 christos { echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Flag'}'`" >&5
6408 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Flag'}'`" >&6; }
6409 1.1 christos CFLAGS=$_savedcflags
6410 1.1 christos ac_c_werror_flag=$_savedwerror_flag
6411 1.1 christos if test `eval echo '${'$as_ac_Flag'}'` = yes; then
6412 1.1 christos ARCHFLAG="$extra_flag"
6413 1.1 christos else
6414 1.1 christos enable_dualarch="no"
6415 1.1 christos fi
6416 1.1 christos
6417 1.1 christos else
6418 1.1 christos { echo "$as_me:$LINENO: result: $bits" >&5
6419 1.1 christos echo "${ECHO_T}$bits" >&6; }
6420 1.1 christos fi
6421 1.1 christos
6422 1.1 christos
6423 1.1 christos # Dual architecture handling: for now this is only enabled on Solaris.
6424 1.1 christos # Config options can explicitly enable or disable dualarch. Otherwise,
6425 1.1 christos # dualarch is only enabled when we are on a 64-bit system.
6426 1.1 christos if test "$MODULE" = "sunos5"; then
6427 1.1 christos { echo "$as_me:$LINENO: checking for dual architecture compilation" >&5
6428 1.1 christos echo $ECHO_N "checking for dual architecture compilation... $ECHO_C" >&6; }
6429 1.1 christos if test "x$enable_dualarch" = x; then
6430 1.1 christos # we must make the determination implicitly
6431 1.1 christos if test "$bits" = "64"; then
6432 1.1 christos enable_dualarch="yes"
6433 1.1 christos else
6434 1.1 christos enable_dualarch="no"
6435 1.1 christos fi
6436 1.1 christos fi
6437 1.1 christos if test "x$enable_dualarch" = "xyes"; then
6438 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
6439 1.1 christos echo "${ECHO_T}yes" >&6; }
6440 1.1 christos if test "$target_cpu" = "sparc"; then
6441 1.1 christos FIRST_RULE="config.sparcv9.make"
6442 1.1 christos INSTALL_RULE="config.sparcv9.makeinstall"
6443 1.1 christos CLEAN_EXTRA="$CLEAN_EXTRA sparcv7/* sparcv9/*"
6444 1.1 christos mkdir -p sparcv7 sparcv9
6445 1.1 christos else
6446 1.1 christos FIRST_RULE="config.amd64.make"
6447 1.1 christos INSTALL_RULE="config.amd64.makeinstall"
6448 1.1 christos CLEAN_EXTRA="$CLEAN_EXTRA i386/* amd64/*"
6449 1.1 christos mkdir -p i386 amd64
6450 1.1 christos fi
6451 1.1 christos else
6452 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
6453 1.1 christos echo "${ECHO_T}no" >&6; }
6454 1.1 christos fi
6455 1.1 christos fi
6456 1.1 christos
6457 1.1 christos if test x$enable_dualarch = xyes; then
6458 1.1 christos
6459 1.1 christos cat >>confdefs.h <<\_ACEOF
6460 1.1 christos #define ENABLE_DUALARCH 1
6461 1.1 christos _ACEOF
6462 1.1 christos
6463 1.1 christos fi
6464 1.1 christos
6465 1.1 christos
6466 1.1 christos
6467 1.1 christos
6468 1.1 christos { echo "$as_me:$LINENO: checking for installation settings" >&5
6469 1.1 christos echo $ECHO_N "checking for installation settings... $ECHO_C" >&6; }
6470 1.1 christos # calculate appropriate settings
6471 1.1 christos OWNER=""
6472 1.1 christos GROUP=""
6473 1.1 christos MODE=""
6474 1.1 christos if test ! -n "$USE_KMEM" -a -d /proc; then
6475 1.1 christos # make sure we are installed so that we can read /proc
6476 1.1 christos rm -f conftest.txt
6477 1.1 christos if test -r /proc/0/psinfo; then
6478 1.1 christos # system uses solaris-style /proc
6479 1.1 christos $lslong /proc/0/psinfo >conftest.txt
6480 1.1 christos elif test -r /proc/1/stat; then
6481 1.1 christos # linux-style /proc?
6482 1.1 christos $lslong /proc/1/stat >conftest.txt
6483 1.1 christos else
6484 1.1 christos echo "-r--r--r-- 1 bin bin 32 Jan 1 12:00 /foo" >conftest.txt
6485 1.1 christos fi
6486 1.1 christos
6487 1.1 christos # set permissions so that we can read stuff in /proc
6488 1.1 christos if grep '^.......r..' conftest.txt >/dev/null; then
6489 1.1 christos # world readable
6490 1.1 christos MODE=755
6491 1.1 christos elif grep '^....r.....' conftest.txt >/dev/null; then
6492 1.1 christos # group readable
6493 1.1 christos MODE=2711
6494 1.1 christos GROUP=`awk ' { print $4 }'`
6495 1.1 christos else
6496 1.1 christos # probably only readable by root
6497 1.1 christos MODE=4711
6498 1.1 christos OWNER=`awk ' { print $3 }'`
6499 1.1 christos fi
6500 1.1 christos
6501 1.1 christos elif test -c /dev/kmem; then
6502 1.1 christos $lslong -L /dev/kmem >conftest.txt
6503 1.1 christos if grep '^....r..r..' conftest.txt >/dev/null; then
6504 1.1 christos MODE=755
6505 1.1 christos elif grep '^....r..-..' conftest.txt >/dev/null; then
6506 1.1 christos MODE=2755
6507 1.1 christos GROUP=`$AWK ' { print $4 }' conftest.txt`
6508 1.1 christos fi
6509 1.1 christos else
6510 1.1 christos MODE=755
6511 1.1 christos fi
6512 1.1 christos rm -f conftest.txt
6513 1.1 christos # let module settings override what we calculated
6514 1.1 christos OWNER=${SET_OWNER:-$OWNER}
6515 1.1 christos GROUP=${SET_GROUP:-$GROUP}
6516 1.1 christos MODE=${SET_MODE:-$MODE}
6517 1.1 christos
6518 1.1 christos # set only those things that require it
6519 1.1 christos result=""
6520 1.1 christos INSTALL_OPTS_PROG=""
6521 1.1 christos if test x$OWNER != x; then
6522 1.1 christos result="${result}owner=$OWNER, "
6523 1.1 christos INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -o $OWNER"
6524 1.1 christos fi
6525 1.1 christos if test x$GROUP != x; then
6526 1.1 christos result="${result}group=$GROUP, "
6527 1.1 christos INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -g $GROUP"
6528 1.1 christos fi
6529 1.1 christos result="${result}mode=$MODE"
6530 1.1 christos INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -m $MODE"
6531 1.1 christos
6532 1.1 christos { echo "$as_me:$LINENO: result: $result" >&5
6533 1.1 christos echo "${ECHO_T}$result" >&6; }
6534 1.1 christos
6535 1.1 christos # add extra cflags if the compiler accepts them
6536 1.1 christos { echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5
6537 1.1 christos echo $ECHO_N "checking CFLAGS for maximum warnings... $ECHO_C" >&6; }
6538 1.1 christos if test "${ac_cv_cflags_warn_all+set}" = set; then
6539 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6540 1.1 christos else
6541 1.1 christos ac_cv_cflags_warn_all="no, unknown"
6542 1.1 christos
6543 1.1 christos ac_ext=c
6544 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6545 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548 1.1 christos
6549 1.1 christos ac_save_CFLAGS="$CFLAGS"
6550 1.1 christos for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
6551 1.1 christos do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
6552 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6553 1.1 christos /* confdefs.h. */
6554 1.1 christos _ACEOF
6555 1.1 christos cat confdefs.h >>conftest.$ac_ext
6556 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6557 1.1 christos /* end confdefs.h. */
6558 1.1 christos
6559 1.1 christos int
6560 1.1 christos main ()
6561 1.1 christos {
6562 1.1 christos return 0;
6563 1.1 christos ;
6564 1.1 christos return 0;
6565 1.1 christos }
6566 1.1 christos _ACEOF
6567 1.1 christos rm -f conftest.$ac_objext
6568 1.1 christos if { (ac_try="$ac_compile"
6569 1.1 christos case "(($ac_try" in
6570 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 1.1 christos *) ac_try_echo=$ac_try;;
6572 1.1 christos esac
6573 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 1.1 christos (eval "$ac_compile") 2>conftest.er1
6575 1.1 christos ac_status=$?
6576 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6577 1.1 christos rm -f conftest.er1
6578 1.1 christos cat conftest.err >&5
6579 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 1.1 christos (exit $ac_status); } && {
6581 1.1 christos test -z "$ac_c_werror_flag" ||
6582 1.1 christos test ! -s conftest.err
6583 1.1 christos } && test -s conftest.$ac_objext; then
6584 1.1 christos ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
6585 1.1 christos else
6586 1.1 christos echo "$as_me: failed program was:" >&5
6587 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6588 1.1 christos
6589 1.1 christos
6590 1.1 christos fi
6591 1.1 christos
6592 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 1.1 christos done
6594 1.1 christos CFLAGS="$ac_save_CFLAGS"
6595 1.1 christos ac_ext=c
6596 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6597 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6598 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6599 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600 1.1 christos
6601 1.1 christos
6602 1.1 christos fi
6603 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5
6604 1.1 christos echo "${ECHO_T}$ac_cv_cflags_warn_all" >&6; }
6605 1.1 christos case ".$ac_cv_cflags_warn_all" in
6606 1.1 christos .ok|.ok,*) ;;
6607 1.1 christos .|.no|.no,*)
6608 1.1 christos ;;
6609 1.1 christos *)
6610 1.1 christos if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
6611 1.1 christos then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
6612 1.1 christos (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
6613 1.1 christos ac_status=$?
6614 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 1.1 christos (exit $ac_status); }
6616 1.1 christos else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
6617 1.1 christos (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
6618 1.1 christos ac_status=$?
6619 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 1.1 christos (exit $ac_status); }
6621 1.1 christos CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
6622 1.1 christos fi
6623 1.1 christos ;;
6624 1.1 christos esac
6625 1.1 christos
6626 1.1 christos MODULE_CFLAGS=""
6627 1.1 christos if test "$ax_cv_c_compiler_vendor" = "gnu"; then
6628 1.1 christos { echo "$as_me:$LINENO: checking MODULE_CFLAGS for gcc -fno-strict-aliasing" >&5
6629 1.1 christos echo $ECHO_N "checking MODULE_CFLAGS for gcc -fno-strict-aliasing... $ECHO_C" >&6; }
6630 1.1 christos if test "${ac_cv_cflags_gcc_option__fno_strict_aliasing+set}" = set; then
6631 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6632 1.1 christos else
6633 1.1 christos ac_cv_cflags_gcc_option__fno_strict_aliasing="no, unknown"
6634 1.1 christos
6635 1.1 christos ac_ext=c
6636 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6637 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 1.1 christos
6641 1.1 christos ac_save_CFLAGS="$CFLAGS"
6642 1.1 christos for ac_arg in "-pedantic -Werror % -fno-strict-aliasing" "-pedantic % -fno-strict-aliasing %% no, obsolete" #
6643 1.1 christos do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
6644 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6645 1.1 christos /* confdefs.h. */
6646 1.1 christos _ACEOF
6647 1.1 christos cat confdefs.h >>conftest.$ac_ext
6648 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6649 1.1 christos /* end confdefs.h. */
6650 1.1 christos
6651 1.1 christos int
6652 1.1 christos main ()
6653 1.1 christos {
6654 1.1 christos return 0;
6655 1.1 christos ;
6656 1.1 christos return 0;
6657 1.1 christos }
6658 1.1 christos _ACEOF
6659 1.1 christos rm -f conftest.$ac_objext
6660 1.1 christos if { (ac_try="$ac_compile"
6661 1.1 christos case "(($ac_try" in
6662 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 1.1 christos *) ac_try_echo=$ac_try;;
6664 1.1 christos esac
6665 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 1.1 christos (eval "$ac_compile") 2>conftest.er1
6667 1.1 christos ac_status=$?
6668 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6669 1.1 christos rm -f conftest.er1
6670 1.1 christos cat conftest.err >&5
6671 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 1.1 christos (exit $ac_status); } && {
6673 1.1 christos test -z "$ac_c_werror_flag" ||
6674 1.1 christos test ! -s conftest.err
6675 1.1 christos } && test -s conftest.$ac_objext; then
6676 1.1 christos ac_cv_cflags_gcc_option__fno_strict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
6677 1.1 christos else
6678 1.1 christos echo "$as_me: failed program was:" >&5
6679 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6680 1.1 christos
6681 1.1 christos
6682 1.1 christos fi
6683 1.1 christos
6684 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 1.1 christos done
6686 1.1 christos CFLAGS="$ac_save_CFLAGS"
6687 1.1 christos ac_ext=c
6688 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6689 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 1.1 christos
6693 1.1 christos
6694 1.1 christos fi
6695 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__fno_strict_aliasing" >&5
6696 1.1 christos echo "${ECHO_T}$ac_cv_cflags_gcc_option__fno_strict_aliasing" >&6; }
6697 1.1 christos case ".$ac_cv_cflags_gcc_option__fno_strict_aliasing" in
6698 1.1 christos .ok|.ok,*) ;;
6699 1.1 christos .|.no|.no,*) ;;
6700 1.1 christos *)
6701 1.1 christos if echo " $MODULE_CFLAGS " | grep " $ac_cv_cflags_gcc_option__fno_strict_aliasing " 2>&1 >/dev/null
6702 1.1 christos then { (echo "$as_me:$LINENO: : MODULE_CFLAGS does contain \$ac_cv_cflags_gcc_option__fno_strict_aliasing") >&5
6703 1.1 christos (: MODULE_CFLAGS does contain $ac_cv_cflags_gcc_option__fno_strict_aliasing) 2>&5
6704 1.1 christos ac_status=$?
6705 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 1.1 christos (exit $ac_status); }
6707 1.1 christos else { (echo "$as_me:$LINENO: : MODULE_CFLAGS=\"\$MODULE_CFLAGS \$ac_cv_cflags_gcc_option__fno_strict_aliasing\"") >&5
6708 1.1 christos (: MODULE_CFLAGS="$MODULE_CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing") 2>&5
6709 1.1 christos ac_status=$?
6710 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 1.1 christos (exit $ac_status); }
6712 1.1 christos MODULE_CFLAGS="$MODULE_CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing"
6713 1.1 christos fi
6714 1.1 christos ;;
6715 1.1 christos esac
6716 1.1 christos
6717 1.1 christos if test "$target_cpu" = "alpha"; then
6718 1.1 christos { echo "$as_me:$LINENO: checking CFLAGS for gcc -mfp-trap-mode=sui -mtrap-precision=i" >&5
6719 1.1 christos echo $ECHO_N "checking CFLAGS for gcc -mfp-trap-mode=sui -mtrap-precision=i... $ECHO_C" >&6; }
6720 1.1 christos if test "${ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i+set}" = set; then
6721 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6722 1.1 christos else
6723 1.1 christos ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i="no, unknown"
6724 1.1 christos
6725 1.1 christos ac_ext=c
6726 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6727 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730 1.1 christos
6731 1.1 christos ac_save_CFLAGS="$CFLAGS"
6732 1.1 christos for ac_arg in "-pedantic -Werror % -mfp-trap-mode=sui -mtrap-precision=i" "-pedantic % -mfp-trap-mode=sui -mtrap-precision=i %% no, obsolete" #
6733 1.1 christos do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
6734 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6735 1.1 christos /* confdefs.h. */
6736 1.1 christos _ACEOF
6737 1.1 christos cat confdefs.h >>conftest.$ac_ext
6738 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6739 1.1 christos /* end confdefs.h. */
6740 1.1 christos
6741 1.1 christos int
6742 1.1 christos main ()
6743 1.1 christos {
6744 1.1 christos return 0;
6745 1.1 christos ;
6746 1.1 christos return 0;
6747 1.1 christos }
6748 1.1 christos _ACEOF
6749 1.1 christos rm -f conftest.$ac_objext
6750 1.1 christos if { (ac_try="$ac_compile"
6751 1.1 christos case "(($ac_try" in
6752 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 1.1 christos *) ac_try_echo=$ac_try;;
6754 1.1 christos esac
6755 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 1.1 christos (eval "$ac_compile") 2>conftest.er1
6757 1.1 christos ac_status=$?
6758 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6759 1.1 christos rm -f conftest.er1
6760 1.1 christos cat conftest.err >&5
6761 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 1.1 christos (exit $ac_status); } && {
6763 1.1 christos test -z "$ac_c_werror_flag" ||
6764 1.1 christos test ! -s conftest.err
6765 1.1 christos } && test -s conftest.$ac_objext; then
6766 1.1 christos ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
6767 1.1 christos else
6768 1.1 christos echo "$as_me: failed program was:" >&5
6769 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6770 1.1 christos
6771 1.1 christos
6772 1.1 christos fi
6773 1.1 christos
6774 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 1.1 christos done
6776 1.1 christos CFLAGS="$ac_save_CFLAGS"
6777 1.1 christos ac_ext=c
6778 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6779 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782 1.1 christos
6783 1.1 christos
6784 1.1 christos fi
6785 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" >&5
6786 1.1 christos echo "${ECHO_T}$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" >&6; }
6787 1.1 christos case ".$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" in
6788 1.1 christos .ok|.ok,*) ;;
6789 1.1 christos .|.no|.no,*) ;;
6790 1.1 christos *)
6791 1.1 christos if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i " 2>&1 >/dev/null
6792 1.1 christos then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i") >&5
6793 1.1 christos (: CFLAGS does contain $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i) 2>&5
6794 1.1 christos ac_status=$?
6795 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 1.1 christos (exit $ac_status); }
6797 1.1 christos else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i\"") >&5
6798 1.1 christos (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i") 2>&5
6799 1.1 christos ac_status=$?
6800 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 1.1 christos (exit $ac_status); }
6802 1.1 christos CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i"
6803 1.1 christos fi
6804 1.1 christos ;;
6805 1.1 christos esac
6806 1.1 christos
6807 1.1 christos fi
6808 1.1 christos fi
6809 1.1 christos
6810 1.1 christos # Define man page supplement
6811 1.1 christos MAN_SUPPLEMENT=machine/m_$MODULE.man
6812 1.1 christos
6813 1.1 christos
6814 1.1 christos # Extra things we want substituted
6815 1.1 christos
6816 1.1 christos
6817 1.1 christos
6818 1.1 christos
6819 1.1 christos # wrapup
6820 1.1 christos
6821 1.1 christos ac_config_files="$ac_config_files Makefile top.1"
6822 1.1 christos
6823 1.1 christos cat >confcache <<\_ACEOF
6824 1.1 christos # This file is a shell script that caches the results of configure
6825 1.1 christos # tests run on this system so they can be shared between configure
6826 1.1 christos # scripts and configure runs, see configure's option --config-cache.
6827 1.1 christos # It is not useful on other systems. If it contains results you don't
6828 1.1 christos # want to keep, you may remove or edit it.
6829 1.1 christos #
6830 1.1 christos # config.status only pays attention to the cache file if you give it
6831 1.1 christos # the --recheck option to rerun configure.
6832 1.1 christos #
6833 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
6834 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
6835 1.1 christos # following values.
6836 1.1 christos
6837 1.1 christos _ACEOF
6838 1.1 christos
6839 1.1 christos # The following way of writing the cache mishandles newlines in values,
6840 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
6841 1.1 christos # So, we kill variables containing newlines.
6842 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
6843 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
6844 1.1 christos (
6845 1.1 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6846 1.1 christos eval ac_val=\$$ac_var
6847 1.1 christos case $ac_val in #(
6848 1.1 christos *${as_nl}*)
6849 1.1 christos case $ac_var in #(
6850 1.1 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6851 1.1 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6852 1.1 christos esac
6853 1.1 christos case $ac_var in #(
6854 1.1 christos _ | IFS | as_nl) ;; #(
6855 1.1 christos *) $as_unset $ac_var ;;
6856 1.1 christos esac ;;
6857 1.1 christos esac
6858 1.1 christos done
6859 1.1 christos
6860 1.1 christos (set) 2>&1 |
6861 1.1 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
6862 1.1 christos *${as_nl}ac_space=\ *)
6863 1.1 christos # `set' does not quote correctly, so add quotes (double-quote
6864 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
6865 1.1 christos sed -n \
6866 1.1 christos "s/'/'\\\\''/g;
6867 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6868 1.1 christos ;; #(
6869 1.1 christos *)
6870 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
6871 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6872 1.1 christos ;;
6873 1.1 christos esac |
6874 1.1 christos sort
6875 1.1 christos ) |
6876 1.1 christos sed '
6877 1.1 christos /^ac_cv_env_/b end
6878 1.1 christos t clear
6879 1.1 christos :clear
6880 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6881 1.1 christos t end
6882 1.1 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6883 1.1 christos :end' >>confcache
6884 1.1 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6885 1.1 christos if test -w "$cache_file"; then
6886 1.1 christos test "x$cache_file" != "x/dev/null" &&
6887 1.1 christos { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6888 1.1 christos echo "$as_me: updating cache $cache_file" >&6;}
6889 1.1 christos cat confcache >$cache_file
6890 1.1 christos else
6891 1.1 christos { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6892 1.1 christos echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6893 1.1 christos fi
6894 1.1 christos fi
6895 1.1 christos rm -f confcache
6896 1.1 christos
6897 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
6898 1.1 christos # Let make expand exec_prefix.
6899 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6900 1.1 christos
6901 1.1 christos DEFS=-DHAVE_CONFIG_H
6902 1.1 christos
6903 1.1 christos ac_libobjs=
6904 1.1 christos ac_ltlibobjs=
6905 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6906 1.1 christos # 1. Remove the extension, and $U if already installed.
6907 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6908 1.1 christos ac_i=`echo "$ac_i" | sed "$ac_script"`
6909 1.1 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6910 1.1 christos # will be set to the directory where LIBOBJS objects are built.
6911 1.1 christos ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6912 1.1 christos ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6913 1.1 christos done
6914 1.1 christos LIBOBJS=$ac_libobjs
6915 1.1 christos
6916 1.1 christos LTLIBOBJS=$ac_ltlibobjs
6917 1.1 christos
6918 1.1 christos
6919 1.1 christos
6920 1.1 christos : ${CONFIG_STATUS=./config.status}
6921 1.1 christos ac_clean_files_save=$ac_clean_files
6922 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6923 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6924 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
6925 1.1 christos cat >$CONFIG_STATUS <<_ACEOF
6926 1.1 christos #! $SHELL
6927 1.1 christos # Generated by $as_me.
6928 1.1 christos # Run this file to recreate the current configuration.
6929 1.1 christos # Compiler output produced by configure, useful for debugging
6930 1.1 christos # configure, is in config.log if it exists.
6931 1.1 christos
6932 1.1 christos debug=false
6933 1.1 christos ac_cs_recheck=false
6934 1.1 christos ac_cs_silent=false
6935 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
6936 1.1 christos _ACEOF
6937 1.1 christos
6938 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
6939 1.1 christos ## --------------------- ##
6940 1.1 christos ## M4sh Initialization. ##
6941 1.1 christos ## --------------------- ##
6942 1.1 christos
6943 1.1 christos # Be more Bourne compatible
6944 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
6945 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6946 1.1 christos emulate sh
6947 1.1 christos NULLCMD=:
6948 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6949 1.1 christos # is contrary to our usage. Disable this feature.
6950 1.1 christos alias -g '${1+"$@"}'='"$@"'
6951 1.1 christos setopt NO_GLOB_SUBST
6952 1.1 christos else
6953 1.1 christos case `(set -o) 2>/dev/null` in
6954 1.1 christos *posix*) set -o posix ;;
6955 1.1 christos esac
6956 1.1 christos
6957 1.1 christos fi
6958 1.1 christos
6959 1.1 christos
6960 1.1 christos
6961 1.1 christos
6962 1.1 christos # PATH needs CR
6963 1.1 christos # Avoid depending upon Character Ranges.
6964 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6965 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6966 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6967 1.1 christos as_cr_digits='0123456789'
6968 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
6969 1.1 christos
6970 1.1 christos # The user is always right.
6971 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
6972 1.1 christos echo "#! /bin/sh" >conf$$.sh
6973 1.1 christos echo "exit 0" >>conf$$.sh
6974 1.1 christos chmod +x conf$$.sh
6975 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6976 1.1 christos PATH_SEPARATOR=';'
6977 1.1 christos else
6978 1.1 christos PATH_SEPARATOR=:
6979 1.1 christos fi
6980 1.1 christos rm -f conf$$.sh
6981 1.1 christos fi
6982 1.1 christos
6983 1.1 christos # Support unset when possible.
6984 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6985 1.1 christos as_unset=unset
6986 1.1 christos else
6987 1.1 christos as_unset=false
6988 1.1 christos fi
6989 1.1 christos
6990 1.1 christos
6991 1.1 christos # IFS
6992 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
6993 1.1 christos # there to prevent editors from complaining about space-tab.
6994 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6995 1.1 christos # splitting by setting IFS to empty value.)
6996 1.1 christos as_nl='
6997 1.1 christos '
6998 1.1 christos IFS=" "" $as_nl"
6999 1.1 christos
7000 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
7001 1.1 christos case $0 in
7002 1.1 christos *[\\/]* ) as_myself=$0 ;;
7003 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 1.1 christos for as_dir in $PATH
7005 1.1 christos do
7006 1.1 christos IFS=$as_save_IFS
7007 1.1 christos test -z "$as_dir" && as_dir=.
7008 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7009 1.1 christos done
7010 1.1 christos IFS=$as_save_IFS
7011 1.1 christos
7012 1.1 christos ;;
7013 1.1 christos esac
7014 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
7015 1.1 christos # in which case we are not to be found in the path.
7016 1.1 christos if test "x$as_myself" = x; then
7017 1.1 christos as_myself=$0
7018 1.1 christos fi
7019 1.1 christos if test ! -f "$as_myself"; then
7020 1.1 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7021 1.1 christos { (exit 1); exit 1; }
7022 1.1 christos fi
7023 1.1 christos
7024 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
7025 1.1 christos for as_var in ENV MAIL MAILPATH
7026 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7027 1.1 christos done
7028 1.1 christos PS1='$ '
7029 1.1 christos PS2='> '
7030 1.1 christos PS4='+ '
7031 1.1 christos
7032 1.1 christos # NLS nuisances.
7033 1.1 christos for as_var in \
7034 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7035 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7036 1.1 christos LC_TELEPHONE LC_TIME
7037 1.1 christos do
7038 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7039 1.1 christos eval $as_var=C; export $as_var
7040 1.1 christos else
7041 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7042 1.1 christos fi
7043 1.1 christos done
7044 1.1 christos
7045 1.1 christos # Required to use basename.
7046 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
7047 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
7048 1.1 christos as_expr=expr
7049 1.1 christos else
7050 1.1 christos as_expr=false
7051 1.1 christos fi
7052 1.1 christos
7053 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7054 1.1 christos as_basename=basename
7055 1.1 christos else
7056 1.1 christos as_basename=false
7057 1.1 christos fi
7058 1.1 christos
7059 1.1 christos
7060 1.1 christos # Name of the executable.
7061 1.1 christos as_me=`$as_basename -- "$0" ||
7062 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7063 1.1 christos X"$0" : 'X\(//\)$' \| \
7064 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7065 1.1 christos echo X/"$0" |
7066 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
7067 1.1 christos s//\1/
7068 1.1 christos q
7069 1.1 christos }
7070 1.1 christos /^X\/\(\/\/\)$/{
7071 1.1 christos s//\1/
7072 1.1 christos q
7073 1.1 christos }
7074 1.1 christos /^X\/\(\/\).*/{
7075 1.1 christos s//\1/
7076 1.1 christos q
7077 1.1 christos }
7078 1.1 christos s/.*/./; q'`
7079 1.1 christos
7080 1.1 christos # CDPATH.
7081 1.1 christos $as_unset CDPATH
7082 1.1 christos
7083 1.1 christos
7084 1.1 christos
7085 1.1 christos as_lineno_1=$LINENO
7086 1.1 christos as_lineno_2=$LINENO
7087 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
7088 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7089 1.1 christos
7090 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7091 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
7092 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
7093 1.1 christos # does the real work. The second script uses 'N' to pair each
7094 1.1 christos # line-number line with the line containing $LINENO, and appends
7095 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
7096 1.1 christos # case at line end.
7097 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7098 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
7099 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
7100 1.1 christos sed -n '
7101 1.1 christos p
7102 1.1 christos /[$]LINENO/=
7103 1.1 christos ' <$as_myself |
7104 1.1 christos sed '
7105 1.1 christos s/[$]LINENO.*/&-/
7106 1.1 christos t lineno
7107 1.1 christos b
7108 1.1 christos :lineno
7109 1.1 christos N
7110 1.1 christos :loop
7111 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7112 1.1 christos t loop
7113 1.1 christos s/-\n.*//
7114 1.1 christos ' >$as_me.lineno &&
7115 1.1 christos chmod +x "$as_me.lineno" ||
7116 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7117 1.1 christos { (exit 1); exit 1; }; }
7118 1.1 christos
7119 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
7120 1.1 christos # (the dirname of $[0] is not the place where we might find the
7121 1.1 christos # original and so on. Autoconf is especially sensitive to this).
7122 1.1 christos . "./$as_me.lineno"
7123 1.1 christos # Exit status is that of the last command.
7124 1.1 christos exit
7125 1.1 christos }
7126 1.1 christos
7127 1.1 christos
7128 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7129 1.1 christos as_dirname=dirname
7130 1.1 christos else
7131 1.1 christos as_dirname=false
7132 1.1 christos fi
7133 1.1 christos
7134 1.1 christos ECHO_C= ECHO_N= ECHO_T=
7135 1.1 christos case `echo -n x` in
7136 1.1 christos -n*)
7137 1.1 christos case `echo 'x\c'` in
7138 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7139 1.1 christos *) ECHO_C='\c';;
7140 1.1 christos esac;;
7141 1.1 christos *)
7142 1.1 christos ECHO_N='-n';;
7143 1.1 christos esac
7144 1.1 christos
7145 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
7146 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
7147 1.1 christos as_expr=expr
7148 1.1 christos else
7149 1.1 christos as_expr=false
7150 1.1 christos fi
7151 1.1 christos
7152 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
7153 1.1 christos if test -d conf$$.dir; then
7154 1.1 christos rm -f conf$$.dir/conf$$.file
7155 1.1 christos else
7156 1.1 christos rm -f conf$$.dir
7157 1.1 christos mkdir conf$$.dir
7158 1.1 christos fi
7159 1.1 christos echo >conf$$.file
7160 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
7161 1.1 christos as_ln_s='ln -s'
7162 1.1 christos # ... but there are two gotchas:
7163 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7164 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7165 1.1 christos # In both cases, we have to default to `cp -p'.
7166 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7167 1.1 christos as_ln_s='cp -p'
7168 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
7169 1.1 christos as_ln_s=ln
7170 1.1 christos else
7171 1.1 christos as_ln_s='cp -p'
7172 1.1 christos fi
7173 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7174 1.1 christos rmdir conf$$.dir 2>/dev/null
7175 1.1 christos
7176 1.1 christos if mkdir -p . 2>/dev/null; then
7177 1.1 christos as_mkdir_p=:
7178 1.1 christos else
7179 1.1 christos test -d ./-p && rmdir ./-p
7180 1.1 christos as_mkdir_p=false
7181 1.1 christos fi
7182 1.1 christos
7183 1.1 christos if test -x / >/dev/null 2>&1; then
7184 1.1 christos as_test_x='test -x'
7185 1.1 christos else
7186 1.1 christos if ls -dL / >/dev/null 2>&1; then
7187 1.1 christos as_ls_L_option=L
7188 1.1 christos else
7189 1.1 christos as_ls_L_option=
7190 1.1 christos fi
7191 1.1 christos as_test_x='
7192 1.1 christos eval sh -c '\''
7193 1.1 christos if test -d "$1"; then
7194 1.1 christos test -d "$1/.";
7195 1.1 christos else
7196 1.1 christos case $1 in
7197 1.1 christos -*)set "./$1";;
7198 1.1 christos esac;
7199 1.1 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7200 1.1 christos ???[sx]*):;;*)false;;esac;fi
7201 1.1 christos '\'' sh
7202 1.1 christos '
7203 1.1 christos fi
7204 1.1 christos as_executable_p=$as_test_x
7205 1.1 christos
7206 1.1 christos # Sed expression to map a string onto a valid CPP name.
7207 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7208 1.1 christos
7209 1.1 christos # Sed expression to map a string onto a valid variable name.
7210 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7211 1.1 christos
7212 1.1 christos
7213 1.1 christos exec 6>&1
7214 1.1 christos
7215 1.1 christos # Save the log message, to keep $[0] and so on meaningful, and to
7216 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
7217 1.1 christos # values after options handling.
7218 1.1 christos ac_log="
7219 1.1 christos This file was extended by top $as_me 3.8beta1, which was
7220 1.1 christos generated by GNU Autoconf 2.61. Invocation command line was
7221 1.1 christos
7222 1.1 christos CONFIG_FILES = $CONFIG_FILES
7223 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
7224 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
7225 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
7226 1.1 christos $ $0 $@
7227 1.1 christos
7228 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
7229 1.1 christos "
7230 1.1 christos
7231 1.1 christos _ACEOF
7232 1.1 christos
7233 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7234 1.1 christos # Files that config.status was made for.
7235 1.1 christos config_files="$ac_config_files"
7236 1.1 christos config_headers="$ac_config_headers"
7237 1.1 christos
7238 1.1 christos _ACEOF
7239 1.1 christos
7240 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7241 1.1 christos ac_cs_usage="\
7242 1.1 christos \`$as_me' instantiates files from templates according to the
7243 1.1 christos current configuration.
7244 1.1 christos
7245 1.1 christos Usage: $0 [OPTIONS] [FILE]...
7246 1.1 christos
7247 1.1 christos -h, --help print this help, then exit
7248 1.1 christos -V, --version print version number and configuration settings, then exit
7249 1.1 christos -q, --quiet do not print progress messages
7250 1.1 christos -d, --debug don't remove temporary files
7251 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
7252 1.1 christos --file=FILE[:TEMPLATE]
7253 1.1 christos instantiate the configuration file FILE
7254 1.1 christos --header=FILE[:TEMPLATE]
7255 1.1 christos instantiate the configuration header FILE
7256 1.1 christos
7257 1.1 christos Configuration files:
7258 1.1 christos $config_files
7259 1.1 christos
7260 1.1 christos Configuration headers:
7261 1.1 christos $config_headers
7262 1.1 christos
7263 1.1 christos Report bugs to <bug-autoconf (at] gnu.org>."
7264 1.1 christos
7265 1.1 christos _ACEOF
7266 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7267 1.1 christos ac_cs_version="\\
7268 1.1 christos top config.status 3.8beta1
7269 1.1 christos configured by $0, generated by GNU Autoconf 2.61,
7270 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7271 1.1 christos
7272 1.1 christos Copyright (C) 2006 Free Software Foundation, Inc.
7273 1.1 christos This config.status script is free software; the Free Software Foundation
7274 1.1 christos gives unlimited permission to copy, distribute and modify it."
7275 1.1 christos
7276 1.1 christos ac_pwd='$ac_pwd'
7277 1.1 christos srcdir='$srcdir'
7278 1.1 christos INSTALL='$INSTALL'
7279 1.1 christos _ACEOF
7280 1.1 christos
7281 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7282 1.1 christos # If no file are specified by the user, then we need to provide default
7283 1.1 christos # value. By we need to know if files were specified by the user.
7284 1.1 christos ac_need_defaults=:
7285 1.1 christos while test $# != 0
7286 1.1 christos do
7287 1.1 christos case $1 in
7288 1.1 christos --*=*)
7289 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
7290 1.1 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7291 1.1 christos ac_shift=:
7292 1.1 christos ;;
7293 1.1 christos *)
7294 1.1 christos ac_option=$1
7295 1.1 christos ac_optarg=$2
7296 1.1 christos ac_shift=shift
7297 1.1 christos ;;
7298 1.1 christos esac
7299 1.1 christos
7300 1.1 christos case $ac_option in
7301 1.1 christos # Handling of the options.
7302 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7303 1.1 christos ac_cs_recheck=: ;;
7304 1.1 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7305 1.1 christos echo "$ac_cs_version"; exit ;;
7306 1.1 christos --debug | --debu | --deb | --de | --d | -d )
7307 1.1 christos debug=: ;;
7308 1.1 christos --file | --fil | --fi | --f )
7309 1.1 christos $ac_shift
7310 1.1 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7311 1.1 christos ac_need_defaults=false;;
7312 1.1 christos --header | --heade | --head | --hea )
7313 1.1 christos $ac_shift
7314 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7315 1.1 christos ac_need_defaults=false;;
7316 1.1 christos --he | --h)
7317 1.1 christos # Conflict between --help and --header
7318 1.1 christos { echo "$as_me: error: ambiguous option: $1
7319 1.1 christos Try \`$0 --help' for more information." >&2
7320 1.1 christos { (exit 1); exit 1; }; };;
7321 1.1 christos --help | --hel | -h )
7322 1.1 christos echo "$ac_cs_usage"; exit ;;
7323 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7324 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
7325 1.1 christos ac_cs_silent=: ;;
7326 1.1 christos
7327 1.1 christos # This is an error.
7328 1.1 christos -*) { echo "$as_me: error: unrecognized option: $1
7329 1.1 christos Try \`$0 --help' for more information." >&2
7330 1.1 christos { (exit 1); exit 1; }; } ;;
7331 1.1 christos
7332 1.1 christos *) ac_config_targets="$ac_config_targets $1"
7333 1.1 christos ac_need_defaults=false ;;
7334 1.1 christos
7335 1.1 christos esac
7336 1.1 christos shift
7337 1.1 christos done
7338 1.1 christos
7339 1.1 christos ac_configure_extra_args=
7340 1.1 christos
7341 1.1 christos if $ac_cs_silent; then
7342 1.1 christos exec 6>/dev/null
7343 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
7344 1.1 christos fi
7345 1.1 christos
7346 1.1 christos _ACEOF
7347 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7348 1.1 christos if \$ac_cs_recheck; then
7349 1.1 christos echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7350 1.1 christos CONFIG_SHELL=$SHELL
7351 1.1 christos export CONFIG_SHELL
7352 1.1 christos exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7353 1.1 christos fi
7354 1.1 christos
7355 1.1 christos _ACEOF
7356 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7357 1.1 christos exec 5>>config.log
7358 1.1 christos {
7359 1.1 christos echo
7360 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7361 1.1 christos ## Running $as_me. ##
7362 1.1 christos _ASBOX
7363 1.1 christos echo "$ac_log"
7364 1.1 christos } >&5
7365 1.1 christos
7366 1.1 christos _ACEOF
7367 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7368 1.1 christos _ACEOF
7369 1.1 christos
7370 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7371 1.1 christos
7372 1.1 christos # Handling of arguments.
7373 1.1 christos for ac_config_target in $ac_config_targets
7374 1.1 christos do
7375 1.1 christos case $ac_config_target in
7376 1.1 christos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7377 1.1 christos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7378 1.1 christos "top.1") CONFIG_FILES="$CONFIG_FILES top.1" ;;
7379 1.1 christos
7380 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7381 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7382 1.1 christos { (exit 1); exit 1; }; };;
7383 1.1 christos esac
7384 1.1 christos done
7385 1.1 christos
7386 1.1 christos
7387 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
7388 1.1 christos # then the envvar interface is used. Set only those that are not.
7389 1.1 christos # We use the long form for the default assignment because of an extremely
7390 1.1 christos # bizarre bug on SunOS 4.1.3.
7391 1.1 christos if $ac_need_defaults; then
7392 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7393 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7394 1.1 christos fi
7395 1.1 christos
7396 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
7397 1.1 christos # simply because there is no reason against having it here, and in addition,
7398 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
7399 1.1 christos # Hook for its removal unless debugging.
7400 1.1 christos # Note that there is a small window in which the directory will not be cleaned:
7401 1.1 christos # after its creation but before its name has been assigned to `$tmp'.
7402 1.1 christos $debug ||
7403 1.1 christos {
7404 1.1 christos tmp=
7405 1.1 christos trap 'exit_status=$?
7406 1.1 christos { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7407 1.1 christos ' 0
7408 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
7409 1.1 christos }
7410 1.1 christos # Create a (secure) tmp directory for tmp files.
7411 1.1 christos
7412 1.1 christos {
7413 1.1 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7414 1.1 christos test -n "$tmp" && test -d "$tmp"
7415 1.1 christos } ||
7416 1.1 christos {
7417 1.1 christos tmp=./conf$$-$RANDOM
7418 1.1 christos (umask 077 && mkdir "$tmp")
7419 1.1 christos } ||
7420 1.1 christos {
7421 1.1 christos echo "$me: cannot create a temporary directory in ." >&2
7422 1.1 christos { (exit 1); exit 1; }
7423 1.1 christos }
7424 1.1 christos
7425 1.1 christos #
7426 1.1 christos # Set up the sed scripts for CONFIG_FILES section.
7427 1.1 christos #
7428 1.1 christos
7429 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES.
7430 1.1 christos # This happens for instance when ./config.status config.h
7431 1.1 christos if test -n "$CONFIG_FILES"; then
7432 1.1 christos
7433 1.1 christos _ACEOF
7434 1.1 christos
7435 1.1 christos # Create sed commands to just substitute file output variables.
7436 1.1 christos
7437 1.1 christos # Remaining file output variables are in a fragment that also has non-file
7438 1.1 christos # output varibles.
7439 1.1 christos
7440 1.1 christos
7441 1.1 christos
7442 1.1 christos ac_delim='%!_!# '
7443 1.1 christos for ac_last_try in false false false false false :; do
7444 1.1 christos cat >conf$$subs.sed <<_ACEOF
7445 1.1 christos SHELL!$SHELL$ac_delim
7446 1.1 christos PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7447 1.1 christos PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7448 1.1 christos PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7449 1.1 christos PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7450 1.1 christos PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7451 1.1 christos PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7452 1.1 christos exec_prefix!$exec_prefix$ac_delim
7453 1.1 christos prefix!$prefix$ac_delim
7454 1.1 christos program_transform_name!$program_transform_name$ac_delim
7455 1.1 christos bindir!$bindir$ac_delim
7456 1.1 christos sbindir!$sbindir$ac_delim
7457 1.1 christos libexecdir!$libexecdir$ac_delim
7458 1.1 christos datarootdir!$datarootdir$ac_delim
7459 1.1 christos datadir!$datadir$ac_delim
7460 1.1 christos sysconfdir!$sysconfdir$ac_delim
7461 1.1 christos sharedstatedir!$sharedstatedir$ac_delim
7462 1.1 christos localstatedir!$localstatedir$ac_delim
7463 1.1 christos includedir!$includedir$ac_delim
7464 1.1 christos oldincludedir!$oldincludedir$ac_delim
7465 1.1 christos docdir!$docdir$ac_delim
7466 1.1 christos infodir!$infodir$ac_delim
7467 1.1 christos htmldir!$htmldir$ac_delim
7468 1.1 christos dvidir!$dvidir$ac_delim
7469 1.1 christos pdfdir!$pdfdir$ac_delim
7470 1.1 christos psdir!$psdir$ac_delim
7471 1.1 christos libdir!$libdir$ac_delim
7472 1.1 christos localedir!$localedir$ac_delim
7473 1.1 christos mandir!$mandir$ac_delim
7474 1.1 christos DEFS!$DEFS$ac_delim
7475 1.1 christos ECHO_C!$ECHO_C$ac_delim
7476 1.1 christos ECHO_N!$ECHO_N$ac_delim
7477 1.1 christos ECHO_T!$ECHO_T$ac_delim
7478 1.1 christos LIBS!$LIBS$ac_delim
7479 1.1 christos build_alias!$build_alias$ac_delim
7480 1.1 christos host_alias!$host_alias$ac_delim
7481 1.1 christos target_alias!$target_alias$ac_delim
7482 1.1 christos build!$build$ac_delim
7483 1.1 christos build_cpu!$build_cpu$ac_delim
7484 1.1 christos build_vendor!$build_vendor$ac_delim
7485 1.1 christos build_os!$build_os$ac_delim
7486 1.1 christos host!$host$ac_delim
7487 1.1 christos host_cpu!$host_cpu$ac_delim
7488 1.1 christos host_vendor!$host_vendor$ac_delim
7489 1.1 christos host_os!$host_os$ac_delim
7490 1.1 christos target!$target$ac_delim
7491 1.1 christos target_cpu!$target_cpu$ac_delim
7492 1.1 christos target_vendor!$target_vendor$ac_delim
7493 1.1 christos target_os!$target_os$ac_delim
7494 1.1 christos DEFAULT_TOPN!$DEFAULT_TOPN$ac_delim
7495 1.1 christos NOMINAL_TOPN!$NOMINAL_TOPN$ac_delim
7496 1.1 christos DEFAULT_DELAY!$DEFAULT_DELAY$ac_delim
7497 1.1 christos ENABLE_KILL!$ENABLE_KILL$ac_delim
7498 1.1 christos MAKE!$MAKE$ac_delim
7499 1.1 christos CC!$CC$ac_delim
7500 1.1 christos CFLAGS!$CFLAGS$ac_delim
7501 1.1 christos LDFLAGS!$LDFLAGS$ac_delim
7502 1.1 christos CPPFLAGS!$CPPFLAGS$ac_delim
7503 1.1 christos ac_ct_CC!$ac_ct_CC$ac_delim
7504 1.1 christos EXEEXT!$EXEEXT$ac_delim
7505 1.1 christos OBJEXT!$OBJEXT$ac_delim
7506 1.1 christos AWK!$AWK$ac_delim
7507 1.1 christos INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7508 1.1 christos INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7509 1.1 christos INSTALL_DATA!$INSTALL_DATA$ac_delim
7510 1.1 christos ISAINFO!$ISAINFO$ac_delim
7511 1.1 christos ISAEXEC!$ISAEXEC$ac_delim
7512 1.1 christos UNAME!$UNAME$ac_delim
7513 1.1 christos CPP!$CPP$ac_delim
7514 1.1 christos GREP!$GREP$ac_delim
7515 1.1 christos EGREP!$EGREP$ac_delim
7516 1.1 christos SIGNAL_H!$SIGNAL_H$ac_delim
7517 1.1 christos HAVE_GETOPT_LONG!$HAVE_GETOPT_LONG$ac_delim
7518 1.1 christos SRC!$SRC$ac_delim
7519 1.1 christos OBJ!$OBJ$ac_delim
7520 1.1 christos CLEAN_EXTRA!$CLEAN_EXTRA$ac_delim
7521 1.1 christos ARCHFLAG!$ARCHFLAG$ac_delim
7522 1.1 christos MODULE!$MODULE$ac_delim
7523 1.1 christos MODULE_CFLAGS!$MODULE_CFLAGS$ac_delim
7524 1.1 christos INSTALL_OPTS_PROG!$INSTALL_OPTS_PROG$ac_delim
7525 1.1 christos LIBOBJS!$LIBOBJS$ac_delim
7526 1.1 christos LTLIBOBJS!$LTLIBOBJS$ac_delim
7527 1.1 christos _ACEOF
7528 1.1 christos
7529 1.1 christos if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
7530 1.1 christos break
7531 1.1 christos elif $ac_last_try; then
7532 1.1 christos { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7533 1.1 christos echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7534 1.1 christos { (exit 1); exit 1; }; }
7535 1.1 christos else
7536 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7537 1.1 christos fi
7538 1.1 christos done
7539 1.1 christos
7540 1.1 christos ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7541 1.1 christos if test -n "$ac_eof"; then
7542 1.1 christos ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7543 1.1 christos ac_eof=`expr $ac_eof + 1`
7544 1.1 christos fi
7545 1.1 christos
7546 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7547 1.1 christos cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7548 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7549 1.1 christos /^[ ]*@FIRST_RULE@[ ]*$/{
7550 1.1 christos r $FIRST_RULE
7551 1.1 christos d
7552 1.1 christos }
7553 1.1 christos /^[ ]*@INSTALL_RULE@[ ]*$/{
7554 1.1 christos r $INSTALL_RULE
7555 1.1 christos d
7556 1.1 christos }
7557 1.1 christos /^[ ]*@MAN_SUPPLEMENT@[ ]*$/{
7558 1.1 christos r $MAN_SUPPLEMENT
7559 1.1 christos d
7560 1.1 christos }
7561 1.1 christos _ACEOF
7562 1.1 christos sed '
7563 1.1 christos s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7564 1.1 christos s/^/s,@/; s/!/@,|#_!!_#|/
7565 1.1 christos :n
7566 1.1 christos t n
7567 1.1 christos s/'"$ac_delim"'$/,g/; t
7568 1.1 christos s/$/\\/; p
7569 1.1 christos N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7570 1.1 christos ' >>$CONFIG_STATUS <conf$$subs.sed
7571 1.1 christos rm -f conf$$subs.sed
7572 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7573 1.1 christos :end
7574 1.1 christos s/|#_!!_#|//g
7575 1.1 christos CEOF$ac_eof
7576 1.1 christos _ACEOF
7577 1.1 christos
7578 1.1 christos
7579 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
7580 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7581 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
7582 1.1 christos # (actually we leave an empty line to preserve line numbers).
7583 1.1 christos if test "x$srcdir" = x.; then
7584 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
7585 1.1 christos s/:*\$(srcdir):*/:/
7586 1.1 christos s/:*\${srcdir}:*/:/
7587 1.1 christos s/:*@srcdir@:*/:/
7588 1.1 christos s/^\([^=]*=[ ]*\):*/\1/
7589 1.1 christos s/:*$//
7590 1.1 christos s/^[^=]*=[ ]*$//
7591 1.1 christos }'
7592 1.1 christos fi
7593 1.1 christos
7594 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7595 1.1 christos fi # test -n "$CONFIG_FILES"
7596 1.1 christos
7597 1.1 christos
7598 1.1 christos for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7599 1.1 christos do
7600 1.1 christos case $ac_tag in
7601 1.1 christos :[FHLC]) ac_mode=$ac_tag; continue;;
7602 1.1 christos esac
7603 1.1 christos case $ac_mode$ac_tag in
7604 1.1 christos :[FHL]*:*);;
7605 1.1 christos :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7606 1.1 christos echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7607 1.1 christos { (exit 1); exit 1; }; };;
7608 1.1 christos :[FH]-) ac_tag=-:-;;
7609 1.1 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7610 1.1 christos esac
7611 1.1 christos ac_save_IFS=$IFS
7612 1.1 christos IFS=:
7613 1.1 christos set x $ac_tag
7614 1.1 christos IFS=$ac_save_IFS
7615 1.1 christos shift
7616 1.1 christos ac_file=$1
7617 1.1 christos shift
7618 1.1 christos
7619 1.1 christos case $ac_mode in
7620 1.1 christos :L) ac_source=$1;;
7621 1.1 christos :[FH])
7622 1.1 christos ac_file_inputs=
7623 1.1 christos for ac_f
7624 1.1 christos do
7625 1.1 christos case $ac_f in
7626 1.1 christos -) ac_f="$tmp/stdin";;
7627 1.1 christos *) # Look for the file first in the build tree, then in the source tree
7628 1.1 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
7629 1.1 christos # because $ac_f cannot contain `:'.
7630 1.1 christos test -f "$ac_f" ||
7631 1.1 christos case $ac_f in
7632 1.1 christos [\\/$]*) false;;
7633 1.1 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7634 1.1 christos esac ||
7635 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7636 1.1 christos echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7637 1.1 christos { (exit 1); exit 1; }; };;
7638 1.1 christos esac
7639 1.1 christos ac_file_inputs="$ac_file_inputs $ac_f"
7640 1.1 christos done
7641 1.1 christos
7642 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
7643 1.1 christos # use $as_me), people would be surprised to read:
7644 1.1 christos # /* config.h. Generated by config.status. */
7645 1.1 christos configure_input="Generated from "`IFS=:
7646 1.1 christos echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7647 1.1 christos if test x"$ac_file" != x-; then
7648 1.1 christos configure_input="$ac_file. $configure_input"
7649 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5
7650 1.1 christos echo "$as_me: creating $ac_file" >&6;}
7651 1.1 christos fi
7652 1.1 christos
7653 1.1 christos case $ac_tag in
7654 1.1 christos *:-:* | *:-) cat >"$tmp/stdin";;
7655 1.1 christos esac
7656 1.1 christos ;;
7657 1.1 christos esac
7658 1.1 christos
7659 1.1 christos ac_dir=`$as_dirname -- "$ac_file" ||
7660 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7661 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
7662 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
7663 1.1 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7664 1.1 christos echo X"$ac_file" |
7665 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7666 1.1 christos s//\1/
7667 1.1 christos q
7668 1.1 christos }
7669 1.1 christos /^X\(\/\/\)[^/].*/{
7670 1.1 christos s//\1/
7671 1.1 christos q
7672 1.1 christos }
7673 1.1 christos /^X\(\/\/\)$/{
7674 1.1 christos s//\1/
7675 1.1 christos q
7676 1.1 christos }
7677 1.1 christos /^X\(\/\).*/{
7678 1.1 christos s//\1/
7679 1.1 christos q
7680 1.1 christos }
7681 1.1 christos s/.*/./; q'`
7682 1.1 christos { as_dir="$ac_dir"
7683 1.1 christos case $as_dir in #(
7684 1.1 christos -*) as_dir=./$as_dir;;
7685 1.1 christos esac
7686 1.1 christos test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7687 1.1 christos as_dirs=
7688 1.1 christos while :; do
7689 1.1 christos case $as_dir in #(
7690 1.1 christos *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7691 1.1 christos *) as_qdir=$as_dir;;
7692 1.1 christos esac
7693 1.1 christos as_dirs="'$as_qdir' $as_dirs"
7694 1.1 christos as_dir=`$as_dirname -- "$as_dir" ||
7695 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7696 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
7697 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
7698 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7699 1.1 christos echo X"$as_dir" |
7700 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7701 1.1 christos s//\1/
7702 1.1 christos q
7703 1.1 christos }
7704 1.1 christos /^X\(\/\/\)[^/].*/{
7705 1.1 christos s//\1/
7706 1.1 christos q
7707 1.1 christos }
7708 1.1 christos /^X\(\/\/\)$/{
7709 1.1 christos s//\1/
7710 1.1 christos q
7711 1.1 christos }
7712 1.1 christos /^X\(\/\).*/{
7713 1.1 christos s//\1/
7714 1.1 christos q
7715 1.1 christos }
7716 1.1 christos s/.*/./; q'`
7717 1.1 christos test -d "$as_dir" && break
7718 1.1 christos done
7719 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
7720 1.1 christos } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7721 1.1 christos echo "$as_me: error: cannot create directory $as_dir" >&2;}
7722 1.1 christos { (exit 1); exit 1; }; }; }
7723 1.1 christos ac_builddir=.
7724 1.1 christos
7725 1.1 christos case "$ac_dir" in
7726 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7727 1.1 christos *)
7728 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7729 1.1 christos # A ".." for each directory in $ac_dir_suffix.
7730 1.1 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7731 1.1 christos case $ac_top_builddir_sub in
7732 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7733 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7734 1.1 christos esac ;;
7735 1.1 christos esac
7736 1.1 christos ac_abs_top_builddir=$ac_pwd
7737 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
7738 1.1 christos # for backward compatibility:
7739 1.1 christos ac_top_builddir=$ac_top_build_prefix
7740 1.1 christos
7741 1.1 christos case $srcdir in
7742 1.1 christos .) # We are building in place.
7743 1.1 christos ac_srcdir=.
7744 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
7745 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
7746 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
7747 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
7748 1.1 christos ac_top_srcdir=$srcdir
7749 1.1 christos ac_abs_top_srcdir=$srcdir ;;
7750 1.1 christos *) # Relative name.
7751 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7752 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
7753 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7754 1.1 christos esac
7755 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7756 1.1 christos
7757 1.1 christos
7758 1.1 christos case $ac_mode in
7759 1.1 christos :F)
7760 1.1 christos #
7761 1.1 christos # CONFIG_FILE
7762 1.1 christos #
7763 1.1 christos
7764 1.1 christos case $INSTALL in
7765 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7766 1.1 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7767 1.1 christos esac
7768 1.1 christos _ACEOF
7769 1.1 christos
7770 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7771 1.1 christos # If the template does not know about datarootdir, expand it.
7772 1.1 christos # FIXME: This hack should be removed a few years after 2.60.
7773 1.1 christos ac_datarootdir_hack=; ac_datarootdir_seen=
7774 1.1 christos
7775 1.1 christos case `sed -n '/datarootdir/ {
7776 1.1 christos p
7777 1.1 christos q
7778 1.1 christos }
7779 1.1 christos /@datadir@/p
7780 1.1 christos /@docdir@/p
7781 1.1 christos /@infodir@/p
7782 1.1 christos /@localedir@/p
7783 1.1 christos /@mandir@/p
7784 1.1 christos ' $ac_file_inputs` in
7785 1.1 christos *datarootdir*) ac_datarootdir_seen=yes;;
7786 1.1 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7787 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7788 1.1 christos echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7789 1.1 christos _ACEOF
7790 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7791 1.1 christos ac_datarootdir_hack='
7792 1.1 christos s&@datadir@&$datadir&g
7793 1.1 christos s&@docdir@&$docdir&g
7794 1.1 christos s&@infodir@&$infodir&g
7795 1.1 christos s&@localedir@&$localedir&g
7796 1.1 christos s&@mandir@&$mandir&g
7797 1.1 christos s&\\\${datarootdir}&$datarootdir&g' ;;
7798 1.1 christos esac
7799 1.1 christos _ACEOF
7800 1.1 christos
7801 1.1 christos # Neutralize VPATH when `$srcdir' = `.'.
7802 1.1 christos # Shell code in configure.ac might set extrasub.
7803 1.1 christos # FIXME: do we really want to maintain this feature?
7804 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7805 1.1 christos sed "$ac_vpsub
7806 1.1 christos $extrasub
7807 1.1 christos _ACEOF
7808 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7809 1.1 christos :t
7810 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7811 1.1 christos s&@configure_input@&$configure_input&;t t
7812 1.1 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
7813 1.1 christos s&@srcdir@&$ac_srcdir&;t t
7814 1.1 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
7815 1.1 christos s&@top_srcdir@&$ac_top_srcdir&;t t
7816 1.1 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7817 1.1 christos s&@builddir@&$ac_builddir&;t t
7818 1.1 christos s&@abs_builddir@&$ac_abs_builddir&;t t
7819 1.1 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7820 1.1 christos s&@INSTALL@&$ac_INSTALL&;t t
7821 1.1 christos $ac_datarootdir_hack
7822 1.1 christos " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7823 1.1 christos
7824 1.1 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7825 1.1 christos { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7826 1.1 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7827 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7828 1.1 christos which seems to be undefined. Please make sure it is defined." >&5
7829 1.1 christos echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7830 1.1 christos which seems to be undefined. Please make sure it is defined." >&2;}
7831 1.1 christos
7832 1.1 christos rm -f "$tmp/stdin"
7833 1.1 christos case $ac_file in
7834 1.1 christos -) cat "$tmp/out"; rm -f "$tmp/out";;
7835 1.1 christos *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7836 1.1 christos esac
7837 1.1 christos ;;
7838 1.1 christos :H)
7839 1.1 christos #
7840 1.1 christos # CONFIG_HEADER
7841 1.1 christos #
7842 1.1 christos _ACEOF
7843 1.1 christos
7844 1.1 christos # Transform confdefs.h into a sed script `conftest.defines', that
7845 1.1 christos # substitutes the proper values into config.h.in to produce config.h.
7846 1.1 christos rm -f conftest.defines conftest.tail
7847 1.1 christos # First, append a space to every undef/define line, to ease matching.
7848 1.1 christos echo 's/$/ /' >conftest.defines
7849 1.1 christos # Then, protect against being on the right side of a sed subst, or in
7850 1.1 christos # an unquoted here document, in config.status. If some macros were
7851 1.1 christos # called several times there might be several #defines for the same
7852 1.1 christos # symbol, which is useless. But do not sort them, since the last
7853 1.1 christos # AC_DEFINE must be honored.
7854 1.1 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7855 1.1 christos # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7856 1.1 christos # NAME is the cpp macro being defined, VALUE is the value it is being given.
7857 1.1 christos # PARAMS is the parameter list in the macro definition--in most cases, it's
7858 1.1 christos # just an empty string.
7859 1.1 christos ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7860 1.1 christos ac_dB='\\)[ (].*,\\1define\\2'
7861 1.1 christos ac_dC=' '
7862 1.1 christos ac_dD=' ,'
7863 1.1 christos
7864 1.1 christos uniq confdefs.h |
7865 1.1 christos sed -n '
7866 1.1 christos t rset
7867 1.1 christos :rset
7868 1.1 christos s/^[ ]*#[ ]*define[ ][ ]*//
7869 1.1 christos t ok
7870 1.1 christos d
7871 1.1 christos :ok
7872 1.1 christos s/[\\&,]/\\&/g
7873 1.1 christos s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7874 1.1 christos s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7875 1.1 christos ' >>conftest.defines
7876 1.1 christos
7877 1.1 christos # Remove the space that was appended to ease matching.
7878 1.1 christos # Then replace #undef with comments. This is necessary, for
7879 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required
7880 1.1 christos # on some systems where configure will not decide to define it.
7881 1.1 christos # (The regexp can be short, since the line contains either #define or #undef.)
7882 1.1 christos echo 's/ $//
7883 1.1 christos s,^[ #]*u.*,/* & */,' >>conftest.defines
7884 1.1 christos
7885 1.1 christos # Break up conftest.defines:
7886 1.1 christos ac_max_sed_lines=50
7887 1.1 christos
7888 1.1 christos # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7889 1.1 christos # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7890 1.1 christos # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7891 1.1 christos # et cetera.
7892 1.1 christos ac_in='$ac_file_inputs'
7893 1.1 christos ac_out='"$tmp/out1"'
7894 1.1 christos ac_nxt='"$tmp/out2"'
7895 1.1 christos
7896 1.1 christos while :
7897 1.1 christos do
7898 1.1 christos # Write a here document:
7899 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
7900 1.1 christos # First, check the format of the line:
7901 1.1 christos cat >"\$tmp/defines.sed" <<\\CEOF
7902 1.1 christos /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7903 1.1 christos /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7904 1.1 christos b
7905 1.1 christos :def
7906 1.1 christos _ACEOF
7907 1.1 christos sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7908 1.1 christos echo 'CEOF
7909 1.1 christos sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7910 1.1 christos ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7911 1.1 christos sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7912 1.1 christos grep . conftest.tail >/dev/null || break
7913 1.1 christos rm -f conftest.defines
7914 1.1 christos mv conftest.tail conftest.defines
7915 1.1 christos done
7916 1.1 christos rm -f conftest.defines conftest.tail
7917 1.1 christos
7918 1.1 christos echo "ac_result=$ac_in" >>$CONFIG_STATUS
7919 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
7920 1.1 christos if test x"$ac_file" != x-; then
7921 1.1 christos echo "/* $configure_input */" >"$tmp/config.h"
7922 1.1 christos cat "$ac_result" >>"$tmp/config.h"
7923 1.1 christos if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7924 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7925 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;}
7926 1.1 christos else
7927 1.1 christos rm -f $ac_file
7928 1.1 christos mv "$tmp/config.h" $ac_file
7929 1.1 christos fi
7930 1.1 christos else
7931 1.1 christos echo "/* $configure_input */"
7932 1.1 christos cat "$ac_result"
7933 1.1 christos fi
7934 1.1 christos rm -f "$tmp/out12"
7935 1.1 christos ;;
7936 1.1 christos
7937 1.1 christos
7938 1.1 christos esac
7939 1.1 christos
7940 1.1 christos done # for ac_tag
7941 1.1 christos
7942 1.1 christos
7943 1.1 christos { (exit 0); exit 0; }
7944 1.1 christos _ACEOF
7945 1.1 christos chmod +x $CONFIG_STATUS
7946 1.1 christos ac_clean_files=$ac_clean_files_save
7947 1.1 christos
7948 1.1 christos
7949 1.1 christos # configure is writing to config.log, and then calls config.status.
7950 1.1 christos # config.status does its own redirection, appending to config.log.
7951 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
7952 1.1 christos # by configure, so config.status won't be able to write to it; its
7953 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
7954 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
7955 1.1 christos # appended to by config.status. When coming back to configure, we
7956 1.1 christos # need to make the FD available again.
7957 1.1 christos if test "$no_create" != yes; then
7958 1.1 christos ac_cs_success=:
7959 1.1 christos ac_config_status_args=
7960 1.1 christos test "$silent" = yes &&
7961 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
7962 1.1 christos exec 5>/dev/null
7963 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7964 1.1 christos exec 5>>config.log
7965 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7966 1.1 christos # would make configure fail if this is the last instruction.
7967 1.1 christos $ac_cs_success || { (exit 1); exit 1; }
7968 1.1 christos fi
7969 1.1 christos
7970