0 | 0 |
#! /bin/sh
|
1 | |
|
2 | 1 |
# Guess values for system-dependent variables and create Makefiles.
|
3 | |
# Generated automatically using autoconf version 2.13
|
4 | |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
2 |
# Generated by GNU Autoconf 2.61.
|
5 | 3 |
#
|
|
4 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
5 |
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
6 | 6 |
# This configure script is free software; the Free Software Foundation
|
7 | 7 |
# gives unlimited permission to copy, distribute and modify it.
|
8 | |
|
9 | |
# Defaults:
|
10 | |
ac_help=
|
|
8 |
## --------------------- ##
|
|
9 |
## M4sh Initialization. ##
|
|
10 |
## --------------------- ##
|
|
11 |
|
|
12 |
# Be more Bourne compatible
|
|
13 |
DUALCASE=1; export DUALCASE # for MKS sh
|
|
14 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
15 |
emulate sh
|
|
16 |
NULLCMD=:
|
|
17 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
18 |
# is contrary to our usage. Disable this feature.
|
|
19 |
alias -g '${1+"$@"}'='"$@"'
|
|
20 |
setopt NO_GLOB_SUBST
|
|
21 |
else
|
|
22 |
case `(set -o) 2>/dev/null` in
|
|
23 |
*posix*) set -o posix ;;
|
|
24 |
esac
|
|
25 |
|
|
26 |
fi
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
# PATH needs CR
|
|
32 |
# Avoid depending upon Character Ranges.
|
|
33 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
34 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
35 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
36 |
as_cr_digits='0123456789'
|
|
37 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
38 |
|
|
39 |
# The user is always right.
|
|
40 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
41 |
echo "#! /bin/sh" >conf$$.sh
|
|
42 |
echo "exit 0" >>conf$$.sh
|
|
43 |
chmod +x conf$$.sh
|
|
44 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
45 |
PATH_SEPARATOR=';'
|
|
46 |
else
|
|
47 |
PATH_SEPARATOR=:
|
|
48 |
fi
|
|
49 |
rm -f conf$$.sh
|
|
50 |
fi
|
|
51 |
|
|
52 |
# Support unset when possible.
|
|
53 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
54 |
as_unset=unset
|
|
55 |
else
|
|
56 |
as_unset=false
|
|
57 |
fi
|
|
58 |
|
|
59 |
|
|
60 |
# IFS
|
|
61 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
62 |
# there to prevent editors from complaining about space-tab.
|
|
63 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
64 |
# splitting by setting IFS to empty value.)
|
|
65 |
as_nl='
|
|
66 |
'
|
|
67 |
IFS=" "" $as_nl"
|
|
68 |
|
|
69 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
70 |
case $0 in
|
|
71 |
*[\\/]* ) as_myself=$0 ;;
|
|
72 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
73 |
for as_dir in $PATH
|
|
74 |
do
|
|
75 |
IFS=$as_save_IFS
|
|
76 |
test -z "$as_dir" && as_dir=.
|
|
77 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
78 |
done
|
|
79 |
IFS=$as_save_IFS
|
|
80 |
|
|
81 |
;;
|
|
82 |
esac
|
|
83 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
84 |
# in which case we are not to be found in the path.
|
|
85 |
if test "x$as_myself" = x; then
|
|
86 |
as_myself=$0
|
|
87 |
fi
|
|
88 |
if test ! -f "$as_myself"; then
|
|
89 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
90 |
{ (exit 1); exit 1; }
|
|
91 |
fi
|
|
92 |
|
|
93 |
# Work around bugs in pre-3.0 UWIN ksh.
|
|
94 |
for as_var in ENV MAIL MAILPATH
|
|
95 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
96 |
done
|
|
97 |
PS1='$ '
|
|
98 |
PS2='> '
|
|
99 |
PS4='+ '
|
|
100 |
|
|
101 |
# NLS nuisances.
|
|
102 |
for as_var in \
|
|
103 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
104 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
105 |
LC_TELEPHONE LC_TIME
|
|
106 |
do
|
|
107 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
108 |
eval $as_var=C; export $as_var
|
|
109 |
else
|
|
110 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
111 |
fi
|
|
112 |
done
|
|
113 |
|
|
114 |
# Required to use basename.
|
|
115 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
116 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
117 |
as_expr=expr
|
|
118 |
else
|
|
119 |
as_expr=false
|
|
120 |
fi
|
|
121 |
|
|
122 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
123 |
as_basename=basename
|
|
124 |
else
|
|
125 |
as_basename=false
|
|
126 |
fi
|
|
127 |
|
|
128 |
|
|
129 |
# Name of the executable.
|
|
130 |
as_me=`$as_basename -- "$0" ||
|
|
131 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
132 |
X"$0" : 'X\(//\)$' \| \
|
|
133 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
134 |
echo X/"$0" |
|
|
135 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
136 |
s//\1/
|
|
137 |
q
|
|
138 |
}
|
|
139 |
/^X\/\(\/\/\)$/{
|
|
140 |
s//\1/
|
|
141 |
q
|
|
142 |
}
|
|
143 |
/^X\/\(\/\).*/{
|
|
144 |
s//\1/
|
|
145 |
q
|
|
146 |
}
|
|
147 |
s/.*/./; q'`
|
|
148 |
|
|
149 |
# CDPATH.
|
|
150 |
$as_unset CDPATH
|
|
151 |
|
|
152 |
|
|
153 |
if test "x$CONFIG_SHELL" = x; then
|
|
154 |
if (eval ":") 2>/dev/null; then
|
|
155 |
as_have_required=yes
|
|
156 |
else
|
|
157 |
as_have_required=no
|
|
158 |
fi
|
|
159 |
|
|
160 |
if test $as_have_required = yes && (eval ":
|
|
161 |
(as_func_return () {
|
|
162 |
(exit \$1)
|
|
163 |
}
|
|
164 |
as_func_success () {
|
|
165 |
as_func_return 0
|
|
166 |
}
|
|
167 |
as_func_failure () {
|
|
168 |
as_func_return 1
|
|
169 |
}
|
|
170 |
as_func_ret_success () {
|
|
171 |
return 0
|
|
172 |
}
|
|
173 |
as_func_ret_failure () {
|
|
174 |
return 1
|
|
175 |
}
|
|
176 |
|
|
177 |
exitcode=0
|
|
178 |
if as_func_success; then
|
|
179 |
:
|
|
180 |
else
|
|
181 |
exitcode=1
|
|
182 |
echo as_func_success failed.
|
|
183 |
fi
|
|
184 |
|
|
185 |
if as_func_failure; then
|
|
186 |
exitcode=1
|
|
187 |
echo as_func_failure succeeded.
|
|
188 |
fi
|
|
189 |
|
|
190 |
if as_func_ret_success; then
|
|
191 |
:
|
|
192 |
else
|
|
193 |
exitcode=1
|
|
194 |
echo as_func_ret_success failed.
|
|
195 |
fi
|
|
196 |
|
|
197 |
if as_func_ret_failure; then
|
|
198 |
exitcode=1
|
|
199 |
echo as_func_ret_failure succeeded.
|
|
200 |
fi
|
|
201 |
|
|
202 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
203 |
:
|
|
204 |
else
|
|
205 |
exitcode=1
|
|
206 |
echo positional parameters were not saved.
|
|
207 |
fi
|
|
208 |
|
|
209 |
test \$exitcode = 0) || { (exit 1); exit 1; }
|
|
210 |
|
|
211 |
(
|
|
212 |
as_lineno_1=\$LINENO
|
|
213 |
as_lineno_2=\$LINENO
|
|
214 |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
|
215 |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
|
216 |
") 2> /dev/null; then
|
|
217 |
:
|
|
218 |
else
|
|
219 |
as_candidate_shells=
|
|
220 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
221 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
222 |
do
|
|
223 |
IFS=$as_save_IFS
|
|
224 |
test -z "$as_dir" && as_dir=.
|
|
225 |
case $as_dir in
|
|
226 |
/*)
|
|
227 |
for as_base in sh bash ksh sh5; do
|
|
228 |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
|
229 |
done;;
|
|
230 |
esac
|
|
231 |
done
|
|
232 |
IFS=$as_save_IFS
|
|
233 |
|
|
234 |
|
|
235 |
for as_shell in $as_candidate_shells $SHELL; do
|
|
236 |
# Try only shells that exist, to save several forks.
|
|
237 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
238 |
{ ("$as_shell") 2> /dev/null <<\_ASEOF
|
|
239 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
240 |
emulate sh
|
|
241 |
NULLCMD=:
|
|
242 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
243 |
# is contrary to our usage. Disable this feature.
|
|
244 |
alias -g '${1+"$@"}'='"$@"'
|
|
245 |
setopt NO_GLOB_SUBST
|
|
246 |
else
|
|
247 |
case `(set -o) 2>/dev/null` in
|
|
248 |
*posix*) set -o posix ;;
|
|
249 |
esac
|
|
250 |
|
|
251 |
fi
|
|
252 |
|
|
253 |
|
|
254 |
:
|
|
255 |
_ASEOF
|
|
256 |
}; then
|
|
257 |
CONFIG_SHELL=$as_shell
|
|
258 |
as_have_required=yes
|
|
259 |
if { "$as_shell" 2> /dev/null <<\_ASEOF
|
|
260 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
261 |
emulate sh
|
|
262 |
NULLCMD=:
|
|
263 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
264 |
# is contrary to our usage. Disable this feature.
|
|
265 |
alias -g '${1+"$@"}'='"$@"'
|
|
266 |
setopt NO_GLOB_SUBST
|
|
267 |
else
|
|
268 |
case `(set -o) 2>/dev/null` in
|
|
269 |
*posix*) set -o posix ;;
|
|
270 |
esac
|
|
271 |
|
|
272 |
fi
|
|
273 |
|
|
274 |
|
|
275 |
:
|
|
276 |
(as_func_return () {
|
|
277 |
(exit $1)
|
|
278 |
}
|
|
279 |
as_func_success () {
|
|
280 |
as_func_return 0
|
|
281 |
}
|
|
282 |
as_func_failure () {
|
|
283 |
as_func_return 1
|
|
284 |
}
|
|
285 |
as_func_ret_success () {
|
|
286 |
return 0
|
|
287 |
}
|
|
288 |
as_func_ret_failure () {
|
|
289 |
return 1
|
|
290 |
}
|
|
291 |
|
|
292 |
exitcode=0
|
|
293 |
if as_func_success; then
|
|
294 |
:
|
|
295 |
else
|
|
296 |
exitcode=1
|
|
297 |
echo as_func_success failed.
|
|
298 |
fi
|
|
299 |
|
|
300 |
if as_func_failure; then
|
|
301 |
exitcode=1
|
|
302 |
echo as_func_failure succeeded.
|
|
303 |
fi
|
|
304 |
|
|
305 |
if as_func_ret_success; then
|
|
306 |
:
|
|
307 |
else
|
|
308 |
exitcode=1
|
|
309 |
echo as_func_ret_success failed.
|
|
310 |
fi
|
|
311 |
|
|
312 |
if as_func_ret_failure; then
|
|
313 |
exitcode=1
|
|
314 |
echo as_func_ret_failure succeeded.
|
|
315 |
fi
|
|
316 |
|
|
317 |
if ( set x; as_func_ret_success y && test x = "$1" ); then
|
|
318 |
:
|
|
319 |
else
|
|
320 |
exitcode=1
|
|
321 |
echo positional parameters were not saved.
|
|
322 |
fi
|
|
323 |
|
|
324 |
test $exitcode = 0) || { (exit 1); exit 1; }
|
|
325 |
|
|
326 |
(
|
|
327 |
as_lineno_1=$LINENO
|
|
328 |
as_lineno_2=$LINENO
|
|
329 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
330 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
|
331 |
|
|
332 |
_ASEOF
|
|
333 |
}; then
|
|
334 |
break
|
|
335 |
fi
|
|
336 |
|
|
337 |
fi
|
|
338 |
|
|
339 |
done
|
|
340 |
|
|
341 |
if test "x$CONFIG_SHELL" != x; then
|
|
342 |
for as_var in BASH_ENV ENV
|
|
343 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
344 |
done
|
|
345 |
export CONFIG_SHELL
|
|
346 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
|
347 |
fi
|
|
348 |
|
|
349 |
|
|
350 |
if test $as_have_required = no; then
|
|
351 |
echo This script requires a shell more modern than all the
|
|
352 |
echo shells that I found on your system. Please install a
|
|
353 |
echo modern shell, or manually run the script under such a
|
|
354 |
echo shell if you do have one.
|
|
355 |
{ (exit 1); exit 1; }
|
|
356 |
fi
|
|
357 |
|
|
358 |
|
|
359 |
fi
|
|
360 |
|
|
361 |
fi
|
|
362 |
|
|
363 |
|
|
364 |
|
|
365 |
(eval "as_func_return () {
|
|
366 |
(exit \$1)
|
|
367 |
}
|
|
368 |
as_func_success () {
|
|
369 |
as_func_return 0
|
|
370 |
}
|
|
371 |
as_func_failure () {
|
|
372 |
as_func_return 1
|
|
373 |
}
|
|
374 |
as_func_ret_success () {
|
|
375 |
return 0
|
|
376 |
}
|
|
377 |
as_func_ret_failure () {
|
|
378 |
return 1
|
|
379 |
}
|
|
380 |
|
|
381 |
exitcode=0
|
|
382 |
if as_func_success; then
|
|
383 |
:
|
|
384 |
else
|
|
385 |
exitcode=1
|
|
386 |
echo as_func_success failed.
|
|
387 |
fi
|
|
388 |
|
|
389 |
if as_func_failure; then
|
|
390 |
exitcode=1
|
|
391 |
echo as_func_failure succeeded.
|
|
392 |
fi
|
|
393 |
|
|
394 |
if as_func_ret_success; then
|
|
395 |
:
|
|
396 |
else
|
|
397 |
exitcode=1
|
|
398 |
echo as_func_ret_success failed.
|
|
399 |
fi
|
|
400 |
|
|
401 |
if as_func_ret_failure; then
|
|
402 |
exitcode=1
|
|
403 |
echo as_func_ret_failure succeeded.
|
|
404 |
fi
|
|
405 |
|
|
406 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
407 |
:
|
|
408 |
else
|
|
409 |
exitcode=1
|
|
410 |
echo positional parameters were not saved.
|
|
411 |
fi
|
|
412 |
|
|
413 |
test \$exitcode = 0") || {
|
|
414 |
echo No shell found that supports shell functions.
|
|
415 |
echo Please tell autoconf@gnu.org about your system,
|
|
416 |
echo including any error possibly output before this
|
|
417 |
echo message
|
|
418 |
}
|
|
419 |
|
|
420 |
|
|
421 |
|
|
422 |
as_lineno_1=$LINENO
|
|
423 |
as_lineno_2=$LINENO
|
|
424 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
425 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
426 |
|
|
427 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
428 |
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
429 |
# line-number line after each line using $LINENO; the second 'sed'
|
|
430 |
# does the real work. The second script uses 'N' to pair each
|
|
431 |
# line-number line with the line containing $LINENO, and appends
|
|
432 |
# trailing '-' during substitution so that $LINENO is not a special
|
|
433 |
# case at line end.
|
|
434 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
435 |
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
436 |
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
437 |
sed -n '
|
|
438 |
p
|
|
439 |
/[$]LINENO/=
|
|
440 |
' <$as_myself |
|
|
441 |
sed '
|
|
442 |
s/[$]LINENO.*/&-/
|
|
443 |
t lineno
|
|
444 |
b
|
|
445 |
:lineno
|
|
446 |
N
|
|
447 |
:loop
|
|
448 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
449 |
t loop
|
|
450 |
s/-\n.*//
|
|
451 |
' >$as_me.lineno &&
|
|
452 |
chmod +x "$as_me.lineno" ||
|
|
453 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
454 |
{ (exit 1); exit 1; }; }
|
|
455 |
|
|
456 |
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
457 |
# (the dirname of $[0] is not the place where we might find the
|
|
458 |
# original and so on. Autoconf is especially sensitive to this).
|
|
459 |
. "./$as_me.lineno"
|
|
460 |
# Exit status is that of the last command.
|
|
461 |
exit
|
|
462 |
}
|
|
463 |
|
|
464 |
|
|
465 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
466 |
as_dirname=dirname
|
|
467 |
else
|
|
468 |
as_dirname=false
|
|
469 |
fi
|
|
470 |
|
|
471 |
ECHO_C= ECHO_N= ECHO_T=
|
|
472 |
case `echo -n x` in
|
|
473 |
-n*)
|
|
474 |
case `echo 'x\c'` in
|
|
475 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
476 |
*) ECHO_C='\c';;
|
|
477 |
esac;;
|
|
478 |
*)
|
|
479 |
ECHO_N='-n';;
|
|
480 |
esac
|
|
481 |
|
|
482 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
483 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
484 |
as_expr=expr
|
|
485 |
else
|
|
486 |
as_expr=false
|
|
487 |
fi
|
|
488 |
|
|
489 |
rm -f conf$$ conf$$.exe conf$$.file
|
|
490 |
if test -d conf$$.dir; then
|
|
491 |
rm -f conf$$.dir/conf$$.file
|
|
492 |
else
|
|
493 |
rm -f conf$$.dir
|
|
494 |
mkdir conf$$.dir
|
|
495 |
fi
|
|
496 |
echo >conf$$.file
|
|
497 |
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
498 |
as_ln_s='ln -s'
|
|
499 |
# ... but there are two gotchas:
|
|
500 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
501 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
502 |
# In both cases, we have to default to `cp -p'.
|
|
503 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
504 |
as_ln_s='cp -p'
|
|
505 |
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
506 |
as_ln_s=ln
|
|
507 |
else
|
|
508 |
as_ln_s='cp -p'
|
|
509 |
fi
|
|
510 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
511 |
rmdir conf$$.dir 2>/dev/null
|
|
512 |
|
|
513 |
if mkdir -p . 2>/dev/null; then
|
|
514 |
as_mkdir_p=:
|
|
515 |
else
|
|
516 |
test -d ./-p && rmdir ./-p
|
|
517 |
as_mkdir_p=false
|
|
518 |
fi
|
|
519 |
|
|
520 |
if test -x / >/dev/null 2>&1; then
|
|
521 |
as_test_x='test -x'
|
|
522 |
else
|
|
523 |
if ls -dL / >/dev/null 2>&1; then
|
|
524 |
as_ls_L_option=L
|
|
525 |
else
|
|
526 |
as_ls_L_option=
|
|
527 |
fi
|
|
528 |
as_test_x='
|
|
529 |
eval sh -c '\''
|
|
530 |
if test -d "$1"; then
|
|
531 |
test -d "$1/.";
|
|
532 |
else
|
|
533 |
case $1 in
|
|
534 |
-*)set "./$1";;
|
|
535 |
esac;
|
|
536 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
|
537 |
???[sx]*):;;*)false;;esac;fi
|
|
538 |
'\'' sh
|
|
539 |
'
|
|
540 |
fi
|
|
541 |
as_executable_p=$as_test_x
|
|
542 |
|
|
543 |
# Sed expression to map a string onto a valid CPP name.
|
|
544 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
545 |
|
|
546 |
# Sed expression to map a string onto a valid variable name.
|
|
547 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
548 |
|
|
549 |
|
|
550 |
|
|
551 |
exec 7<&0 </dev/null 6>&1
|
|
552 |
|
|
553 |
# Name of the host.
|
|
554 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
|
555 |
# so uname gets run too.
|
|
556 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
557 |
|
|
558 |
#
|
|
559 |
# Initializations.
|
|
560 |
#
|
11 | 561 |
ac_default_prefix=/usr/local
|
12 | |
# Any additions from configure.in:
|
13 | |
ac_help="$ac_help
|
14 | |
--without-debug turn off debugging?"
|
15 | |
ac_help="$ac_help
|
16 | |
--with-rpath use rpath? (for testing)"
|
17 | |
ac_help="$ac_help
|
18 | |
--with-db db modules to build"
|
19 | |
ac_help="$ac_help
|
20 | |
--with-frontend frontend modules to build"
|
21 | |
ac_help="$ac_help
|
22 | |
--with-conffile=PATH cdebconf config file [/etc/debconf.conf]"
|
23 | |
ac_help="$ac_help
|
24 | |
--with-default-frontend default frontend to use[text]"
|
25 | |
ac_help="$ac_help
|
26 | |
--with-textwrap use libtextwrap for line-folding"
|
27 | |
ac_help="$ac_help
|
28 | |
--with-syslog-logging enable logging to syslog"
|
29 | |
ac_help="$ac_help
|
30 | |
--enable-d-i build cdebconf for the debian-installer"
|
|
562 |
ac_clean_files=
|
|
563 |
ac_config_libobj_dir=.
|
|
564 |
LIBOBJS=
|
|
565 |
cross_compiling=no
|
|
566 |
subdirs=
|
|
567 |
MFLAGS=
|
|
568 |
MAKEFLAGS=
|
|
569 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
570 |
|
|
571 |
# Identity of this package.
|
|
572 |
PACKAGE_NAME=
|
|
573 |
PACKAGE_TARNAME=
|
|
574 |
PACKAGE_VERSION=
|
|
575 |
PACKAGE_STRING=
|
|
576 |
PACKAGE_BUGREPORT=
|
|
577 |
|
|
578 |
ac_unique_file="configure.ac"
|
|
579 |
# Factoring default headers for most tests.
|
|
580 |
ac_includes_default="\
|
|
581 |
#include <stdio.h>
|
|
582 |
#ifdef HAVE_SYS_TYPES_H
|
|
583 |
# include <sys/types.h>
|
|
584 |
#endif
|
|
585 |
#ifdef HAVE_SYS_STAT_H
|
|
586 |
# include <sys/stat.h>
|
|
587 |
#endif
|
|
588 |
#ifdef STDC_HEADERS
|
|
589 |
# include <stdlib.h>
|
|
590 |
# include <stddef.h>
|
|
591 |
#else
|
|
592 |
# ifdef HAVE_STDLIB_H
|
|
593 |
# include <stdlib.h>
|
|
594 |
# endif
|
|
595 |
#endif
|
|
596 |
#ifdef HAVE_STRING_H
|
|
597 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
598 |
# include <memory.h>
|
|
599 |
# endif
|
|
600 |
# include <string.h>
|
|
601 |
#endif
|
|
602 |
#ifdef HAVE_STRINGS_H
|
|
603 |
# include <strings.h>
|
|
604 |
#endif
|
|
605 |
#ifdef HAVE_INTTYPES_H
|
|
606 |
# include <inttypes.h>
|
|
607 |
#endif
|
|
608 |
#ifdef HAVE_STDINT_H
|
|
609 |
# include <stdint.h>
|
|
610 |
#endif
|
|
611 |
#ifdef HAVE_UNISTD_H
|
|
612 |
# include <unistd.h>
|
|
613 |
#endif"
|
|
614 |
|
|
615 |
ac_subst_vars='SHELL
|
|
616 |
PATH_SEPARATOR
|
|
617 |
PACKAGE_NAME
|
|
618 |
PACKAGE_TARNAME
|
|
619 |
PACKAGE_VERSION
|
|
620 |
PACKAGE_STRING
|
|
621 |
PACKAGE_BUGREPORT
|
|
622 |
exec_prefix
|
|
623 |
prefix
|
|
624 |
program_transform_name
|
|
625 |
bindir
|
|
626 |
sbindir
|
|
627 |
libexecdir
|
|
628 |
datarootdir
|
|
629 |
datadir
|
|
630 |
sysconfdir
|
|
631 |
sharedstatedir
|
|
632 |
localstatedir
|
|
633 |
includedir
|
|
634 |
oldincludedir
|
|
635 |
docdir
|
|
636 |
infodir
|
|
637 |
htmldir
|
|
638 |
dvidir
|
|
639 |
pdfdir
|
|
640 |
psdir
|
|
641 |
libdir
|
|
642 |
localedir
|
|
643 |
mandir
|
|
644 |
DEFS
|
|
645 |
ECHO_C
|
|
646 |
ECHO_N
|
|
647 |
ECHO_T
|
|
648 |
LIBS
|
|
649 |
build_alias
|
|
650 |
host_alias
|
|
651 |
target_alias
|
|
652 |
SET_MAKE
|
|
653 |
CC
|
|
654 |
CFLAGS
|
|
655 |
LDFLAGS
|
|
656 |
CPPFLAGS
|
|
657 |
ac_ct_CC
|
|
658 |
EXEEXT
|
|
659 |
OBJEXT
|
|
660 |
HAVESED
|
|
661 |
POD2MAN
|
|
662 |
TOPDIR
|
|
663 |
BUILDDIR
|
|
664 |
RPATH
|
|
665 |
DEFAULT_FRONTEND
|
|
666 |
FRONTEND_MODULES
|
|
667 |
DB_MODULES
|
|
668 |
CPP
|
|
669 |
GREP
|
|
670 |
EGREP
|
|
671 |
LIBOBJS
|
|
672 |
LTLIBOBJS'
|
|
673 |
ac_subst_files=''
|
|
674 |
ac_precious_vars='build_alias
|
|
675 |
host_alias
|
|
676 |
target_alias
|
|
677 |
CC
|
|
678 |
CFLAGS
|
|
679 |
LDFLAGS
|
|
680 |
LIBS
|
|
681 |
CPPFLAGS
|
|
682 |
CPP'
|
|
683 |
|
31 | 684 |
|
32 | 685 |
# Initialize some variables set by options.
|
|
686 |
ac_init_help=
|
|
687 |
ac_init_version=false
|
33 | 688 |
# The variables have the same names as the options, with
|
34 | 689 |
# dashes changed to underlines.
|
35 | |
build=NONE
|
36 | |
cache_file=./config.cache
|
|
690 |
cache_file=/dev/null
|
37 | 691 |
exec_prefix=NONE
|
38 | |
host=NONE
|
39 | 692 |
no_create=
|
40 | |
nonopt=NONE
|
41 | 693 |
no_recursion=
|
42 | 694 |
prefix=NONE
|
43 | 695 |
program_prefix=NONE
|
|
46 | 698 |
silent=
|
47 | 699 |
site=
|
48 | 700 |
srcdir=
|
49 | |
target=NONE
|
50 | 701 |
verbose=
|
51 | 702 |
x_includes=NONE
|
52 | 703 |
x_libraries=NONE
|
|
704 |
|
|
705 |
# Installation directory options.
|
|
706 |
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
707 |
# and all the variables that are supposed to be based on exec_prefix
|
|
708 |
# by default will actually change.
|
|
709 |
# Use braces instead of parens because sh, perl, etc. also accept them.
|
|
710 |
# (The list follows the same order as the GNU Coding Standards.)
|
53 | 711 |
bindir='${exec_prefix}/bin'
|
54 | 712 |
sbindir='${exec_prefix}/sbin'
|
55 | 713 |
libexecdir='${exec_prefix}/libexec'
|
56 | |
datadir='${prefix}/share'
|
|
714 |
datarootdir='${prefix}/share'
|
|
715 |
datadir='${datarootdir}'
|
57 | 716 |
sysconfdir='${prefix}/etc'
|
58 | 717 |
sharedstatedir='${prefix}/com'
|
59 | 718 |
localstatedir='${prefix}/var'
|
60 | |
libdir='${exec_prefix}/lib'
|
61 | 719 |
includedir='${prefix}/include'
|
62 | 720 |
oldincludedir='/usr/include'
|
63 | |
infodir='${prefix}/info'
|
64 | |
mandir='${prefix}/man'
|
65 | |
|
66 | |
# Initialize some other variables.
|
67 | |
subdirs=
|
68 | |
MFLAGS= MAKEFLAGS=
|
69 | |
SHELL=${CONFIG_SHELL-/bin/sh}
|
70 | |
# Maximum number of lines to put in a shell here document.
|
71 | |
ac_max_here_lines=12
|
|
721 |
docdir='${datarootdir}/doc/${PACKAGE}'
|
|
722 |
infodir='${datarootdir}/info'
|
|
723 |
htmldir='${docdir}'
|
|
724 |
dvidir='${docdir}'
|
|
725 |
pdfdir='${docdir}'
|
|
726 |
psdir='${docdir}'
|
|
727 |
libdir='${exec_prefix}/lib'
|
|
728 |
localedir='${datarootdir}/locale'
|
|
729 |
mandir='${datarootdir}/man'
|
72 | 730 |
|
73 | 731 |
ac_prev=
|
|
732 |
ac_dashdash=
|
74 | 733 |
for ac_option
|
75 | 734 |
do
|
76 | |
|
77 | 735 |
# If the previous option needs an argument, assign it.
|
78 | 736 |
if test -n "$ac_prev"; then
|
79 | |
eval "$ac_prev=\$ac_option"
|
|
737 |
eval $ac_prev=\$ac_option
|
80 | 738 |
ac_prev=
|
81 | 739 |
continue
|
82 | 740 |
fi
|
83 | 741 |
|
84 | |
case "$ac_option" in
|
85 | |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
86 | |
*) ac_optarg= ;;
|
|
742 |
case $ac_option in
|
|
743 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
744 |
*) ac_optarg=yes ;;
|
87 | 745 |
esac
|
88 | 746 |
|
89 | 747 |
# Accept the important Cygnus configure options, so we can diagnose typos.
|
90 | 748 |
|
91 | |
case "$ac_option" in
|
|
749 |
case $ac_dashdash$ac_option in
|
|
750 |
--)
|
|
751 |
ac_dashdash=yes ;;
|
92 | 752 |
|
93 | 753 |
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
94 | 754 |
ac_prev=bindir ;;
|
95 | 755 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
96 | |
bindir="$ac_optarg" ;;
|
|
756 |
bindir=$ac_optarg ;;
|
97 | 757 |
|
98 | 758 |
-build | --build | --buil | --bui | --bu)
|
99 | |
ac_prev=build ;;
|
|
759 |
ac_prev=build_alias ;;
|
100 | 760 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
101 | |
build="$ac_optarg" ;;
|
|
761 |
build_alias=$ac_optarg ;;
|
102 | 762 |
|
103 | 763 |
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
104 | 764 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
105 | 765 |
ac_prev=cache_file ;;
|
106 | 766 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
107 | 767 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
108 | |
cache_file="$ac_optarg" ;;
|
109 | |
|
110 | |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
768 |
cache_file=$ac_optarg ;;
|
|
769 |
|
|
770 |
--config-cache | -C)
|
|
771 |
cache_file=config.cache ;;
|
|
772 |
|
|
773 |
-datadir | --datadir | --datadi | --datad)
|
111 | 774 |
ac_prev=datadir ;;
|
112 | |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
113 | |
| --da=*)
|
114 | |
datadir="$ac_optarg" ;;
|
|
775 |
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
776 |
datadir=$ac_optarg ;;
|
|
777 |
|
|
778 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
779 |
| --dataroo | --dataro | --datar)
|
|
780 |
ac_prev=datarootdir ;;
|
|
781 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
782 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
783 |
datarootdir=$ac_optarg ;;
|
115 | 784 |
|
116 | 785 |
-disable-* | --disable-*)
|
117 | |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
786 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
118 | 787 |
# Reject names that are not valid shell variable names.
|
119 | |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
120 | |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
121 | |
fi
|
122 | |
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
123 | |
eval "enable_${ac_feature}=no" ;;
|
|
788 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
789 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
790 |
{ (exit 1); exit 1; }; }
|
|
791 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
|
792 |
eval enable_$ac_feature=no ;;
|
|
793 |
|
|
794 |
-docdir | --docdir | --docdi | --doc | --do)
|
|
795 |
ac_prev=docdir ;;
|
|
796 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
797 |
docdir=$ac_optarg ;;
|
|
798 |
|
|
799 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
800 |
ac_prev=dvidir ;;
|
|
801 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
802 |
dvidir=$ac_optarg ;;
|
124 | 803 |
|
125 | 804 |
-enable-* | --enable-*)
|
126 | |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
805 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
127 | 806 |
# Reject names that are not valid shell variable names.
|
128 | |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
129 | |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
130 | |
fi
|
131 | |
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
132 | |
case "$ac_option" in
|
133 | |
*=*) ;;
|
134 | |
*) ac_optarg=yes ;;
|
135 | |
esac
|
136 | |
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
807 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
808 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
809 |
{ (exit 1); exit 1; }; }
|
|
810 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
|
811 |
eval enable_$ac_feature=\$ac_optarg ;;
|
137 | 812 |
|
138 | 813 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
139 | 814 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
142 | 817 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
143 | 818 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
144 | 819 |
| --exec=* | --exe=* | --ex=*)
|
145 | |
exec_prefix="$ac_optarg" ;;
|
|
820 |
exec_prefix=$ac_optarg ;;
|
146 | 821 |
|
147 | 822 |
-gas | --gas | --ga | --g)
|
148 | 823 |
# Obsolete; use --with-gas.
|
149 | 824 |
with_gas=yes ;;
|
150 | 825 |
|
151 | |
-help | --help | --hel | --he)
|
152 | |
# Omit some internal or obsolete options to make the list less imposing.
|
153 | |
# This message is too long to be a string in the A/UX 3.1 sh.
|
154 | |
cat << EOF
|
155 | |
Usage: configure [options] [host]
|
156 | |
Options: [defaults in brackets after descriptions]
|
157 | |
Configuration:
|
158 | |
--cache-file=FILE cache test results in FILE
|
159 | |
--help print this message
|
160 | |
--no-create do not create output files
|
161 | |
--quiet, --silent do not print \`checking...' messages
|
162 | |
--version print the version of autoconf that created configure
|
163 | |
Directory and file names:
|
164 | |
--prefix=PREFIX install architecture-independent files in PREFIX
|
165 | |
[$ac_default_prefix]
|
166 | |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
167 | |
[same as prefix]
|
168 | |
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
169 | |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
170 | |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
171 | |
--datadir=DIR read-only architecture-independent data in DIR
|
172 | |
[PREFIX/share]
|
173 | |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
174 | |
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
175 | |
[PREFIX/com]
|
176 | |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
177 | |
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
178 | |
--includedir=DIR C header files in DIR [PREFIX/include]
|
179 | |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
180 | |
--infodir=DIR info documentation in DIR [PREFIX/info]
|
181 | |
--mandir=DIR man documentation in DIR [PREFIX/man]
|
182 | |
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
183 | |
--program-prefix=PREFIX prepend PREFIX to installed program names
|
184 | |
--program-suffix=SUFFIX append SUFFIX to installed program names
|
185 | |
--program-transform-name=PROGRAM
|
186 | |
run sed PROGRAM on installed program names
|
187 | |
EOF
|
188 | |
cat << EOF
|
189 | |
Host type:
|
190 | |
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
191 | |
--host=HOST configure for HOST [guessed]
|
192 | |
--target=TARGET configure for TARGET [TARGET=HOST]
|
193 | |
Features and packages:
|
194 | |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
195 | |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
196 | |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
197 | |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
198 | |
--x-includes=DIR X include files are in DIR
|
199 | |
--x-libraries=DIR X library files are in DIR
|
200 | |
EOF
|
201 | |
if test -n "$ac_help"; then
|
202 | |
echo "--enable and --with options recognized:$ac_help"
|
203 | |
fi
|
204 | |
exit 0 ;;
|
|
826 |
-help | --help | --hel | --he | -h)
|
|
827 |
ac_init_help=long ;;
|
|
828 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
829 |
ac_init_help=recursive ;;
|
|
830 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
831 |
ac_init_help=short ;;
|
205 | 832 |
|
206 | 833 |
-host | --host | --hos | --ho)
|
207 | |
ac_prev=host ;;
|
|
834 |
ac_prev=host_alias ;;
|
208 | 835 |
-host=* | --host=* | --hos=* | --ho=*)
|
209 | |
host="$ac_optarg" ;;
|
|
836 |
host_alias=$ac_optarg ;;
|
|
837 |
|
|
838 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
839 |
ac_prev=htmldir ;;
|
|
840 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
841 |
| --ht=*)
|
|
842 |
htmldir=$ac_optarg ;;
|
210 | 843 |
|
211 | 844 |
-includedir | --includedir | --includedi | --included | --include \
|
212 | 845 |
| --includ | --inclu | --incl | --inc)
|
213 | 846 |
ac_prev=includedir ;;
|
214 | 847 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
215 | 848 |
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
216 | |
includedir="$ac_optarg" ;;
|
|
849 |
includedir=$ac_optarg ;;
|
217 | 850 |
|
218 | 851 |
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
219 | 852 |
ac_prev=infodir ;;
|
220 | 853 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
221 | |
infodir="$ac_optarg" ;;
|
|
854 |
infodir=$ac_optarg ;;
|
222 | 855 |
|
223 | 856 |
-libdir | --libdir | --libdi | --libd)
|
224 | 857 |
ac_prev=libdir ;;
|
225 | 858 |
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
226 | |
libdir="$ac_optarg" ;;
|
|
859 |
libdir=$ac_optarg ;;
|
227 | 860 |
|
228 | 861 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
229 | 862 |
| --libexe | --libex | --libe)
|
230 | 863 |
ac_prev=libexecdir ;;
|
231 | 864 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
232 | 865 |
| --libexe=* | --libex=* | --libe=*)
|
233 | |
libexecdir="$ac_optarg" ;;
|
|
866 |
libexecdir=$ac_optarg ;;
|
|
867 |
|
|
868 |
-localedir | --localedir | --localedi | --localed | --locale)
|
|
869 |
ac_prev=localedir ;;
|
|
870 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
871 |
localedir=$ac_optarg ;;
|
234 | 872 |
|
235 | 873 |
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
236 | |
| --localstate | --localstat | --localsta | --localst \
|
237 | |
| --locals | --local | --loca | --loc | --lo)
|
|
874 |
| --localstate | --localstat | --localsta | --localst | --locals)
|
238 | 875 |
ac_prev=localstatedir ;;
|
239 | 876 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
240 | |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
241 | |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
242 | |
localstatedir="$ac_optarg" ;;
|
|
877 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
878 |
localstatedir=$ac_optarg ;;
|
243 | 879 |
|
244 | 880 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
245 | 881 |
ac_prev=mandir ;;
|
246 | 882 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
247 | |
mandir="$ac_optarg" ;;
|
|
883 |
mandir=$ac_optarg ;;
|
248 | 884 |
|
249 | 885 |
-nfp | --nfp | --nf)
|
250 | 886 |
# Obsolete; use --without-fp.
|
251 | 887 |
with_fp=no ;;
|
252 | 888 |
|
253 | 889 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
254 | |
| --no-cr | --no-c)
|
|
890 |
| --no-cr | --no-c | -n)
|
255 | 891 |
no_create=yes ;;
|
256 | 892 |
|
257 | 893 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
265 | 901 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
266 | 902 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
267 | 903 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
268 | |
oldincludedir="$ac_optarg" ;;
|
|
904 |
oldincludedir=$ac_optarg ;;
|
269 | 905 |
|
270 | 906 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
271 | 907 |
ac_prev=prefix ;;
|
272 | 908 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
273 | |
prefix="$ac_optarg" ;;
|
|
909 |
prefix=$ac_optarg ;;
|
274 | 910 |
|
275 | 911 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
276 | 912 |
| --program-pre | --program-pr | --program-p)
|
277 | 913 |
ac_prev=program_prefix ;;
|
278 | 914 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
279 | 915 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
280 | |
program_prefix="$ac_optarg" ;;
|
|
916 |
program_prefix=$ac_optarg ;;
|
281 | 917 |
|
282 | 918 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
283 | 919 |
| --program-suf | --program-su | --program-s)
|
284 | 920 |
ac_prev=program_suffix ;;
|
285 | 921 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
286 | 922 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
287 | |
program_suffix="$ac_optarg" ;;
|
|
923 |
program_suffix=$ac_optarg ;;
|
288 | 924 |
|
289 | 925 |
-program-transform-name | --program-transform-name \
|
290 | 926 |
| --program-transform-nam | --program-transform-na \
|
|
301 | 937 |
| --program-transfo=* | --program-transf=* \
|
302 | 938 |
| --program-trans=* | --program-tran=* \
|
303 | 939 |
| --progr-tra=* | --program-tr=* | --program-t=*)
|
304 | |
program_transform_name="$ac_optarg" ;;
|
|
940 |
program_transform_name=$ac_optarg ;;
|
|
941 |
|
|
942 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
943 |
ac_prev=pdfdir ;;
|
|
944 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
945 |
pdfdir=$ac_optarg ;;
|
|
946 |
|
|
947 |
-psdir | --psdir | --psdi | --psd | --ps)
|
|
948 |
ac_prev=psdir ;;
|
|
949 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
950 |
psdir=$ac_optarg ;;
|
305 | 951 |
|
306 | 952 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
307 | 953 |
| -silent | --silent | --silen | --sile | --sil)
|
|
311 | 957 |
ac_prev=sbindir ;;
|
312 | 958 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
313 | 959 |
| --sbi=* | --sb=*)
|
314 | |
sbindir="$ac_optarg" ;;
|
|
960 |
sbindir=$ac_optarg ;;
|
315 | 961 |
|
316 | 962 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
317 | 963 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
322 | 968 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
323 | 969 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
324 | 970 |
| --sha=* | --sh=*)
|
325 | |
sharedstatedir="$ac_optarg" ;;
|
|
971 |
sharedstatedir=$ac_optarg ;;
|
326 | 972 |
|
327 | 973 |
-site | --site | --sit)
|
328 | 974 |
ac_prev=site ;;
|
329 | 975 |
-site=* | --site=* | --sit=*)
|
330 | |
site="$ac_optarg" ;;
|
|
976 |
site=$ac_optarg ;;
|
331 | 977 |
|
332 | 978 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
333 | 979 |
ac_prev=srcdir ;;
|
334 | 980 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
335 | |
srcdir="$ac_optarg" ;;
|
|
981 |
srcdir=$ac_optarg ;;
|
336 | 982 |
|
337 | 983 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
338 | 984 |
| --syscon | --sysco | --sysc | --sys | --sy)
|
339 | 985 |
ac_prev=sysconfdir ;;
|
340 | 986 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
341 | 987 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
342 | |
sysconfdir="$ac_optarg" ;;
|
|
988 |
sysconfdir=$ac_optarg ;;
|
343 | 989 |
|
344 | 990 |
-target | --target | --targe | --targ | --tar | --ta | --t)
|
345 | |
ac_prev=target ;;
|
|
991 |
ac_prev=target_alias ;;
|
346 | 992 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
347 | |
target="$ac_optarg" ;;
|
|
993 |
target_alias=$ac_optarg ;;
|
348 | 994 |
|
349 | 995 |
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
350 | 996 |
verbose=yes ;;
|
351 | 997 |
|
352 | |
-version | --version | --versio | --versi | --vers)
|
353 | |
echo "configure generated by autoconf version 2.13"
|
354 | |
exit 0 ;;
|
|
998 |
-version | --version | --versio | --versi | --vers | -V)
|
|
999 |
ac_init_version=: ;;
|
355 | 1000 |
|
356 | 1001 |
-with-* | --with-*)
|
357 | |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
1002 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
358 | 1003 |
# Reject names that are not valid shell variable names.
|
359 | |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
360 | |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
361 | |
fi
|
362 | |
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
363 | |
case "$ac_option" in
|
364 | |
*=*) ;;
|
365 | |
*) ac_optarg=yes ;;
|
366 | |
esac
|
367 | |
eval "with_${ac_package}='$ac_optarg'" ;;
|
|
1004 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
1005 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
1006 |
{ (exit 1); exit 1; }; }
|
|
1007 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
|
1008 |
eval with_$ac_package=\$ac_optarg ;;
|
368 | 1009 |
|
369 | 1010 |
-without-* | --without-*)
|
370 | |
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
1011 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
371 | 1012 |
# Reject names that are not valid shell variable names.
|
372 | |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
373 | |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
374 | |
fi
|
375 | |
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
376 | |
eval "with_${ac_package}=no" ;;
|
|
1013 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
1014 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
1015 |
{ (exit 1); exit 1; }; }
|
|
1016 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
|
1017 |
eval with_$ac_package=no ;;
|
377 | 1018 |
|
378 | 1019 |
--x)
|
379 | 1020 |
# Obsolete; use --with-x.
|
|
384 | 1025 |
ac_prev=x_includes ;;
|
385 | 1026 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
386 | 1027 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
387 | |
x_includes="$ac_optarg" ;;
|
|
1028 |
x_includes=$ac_optarg ;;
|
388 | 1029 |
|
389 | 1030 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
390 | 1031 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
391 | 1032 |
ac_prev=x_libraries ;;
|
392 | 1033 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
393 | 1034 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
394 | |
x_libraries="$ac_optarg" ;;
|
395 | |
|
396 | |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
1035 |
x_libraries=$ac_optarg ;;
|
|
1036 |
|
|
1037 |
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
|
1038 |
Try \`$0 --help' for more information." >&2
|
|
1039 |
{ (exit 1); exit 1; }; }
|
397 | 1040 |
;;
|
398 | 1041 |
|
|
1042 |
*=*)
|
|
1043 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
1044 |
# Reject names that are not valid shell variable names.
|
|
1045 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
|
1046 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
|
1047 |
{ (exit 1); exit 1; }; }
|
|
1048 |
eval $ac_envvar=\$ac_optarg
|
|
1049 |
export $ac_envvar ;;
|
|
1050 |
|
399 | 1051 |
*)
|
400 | |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
401 | |
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
402 | |
fi
|
403 | |
if test "x$nonopt" != xNONE; then
|
404 | |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
405 | |
fi
|
406 | |
nonopt="$ac_option"
|
|
1052 |
# FIXME: should be removed in autoconf 3.0.
|
|
1053 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
1054 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
1055 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
1056 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
407 | 1057 |
;;
|
408 | 1058 |
|
409 | 1059 |
esac
|
410 | 1060 |
done
|
411 | 1061 |
|
412 | 1062 |
if test -n "$ac_prev"; then
|
413 | |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
414 | |
fi
|
415 | |
|
416 | |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
417 | |
|
418 | |
# File descriptor usage:
|
419 | |
# 0 standard input
|
420 | |
# 1 file creation
|
421 | |
# 2 errors and warnings
|
422 | |
# 3 some systems may open it to /dev/tty
|
423 | |
# 4 used on the Kubota Titan
|
424 | |
# 6 checking for... messages and results
|
425 | |
# 5 compiler messages saved in config.log
|
426 | |
if test "$silent" = yes; then
|
427 | |
exec 6>/dev/null
|
428 | |
else
|
429 | |
exec 6>&1
|
430 | |
fi
|
431 | |
exec 5>./config.log
|
432 | |
|
433 | |
echo "\
|
434 | |
This file contains any messages produced by compilers while
|
435 | |
running configure, to aid debugging if configure makes a mistake.
|
436 | |
" 1>&5
|
437 | |
|
438 | |
# Strip out --no-create and --no-recursion so they do not pile up.
|
439 | |
# Also quote any args containing shell metacharacters.
|
440 | |
ac_configure_args=
|
441 | |
for ac_arg
|
|
1063 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
1064 |
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
|
1065 |
{ (exit 1); exit 1; }; }
|
|
1066 |
fi
|
|
1067 |
|
|
1068 |
# Be sure to have absolute directory names.
|
|
1069 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
1070 |
datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
1071 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
1072 |
libdir localedir mandir
|
442 | 1073 |
do
|
443 | |
case "$ac_arg" in
|
444 | |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
445 | |
| --no-cr | --no-c) ;;
|
446 | |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
447 | |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
448 | |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
449 | |
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
450 | |
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
1074 |
eval ac_val=\$$ac_var
|
|
1075 |
case $ac_val in
|
|
1076 |
[\\/$]* | ?:[\\/]* ) continue;;
|
|
1077 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
451 | 1078 |
esac
|
|
1079 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
|
1080 |
{ (exit 1); exit 1; }; }
|
452 | 1081 |
done
|
453 | 1082 |
|
454 | |
# NLS nuisances.
|
455 | |
# Only set these to C if already set. These must not be set unconditionally
|
456 | |
# because not all systems understand e.g. LANG=C (notably SCO).
|
457 | |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
458 | |
# Non-C LC_CTYPE values break the ctype check.
|
459 | |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
460 | |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
461 | |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
462 | |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
463 | |
|
464 | |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
465 | |
rm -rf conftest* confdefs.h
|
466 | |
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
467 | |
echo > confdefs.h
|
468 | |
|
469 | |
# A filename unique to this package, relative to the directory that
|
470 | |
# configure is in, which we can look for to find out if srcdir is correct.
|
471 | |
ac_unique_file=configure.in
|
|
1083 |
# There might be people who depend on the old broken behavior: `$host'
|
|
1084 |
# used to hold the argument of --host etc.
|
|
1085 |
# FIXME: To remove some day.
|
|
1086 |
build=$build_alias
|
|
1087 |
host=$host_alias
|
|
1088 |
target=$target_alias
|
|
1089 |
|
|
1090 |
# FIXME: To remove some day.
|
|
1091 |
if test "x$host_alias" != x; then
|
|
1092 |
if test "x$build_alias" = x; then
|
|
1093 |
cross_compiling=maybe
|
|
1094 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
|
1095 |
If a cross compiler is detected then cross compile mode will be used." >&2
|
|
1096 |
elif test "x$build_alias" != "x$host_alias"; then
|
|
1097 |
cross_compiling=yes
|
|
1098 |
fi
|
|
1099 |
fi
|
|
1100 |
|
|
1101 |
ac_tool_prefix=
|
|
1102 |
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
1103 |
|
|
1104 |
test "$silent" = yes && exec 6>/dev/null
|
|
1105 |
|
|
1106 |
|
|
1107 |
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
1108 |
ac_ls_di=`ls -di .` &&
|
|
1109 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
1110 |
{ echo "$as_me: error: Working directory cannot be determined" >&2
|
|
1111 |
{ (exit 1); exit 1; }; }
|
|
1112 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
1113 |
{ echo "$as_me: error: pwd does not report name of working directory" >&2
|
|
1114 |
{ (exit 1); exit 1; }; }
|
|
1115 |
|
472 | 1116 |
|
473 | 1117 |
# Find the source files, if location was not specified.
|
474 | 1118 |
if test -z "$srcdir"; then
|
475 | 1119 |
ac_srcdir_defaulted=yes
|
476 | |
# Try the directory containing this script, then its parent.
|
477 | |
ac_prog=$0
|
478 | |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
479 | |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
1120 |
# Try the directory containing this script, then the parent directory.
|
|
1121 |
ac_confdir=`$as_dirname -- "$0" ||
|
|
1122 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
1123 |
X"$0" : 'X\(//\)[^/]' \| \
|
|
1124 |
X"$0" : 'X\(//\)$' \| \
|
|
1125 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
1126 |
echo X"$0" |
|
|
1127 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
1128 |
s//\1/
|
|
1129 |
q
|
|
1130 |
}
|
|
1131 |
/^X\(\/\/\)[^/].*/{
|
|
1132 |
s//\1/
|
|
1133 |
q
|
|
1134 |
}
|
|
1135 |
/^X\(\/\/\)$/{
|
|
1136 |
s//\1/
|
|
1137 |
q
|
|
1138 |
}
|
|
1139 |
/^X\(\/\).*/{
|
|
1140 |
s//\1/
|
|
1141 |
q
|
|
1142 |
}
|
|
1143 |
s/.*/./; q'`
|
480 | 1144 |
srcdir=$ac_confdir
|
481 | |
if test ! -r $srcdir/$ac_unique_file; then
|
|
1145 |
if test ! -r "$srcdir/$ac_unique_file"; then
|
482 | 1146 |
srcdir=..
|
483 | 1147 |
fi
|
484 | 1148 |
else
|
485 | 1149 |
ac_srcdir_defaulted=no
|
486 | 1150 |
fi
|
487 | |
if test ! -r $srcdir/$ac_unique_file; then
|
488 | |
if test "$ac_srcdir_defaulted" = yes; then
|
489 | |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
490 | |
else
|
491 | |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
492 | |
fi
|
493 | |
fi
|
494 | |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
495 | |
|
|
1151 |
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
1152 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
1153 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
|
1154 |
{ (exit 1); exit 1; }; }
|
|
1155 |
fi
|
|
1156 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
1157 |
ac_abs_confdir=`(
|
|
1158 |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
|
1159 |
{ (exit 1); exit 1; }; }
|
|
1160 |
pwd)`
|
|
1161 |
# When building in place, set srcdir=.
|
|
1162 |
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
1163 |
srcdir=.
|
|
1164 |
fi
|
|
1165 |
# Remove unnecessary trailing slashes from srcdir.
|
|
1166 |
# Double slashes in file names in object file debugging info
|
|
1167 |
# mess up M-x gdb in Emacs.
|
|
1168 |
case $srcdir in
|
|
1169 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
1170 |
esac
|
|
1171 |
for ac_var in $ac_precious_vars; do
|
|
1172 |
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
1173 |
eval ac_env_${ac_var}_value=\$${ac_var}
|
|
1174 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
1175 |
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
1176 |
done
|
|
1177 |
|
|
1178 |
#
|
|
1179 |
# Report the --help message.
|
|
1180 |
#
|
|
1181 |
if test "$ac_init_help" = "long"; then
|
|
1182 |
# Omit some internal or obsolete options to make the list less imposing.
|
|
1183 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
1184 |
cat <<_ACEOF
|
|
1185 |
\`configure' configures this package to adapt to many kinds of systems.
|
|
1186 |
|
|
1187 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
1188 |
|
|
1189 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
1190 |
VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
1191 |
|
|
1192 |
Defaults for the options are specified in brackets.
|
|
1193 |
|
|
1194 |
Configuration:
|
|
1195 |
-h, --help display this help and exit
|
|
1196 |
--help=short display options specific to this package
|
|
1197 |
--help=recursive display the short help of all the included packages
|
|
1198 |
-V, --version display version information and exit
|
|
1199 |
-q, --quiet, --silent do not print \`checking...' messages
|
|
1200 |
--cache-file=FILE cache test results in FILE [disabled]
|
|
1201 |
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
1202 |
-n, --no-create do not create output files
|
|
1203 |
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
1204 |
|
|
1205 |
Installation directories:
|
|
1206 |
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
1207 |
[$ac_default_prefix]
|
|
1208 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
1209 |
[PREFIX]
|
|
1210 |
|
|
1211 |
By default, \`make install' will install all the files in
|
|
1212 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
1213 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
1214 |
for instance \`--prefix=\$HOME'.
|
|
1215 |
|
|
1216 |
For better control, use the options below.
|
|
1217 |
|
|
1218 |
Fine tuning of the installation directories:
|
|
1219 |
--bindir=DIR user executables [EPREFIX/bin]
|
|
1220 |
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
1221 |
--libexecdir=DIR program executables [EPREFIX/libexec]
|
|
1222 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
1223 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
1224 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
1225 |
--libdir=DIR object code libraries [EPREFIX/lib]
|
|
1226 |
--includedir=DIR C header files [PREFIX/include]
|
|
1227 |
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
1228 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
1229 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
1230 |
--infodir=DIR info documentation [DATAROOTDIR/info]
|
|
1231 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
1232 |
--mandir=DIR man documentation [DATAROOTDIR/man]
|
|
1233 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
|
1234 |
--htmldir=DIR html documentation [DOCDIR]
|
|
1235 |
--dvidir=DIR dvi documentation [DOCDIR]
|
|
1236 |
--pdfdir=DIR pdf documentation [DOCDIR]
|
|
1237 |
--psdir=DIR ps documentation [DOCDIR]
|
|
1238 |
_ACEOF
|
|
1239 |
|
|
1240 |
cat <<\_ACEOF
|
|
1241 |
_ACEOF
|
|
1242 |
fi
|
|
1243 |
|
|
1244 |
if test -n "$ac_init_help"; then
|
|
1245 |
|
|
1246 |
cat <<\_ACEOF
|
|
1247 |
|
|
1248 |
Optional Features:
|
|
1249 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
1250 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
1251 |
--enable-d-i build cdebconf for the debian-installer
|
|
1252 |
|
|
1253 |
Optional Packages:
|
|
1254 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
1255 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
1256 |
--without-debug turn off debugging?
|
|
1257 |
--with-rpath use rpath? (for testing)
|
|
1258 |
--with-db db modules to build
|
|
1259 |
--with-frontend frontend modules to build
|
|
1260 |
--with-conffile=PATH cdebconf config file /etc/debconf.conf
|
|
1261 |
--with-default-frontend default frontend to usetext
|
|
1262 |
--with-textwrap use libtextwrap for line-folding
|
|
1263 |
--with-syslog-logging enable logging to syslog
|
|
1264 |
|
|
1265 |
Some influential environment variables:
|
|
1266 |
CC C compiler command
|
|
1267 |
CFLAGS C compiler flags
|
|
1268 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
1269 |
nonstandard directory <lib dir>
|
|
1270 |
LIBS libraries to pass to the linker, e.g. -l<library>
|
|
1271 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
|
1272 |
you have headers in a nonstandard directory <include dir>
|
|
1273 |
CPP C preprocessor
|
|
1274 |
|
|
1275 |
Use these variables to override the choices made by `configure' or to help
|
|
1276 |
it to find libraries and programs with nonstandard names/locations.
|
|
1277 |
|
|
1278 |
_ACEOF
|
|
1279 |
ac_status=$?
|
|
1280 |
fi
|
|
1281 |
|
|
1282 |
if test "$ac_init_help" = "recursive"; then
|
|
1283 |
# If there are subdirs, report their specific --help.
|
|
1284 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
1285 |
test -d "$ac_dir" || continue
|
|
1286 |
ac_builddir=.
|
|
1287 |
|
|
1288 |
case "$ac_dir" in
|
|
1289 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1290 |
*)
|
|
1291 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
1292 |
# A ".." for each directory in $ac_dir_suffix.
|
|
1293 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
1294 |
case $ac_top_builddir_sub in
|
|
1295 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1296 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
1297 |
esac ;;
|
|
1298 |
esac
|
|
1299 |
ac_abs_top_builddir=$ac_pwd
|
|
1300 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
1301 |
# for backward compatibility:
|
|
1302 |
ac_top_builddir=$ac_top_build_prefix
|
|
1303 |
|
|
1304 |
case $srcdir in
|
|
1305 |
.) # We are building in place.
|
|
1306 |
ac_srcdir=.
|
|
1307 |
ac_top_srcdir=$ac_top_builddir_sub
|
|
1308 |
ac_abs_top_srcdir=$ac_pwd ;;
|
|
1309 |
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
1310 |
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
1311 |
ac_top_srcdir=$srcdir
|
|
1312 |
ac_abs_top_srcdir=$srcdir ;;
|
|
1313 |
*) # Relative name.
|
|
1314 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
1315 |
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
1316 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
1317 |
esac
|
|
1318 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
1319 |
|
|
1320 |
cd "$ac_dir" || { ac_status=$?; continue; }
|
|
1321 |
# Check for guested configure.
|
|
1322 |
if test -f "$ac_srcdir/configure.gnu"; then
|
|
1323 |
echo &&
|
|
1324 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
1325 |
elif test -f "$ac_srcdir/configure"; then
|
|
1326 |
echo &&
|
|
1327 |
$SHELL "$ac_srcdir/configure" --help=recursive
|
|
1328 |
else
|
|
1329 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
1330 |
fi || ac_status=$?
|
|
1331 |
cd "$ac_pwd" || { ac_status=$?; break; }
|
|
1332 |
done
|
|
1333 |
fi
|
|
1334 |
|
|
1335 |
test -n "$ac_init_help" && exit $ac_status
|
|
1336 |
if $ac_init_version; then
|
|
1337 |
cat <<\_ACEOF
|
|
1338 |
configure
|
|
1339 |
generated by GNU Autoconf 2.61
|
|
1340 |
|
|
1341 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
1342 |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
1343 |
This configure script is free software; the Free Software Foundation
|
|
1344 |
gives unlimited permission to copy, distribute and modify it.
|
|
1345 |
_ACEOF
|
|
1346 |
exit
|
|
1347 |
fi
|
|
1348 |
cat >config.log <<_ACEOF
|
|
1349 |
This file contains any messages produced by compilers while
|
|
1350 |
running configure, to aid debugging if configure makes a mistake.
|
|
1351 |
|
|
1352 |
It was created by $as_me, which was
|
|
1353 |
generated by GNU Autoconf 2.61. Invocation command line was
|
|
1354 |
|
|
1355 |
$ $0 $@
|
|
1356 |
|
|
1357 |
_ACEOF
|
|
1358 |
exec 5>>config.log
|
|
1359 |
{
|
|
1360 |
cat <<_ASUNAME
|
|
1361 |
## --------- ##
|
|
1362 |
## Platform. ##
|
|
1363 |
## --------- ##
|
|
1364 |
|
|
1365 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
1366 |
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
1367 |
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
1368 |
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
1369 |
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
1370 |
|
|
1371 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
1372 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
1373 |
|
|
1374 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
1375 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
1376 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
1377 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
1378 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
1379 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
1380 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
1381 |
|
|
1382 |
_ASUNAME
|
|
1383 |
|
|
1384 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1385 |
for as_dir in $PATH
|
|
1386 |
do
|
|
1387 |
IFS=$as_save_IFS
|
|
1388 |
test -z "$as_dir" && as_dir=.
|
|
1389 |
echo "PATH: $as_dir"
|
|
1390 |
done
|
|
1391 |
IFS=$as_save_IFS
|
|
1392 |
|
|
1393 |
} >&5
|
|
1394 |
|
|
1395 |
cat >&5 <<_ACEOF
|
|
1396 |
|
|
1397 |
|
|
1398 |
## ----------- ##
|
|
1399 |
## Core tests. ##
|
|
1400 |
## ----------- ##
|
|
1401 |
|
|
1402 |
_ACEOF
|
|
1403 |
|
|
1404 |
|
|
1405 |
# Keep a trace of the command line.
|
|
1406 |
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
1407 |
# Strip out --silent because we don't want to record it for future runs.
|
|
1408 |
# Also quote any args containing shell meta-characters.
|
|
1409 |
# Make two passes to allow for proper duplicate-argument suppression.
|
|
1410 |
ac_configure_args=
|
|
1411 |
ac_configure_args0=
|
|
1412 |
ac_configure_args1=
|
|
1413 |
ac_must_keep_next=false
|
|
1414 |
for ac_pass in 1 2
|
|
1415 |
do
|
|
1416 |
for ac_arg
|
|
1417 |
do
|
|
1418 |
case $ac_arg in
|
|
1419 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
1420 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
1421 |
| -silent | --silent | --silen | --sile | --sil)
|
|
1422 |
continue ;;
|
|
1423 |
*\'*)
|
|
1424 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
1425 |
esac
|
|
1426 |
case $ac_pass in
|
|
1427 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
|
1428 |
2)
|
|
1429 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
|
1430 |
if test $ac_must_keep_next = true; then
|
|
1431 |
ac_must_keep_next=false # Got value, back to normal.
|
|
1432 |
else
|
|
1433 |
case $ac_arg in
|
|
1434 |
*=* | --config-cache | -C | -disable-* | --disable-* \
|
|
1435 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
1436 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
1437 |
| -with-* | --with-* | -without-* | --without-* | --x)
|
|
1438 |
case "$ac_configure_args0 " in
|
|
1439 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
1440 |
esac
|
|
1441 |
;;
|
|
1442 |
-* ) ac_must_keep_next=true ;;
|
|
1443 |
esac
|
|
1444 |
fi
|
|
1445 |
ac_configure_args="$ac_configure_args '$ac_arg'"
|
|
1446 |
;;
|
|
1447 |
esac
|
|
1448 |
done
|
|
1449 |
done
|
|
1450 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
|
1451 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
|
1452 |
|
|
1453 |
# When interrupted or exit'd, cleanup temporary files, and complete
|
|
1454 |
# config.log. We remove comments because anyway the quotes in there
|
|
1455 |
# would cause problems or look ugly.
|
|
1456 |
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
1457 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
1458 |
trap 'exit_status=$?
|
|
1459 |
# Save into config.log some information that might help in debugging.
|
|
1460 |
{
|
|
1461 |
echo
|
|
1462 |
|
|
1463 |
cat <<\_ASBOX
|
|
1464 |
## ---------------- ##
|
|
1465 |
## Cache variables. ##
|
|
1466 |
## ---------------- ##
|
|
1467 |
_ASBOX
|
|
1468 |
echo
|
|
1469 |
# The following way of writing the cache mishandles newlines in values,
|
|
1470 |
(
|
|
1471 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
1472 |
eval ac_val=\$$ac_var
|
|
1473 |
case $ac_val in #(
|
|
1474 |
*${as_nl}*)
|
|
1475 |
case $ac_var in #(
|
|
1476 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
1477 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
1478 |
esac
|
|
1479 |
case $ac_var in #(
|
|
1480 |
_ | IFS | as_nl) ;; #(
|
|
1481 |
*) $as_unset $ac_var ;;
|
|
1482 |
esac ;;
|
|
1483 |
esac
|
|
1484 |
done
|
|
1485 |
(set) 2>&1 |
|
|
1486 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
1487 |
*${as_nl}ac_space=\ *)
|
|
1488 |
sed -n \
|
|
1489 |
"s/'\''/'\''\\\\'\'''\''/g;
|
|
1490 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
1491 |
;; #(
|
|
1492 |
*)
|
|
1493 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
1494 |
;;
|
|
1495 |
esac |
|
|
1496 |
sort
|
|
1497 |
)
|
|
1498 |
echo
|
|
1499 |
|
|
1500 |
cat <<\_ASBOX
|
|
1501 |
## ----------------- ##
|
|
1502 |
## Output variables. ##
|
|
1503 |
## ----------------- ##
|
|
1504 |
_ASBOX
|
|
1505 |
echo
|
|
1506 |
for ac_var in $ac_subst_vars
|
|
1507 |
do
|
|
1508 |
eval ac_val=\$$ac_var
|
|
1509 |
case $ac_val in
|
|
1510 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
1511 |
esac
|
|
1512 |
echo "$ac_var='\''$ac_val'\''"
|
|
1513 |
done | sort
|
|
1514 |
echo
|
|
1515 |
|
|
1516 |
if test -n "$ac_subst_files"; then
|
|
1517 |
cat <<\_ASBOX
|
|
1518 |
## ------------------- ##
|
|
1519 |
## File substitutions. ##
|
|
1520 |
## ------------------- ##
|
|
1521 |
_ASBOX
|
|
1522 |
echo
|
|
1523 |
for ac_var in $ac_subst_files
|
|
1524 |
do
|
|
1525 |
eval ac_val=\$$ac_var
|
|
1526 |
case $ac_val in
|
|
1527 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
1528 |
esac
|
|
1529 |
echo "$ac_var='\''$ac_val'\''"
|
|
1530 |
done | sort
|
|
1531 |
echo
|
|
1532 |
fi
|
|
1533 |
|
|
1534 |
if test -s confdefs.h; then
|
|
1535 |
cat <<\_ASBOX
|
|
1536 |
## ----------- ##
|
|
1537 |
## confdefs.h. ##
|
|
1538 |
## ----------- ##
|
|
1539 |
_ASBOX
|
|
1540 |
echo
|
|
1541 |
cat confdefs.h
|
|
1542 |
echo
|
|
1543 |
fi
|
|
1544 |
test "$ac_signal" != 0 &&
|
|
1545 |
echo "$as_me: caught signal $ac_signal"
|
|
1546 |
echo "$as_me: exit $exit_status"
|
|
1547 |
} >&5
|
|
1548 |
rm -f core *.core core.conftest.* &&
|
|
1549 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
1550 |
exit $exit_status
|
|
1551 |
' 0
|
|
1552 |
for ac_signal in 1 2 13 15; do
|
|
1553 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
|
1554 |
done
|
|
1555 |
ac_signal=0
|
|
1556 |
|
|
1557 |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
1558 |
rm -f -r conftest* confdefs.h
|
|
1559 |
|
|
1560 |
# Predefined preprocessor variables.
|
|
1561 |
|
|
1562 |
cat >>confdefs.h <<_ACEOF
|
|
1563 |
#define PACKAGE_NAME "$PACKAGE_NAME"
|
|
1564 |
_ACEOF
|
|
1565 |
|
|
1566 |
|
|
1567 |
cat >>confdefs.h <<_ACEOF
|
|
1568 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
1569 |
_ACEOF
|
|
1570 |
|
|
1571 |
|
|
1572 |
cat >>confdefs.h <<_ACEOF
|
|
1573 |
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
1574 |
_ACEOF
|
|
1575 |
|
|
1576 |
|
|
1577 |
cat >>confdefs.h <<_ACEOF
|
|
1578 |
#define PACKAGE_STRING "$PACKAGE_STRING"
|
|
1579 |
_ACEOF
|
|
1580 |
|
|
1581 |
|
|
1582 |
cat >>confdefs.h <<_ACEOF
|
|
1583 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
1584 |
_ACEOF
|
|
1585 |
|
|
1586 |
|
|
1587 |
# Let the site file select an alternate cache file if it wants to.
|
496 | 1588 |
# Prefer explicitly selected file to automatically selected ones.
|
497 | |
if test -z "$CONFIG_SITE"; then
|
498 | |
if test "x$prefix" != xNONE; then
|
499 | |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
500 | |
else
|
501 | |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
502 | |
fi
|
503 | |
fi
|
504 | |
for ac_site_file in $CONFIG_SITE; do
|
|
1589 |
if test -n "$CONFIG_SITE"; then
|
|
1590 |
set x "$CONFIG_SITE"
|
|
1591 |
elif test "x$prefix" != xNONE; then
|
|
1592 |
set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
|
1593 |
else
|
|
1594 |
set x "$ac_default_prefix/share/config.site" \
|
|
1595 |
"$ac_default_prefix/etc/config.site"
|
|
1596 |
fi
|
|
1597 |
shift
|
|
1598 |
for ac_site_file
|
|
1599 |
do
|
505 | 1600 |
if test -r "$ac_site_file"; then
|
506 | |
echo "loading site script $ac_site_file"
|
|
1601 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
|
1602 |
echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
1603 |
sed 's/^/| /' "$ac_site_file" >&5
|
507 | 1604 |
. "$ac_site_file"
|
508 | 1605 |
fi
|
509 | 1606 |
done
|
510 | 1607 |
|
511 | 1608 |
if test -r "$cache_file"; then
|
512 | |
echo "loading cache $cache_file"
|
513 | |
. $cache_file
|
514 | |
else
|
515 | |
echo "creating cache $cache_file"
|
516 | |
> $cache_file
|
517 | |
fi
|
|
1609 |
# Some versions of bash will fail to source /dev/null (special
|
|
1610 |
# files actually), so we avoid doing that.
|
|
1611 |
if test -f "$cache_file"; then
|
|
1612 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
|
1613 |
echo "$as_me: loading cache $cache_file" >&6;}
|
|
1614 |
case $cache_file in
|
|
1615 |
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
1616 |
*) . "./$cache_file";;
|
|
1617 |
esac
|
|
1618 |
fi
|
|
1619 |
else
|
|
1620 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
|
1621 |
echo "$as_me: creating cache $cache_file" >&6;}
|
|
1622 |
>$cache_file
|
|
1623 |
fi
|
|
1624 |
|
|
1625 |
# Check that the precious variables saved in the cache have kept the same
|
|
1626 |
# value.
|
|
1627 |
ac_cache_corrupted=false
|
|
1628 |
for ac_var in $ac_precious_vars; do
|
|
1629 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
1630 |
eval ac_new_set=\$ac_env_${ac_var}_set
|
|
1631 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
1632 |
eval ac_new_val=\$ac_env_${ac_var}_value
|
|
1633 |
case $ac_old_set,$ac_new_set in
|
|
1634 |
set,)
|
|
1635 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
1636 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
1637 |
ac_cache_corrupted=: ;;
|
|
1638 |
,set)
|
|
1639 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
|
1640 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
1641 |
ac_cache_corrupted=: ;;
|
|
1642 |
,);;
|
|
1643 |
*)
|
|
1644 |
if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
1645 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
|
1646 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
1647 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
|
1648 |
echo "$as_me: former value: $ac_old_val" >&2;}
|
|
1649 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
|
1650 |
echo "$as_me: current value: $ac_new_val" >&2;}
|
|
1651 |
ac_cache_corrupted=:
|
|
1652 |
fi;;
|
|
1653 |
esac
|
|
1654 |
# Pass precious variables to config.status.
|
|
1655 |
if test "$ac_new_set" = set; then
|
|
1656 |
case $ac_new_val in
|
|
1657 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
1658 |
*) ac_arg=$ac_var=$ac_new_val ;;
|
|
1659 |
esac
|
|
1660 |
case " $ac_configure_args " in
|
|
1661 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
1662 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
1663 |
esac
|
|
1664 |
fi
|
|
1665 |
done
|
|
1666 |
if $ac_cache_corrupted; then
|
|
1667 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
|
1668 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
1669 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
|
1670 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
|
1671 |
{ (exit 1); exit 1; }; }
|
|
1672 |
fi
|
|
1673 |
|
|
1674 |
|
|
1675 |
|
|
1676 |
|
|
1677 |
|
|
1678 |
|
|
1679 |
|
|
1680 |
|
|
1681 |
|
|
1682 |
|
|
1683 |
|
|
1684 |
|
|
1685 |
|
|
1686 |
|
|
1687 |
|
|
1688 |
|
518 | 1689 |
|
519 | 1690 |
ac_ext=c
|
520 | |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
521 | 1691 |
ac_cpp='$CPP $CPPFLAGS'
|
522 | |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
523 | |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
524 | |
cross_compiling=$ac_cv_prog_cc_cross
|
525 | |
|
526 | |
ac_exeext=
|
527 | |
ac_objext=o
|
528 | |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
529 | |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
530 | |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
531 | |
ac_n= ac_c='
|
532 | |
' ac_t=' '
|
533 | |
else
|
534 | |
ac_n=-n ac_c= ac_t=
|
535 | |
fi
|
536 | |
else
|
537 | |
ac_n= ac_c='\c' ac_t=
|
538 | |
fi
|
|
1692 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
1693 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
1694 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
539 | 1695 |
|
540 | 1696 |
|
541 | 1697 |
CFLAGS="-Wall $CFLAGS -D_GNU_SOURCE"
|
542 | 1698 |
ac_aux_dir=
|
543 | |
for ac_dir in . $srcdir/.; do
|
544 | |
if test -f $ac_dir/install-sh; then
|
|
1699 |
for ac_dir in . "$srcdir"/.; do
|
|
1700 |
if test -f "$ac_dir/install-sh"; then
|
545 | 1701 |
ac_aux_dir=$ac_dir
|
546 | 1702 |
ac_install_sh="$ac_aux_dir/install-sh -c"
|
547 | 1703 |
break
|
548 | |
elif test -f $ac_dir/install.sh; then
|
|
1704 |
elif test -f "$ac_dir/install.sh"; then
|
549 | 1705 |
ac_aux_dir=$ac_dir
|
550 | 1706 |
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
1707 |
break
|
|
1708 |
elif test -f "$ac_dir/shtool"; then
|
|
1709 |
ac_aux_dir=$ac_dir
|
|
1710 |
ac_install_sh="$ac_aux_dir/shtool install -c"
|
551 | 1711 |
break
|
552 | 1712 |
fi
|
553 | 1713 |
done
|
554 | 1714 |
if test -z "$ac_aux_dir"; then
|
555 | |
{ echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
|
556 | |
fi
|
557 | |
ac_config_guess=$ac_aux_dir/config.guess
|
558 | |
ac_config_sub=$ac_aux_dir/config.sub
|
559 | |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
560 | |
|
561 | |
|
562 | |
|
563 | |
cat >> confdefs.h <<EOF
|
|
1715 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
|
|
1716 |
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
|
|
1717 |
{ (exit 1); exit 1; }; }
|
|
1718 |
fi
|
|
1719 |
|
|
1720 |
# These three variables are undocumented and unsupported,
|
|
1721 |
# and are intended to be withdrawn in a future Autoconf release.
|
|
1722 |
# They can cause serious problems if a builder's source tree is in a directory
|
|
1723 |
# whose full name contains unusual characters.
|
|
1724 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
1725 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
1726 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
1727 |
|
|
1728 |
|
|
1729 |
ac_config_headers="$ac_config_headers src/config.h:src/config.h.in"
|
|
1730 |
|
|
1731 |
|
|
1732 |
cat >>confdefs.h <<_ACEOF
|
564 | 1733 |
#define DEBCONF_VERSION 2.0
|
565 | |
EOF
|
566 | |
|
567 | |
cat >> confdefs.h <<EOF
|
|
1734 |
_ACEOF
|
|
1735 |
|
|
1736 |
cat >>confdefs.h <<_ACEOF
|
568 | 1737 |
#define PACKAGE "cdebconf"
|
569 | |
EOF
|
570 | |
|
571 | |
|
572 | |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
573 | |
echo "configure:575: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
574 | |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
575 | |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
576 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
577 | |
else
|
578 | |
cat > conftestmake <<\EOF
|
|
1738 |
_ACEOF
|
|
1739 |
|
|
1740 |
|
|
1741 |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
1742 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
|
1743 |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
1744 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
1745 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
1746 |
else
|
|
1747 |
cat >conftest.make <<\_ACEOF
|
|
1748 |
SHELL = /bin/sh
|
579 | 1749 |
all:
|
580 | |
@echo 'ac_maketemp="${MAKE}"'
|
581 | |
EOF
|
|
1750 |
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
1751 |
_ACEOF
|
582 | 1752 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
583 | |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
584 | |
if test -n "$ac_maketemp"; then
|
585 | |
eval ac_cv_prog_make_${ac_make}_set=yes
|
586 | |
else
|
587 | |
eval ac_cv_prog_make_${ac_make}_set=no
|
588 | |
fi
|
589 | |
rm -f conftestmake
|
590 | |
fi
|
591 | |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
592 | |
echo "$ac_t""yes" 1>&6
|
|
1753 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
1754 |
*@@@%%%=?*=@@@%%%*)
|
|
1755 |
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
1756 |
*)
|
|
1757 |
eval ac_cv_prog_make_${ac_make}_set=no;;
|
|
1758 |
esac
|
|
1759 |
rm -f conftest.make
|
|
1760 |
fi
|
|
1761 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
|
1762 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
1763 |
echo "${ECHO_T}yes" >&6; }
|
593 | 1764 |
SET_MAKE=
|
594 | 1765 |
else
|
595 | |
echo "$ac_t""no" 1>&6
|
|
1766 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
1767 |
echo "${ECHO_T}no" >&6; }
|
596 | 1768 |
SET_MAKE="MAKE=${MAKE-make}"
|
597 | 1769 |
fi
|
598 | 1770 |
|
599 | |
# Extract the first word of "gcc", so it can be a program name with args.
|
600 | |
set dummy gcc; ac_word=$2
|
601 | |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
602 | |
echo "configure:604: checking for $ac_word" >&5
|
603 | |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
604 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
1771 |
ac_ext=c
|
|
1772 |
ac_cpp='$CPP $CPPFLAGS'
|
|
1773 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
1774 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
1775 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
1776 |
if test -n "$ac_tool_prefix"; then
|
|
1777 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
1778 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
1779 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
1780 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
1781 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
1782 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
605 | 1783 |
else
|
606 | 1784 |
if test -n "$CC"; then
|
607 | 1785 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
608 | 1786 |
else
|
609 | |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
610 | |
ac_dummy="$PATH"
|
611 | |
for ac_dir in $ac_dummy; do
|
612 | |
test -z "$ac_dir" && ac_dir=.
|
613 | |
if test -f $ac_dir/$ac_word; then
|
614 | |
ac_cv_prog_CC="gcc"
|
615 | |
break
|
616 | |
fi
|
617 | |
done
|
618 | |
IFS="$ac_save_ifs"
|
619 | |
fi
|
620 | |
fi
|
621 | |
CC="$ac_cv_prog_CC"
|
|
1787 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1788 |
for as_dir in $PATH
|
|
1789 |
do
|
|
1790 |
IFS=$as_save_IFS
|
|
1791 |
test -z "$as_dir" && as_dir=.
|
|
1792 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1793 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
1794 |
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
1795 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
1796 |
break 2
|
|
1797 |
fi
|
|
1798 |
done
|
|
1799 |
done
|
|
1800 |
IFS=$as_save_IFS
|
|
1801 |
|
|
1802 |
fi
|
|
1803 |
fi
|
|
1804 |
CC=$ac_cv_prog_CC
|
622 | 1805 |
if test -n "$CC"; then
|
623 | |
echo "$ac_t""$CC" 1>&6
|
624 | |
else
|
625 | |
echo "$ac_t""no" 1>&6
|
626 | |
fi
|
627 | |
|
|
1806 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
1807 |
echo "${ECHO_T}$CC" >&6; }
|
|
1808 |
else
|
|
1809 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
1810 |
echo "${ECHO_T}no" >&6; }
|
|
1811 |
fi
|
|
1812 |
|
|
1813 |
|
|
1814 |
fi
|
|
1815 |
if test -z "$ac_cv_prog_CC"; then
|
|
1816 |
ac_ct_CC=$CC
|
|
1817 |
# Extract the first word of "gcc", so it can be a program name with args.
|
|
1818 |
set dummy gcc; ac_word=$2
|
|
1819 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
1820 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
1821 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
1822 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
1823 |
else
|
|
1824 |
if test -n "$ac_ct_CC"; then
|
|
1825 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
1826 |
else
|
|
1827 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1828 |
for as_dir in $PATH
|
|
1829 |
do
|
|
1830 |
IFS=$as_save_IFS
|
|
1831 |
test -z "$as_dir" && as_dir=.
|
|
1832 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1833 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
1834 |
ac_cv_prog_ac_ct_CC="gcc"
|
|
1835 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
1836 |
break 2
|
|
1837 |
fi
|
|
1838 |
done
|
|
1839 |
done
|
|
1840 |
IFS=$as_save_IFS
|
|
1841 |
|
|
1842 |
fi
|
|
1843 |
fi
|
|
1844 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
1845 |
if test -n "$ac_ct_CC"; then
|
|
1846 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
1847 |
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
1848 |
else
|
|
1849 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
1850 |
echo "${ECHO_T}no" >&6; }
|
|
1851 |
fi
|
|
1852 |
|
|
1853 |
if test "x$ac_ct_CC" = x; then
|
|
1854 |
CC=""
|
|
1855 |
else
|
|
1856 |
case $cross_compiling:$ac_tool_warned in
|
|
1857 |
yes:)
|
|
1858 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
1859 |
whose name does not start with the host triplet. If you think this
|
|
1860 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
1861 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
1862 |
whose name does not start with the host triplet. If you think this
|
|
1863 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
1864 |
ac_tool_warned=yes ;;
|
|
1865 |
esac
|
|
1866 |
CC=$ac_ct_CC
|
|
1867 |
fi
|
|
1868 |
else
|
|
1869 |
CC="$ac_cv_prog_CC"
|
|
1870 |
fi
|
|
1871 |
|
|
1872 |
if test -z "$CC"; then
|
|
1873 |
if test -n "$ac_tool_prefix"; then
|
|
1874 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
1875 |
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
1876 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
1877 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
1878 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
1879 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
1880 |
else
|
|
1881 |
if test -n "$CC"; then
|
|
1882 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1883 |
else
|
|
1884 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1885 |
for as_dir in $PATH
|
|
1886 |
do
|
|
1887 |
IFS=$as_save_IFS
|
|
1888 |
test -z "$as_dir" && as_dir=.
|
|
1889 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1890 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
1891 |
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
1892 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
1893 |
break 2
|
|
1894 |
fi
|
|
1895 |
done
|
|
1896 |
done
|
|
1897 |
IFS=$as_save_IFS
|
|
1898 |
|
|
1899 |
fi
|
|
1900 |
fi
|
|
1901 |
CC=$ac_cv_prog_CC
|
|
1902 |
if test -n "$CC"; then
|
|
1903 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
1904 |
echo "${ECHO_T}$CC" >&6; }
|
|
1905 |
else
|
|
1906 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
1907 |
echo "${ECHO_T}no" >&6; }
|
|
1908 |
fi
|
|
1909 |
|
|
1910 |
|
|
1911 |
fi
|
|
1912 |
fi
|
628 | 1913 |
if test -z "$CC"; then
|
629 | 1914 |
# Extract the first word of "cc", so it can be a program name with args.
|
630 | 1915 |
set dummy cc; ac_word=$2
|
631 | |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
632 | |
echo "configure:634: checking for $ac_word" >&5
|
633 | |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
634 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
1916 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
1917 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
1918 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
1919 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
635 | 1920 |
else
|
636 | 1921 |
if test -n "$CC"; then
|
637 | 1922 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
638 | 1923 |
else
|
639 | |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
640 | 1924 |
ac_prog_rejected=no
|
641 | |
ac_dummy="$PATH"
|
642 | |
for ac_dir in $ac_dummy; do
|
643 | |
test -z "$ac_dir" && ac_dir=.
|
644 | |
if test -f $ac_dir/$ac_word; then
|
645 | |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
646 | |
ac_prog_rejected=yes
|
647 | |
continue
|
648 | |
fi
|
649 | |
ac_cv_prog_CC="cc"
|
650 | |
break
|
651 | |
fi
|
652 | |
done
|
653 | |
IFS="$ac_save_ifs"
|
|
1925 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1926 |
for as_dir in $PATH
|
|
1927 |
do
|
|
1928 |
IFS=$as_save_IFS
|
|
1929 |
test -z "$as_dir" && as_dir=.
|
|
1930 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1931 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
1932 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
1933 |
ac_prog_rejected=yes
|
|
1934 |
continue
|
|
1935 |
fi
|
|
1936 |
ac_cv_prog_CC="cc"
|
|
1937 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
1938 |
break 2
|
|
1939 |
fi
|
|
1940 |
done
|
|
1941 |
done
|
|
1942 |
IFS=$as_save_IFS
|
|
1943 |
|
654 | 1944 |
if test $ac_prog_rejected = yes; then
|
655 | 1945 |
# We found a bogon in the path, so make sure we never use it.
|
656 | 1946 |
set dummy $ac_cv_prog_CC
|
657 | 1947 |
shift
|
658 | |
if test $# -gt 0; then
|
|
1948 |
if test $# != 0; then
|
659 | 1949 |
# We chose a different compiler from the bogus one.
|
660 | 1950 |
# However, it has the same basename, so the bogon will be chosen
|
661 | 1951 |
# first if we set CC to just the basename; use the full file name.
|
662 | 1952 |
shift
|
663 | |
set dummy "$ac_dir/$ac_word" "$@"
|
664 | |
shift
|
665 | |
ac_cv_prog_CC="$@"
|
|
1953 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
666 | 1954 |
fi
|
667 | 1955 |
fi
|
668 | 1956 |
fi
|
669 | 1957 |
fi
|
670 | |
CC="$ac_cv_prog_CC"
|
|
1958 |
CC=$ac_cv_prog_CC
|
671 | 1959 |
if test -n "$CC"; then
|
672 | |
echo "$ac_t""$CC" 1>&6
|
673 | |
else
|
674 | |
echo "$ac_t""no" 1>&6
|
675 | |
fi
|
676 | |
|
677 | |
if test -z "$CC"; then
|
678 | |
case "`uname -s`" in
|
679 | |
*win32* | *WIN32*)
|
680 | |
# Extract the first word of "cl", so it can be a program name with args.
|
681 | |
set dummy cl; ac_word=$2
|
682 | |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
683 | |
echo "configure:685: checking for $ac_word" >&5
|
684 | |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
685 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
1960 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
1961 |
echo "${ECHO_T}$CC" >&6; }
|
|
1962 |
else
|
|
1963 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
1964 |
echo "${ECHO_T}no" >&6; }
|
|
1965 |
fi
|
|
1966 |
|
|
1967 |
|
|
1968 |
fi
|
|
1969 |
if test -z "$CC"; then
|
|
1970 |
if test -n "$ac_tool_prefix"; then
|
|
1971 |
for ac_prog in cl.exe
|
|
1972 |
do
|
|
1973 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
1974 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
1975 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
1976 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
1977 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
1978 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
686 | 1979 |
else
|
687 | 1980 |
if test -n "$CC"; then
|
688 | 1981 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
689 | 1982 |
else
|
690 | |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
691 | |
ac_dummy="$PATH"
|
692 | |
for ac_dir in $ac_dummy; do
|
693 | |
test -z "$ac_dir" && ac_dir=.
|
694 | |
if test -f $ac_dir/$ac_word; then
|
695 | |
ac_cv_prog_CC="cl"
|
696 | |
break
|
|
1983 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1984 |
for as_dir in $PATH
|
|
1985 |
do
|
|
1986 |
IFS=$as_save_IFS
|
|
1987 |
test -z "$as_dir" && as_dir=.
|
|
1988 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
1989 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
1990 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
1991 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
1992 |
break 2
|
|
1993 |
fi
|
|
1994 |
done
|
|
1995 |
done
|
|
1996 |
IFS=$as_save_IFS
|
|
1997 |
|
|
1998 |
fi
|
|
1999 |
fi
|
|
2000 |
CC=$ac_cv_prog_CC
|
|
2001 |
if test -n "$CC"; then
|
|
2002 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
2003 |
echo "${ECHO_T}$CC" >&6; }
|
|
2004 |
else
|
|
2005 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
2006 |
echo "${ECHO_T}no" >&6; }
|
|
2007 |
fi
|
|
2008 |
|
|
2009 |
|
|
2010 |
test -n "$CC" && break
|
|
2011 |
done
|
|
2012 |
fi
|
|
2013 |
if test -z "$CC"; then
|
|
2014 |
ac_ct_CC=$CC
|
|
2015 |
for ac_prog in cl.exe
|
|
2016 |
do
|
|
2017 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
2018 |
set dummy $ac_prog; ac_word=$2
|
|
2019 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
2020 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
2021 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
2022 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2023 |
else
|
|
2024 |
if test -n "$ac_ct_CC"; then
|
|
2025 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
2026 |
else
|
|
2027 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2028 |
for as_dir in $PATH
|
|
2029 |
do
|
|
2030 |
IFS=$as_save_IFS
|
|
2031 |
test -z "$as_dir" && as_dir=.
|
|
2032 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2033 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
2034 |
ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
2035 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2036 |
break 2
|
|
2037 |
fi
|
|
2038 |
done
|
|
2039 |
done
|
|
2040 |
IFS=$as_save_IFS
|
|
2041 |
|
|
2042 |
fi
|
|
2043 |
fi
|
|
2044 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
2045 |
if test -n "$ac_ct_CC"; then
|
|
2046 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
2047 |
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
2048 |
else
|
|
2049 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
2050 |
echo "${ECHO_T}no" >&6; }
|
|
2051 |
fi
|
|
2052 |
|
|
2053 |
|
|
2054 |
test -n "$ac_ct_CC" && break
|
|
2055 |
done
|
|
2056 |
|
|
2057 |
if test "x$ac_ct_CC" = x; then
|
|
2058 |
CC=""
|
|
2059 |
else
|
|
2060 |
case $cross_compiling:$ac_tool_warned in
|
|
2061 |
yes:)
|
|
2062 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
2063 |
whose name does not start with the host triplet. If you think this
|
|
2064 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
2065 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
2066 |
whose name does not start with the host triplet. If you think this
|
|
2067 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
2068 |
ac_tool_warned=yes ;;
|
|
2069 |
esac
|
|
2070 |
CC=$ac_ct_CC
|
|
2071 |
fi
|
|
2072 |
fi
|
|
2073 |
|
|
2074 |
fi
|
|
2075 |
|
|
2076 |
|
|
2077 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
|
2078 |
See \`config.log' for more details." >&5
|
|
2079 |
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
|
2080 |
See \`config.log' for more details." >&2;}
|
|
2081 |
{ (exit 1); exit 1; }; }
|
|
2082 |
|
|
2083 |
# Provide some information about the compiler.
|
|
2084 |
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
|
2085 |
ac_compiler=`set X $ac_compile; echo $2`
|
|
2086 |
{ (ac_try="$ac_compiler --version >&5"
|
|
2087 |
case "(($ac_try" in
|
|
2088 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2089 |
*) ac_try_echo=$ac_try;;
|
|
2090 |
esac
|
|
2091 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2092 |
(eval "$ac_compiler --version >&5") 2>&5
|
|
2093 |
ac_status=$?
|
|
2094 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2095 |
(exit $ac_status); }
|
|
2096 |
{ (ac_try="$ac_compiler -v >&5"
|
|
2097 |
case "(($ac_try" in
|
|
2098 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2099 |
*) ac_try_echo=$ac_try;;
|
|
2100 |
esac
|
|
2101 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2102 |
(eval "$ac_compiler -v >&5") 2>&5
|
|
2103 |
ac_status=$?
|
|
2104 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2105 |
(exit $ac_status); }
|
|
2106 |
{ (ac_try="$ac_compiler -V >&5"
|
|
2107 |
case "(($ac_try" in
|
|
2108 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2109 |
*) ac_try_echo=$ac_try;;
|
|
2110 |
esac
|
|
2111 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2112 |
(eval "$ac_compiler -V >&5") 2>&5
|
|
2113 |
ac_status=$?
|
|
2114 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2115 |
(exit $ac_status); }
|
|
2116 |
|
|
2117 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2118 |
/* confdefs.h. */
|
|
2119 |
_ACEOF
|
|
2120 |
cat confdefs.h >>conftest.$ac_ext
|
|
2121 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2122 |
/* end confdefs.h. */
|
|
2123 |
|
|
2124 |
int
|
|
2125 |
main ()
|
|
2126 |
{
|
|
2127 |
|
|
2128 |
;
|
|
2129 |
return 0;
|
|
2130 |
}
|
|
2131 |
_ACEOF
|
|
2132 |
ac_clean_files_save=$ac_clean_files
|
|
2133 |
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
|
2134 |
# Try to create an executable without -o first, disregard a.out.
|
|
2135 |
# It will help us diagnose broken compilers, and finding out an intuition
|
|
2136 |
# of exeext.
|
|
2137 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
|
2138 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
|
2139 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
2140 |
#
|
|
2141 |
# List of possible output files, starting from the most likely.
|
|
2142 |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
|
2143 |
# only as a last resort. b.out is created by i960 compilers.
|
|
2144 |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
|
2145 |
#
|
|
2146 |
# The IRIX 6 linker writes into existing files which may not be
|
|
2147 |
# executable, retaining their permissions. Remove them first so a
|
|
2148 |
# subsequent execution test works.
|
|
2149 |
ac_rmfiles=
|
|
2150 |
for ac_file in $ac_files
|
|
2151 |
do
|
|
2152 |
case $ac_file in
|
|
2153 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
2154 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
2155 |
esac
|
|
2156 |
done
|
|
2157 |
rm -f $ac_rmfiles
|
|
2158 |
|
|
2159 |
if { (ac_try="$ac_link_default"
|
|
2160 |
case "(($ac_try" in
|
|
2161 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2162 |
*) ac_try_echo=$ac_try;;
|
|
2163 |
esac
|
|
2164 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2165 |
(eval "$ac_link_default") 2>&5
|
|
2166 |
ac_status=$?
|
|
2167 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2168 |
(exit $ac_status); }; then
|
|
2169 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
2170 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
2171 |
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
2172 |
# so that the user can short-circuit this test for compilers unknown to
|
|
2173 |
# Autoconf.
|
|
2174 |
for ac_file in $ac_files ''
|
|
2175 |
do
|
|
2176 |
test -f "$ac_file" || continue
|
|
2177 |
case $ac_file in
|
|
2178 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
|
2179 |
;;
|
|
2180 |
[ab].out )
|
|
2181 |
# We found the default executable, but exeext='' is most
|
|
2182 |
# certainly right.
|
|
2183 |
break;;
|
|
2184 |
*.* )
|
|
2185 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
2186 |
then :; else
|
|
2187 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
2188 |
fi
|
|
2189 |
# We set ac_cv_exeext here because the later test for it is not
|
|
2190 |
# safe: cross compilers may not add the suffix if given an `-o'
|
|
2191 |
# argument, so we may need to know it at that point already.
|
|
2192 |
# Even if this section looks crufty: it has the advantage of
|
|
2193 |
# actually working.
|
|
2194 |
break;;
|
|
2195 |
* )
|
|
2196 |
break;;
|
|
2197 |
esac
|
|
2198 |
done
|
|
2199 |
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
2200 |
|
|
2201 |
else
|
|
2202 |
ac_file=''
|
|
2203 |
fi
|
|
2204 |
|
|
2205 |
{ echo "$as_me:$LINENO: result: $ac_file" >&5
|
|
2206 |
echo "${ECHO_T}$ac_file" >&6; }
|
|
2207 |
if test -z "$ac_file"; then
|
|
2208 |
echo "$as_me: failed program was:" >&5
|
|
2209 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2210 |
|
|
2211 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
|
2212 |
See \`config.log' for more details." >&5
|
|
2213 |
echo "$as_me: error: C compiler cannot create executables
|
|
2214 |
See \`config.log' for more details." >&2;}
|
|
2215 |
{ (exit 77); exit 77; }; }
|
|
2216 |
fi
|
|
2217 |
|
|
2218 |
ac_exeext=$ac_cv_exeext
|
|
2219 |
|
|
2220 |
# Check that the compiler produces executables we can run. If not, either
|
|
2221 |
# the compiler is broken, or we cross compile.
|
|
2222 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
|
2223 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
|
2224 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
|
2225 |
# If not cross compiling, check that we can run a simple program.
|
|
2226 |
if test "$cross_compiling" != yes; then
|
|
2227 |
if { ac_try='./$ac_file'
|
|
2228 |
{ (case "(($ac_try" in
|
|
2229 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2230 |
*) ac_try_echo=$ac_try;;
|
|
2231 |
esac
|
|
2232 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2233 |
(eval "$ac_try") 2>&5
|
|
2234 |
ac_status=$?
|
|
2235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2236 |
(exit $ac_status); }; }; then
|
|
2237 |
cross_compiling=no
|
|
2238 |
else
|
|
2239 |
if test "$cross_compiling" = maybe; then
|
|
2240 |
cross_compiling=yes
|
|
2241 |
else
|
|
2242 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
|
2243 |
If you meant to cross compile, use \`--host'.
|
|
2244 |
See \`config.log' for more details." >&5
|
|
2245 |
echo "$as_me: error: cannot run C compiled programs.
|
|
2246 |
If you meant to cross compile, use \`--host'.
|
|
2247 |
See \`config.log' for more details." >&2;}
|
|
2248 |
{ (exit 1); exit 1; }; }
|
697 | 2249 |
fi
|
698 | |
done
|
699 | |
IFS="$ac_save_ifs"
|
700 | |
fi
|
701 | |
fi
|
702 | |
CC="$ac_cv_prog_CC"
|
703 | |
if test -n "$CC"; then
|
704 | |
echo "$ac_t""$CC" 1>&6
|
705 | |
else
|
706 | |
echo "$ac_t""no" 1>&6
|
707 | |
fi
|
708 | |
;;
|
709 | |
esac
|
710 | 2250 |
fi
|
711 | |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
712 | |
fi
|
713 | |
|
714 | |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
715 | |
echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
716 | |
|
717 | |
ac_ext=c
|
718 | |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
719 | |
ac_cpp='$CPP $CPPFLAGS'
|
720 | |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
721 | |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
722 | |
cross_compiling=$ac_cv_prog_cc_cross
|
723 | |
|
724 | |
cat > conftest.$ac_ext << EOF
|
725 | |
|
726 | |
#line 728 "configure"
|
727 | |
#include "confdefs.h"
|
728 | |
|
729 | |
main(){return(0);}
|
730 | |
EOF
|
731 | |
if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
732 | |
ac_cv_prog_cc_works=yes
|
733 | |
# If we can't run a trivial program, we are probably using a cross compiler.
|
734 | |
if (./conftest; exit) 2>/dev/null; then
|
735 | |
ac_cv_prog_cc_cross=no
|
736 | |
else
|
737 | |
ac_cv_prog_cc_cross=yes
|
738 | |
fi
|
739 | |
else
|
740 | |
echo "configure: failed program was:" >&5
|
741 | |
cat conftest.$ac_ext >&5
|
742 | |
ac_cv_prog_cc_works=no
|
743 | |
fi
|
744 | |
rm -fr conftest*
|
745 | |
ac_ext=c
|
746 | |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
747 | |
ac_cpp='$CPP $CPPFLAGS'
|
748 | |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
749 | |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
750 | |
cross_compiling=$ac_cv_prog_cc_cross
|
751 | |
|
752 | |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
753 | |
if test $ac_cv_prog_cc_works = no; then
|
754 | |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
755 | |
fi
|
756 | |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
757 | |
echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
758 | |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
759 | |
cross_compiling=$ac_cv_prog_cc_cross
|
760 | |
|
761 | |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
762 | |
echo "configure:764: checking whether we are using GNU C" >&5
|
763 | |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
764 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
765 | |
else
|
766 | |
cat > conftest.c <<EOF
|
767 | |
#ifdef __GNUC__
|
768 | |
yes;
|
|
2251 |
fi
|
|
2252 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
2253 |
echo "${ECHO_T}yes" >&6; }
|
|
2254 |
|
|
2255 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
|
2256 |
ac_clean_files=$ac_clean_files_save
|
|
2257 |
# Check that the compiler produces executables we can run. If not, either
|
|
2258 |
# the compiler is broken, or we cross compile.
|
|
2259 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
|
2260 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
|
2261 |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
|
2262 |
echo "${ECHO_T}$cross_compiling" >&6; }
|
|
2263 |
|
|
2264 |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
|
2265 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
|
2266 |
if { (ac_try="$ac_link"
|
|
2267 |
case "(($ac_try" in
|
|
2268 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2269 |
*) ac_try_echo=$ac_try;;
|
|
2270 |
esac
|
|
2271 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2272 |
(eval "$ac_link") 2>&5
|
|
2273 |
ac_status=$?
|
|
2274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2275 |
(exit $ac_status); }; then
|
|
2276 |
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
2277 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
2278 |
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
2279 |
# `rm'.
|
|
2280 |
for ac_file in conftest.exe conftest conftest.*; do
|
|
2281 |
test -f "$ac_file" || continue
|
|
2282 |
case $ac_file in
|
|
2283 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
2284 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
2285 |
break;;
|
|
2286 |
* ) break;;
|
|
2287 |
esac
|
|
2288 |
done
|
|
2289 |
else
|
|
2290 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
|
2291 |
See \`config.log' for more details." >&5
|
|
2292 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
|
2293 |
See \`config.log' for more details." >&2;}
|
|
2294 |
{ (exit 1); exit 1; }; }
|
|
2295 |
fi
|
|
2296 |
|
|
2297 |
rm -f conftest$ac_cv_exeext
|
|
2298 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
|
2299 |
echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
|
2300 |
|
|
2301 |
rm -f conftest.$ac_ext
|
|
2302 |
EXEEXT=$ac_cv_exeext
|
|
2303 |
ac_exeext=$EXEEXT
|
|
2304 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
|
2305 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
|
2306 |
if test "${ac_cv_objext+set}" = set; then
|
|
2307 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2308 |
else
|
|
2309 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2310 |
/* confdefs.h. */
|
|
2311 |
_ACEOF
|
|
2312 |
cat confdefs.h >>conftest.$ac_ext
|
|
2313 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2314 |
/* end confdefs.h. */
|
|
2315 |
|
|
2316 |
int
|
|
2317 |
main ()
|
|
2318 |
{
|
|
2319 |
|
|
2320 |
;
|
|
2321 |
return 0;
|
|
2322 |
}
|
|
2323 |
_ACEOF
|
|
2324 |
rm -f conftest.o conftest.obj
|
|
2325 |
if { (ac_try="$ac_compile"
|
|
2326 |
case "(($ac_try" in
|
|
2327 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2328 |
*) ac_try_echo=$ac_try;;
|
|
2329 |
esac
|
|
2330 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2331 |
(eval "$ac_compile") 2>&5
|
|
2332 |
ac_status=$?
|
|
2333 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2334 |
(exit $ac_status); }; then
|
|
2335 |
for ac_file in conftest.o conftest.obj conftest.*; do
|
|
2336 |
test -f "$ac_file" || continue;
|
|
2337 |
case $ac_file in
|
|
2338 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
|
2339 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
2340 |
break;;
|
|
2341 |
esac
|
|
2342 |
done
|
|
2343 |
else
|
|
2344 |
echo "$as_me: failed program was:" >&5
|
|
2345 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2346 |
|
|
2347 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
|
2348 |
See \`config.log' for more details." >&5
|
|
2349 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
|
2350 |
See \`config.log' for more details." >&2;}
|
|
2351 |
{ (exit 1); exit 1; }; }
|
|
2352 |
fi
|
|
2353 |
|
|
2354 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
2355 |
fi
|
|
2356 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
|
2357 |
echo "${ECHO_T}$ac_cv_objext" >&6; }
|
|
2358 |
OBJEXT=$ac_cv_objext
|
|
2359 |
ac_objext=$OBJEXT
|
|
2360 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
|
2361 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
|
2362 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
|
2363 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2364 |
else
|
|
2365 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2366 |
/* confdefs.h. */
|
|
2367 |
_ACEOF
|
|
2368 |
cat confdefs.h >>conftest.$ac_ext
|
|
2369 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2370 |
/* end confdefs.h. */
|
|
2371 |
|
|
2372 |
int
|
|
2373 |
main ()
|
|
2374 |
{
|
|
2375 |
#ifndef __GNUC__
|
|
2376 |
choke me
|
769 | 2377 |
#endif
|
770 | |
EOF
|
771 | |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
772 | |
ac_cv_prog_gcc=yes
|
773 | |
else
|
774 | |
ac_cv_prog_gcc=no
|
775 | |
fi
|
776 | |
fi
|
777 | |
|
778 | |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
779 | |
|
780 | |
if test $ac_cv_prog_gcc = yes; then
|
781 | |
GCC=yes
|
782 | |
else
|
783 | |
GCC=
|
784 | |
fi
|
785 | |
|
786 | |
ac_test_CFLAGS="${CFLAGS+set}"
|
787 | |
ac_save_CFLAGS="$CFLAGS"
|
788 | |
CFLAGS=
|
789 | |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
790 | |
echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
|
791 | |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
792 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
793 | |
else
|
794 | |
echo 'void f(){}' > conftest.c
|
795 | |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2378 |
|
|
2379 |
;
|
|
2380 |
return 0;
|
|
2381 |
}
|
|
2382 |
_ACEOF
|
|
2383 |
rm -f conftest.$ac_objext
|
|
2384 |
if { (ac_try="$ac_compile"
|
|
2385 |
case "(($ac_try" in
|
|
2386 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2387 |
*) ac_try_echo=$ac_try;;
|
|
2388 |
esac
|
|
2389 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2390 |
(eval "$ac_compile") 2>conftest.er1
|
|
2391 |
ac_status=$?
|
|
2392 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2393 |
rm -f conftest.er1
|
|
2394 |
cat conftest.err >&5
|
|
2395 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2396 |
(exit $ac_status); } && {
|
|
2397 |
test -z "$ac_c_werror_flag" ||
|
|
2398 |
test ! -s conftest.err
|
|
2399 |
} && test -s conftest.$ac_objext; then
|
|
2400 |
ac_compiler_gnu=yes
|
|
2401 |
else
|
|
2402 |
echo "$as_me: failed program was:" >&5
|
|
2403 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2404 |
|
|
2405 |
ac_compiler_gnu=no
|
|
2406 |
fi
|
|
2407 |
|
|
2408 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2409 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
2410 |
|
|
2411 |
fi
|
|
2412 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
|
2413 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
|
2414 |
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
|
2415 |
ac_test_CFLAGS=${CFLAGS+set}
|
|
2416 |
ac_save_CFLAGS=$CFLAGS
|
|
2417 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
|
2418 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
|
2419 |
if test "${ac_cv_prog_cc_g+set}" = set; then
|
|
2420 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2421 |
else
|
|
2422 |
ac_save_c_werror_flag=$ac_c_werror_flag
|
|
2423 |
ac_c_werror_flag=yes
|
|
2424 |
ac_cv_prog_cc_g=no
|
|
2425 |
CFLAGS="-g"
|
|
2426 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2427 |
/* confdefs.h. */
|
|
2428 |
_ACEOF
|
|
2429 |
cat confdefs.h >>conftest.$ac_ext
|
|
2430 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2431 |
/* end confdefs.h. */
|
|
2432 |
|
|
2433 |
int
|
|
2434 |
main ()
|
|
2435 |
{
|
|
2436 |
|
|
2437 |
;
|
|
2438 |
return 0;
|
|
2439 |
}
|
|
2440 |
_ACEOF
|
|
2441 |
rm -f conftest.$ac_objext
|
|
2442 |
if { (ac_try="$ac_compile"
|
|
2443 |
case "(($ac_try" in
|
|
2444 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2445 |
*) ac_try_echo=$ac_try;;
|
|
2446 |
esac
|
|
2447 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2448 |
(eval "$ac_compile") 2>conftest.er1
|
|
2449 |
ac_status=$?
|
|
2450 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2451 |
rm -f conftest.er1
|
|
2452 |
cat conftest.err >&5
|
|
2453 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2454 |
(exit $ac_status); } && {
|
|
2455 |
test -z "$ac_c_werror_flag" ||
|
|
2456 |
test ! -s conftest.err
|
|
2457 |
} && test -s conftest.$ac_objext; then
|
796 | 2458 |
ac_cv_prog_cc_g=yes
|
797 | 2459 |
else
|
798 | |
ac_cv_prog_cc_g=no
|
799 | |
fi
|
800 | |
rm -f conftest*
|
801 | |
|
802 | |
fi
|
803 | |
|
804 | |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
2460 |
echo "$as_me: failed program was:" >&5
|
|
2461 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2462 |
|
|
2463 |
CFLAGS=""
|
|
2464 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2465 |
/* confdefs.h. */
|
|
2466 |
_ACEOF
|
|
2467 |
cat confdefs.h >>conftest.$ac_ext
|
|
2468 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2469 |
/* end confdefs.h. */
|
|
2470 |
|
|
2471 |
int
|
|
2472 |
main ()
|
|
2473 |
{
|
|
2474 |
|
|
2475 |
;
|
|
2476 |
return 0;
|
|
2477 |
}
|
|
2478 |
_ACEOF
|
|
2479 |
rm -f conftest.$ac_objext
|
|
2480 |
if { (ac_try="$ac_compile"
|
|
2481 |
case "(($ac_try" in
|
|
2482 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2483 |
*) ac_try_echo=$ac_try;;
|
|
2484 |
esac
|
|
2485 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2486 |
(eval "$ac_compile") 2>conftest.er1
|
|
2487 |
ac_status=$?
|
|
2488 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2489 |
rm -f conftest.er1
|
|
2490 |
cat conftest.err >&5
|
|
2491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2492 |
(exit $ac_status); } && {
|
|
2493 |
test -z "$ac_c_werror_flag" ||
|
|
2494 |
test ! -s conftest.err
|
|
2495 |
} && test -s conftest.$ac_objext; then
|
|
2496 |
:
|
|
2497 |
else
|
|
2498 |
echo "$as_me: failed program was:" >&5
|
|
2499 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2500 |
|
|
2501 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
2502 |
CFLAGS="-g"
|
|
2503 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2504 |
/* confdefs.h. */
|
|
2505 |
_ACEOF
|
|
2506 |
cat confdefs.h >>conftest.$ac_ext
|
|
2507 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2508 |
/* end confdefs.h. */
|
|
2509 |
|
|
2510 |
int
|
|
2511 |
main ()
|
|
2512 |
{
|
|
2513 |
|
|
2514 |
;
|
|
2515 |
return 0;
|
|
2516 |
}
|
|
2517 |
_ACEOF
|
|
2518 |
rm -f conftest.$ac_objext
|
|
2519 |
if { (ac_try="$ac_compile"
|
|
2520 |
case "(($ac_try" in
|
|
2521 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2522 |
*) ac_try_echo=$ac_try;;
|
|
2523 |
esac
|
|
2524 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2525 |
(eval "$ac_compile") 2>conftest.er1
|
|
2526 |
ac_status=$?
|
|
2527 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2528 |
rm -f conftest.er1
|
|
2529 |
cat conftest.err >&5
|
|
2530 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2531 |
(exit $ac_status); } && {
|
|
2532 |
test -z "$ac_c_werror_flag" ||
|
|
2533 |
test ! -s conftest.err
|
|
2534 |
} && test -s conftest.$ac_objext; then
|
|
2535 |
ac_cv_prog_cc_g=yes
|
|
2536 |
else
|
|
2537 |
echo "$as_me: failed program was:" >&5
|
|
2538 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2539 |
|
|
2540 |
|
|
2541 |
fi
|
|
2542 |
|
|
2543 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2544 |
fi
|
|
2545 |
|
|
2546 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2547 |
fi
|
|
2548 |
|
|
2549 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2550 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
2551 |
fi
|
|
2552 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
|
2553 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
805 | 2554 |
if test "$ac_test_CFLAGS" = set; then
|
806 | |
CFLAGS="$ac_save_CFLAGS"
|
|
2555 |
CFLAGS=$ac_save_CFLAGS
|
807 | 2556 |
elif test $ac_cv_prog_cc_g = yes; then
|
808 | 2557 |
if test "$GCC" = yes; then
|
809 | 2558 |
CFLAGS="-g -O2"
|
|
817 | 2566 |
CFLAGS=
|
818 | 2567 |
fi
|
819 | 2568 |
fi
|
820 | |
|
821 | |
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
822 | |
echo "configure:824: checking for POSIXized ISC" >&5
|
823 | |
if test -d /etc/conf/kconfig.d &&
|
824 | |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
825 | |
then
|
826 | |
echo "$ac_t""yes" 1>&6
|
827 | |
ISC=yes # If later tests want to check for ISC.
|
828 | |
cat >> confdefs.h <<\EOF
|
829 | |
#define _POSIX_SOURCE 1
|
830 | |
EOF
|
831 | |
|
832 | |
if test "$GCC" = yes; then
|
833 | |
CC="$CC -posix"
|
|
2569 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
|
2570 |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
|
2571 |
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
|
2572 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2573 |
else
|
|
2574 |
ac_cv_prog_cc_c89=no
|
|
2575 |
ac_save_CC=$CC
|
|
2576 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2577 |
/* confdefs.h. */
|
|
2578 |
_ACEOF
|
|
2579 |
cat confdefs.h >>conftest.$ac_ext
|
|
2580 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2581 |
/* end confdefs.h. */
|
|
2582 |
#include <stdarg.h>
|
|
2583 |
#include <stdio.h>
|
|
2584 |
#include <sys/types.h>
|
|
2585 |
#include <sys/stat.h>
|
|
2586 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
2587 |
struct buf { int x; };
|
|
2588 |
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
2589 |
static char *e (p, i)
|
|
2590 |
char **p;
|
|
2591 |
int i;
|
|
2592 |
{
|
|
2593 |
return p[i];
|
|
2594 |
}
|
|
2595 |
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
2596 |
{
|
|
2597 |
char *s;
|
|
2598 |
va_list v;
|
|
2599 |
va_start (v,p);
|
|
2600 |
s = g (p, va_arg (v,int));
|
|
2601 |
va_end (v);
|
|
2602 |
return s;
|
|
2603 |
}
|
|
2604 |
|
|
2605 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
2606 |
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
2607 |
These don't provoke an error unfortunately, instead are silently treated
|
|
2608 |
as 'x'. The following induces an error, until -std is added to get
|
|
2609 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
2610 |
array size at least. It's necessary to write '\x00'==0 to get something
|
|
2611 |
that's true only with -std. */
|
|
2612 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
2613 |
|
|
2614 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
2615 |
inside strings and character constants. */
|
|
2616 |
#define FOO(x) 'x'
|
|
2617 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
2618 |
|
|
2619 |
int test (int i, double x);
|
|
2620 |
struct s1 {int (*f) (int a);};
|
|
2621 |
struct s2 {int (*f) (double a);};
|
|
2622 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
2623 |
int argc;
|
|
2624 |
char **argv;
|
|
2625 |
int
|
|
2626 |
main ()
|
|
2627 |
{
|
|
2628 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
2629 |
;
|
|
2630 |
return 0;
|
|
2631 |
}
|
|
2632 |
_ACEOF
|
|
2633 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
2634 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
2635 |
do
|
|
2636 |
CC="$ac_save_CC $ac_arg"
|
|
2637 |
rm -f conftest.$ac_objext
|
|
2638 |
if { (ac_try="$ac_compile"
|
|
2639 |
case "(($ac_try" in
|
|
2640 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2641 |
*) ac_try_echo=$ac_try;;
|
|
2642 |
esac
|
|
2643 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2644 |
(eval "$ac_compile") 2>conftest.er1
|
|
2645 |
ac_status=$?
|
|
2646 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2647 |
rm -f conftest.er1
|
|
2648 |
cat conftest.err >&5
|
|
2649 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2650 |
(exit $ac_status); } && {
|
|
2651 |
test -z "$ac_c_werror_flag" ||
|
|
2652 |
test ! -s conftest.err
|
|
2653 |
} && test -s conftest.$ac_objext; then
|
|
2654 |
ac_cv_prog_cc_c89=$ac_arg
|
|
2655 |
else
|
|
2656 |
echo "$as_me: failed program was:" >&5
|
|
2657 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2658 |
|
|
2659 |
|
|
2660 |
fi
|
|
2661 |
|
|
2662 |
rm -f core conftest.err conftest.$ac_objext
|
|
2663 |
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
2664 |
done
|
|
2665 |
rm -f conftest.$ac_ext
|
|
2666 |
CC=$ac_save_CC
|
|
2667 |
|
|
2668 |
fi
|
|
2669 |
# AC_CACHE_VAL
|
|
2670 |
case "x$ac_cv_prog_cc_c89" in
|
|
2671 |
x)
|
|
2672 |
{ echo "$as_me:$LINENO: result: none needed" >&5
|
|
2673 |
echo "${ECHO_T}none needed" >&6; } ;;
|
|
2674 |
xno)
|
|
2675 |
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
|
2676 |
echo "${ECHO_T}unsupported" >&6; } ;;
|
|
2677 |
*)
|
|
2678 |
CC="$CC $ac_cv_prog_cc_c89"
|
|
2679 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
|
2680 |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
|
2681 |
esac
|
|
2682 |
|
|
2683 |
|
|
2684 |
ac_ext=c
|
|
2685 |
ac_cpp='$CPP $CPPFLAGS'
|
|
2686 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
2687 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
2688 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
2689 |
|
|
2690 |
|
|
2691 |
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
|
2692 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
|
|
2693 |
if test "${ac_cv_search_strerror+set}" = set; then
|
|
2694 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2695 |
else
|
|
2696 |
ac_func_search_save_LIBS=$LIBS
|
|
2697 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2698 |
/* confdefs.h. */
|
|
2699 |
_ACEOF
|
|
2700 |
cat confdefs.h >>conftest.$ac_ext
|
|
2701 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2702 |
/* end confdefs.h. */
|
|
2703 |
|
|
2704 |
/* Override any GCC internal prototype to avoid an error.
|
|
2705 |
Use char because int might match the return type of a GCC
|
|
2706 |
builtin and then its argument prototype would still apply. */
|
|
2707 |
#ifdef __cplusplus
|
|
2708 |
extern "C"
|
|
2709 |
#endif
|
|
2710 |
char strerror ();
|
|
2711 |
int
|
|
2712 |
main ()
|
|
2713 |
{
|
|
2714 |
return strerror ();
|
|
2715 |
;
|
|
2716 |
return 0;
|
|
2717 |
}
|
|
2718 |
_ACEOF
|
|
2719 |
for ac_lib in '' cposix; do
|
|
2720 |
if test -z "$ac_lib"; then
|
|
2721 |
ac_res="none required"
|
834 | 2722 |
else
|
835 | |
CC="$CC -Xp"
|
|
2723 |
ac_res=-l$ac_lib
|
|
2724 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
836 | 2725 |
fi
|
837 | |
else
|
838 | |
echo "$ac_t""no" 1>&6
|
839 | |
ISC=
|
|
2726 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
2727 |
if { (ac_try="$ac_link"
|
|
2728 |
case "(($ac_try" in
|
|
2729 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2730 |
*) ac_try_echo=$ac_try;;
|
|
2731 |
esac
|
|
2732 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2733 |
(eval "$ac_link") 2>conftest.er1
|
|
2734 |
ac_status=$?
|
|
2735 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2736 |
rm -f conftest.er1
|
|
2737 |
cat conftest.err >&5
|
|
2738 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2739 |
(exit $ac_status); } && {
|
|
2740 |
test -z "$ac_c_werror_flag" ||
|
|
2741 |
test ! -s conftest.err
|
|
2742 |
} && test -s conftest$ac_exeext &&
|
|
2743 |
$as_test_x conftest$ac_exeext; then
|
|
2744 |
ac_cv_search_strerror=$ac_res
|
|
2745 |
else
|
|
2746 |
echo "$as_me: failed program was:" >&5
|
|
2747 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
2748 |
|
|
2749 |
|
|
2750 |
fi
|
|
2751 |
|
|
2752 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
2753 |
conftest$ac_exeext
|
|
2754 |
if test "${ac_cv_search_strerror+set}" = set; then
|
|
2755 |
break
|
|
2756 |
fi
|
|
2757 |
done
|
|
2758 |
if test "${ac_cv_search_strerror+set}" = set; then
|
|
2759 |
:
|
|
2760 |
else
|
|
2761 |
ac_cv_search_strerror=no
|
|
2762 |
fi
|
|
2763 |
rm conftest.$ac_ext
|
|
2764 |
LIBS=$ac_func_search_save_LIBS
|
|
2765 |
fi
|
|
2766 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
|
2767 |
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
|
|
2768 |
ac_res=$ac_cv_search_strerror
|
|
2769 |
if test "$ac_res" != no; then
|
|
2770 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
2771 |
|
840 | 2772 |
fi
|
841 | 2773 |
|
842 | 2774 |
|
843 | 2775 |
# Extract the first word of "sed", so it can be a program name with args.
|
844 | 2776 |
set dummy sed; ac_word=$2
|
845 | |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
846 | |
echo "configure:848: checking for $ac_word" >&5
|
847 | |
if eval "test \"`echo '$''{'ac_cv_prog_HAVESED'+set}'`\" = set"; then
|
848 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
2777 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
2778 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
2779 |
if test "${ac_cv_prog_HAVESED+set}" = set; then
|
|
2780 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
849 | 2781 |
else
|
850 | 2782 |
if test -n "$HAVESED"; then
|
851 | 2783 |
ac_cv_prog_HAVESED="$HAVESED" # Let the user override the test.
|
852 | 2784 |
else
|
853 | |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
854 | |
ac_dummy="$PATH"
|
855 | |
for ac_dir in $ac_dummy; do
|
856 | |
test -z "$ac_dir" && ac_dir=.
|
857 | |
if test -f $ac_dir/$ac_word; then
|
858 | |
ac_cv_prog_HAVESED="yes"
|
859 | |
break
|
860 | |
fi
|
861 | |
done
|
862 | |
IFS="$ac_save_ifs"
|
|
2785 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2786 |
for as_dir in $PATH
|
|
2787 |
do
|
|
2788 |
IFS=$as_save_IFS
|
|
2789 |
test -z "$as_dir" && as_dir=.
|
|
2790 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2791 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
2792 |
ac_cv_prog_HAVESED="yes"
|
|
2793 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2794 |
break 2
|
|
2795 |
fi
|
|
2796 |
done
|
|
2797 |
done
|
|
2798 |
IFS=$as_save_IFS
|
|
2799 |
|
863 | 2800 |
test -z "$ac_cv_prog_HAVESED" && ac_cv_prog_HAVESED="no"
|
864 | 2801 |
fi
|
865 | 2802 |
fi
|
866 | |
HAVESED="$ac_cv_prog_HAVESED"
|
|
2803 |
HAVESED=$ac_cv_prog_HAVESED
|
867 | 2804 |
if test -n "$HAVESED"; then
|
868 | |
echo "$ac_t""$HAVESED" 1>&6
|
869 | |
else
|
870 | |
echo "$ac_t""no" 1>&6
|
871 | |
fi
|
|
2805 |
{ echo "$as_me:$LINENO: result: $HAVESED" >&5
|
|
2806 |
echo "${ECHO_T}$HAVESED" >&6; }
|
|
2807 |
else
|
|
2808 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
2809 |
echo "${ECHO_T}no" >&6; }
|
|
2810 |
fi
|
|
2811 |
|
872 | 2812 |
|
873 | 2813 |
test "$HAVESED" = "yes" || exit 1
|
874 | 2814 |
|
875 | 2815 |
# Extract the first word of "pod2man", so it can be a program name with args.
|
876 | 2816 |
set dummy pod2man; ac_word=$2
|
877 | |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
878 | |
echo "configure:880: checking for $ac_word" >&5
|
879 | |
if eval "test \"`echo '$''{'ac_cv_path_POD2MAN'+set}'`\" = set"; then
|
880 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
881 | |
else
|
882 | |
case "$POD2MAN" in
|
883 | |
/*)
|
|
2817 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
2818 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
2819 |
if test "${ac_cv_path_POD2MAN+set}" = set; then
|
|
2820 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2821 |
else
|
|
2822 |
case $POD2MAN in
|
|
2823 |
[\\/]* | ?:[\\/]*)
|
884 | 2824 |
ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
|
885 | 2825 |
;;
|
886 | |
?:/*)
|
887 | |
ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a dos path.
|
|
2826 |
*)
|
|
2827 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2828 |
for as_dir in $PATH
|
|
2829 |
do
|
|
2830 |
IFS=$as_save_IFS
|
|
2831 |
test -z "$as_dir" && as_dir=.
|
|
2832 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2833 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
2834 |
ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
|
|
2835 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2836 |
break 2
|
|
2837 |
fi
|
|
2838 |
done
|
|
2839 |
done
|
|
2840 |
IFS=$as_save_IFS
|
|
2841 |
|
888 | 2842 |
;;
|
889 | |
*)
|
890 | |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
891 | |
ac_dummy="$PATH"
|
892 | |
for ac_dir in $ac_dummy; do
|
893 | |
test -z "$ac_dir" && ac_dir=.
|
894 | |
if test -f $ac_dir/$ac_word; then
|
895 | |
ac_cv_path_POD2MAN="$ac_dir/$ac_word"
|
896 | |
break
|
897 | |
fi
|
898 | |
done
|
899 | |
IFS="$ac_save_ifs"
|
900 | |
;;
|
901 | |
esac
|
902 | |
fi
|
903 | |
POD2MAN="$ac_cv_path_POD2MAN"
|
|
2843 |
esac
|
|
2844 |
fi
|
|
2845 |
POD2MAN=$ac_cv_path_POD2MAN
|
904 | 2846 |
if test -n "$POD2MAN"; then
|
905 | |
echo "$ac_t""$POD2MAN" 1>&6
|
906 | |
else
|
907 | |
echo "$ac_t""no" 1>&6
|
908 | |
fi
|
|
2847 |
{ echo "$as_me:$LINENO: result: $POD2MAN" >&5
|
|
2848 |
echo "${ECHO_T}$POD2MAN" >&6; }
|
|
2849 |
else
|
|
2850 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
2851 |
echo "${ECHO_T}no" >&6; }
|
|
2852 |
fi
|
|
2853 |
|
909 | 2854 |
|
910 | 2855 |
test -n "$POD2MAN" || exit 1
|
911 | 2856 |
|
912 | 2857 |
|
913 | 2858 |
TOPDIR=$(dirname $0)
|
914 | 2859 |
if [ "$TOPDIR" = "${TOPDIR#/}" ]; then
|
915 | |
# not absolute, resolve it
|
|
2860 |
# not absolute, resolve it
|
916 | 2861 |
TOPDIR=$(readlink -f $(dirname $(pwd)/$0))
|
917 | 2862 |
fi
|
918 | 2863 |
|
|
928 | 2873 |
done
|
929 | 2874 |
fi
|
930 | 2875 |
|
931 | |
# Check whether --with-debug or --without-debug was given.
|
|
2876 |
|
|
2877 |
# Check whether --with-debug was given.
|
932 | 2878 |
if test "${with_debug+set}" = set; then
|
933 | |
withval="$with_debug"
|
934 | |
:
|
|
2879 |
withval=$with_debug;
|
935 | 2880 |
fi
|
936 | 2881 |
|
937 | 2882 |
if test "$with_debug" != "no"; then
|
938 | |
cat >> confdefs.h <<\EOF
|
|
2883 |
cat >>confdefs.h <<\_ACEOF
|
939 | 2884 |
#define DODEBUG 1
|
940 | |
EOF
|
|
2885 |
_ACEOF
|
941 | 2886 |
|
942 | 2887 |
CFLAGS="$CFLAGS -g -D_DEBUG_"
|
943 | 2888 |
fi
|
944 | 2889 |
|
945 | |
# Check whether --with-depends or --without-depends was given.
|
|
2890 |
|
|
2891 |
# Check whether --with-depends was given.
|
946 | 2892 |
if test "${with_depends+set}" = set; then
|
947 | |
withval="$with_depends"
|
948 | |
:
|
|
2893 |
withval=$with_depends;
|
949 | 2894 |
fi
|
950 | 2895 |
|
951 | 2896 |
if test "$with_rpath" != "no"; then
|
952 | 2897 |
RPATH="-Wl,-rpath,\$(shell pwd)"
|
953 | |
|
954 | |
fi
|
955 | |
|
956 | |
# Check whether --with-db or --without-db was given.
|
|
2898 |
|
|
2899 |
fi
|
|
2900 |
|
|
2901 |
|
|
2902 |
# Check whether --with-db was given.
|
957 | 2903 |
if test "${with_db+set}" = set; then
|
958 | |
withval="$with_db"
|
959 | |
:
|
|
2904 |
withval=$with_db;
|
960 | 2905 |
fi
|
961 | 2906 |
|
962 | 2907 |
DB_MODULES=$with_db
|
963 | 2908 |
|
964 | |
# Check whether --with-frontend or --without-frontend was given.
|
|
2909 |
|
|
2910 |
# Check whether --with-frontend was given.
|
965 | 2911 |
if test "${with_frontend+set}" = set; then
|
966 | |
withval="$with_frontend"
|
967 | |
:
|
|
2912 |
withval=$with_frontend;
|
968 | 2913 |
fi
|
969 | 2914 |
|
970 | 2915 |
FRONTEND_MODULES=$with_frontend
|
971 | 2916 |
|
972 | 2917 |
DEBCONFCONFIG="/etc/cdebconf.conf"
|
973 | |
# Check whether --with-conffile or --without-conffile was given.
|
|
2918 |
|
|
2919 |
# Check whether --with-conffile was given.
|
974 | 2920 |
if test "${with_conffile+set}" = set; then
|
975 | |
withval="$with_conffile"
|
976 | |
case "$withval" in
|
977 | |
"") { echo "configure: error: invalid conffile specified" 1>&2; exit 1; } ;;
|
|
2921 |
withval=$with_conffile; case "$withval" in
|
|
2922 |
"") { { echo "$as_me:$LINENO: error: invalid conffile specified" >&5
|
|
2923 |
echo "$as_me: error: invalid conffile specified" >&2;}
|
|
2924 |
{ (exit 1); exit 1; }; } ;;
|
978 | 2925 |
*) DEBCONFCONFIG="$withval" ;;
|
979 | 2926 |
esac
|
980 | 2927 |
fi
|
981 | 2928 |
|
982 | |
cat >> confdefs.h <<EOF
|
|
2929 |
cat >>confdefs.h <<_ACEOF
|
983 | 2930 |
#define DEBCONFCONFIG "$DEBCONFCONFIG"
|
984 | |
EOF
|
985 | |
|
|
2931 |
_ACEOF
|
|
2932 |
|
986 | 2933 |
|
987 | 2934 |
DEFAULT_FRONTEND=text
|
988 | |
# Check whether --with-default-frontend or --without-default-frontend was given.
|
|
2935 |
|
|
2936 |
# Check whether --with-default-frontend was given.
|
989 | 2937 |
if test "${with_default_frontend+set}" = set; then
|
990 | |
withval="$with_default_frontend"
|
991 | |
case "$withval" in
|
992 | |
"") { echo "configure: error: invalid default frontend specified" 1>&2; exit 1; } ;;
|
|
2938 |
withval=$with_default_frontend; case "$withval" in
|
|
2939 |
"") { { echo "$as_me:$LINENO: error: invalid default frontend specified" >&5
|
|
2940 |
echo "$as_me: error: invalid default frontend specified" >&2;}
|
|
2941 |
{ (exit 1); exit 1; }; } ;;
|
993 | 2942 |
*) DEFAULT_FRONTEND="$withval";;
|
994 | 2943 |
esac
|
995 | 2944 |
fi
|
996 | 2945 |
|
997 | 2946 |
|
998 | 2947 |
|
999 | |
# Check whether --with-textwrap or --without-textwrap was given.
|
|
2948 |
|
|
2949 |
# Check whether --with-textwrap was given.
|
1000 | 2950 |
if test "${with_textwrap+set}" = set; then
|
1001 | |
withval="$with_textwrap"
|
1002 | |
if test "x$withval" = "xyes" ; then
|
1003 | |
echo $ac_n "checking for textwrap_init in -ltextwrap""... $ac_c" 1>&6
|
1004 | |
echo "configure:1006: checking for textwrap_init in -ltextwrap" >&5
|
1005 | |
ac_lib_var=`echo textwrap'_'textwrap_init | sed 'y%./+-%__p_%'`
|
1006 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1007 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1008 | |
else
|
1009 | |
ac_save_LIBS="$LIBS"
|
|
2951 |
withval=$with_textwrap; if test "x$withval" = "xyes" ; then
|
|
2952 |
|
|
2953 |
{ echo "$as_me:$LINENO: checking for textwrap_init in -ltextwrap" >&5
|
|
2954 |
echo $ECHO_N "checking for textwrap_init in -ltextwrap... $ECHO_C" >&6; }
|
|
2955 |
if test "${ac_cv_lib_textwrap_textwrap_init+set}" = set; then
|
|
2956 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
2957 |
else
|
|
2958 |
ac_check_lib_save_LIBS=$LIBS
|
1010 | 2959 |
LIBS="-ltextwrap $LIBS"
|
1011 | |
cat > conftest.$ac_ext <<EOF
|
1012 | |
#line 1014 "configure"
|
1013 | |
#include "confdefs.h"
|
1014 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1015 | |
/* We use char because int might match the return type of a gcc2
|
1016 | |
builtin and then its argument prototype would still apply. */
|
1017 | |
char textwrap_init();
|
1018 | |
|
1019 | |
int main() {
|
1020 | |
textwrap_init()
|
1021 | |
; return 0; }
|
1022 | |
EOF
|
1023 | |
if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1024 | |
rm -rf conftest*
|
1025 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1026 | |
else
|
1027 | |
echo "configure: failed program was:" >&5
|
1028 | |
cat conftest.$ac_ext >&5
|
1029 | |
rm -rf conftest*
|
1030 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1031 | |
fi
|
1032 | |
rm -f conftest*
|
1033 | |
LIBS="$ac_save_LIBS"
|
1034 | |
|
1035 | |
fi
|
1036 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1037 | |
echo "$ac_t""yes" 1>&6
|
1038 | |
ac_tr_lib=HAVE_LIB`echo textwrap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
1039 | |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
1040 | |
cat >> confdefs.h <<EOF
|
1041 | |
#define $ac_tr_lib 1
|
1042 | |
EOF
|
|
2960 |
cat >conftest.$ac_ext <<_ACEOF
|
|
2961 |
/* confdefs.h. */
|
|
2962 |
_ACEOF
|
|
2963 |
cat confdefs.h >>conftest.$ac_ext
|
|
2964 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
2965 |
/* end confdefs.h. */
|
|
2966 |
|
|
2967 |
/* Override any GCC internal prototype to avoid an error.
|
|
2968 |
Use char because int might match the return type of a GCC
|
|
2969 |
builtin and then its argument prototype would still apply. */
|
|
2970 |
#ifdef __cplusplus
|
|
2971 |
extern "C"
|
|
2972 |
#endif
|
|
2973 |
char textwrap_init ();
|
|
2974 |
int
|
|
2975 |
main ()
|
|
2976 |
{
|
|
2977 |
return textwrap_init ();
|
|
2978 |
;
|
|
2979 |
return 0;
|
|
2980 |
}
|
|
2981 |
_ACEOF
|
|
2982 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
2983 |
if { (ac_try="$ac_link"
|
|
2984 |
case "(($ac_try" in
|
|
2985 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2986 |
*) ac_try_echo=$ac_try;;
|
|
2987 |
esac
|
|
2988 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
2989 |
(eval "$ac_link") 2>conftest.er1
|
|
2990 |
ac_status=$?
|
|
2991 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
2992 |
rm -f conftest.er1
|
|
2993 |
cat conftest.err >&5
|
|
2994 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
2995 |
(exit $ac_status); } && {
|
|
2996 |
test -z "$ac_c_werror_flag" ||
|
|
2997 |
test ! -s conftest.err
|
|
2998 |
} && test -s conftest$ac_exeext &&
|
|
2999 |
$as_test_x conftest$ac_exeext; then
|
|
3000 |
ac_cv_lib_textwrap_textwrap_init=yes
|
|
3001 |
else
|
|
3002 |
echo "$as_me: failed program was:" >&5
|
|
3003 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3004 |
|
|
3005 |
ac_cv_lib_textwrap_textwrap_init=no
|
|
3006 |
fi
|
|
3007 |
|
|
3008 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3009 |
conftest$ac_exeext conftest.$ac_ext
|
|
3010 |
LIBS=$ac_check_lib_save_LIBS
|
|
3011 |
fi
|
|
3012 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_textwrap_textwrap_init" >&5
|
|
3013 |
echo "${ECHO_T}$ac_cv_lib_textwrap_textwrap_init" >&6; }
|
|
3014 |
if test $ac_cv_lib_textwrap_textwrap_init = yes; then
|
|
3015 |
cat >>confdefs.h <<_ACEOF
|
|
3016 |
#define HAVE_LIBTEXTWRAP 1
|
|
3017 |
_ACEOF
|
1043 | 3018 |
|
1044 | 3019 |
LIBS="-ltextwrap $LIBS"
|
1045 | 3020 |
|
1046 | |
else
|
1047 | |
echo "$ac_t""no" 1>&6
|
1048 | 3021 |
fi
|
1049 | 3022 |
|
1050 | 3023 |
fi
|
1051 | 3024 |
fi
|
1052 | 3025 |
|
1053 | 3026 |
|
1054 | |
# Check whether --with-syslog-logging or --without-syslog-logging was given.
|
|
3027 |
|
|
3028 |
# Check whether --with-syslog-logging was given.
|
1055 | 3029 |
if test "${with_syslog_logging+set}" = set; then
|
1056 | |
withval="$with_syslog_logging"
|
1057 | |
if test "x$withval" = "xyes"; then
|
1058 | |
cat >> confdefs.h <<\EOF
|
|
3030 |
withval=$with_syslog_logging; if test "x$withval" = "xyes"; then
|
|
3031 |
cat >>confdefs.h <<\_ACEOF
|
1059 | 3032 |
#define SYSLOG_LOGGING 1
|
1060 | |
EOF
|
|
3033 |
_ACEOF
|
1061 | 3034 |
|
1062 | 3035 |
fi
|
1063 | 3036 |
fi
|
1064 | 3037 |
|
1065 | 3038 |
|
1066 | |
# Check whether --enable-d_i or --disable-d_i was given.
|
|
3039 |
# Check whether --enable-d_i was given.
|
1067 | 3040 |
if test "${enable_d_i+set}" = set; then
|
1068 | |
enableval="$enable_d_i"
|
1069 | |
test "$enableval" = "yes" && CFLAGS="$CFLAGS -DDI_UDEB"
|
1070 | |
fi
|
1071 | |
|
1072 | |
|
1073 | |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
1074 | |
echo "configure:1076: checking for dlopen in -ldl" >&5
|
1075 | |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
1076 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1077 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1078 | |
else
|
1079 | |
ac_save_LIBS="$LIBS"
|
|
3041 |
enableval=$enable_d_i; test "$enableval" = "yes" && CFLAGS="$CFLAGS -DDI_UDEB"
|
|
3042 |
fi
|
|
3043 |
|
|
3044 |
|
|
3045 |
|
|
3046 |
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
|
3047 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
|
3048 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
|
3049 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3050 |
else
|
|
3051 |
ac_check_lib_save_LIBS=$LIBS
|
1080 | 3052 |
LIBS="-ldl $LIBS"
|
1081 | |
cat > conftest.$ac_ext <<EOF
|
1082 | |
#line 1084 "configure"
|
1083 | |
#include "confdefs.h"
|
1084 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1085 | |
/* We use char because int might match the return type of a gcc2
|
1086 | |
builtin and then its argument prototype would still apply. */
|
1087 | |
char dlopen();
|
1088 | |
|
1089 | |
int main() {
|
1090 | |
dlopen()
|
1091 | |
; return 0; }
|
1092 | |
EOF
|
1093 | |
if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1094 | |
rm -rf conftest*
|
1095 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1096 | |
else
|
1097 | |
echo "configure: failed program was:" >&5
|
1098 | |
cat conftest.$ac_ext >&5
|
1099 | |
rm -rf conftest*
|
1100 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1101 | |
fi
|
1102 | |
rm -f conftest*
|
1103 | |
LIBS="$ac_save_LIBS"
|
1104 | |
|
1105 | |
fi
|
1106 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1107 | |
echo "$ac_t""yes" 1>&6
|
1108 | |
ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
1109 | |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
1110 | |
cat >> confdefs.h <<EOF
|
1111 | |
#define $ac_tr_lib 1
|
1112 | |
EOF
|
|
3053 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3054 |
/* confdefs.h. */
|
|
3055 |
_ACEOF
|
|
3056 |
cat confdefs.h >>conftest.$ac_ext
|
|
3057 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3058 |
/* end confdefs.h. */
|
|
3059 |
|
|
3060 |
/* Override any GCC internal prototype to avoid an error.
|
|
3061 |
Use char because int might match the return type of a GCC
|
|
3062 |
builtin and then its argument prototype would still apply. */
|
|
3063 |
#ifdef __cplusplus
|
|
3064 |
extern "C"
|
|
3065 |
#endif
|
|
3066 |
char dlopen ();
|
|
3067 |
int
|
|
3068 |
main ()
|
|
3069 |
{
|
|
3070 |
return dlopen ();
|
|
3071 |
;
|
|
3072 |
return 0;
|
|
3073 |
}
|
|
3074 |
_ACEOF
|
|
3075 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3076 |
if { (ac_try="$ac_link"
|
|
3077 |
case "(($ac_try" in
|
|
3078 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3079 |
*) ac_try_echo=$ac_try;;
|
|
3080 |
esac
|
|
3081 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3082 |
(eval "$ac_link") 2>conftest.er1
|
|
3083 |
ac_status=$?
|
|
3084 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3085 |
rm -f conftest.er1
|
|
3086 |
cat conftest.err >&5
|
|
3087 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3088 |
(exit $ac_status); } && {
|
|
3089 |
test -z "$ac_c_werror_flag" ||
|
|
3090 |
test ! -s conftest.err
|
|
3091 |
} && test -s conftest$ac_exeext &&
|
|
3092 |
$as_test_x conftest$ac_exeext; then
|
|
3093 |
ac_cv_lib_dl_dlopen=yes
|
|
3094 |
else
|
|
3095 |
echo "$as_me: failed program was:" >&5
|
|
3096 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3097 |
|
|
3098 |
ac_cv_lib_dl_dlopen=no
|
|
3099 |
fi
|
|
3100 |
|
|
3101 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3102 |
conftest$ac_exeext conftest.$ac_ext
|
|
3103 |
LIBS=$ac_check_lib_save_LIBS
|
|
3104 |
fi
|
|
3105 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
|
3106 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
|
3107 |
if test $ac_cv_lib_dl_dlopen = yes; then
|
|
3108 |
cat >>confdefs.h <<_ACEOF
|
|
3109 |
#define HAVE_LIBDL 1
|
|
3110 |
_ACEOF
|
1113 | 3111 |
|
1114 | 3112 |
LIBS="-ldl $LIBS"
|
1115 | 3113 |
|
1116 | |
else
|
1117 | |
echo "$ac_t""no" 1>&6
|
1118 | 3114 |
fi
|
1119 | 3115 |
|
1120 | 3116 |
|
|
1122 | 3118 |
if test -z "$DB_MODULES"; then
|
1123 | 3119 |
DB_MODULES="textdb rfc822db stack"
|
1124 | 3120 |
|
1125 | |
echo $ac_n "checking for mysql_init in -lmysqlclient""... $ac_c" 1>&6
|
1126 | |
echo "configure:1128: checking for mysql_init in -lmysqlclient" >&5
|
1127 | |
ac_lib_var=`echo mysqlclient'_'mysql_init | sed 'y%./+-%__p_%'`
|
1128 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1129 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1130 | |
else
|
1131 | |
ac_save_LIBS="$LIBS"
|
|
3121 |
{ echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
|
|
3122 |
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6; }
|
|
3123 |
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
|
|
3124 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3125 |
else
|
|
3126 |
ac_check_lib_save_LIBS=$LIBS
|
1132 | 3127 |
LIBS="-lmysqlclient $LIBS"
|
1133 | |
cat > conftest.$ac_ext <<EOF
|
1134 | |
#line 1136 "configure"
|
1135 | |
#include "confdefs.h"
|
1136 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1137 | |
/* We use char because int might match the return type of a gcc2
|
1138 | |
builtin and then its argument prototype would still apply. */
|
1139 | |
char mysql_init();
|
1140 | |
|
1141 | |
int main() {
|
1142 | |
mysql_init()
|
1143 | |
; return 0; }
|
1144 | |
EOF
|
1145 | |
if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1146 | |
rm -rf conftest*
|
1147 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1148 | |
else
|
1149 | |
echo "configure: failed program was:" >&5
|
1150 | |
cat conftest.$ac_ext >&5
|
1151 | |
rm -rf conftest*
|
1152 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1153 | |
fi
|
1154 | |
rm -f conftest*
|
1155 | |
LIBS="$ac_save_LIBS"
|
1156 | |
|
1157 | |
fi
|
1158 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1159 | |
echo "$ac_t""yes" 1>&6
|
|
3128 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3129 |
/* confdefs.h. */
|
|
3130 |
_ACEOF
|
|
3131 |
cat confdefs.h >>conftest.$ac_ext
|
|
3132 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3133 |
/* end confdefs.h. */
|
|
3134 |
|
|
3135 |
/* Override any GCC internal prototype to avoid an error.
|
|
3136 |
Use char because int might match the return type of a GCC
|
|
3137 |
builtin and then its argument prototype would still apply. */
|
|
3138 |
#ifdef __cplusplus
|
|
3139 |
extern "C"
|
|
3140 |
#endif
|
|
3141 |
char mysql_init ();
|
|
3142 |
int
|
|
3143 |
main ()
|
|
3144 |
{
|
|
3145 |
return mysql_init ();
|
|
3146 |
;
|
|
3147 |
return 0;
|
|
3148 |
}
|
|
3149 |
_ACEOF
|
|
3150 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3151 |
if { (ac_try="$ac_link"
|
|
3152 |
case "(($ac_try" in
|
|
3153 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3154 |
*) ac_try_echo=$ac_try;;
|
|
3155 |
esac
|
|
3156 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3157 |
(eval "$ac_link") 2>conftest.er1
|
|
3158 |
ac_status=$?
|
|
3159 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3160 |
rm -f conftest.er1
|
|
3161 |
cat conftest.err >&5
|
|
3162 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3163 |
(exit $ac_status); } && {
|
|
3164 |
test -z "$ac_c_werror_flag" ||
|
|
3165 |
test ! -s conftest.err
|
|
3166 |
} && test -s conftest$ac_exeext &&
|
|
3167 |
$as_test_x conftest$ac_exeext; then
|
|
3168 |
ac_cv_lib_mysqlclient_mysql_init=yes
|
|
3169 |
else
|
|
3170 |
echo "$as_me: failed program was:" >&5
|
|
3171 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3172 |
|
|
3173 |
ac_cv_lib_mysqlclient_mysql_init=no
|
|
3174 |
fi
|
|
3175 |
|
|
3176 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3177 |
conftest$ac_exeext conftest.$ac_ext
|
|
3178 |
LIBS=$ac_check_lib_save_LIBS
|
|
3179 |
fi
|
|
3180 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
|
|
3181 |
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6; }
|
|
3182 |
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
|
1160 | 3183 |
DB_MODULES="$DB_MODULES mysql"
|
1161 | 3184 |
else
|
1162 | |
echo "$ac_t""no" 1>&6
|
1163 | |
echo "*** Cannot build mysql database ***"
|
|
3185 |
echo "*** Cannot build mysql database ***"
|
1164 | 3186 |
fi
|
1165 | 3187 |
|
1166 | 3188 |
fi
|
|
1169 | 3191 |
if test -z "$FRONTEND_MODULES"; then
|
1170 | 3192 |
FRONTEND_MODULES=text
|
1171 | 3193 |
|
1172 | |
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
|
1173 | |
echo "configure:1175: checking for initscr in -lncurses" >&5
|
1174 | |
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
|
1175 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1176 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1177 | |
else
|
1178 | |
ac_save_LIBS="$LIBS"
|
|
3194 |
{ echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
|
|
3195 |
echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
|
|
3196 |
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
|
|
3197 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3198 |
else
|
|
3199 |
ac_check_lib_save_LIBS=$LIBS
|
1179 | 3200 |
LIBS="-lncurses $LIBS"
|
1180 | |
cat > conftest.$ac_ext <<EOF
|
1181 | |
#line 1183 "configure"
|
1182 | |
#include "confdefs.h"
|
1183 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1184 | |
/* We use char because int might match the return type of a gcc2
|
1185 | |
builtin and then its argument prototype would still apply. */
|
1186 | |
char initscr();
|
1187 | |
|
1188 | |
int main() {
|
1189 | |
initscr()
|
1190 | |
; return 0; }
|
1191 | |
EOF
|
1192 | |
if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1193 | |
rm -rf conftest*
|
1194 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1195 | |
else
|
1196 | |
echo "configure: failed program was:" >&5
|
1197 | |
cat conftest.$ac_ext >&5
|
1198 | |
rm -rf conftest*
|
1199 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1200 | |
fi
|
1201 | |
rm -f conftest*
|
1202 | |
LIBS="$ac_save_LIBS"
|
1203 | |
|
1204 | |
fi
|
1205 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1206 | |
echo "$ac_t""yes" 1>&6
|
|
3201 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3202 |
/* confdefs.h. */
|
|
3203 |
_ACEOF
|
|
3204 |
cat confdefs.h >>conftest.$ac_ext
|
|
3205 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3206 |
/* end confdefs.h. */
|
|
3207 |
|
|
3208 |
/* Override any GCC internal prototype to avoid an error.
|
|
3209 |
Use char because int might match the return type of a GCC
|
|
3210 |
builtin and then its argument prototype would still apply. */
|
|
3211 |
#ifdef __cplusplus
|
|
3212 |
extern "C"
|
|
3213 |
#endif
|
|
3214 |
char initscr ();
|
|
3215 |
int
|
|
3216 |
main ()
|
|
3217 |
{
|
|
3218 |
return initscr ();
|
|
3219 |
;
|
|
3220 |
return 0;
|
|
3221 |
}
|
|
3222 |
_ACEOF
|
|
3223 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3224 |
if { (ac_try="$ac_link"
|
|
3225 |
case "(($ac_try" in
|
|
3226 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3227 |
*) ac_try_echo=$ac_try;;
|
|
3228 |
esac
|
|
3229 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3230 |
(eval "$ac_link") 2>conftest.er1
|
|
3231 |
ac_status=$?
|
|
3232 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3233 |
rm -f conftest.er1
|
|
3234 |
cat conftest.err >&5
|
|
3235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3236 |
(exit $ac_status); } && {
|
|
3237 |
test -z "$ac_c_werror_flag" ||
|
|
3238 |
test ! -s conftest.err
|
|
3239 |
} && test -s conftest$ac_exeext &&
|
|
3240 |
$as_test_x conftest$ac_exeext; then
|
|
3241 |
ac_cv_lib_ncurses_initscr=yes
|
|
3242 |
else
|
|
3243 |
echo "$as_me: failed program was:" >&5
|
|
3244 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3245 |
|
|
3246 |
ac_cv_lib_ncurses_initscr=no
|
|
3247 |
fi
|
|
3248 |
|
|
3249 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3250 |
conftest$ac_exeext conftest.$ac_ext
|
|
3251 |
LIBS=$ac_check_lib_save_LIBS
|
|
3252 |
fi
|
|
3253 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
|
|
3254 |
echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
|
|
3255 |
if test $ac_cv_lib_ncurses_initscr = yes; then
|
1207 | 3256 |
FRONTEND_MODULES="$FRONTEND_MODULES ncurses"
|
1208 | 3257 |
else
|
1209 | |
echo "$ac_t""no" 1>&6
|
1210 | |
echo "*** Cannot build ncurses frontend ***"
|
1211 | |
fi
|
1212 | |
|
1213 | |
echo $ac_n "checking for bowl_flush in -lbogl""... $ac_c" 1>&6
|
1214 | |
echo "configure:1216: checking for bowl_flush in -lbogl" >&5
|
1215 | |
ac_lib_var=`echo bogl'_'bowl_flush | sed 'y%./+-%__p_%'`
|
1216 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1217 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1218 | |
else
|
1219 | |
ac_save_LIBS="$LIBS"
|
|
3258 |
echo "*** Cannot build ncurses frontend ***"
|
|
3259 |
fi
|
|
3260 |
|
|
3261 |
{ echo "$as_me:$LINENO: checking for bowl_flush in -lbogl" >&5
|
|
3262 |
echo $ECHO_N "checking for bowl_flush in -lbogl... $ECHO_C" >&6; }
|
|
3263 |
if test "${ac_cv_lib_bogl_bowl_flush+set}" = set; then
|
|
3264 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3265 |
else
|
|
3266 |
ac_check_lib_save_LIBS=$LIBS
|
1220 | 3267 |
LIBS="-lbogl $LIBS"
|
1221 | |
cat > conftest.$ac_ext <<EOF
|
1222 | |
#line 1224 "configure"
|
1223 | |
#include "confdefs.h"
|
1224 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1225 | |
/* We use char because int might match the return type of a gcc2
|
1226 | |
builtin and then its argument prototype would still apply. */
|
1227 | |
char bowl_flush();
|
1228 | |
|
1229 | |
int main() {
|
1230 | |
bowl_flush()
|
1231 | |
; return 0; }
|
1232 | |
EOF
|
1233 | |
if { (eval echo configure:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1234 | |
rm -rf conftest*
|
1235 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1236 | |
else
|
1237 | |
echo "configure: failed program was:" >&5
|
1238 | |
cat conftest.$ac_ext >&5
|
1239 | |
rm -rf conftest*
|
1240 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1241 | |
fi
|
1242 | |
rm -f conftest*
|
1243 | |
LIBS="$ac_save_LIBS"
|
1244 | |
|
1245 | |
fi
|
1246 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1247 | |
echo "$ac_t""yes" 1>&6
|
|
3268 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3269 |
/* confdefs.h. */
|
|
3270 |
_ACEOF
|
|
3271 |
cat confdefs.h >>conftest.$ac_ext
|
|
3272 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3273 |
/* end confdefs.h. */
|
|
3274 |
|
|
3275 |
/* Override any GCC internal prototype to avoid an error.
|
|
3276 |
Use char because int might match the return type of a GCC
|
|
3277 |
builtin and then its argument prototype would still apply. */
|
|
3278 |
#ifdef __cplusplus
|
|
3279 |
extern "C"
|
|
3280 |
#endif
|
|
3281 |
char bowl_flush ();
|
|
3282 |
int
|
|
3283 |
main ()
|
|
3284 |
{
|
|
3285 |
return bowl_flush ();
|
|
3286 |
;
|
|
3287 |
return 0;
|
|
3288 |
}
|
|
3289 |
_ACEOF
|
|
3290 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3291 |
if { (ac_try="$ac_link"
|
|
3292 |
case "(($ac_try" in
|
|
3293 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3294 |
*) ac_try_echo=$ac_try;;
|
|
3295 |
esac
|
|
3296 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3297 |
(eval "$ac_link") 2>conftest.er1
|
|
3298 |
ac_status=$?
|
|
3299 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3300 |
rm -f conftest.er1
|
|
3301 |
cat conftest.err >&5
|
|
3302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3303 |
(exit $ac_status); } && {
|
|
3304 |
test -z "$ac_c_werror_flag" ||
|
|
3305 |
test ! -s conftest.err
|
|
3306 |
} && test -s conftest$ac_exeext &&
|
|
3307 |
$as_test_x conftest$ac_exeext; then
|
|
3308 |
ac_cv_lib_bogl_bowl_flush=yes
|
|
3309 |
else
|
|
3310 |
echo "$as_me: failed program was:" >&5
|
|
3311 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3312 |
|
|
3313 |
ac_cv_lib_bogl_bowl_flush=no
|
|
3314 |
fi
|
|
3315 |
|
|
3316 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3317 |
conftest$ac_exeext conftest.$ac_ext
|
|
3318 |
LIBS=$ac_check_lib_save_LIBS
|
|
3319 |
fi
|
|
3320 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bogl_bowl_flush" >&5
|
|
3321 |
echo "${ECHO_T}$ac_cv_lib_bogl_bowl_flush" >&6; }
|
|
3322 |
if test $ac_cv_lib_bogl_bowl_flush = yes; then
|
1248 | 3323 |
FRONTEND_MODULES="$FRONTEND_MODULES bogl"
|
1249 | 3324 |
else
|
1250 | |
echo "$ac_t""no" 1>&6
|
1251 | |
echo "*** Cannot build BOGL frontend ***"
|
1252 | |
fi
|
1253 | |
|
1254 | |
echo $ac_n "checking for SLang_init_all in -lslang""... $ac_c" 1>&6
|
1255 | |
echo "configure:1257: checking for SLang_init_all in -lslang" >&5
|
1256 | |
ac_lib_var=`echo slang'_'SLang_init_all | sed 'y%./+-%__p_%'`
|
1257 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1258 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1259 | |
else
|
1260 | |
ac_save_LIBS="$LIBS"
|
|
3325 |
echo "*** Cannot build BOGL frontend ***"
|
|
3326 |
fi
|
|
3327 |
|
|
3328 |
{ echo "$as_me:$LINENO: checking for SLang_init_all in -lslang" >&5
|
|
3329 |
echo $ECHO_N "checking for SLang_init_all in -lslang... $ECHO_C" >&6; }
|
|
3330 |
if test "${ac_cv_lib_slang_SLang_init_all+set}" = set; then
|
|
3331 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3332 |
else
|
|
3333 |
ac_check_lib_save_LIBS=$LIBS
|
1261 | 3334 |
LIBS="-lslang $LIBS"
|
1262 | |
cat > conftest.$ac_ext <<EOF
|
1263 | |
#line 1265 "configure"
|
1264 | |
#include "confdefs.h"
|
1265 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1266 | |
/* We use char because int might match the return type of a gcc2
|
1267 | |
builtin and then its argument prototype would still apply. */
|
1268 | |
char SLang_init_all();
|
1269 | |
|
1270 | |
int main() {
|
1271 | |
SLang_init_all()
|
1272 | |
; return 0; }
|
1273 | |
EOF
|
1274 | |
if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1275 | |
rm -rf conftest*
|
1276 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1277 | |
else
|
1278 | |
echo "configure: failed program was:" >&5
|
1279 | |
cat conftest.$ac_ext >&5
|
1280 | |
rm -rf conftest*
|
1281 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1282 | |
fi
|
1283 | |
rm -f conftest*
|
1284 | |
LIBS="$ac_save_LIBS"
|
1285 | |
|
1286 | |
fi
|
1287 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1288 | |
echo "$ac_t""yes" 1>&6
|
|
3335 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3336 |
/* confdefs.h. */
|
|
3337 |
_ACEOF
|
|
3338 |
cat confdefs.h >>conftest.$ac_ext
|
|
3339 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3340 |
/* end confdefs.h. */
|
|
3341 |
|
|
3342 |
/* Override any GCC internal prototype to avoid an error.
|
|
3343 |
Use char because int might match the return type of a GCC
|
|
3344 |
builtin and then its argument prototype would still apply. */
|
|
3345 |
#ifdef __cplusplus
|
|
3346 |
extern "C"
|
|
3347 |
#endif
|
|
3348 |
char SLang_init_all ();
|
|
3349 |
int
|
|
3350 |
main ()
|
|
3351 |
{
|
|
3352 |
return SLang_init_all ();
|
|
3353 |
;
|
|
3354 |
return 0;
|
|
3355 |
}
|
|
3356 |
_ACEOF
|
|
3357 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3358 |
if { (ac_try="$ac_link"
|
|
3359 |
case "(($ac_try" in
|
|
3360 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3361 |
*) ac_try_echo=$ac_try;;
|
|
3362 |
esac
|
|
3363 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3364 |
(eval "$ac_link") 2>conftest.er1
|
|
3365 |
ac_status=$?
|
|
3366 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3367 |
rm -f conftest.er1
|
|
3368 |
cat conftest.err >&5
|
|
3369 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3370 |
(exit $ac_status); } && {
|
|
3371 |
test -z "$ac_c_werror_flag" ||
|
|
3372 |
test ! -s conftest.err
|
|
3373 |
} && test -s conftest$ac_exeext &&
|
|
3374 |
$as_test_x conftest$ac_exeext; then
|
|
3375 |
ac_cv_lib_slang_SLang_init_all=yes
|
|
3376 |
else
|
|
3377 |
echo "$as_me: failed program was:" >&5
|
|
3378 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3379 |
|
|
3380 |
ac_cv_lib_slang_SLang_init_all=no
|
|
3381 |
fi
|
|
3382 |
|
|
3383 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3384 |
conftest$ac_exeext conftest.$ac_ext
|
|
3385 |
LIBS=$ac_check_lib_save_LIBS
|
|
3386 |
fi
|
|
3387 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_all" >&5
|
|
3388 |
echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_all" >&6; }
|
|
3389 |
if test $ac_cv_lib_slang_SLang_init_all = yes; then
|
1289 | 3390 |
FRONTEND_MODULES="$FRONTEND_MODULES slang"
|
1290 | 3391 |
else
|
1291 | |
echo "$ac_t""no" 1>&6
|
1292 | |
echo "*** Cannot build SLang frontend ***"
|
1293 | |
fi
|
1294 | |
|
1295 | |
echo $ac_n "checking for newtInit in -lnewt""... $ac_c" 1>&6
|
1296 | |
echo "configure:1298: checking for newtInit in -lnewt" >&5
|
1297 | |
ac_lib_var=`echo newt'_'newtInit | sed 'y%./+-%__p_%'`
|
1298 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1299 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1300 | |
else
|
1301 | |
ac_save_LIBS="$LIBS"
|
|
3392 |
echo "*** Cannot build SLang frontend ***"
|
|
3393 |
fi
|
|
3394 |
|
|
3395 |
{ echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
|
|
3396 |
echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6; }
|
|
3397 |
if test "${ac_cv_lib_newt_newtInit+set}" = set; then
|
|
3398 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3399 |
else
|
|
3400 |
ac_check_lib_save_LIBS=$LIBS
|
1302 | 3401 |
LIBS="-lnewt $LIBS"
|
1303 | |
cat > conftest.$ac_ext <<EOF
|
1304 | |
#line 1306 "configure"
|
1305 | |
#include "confdefs.h"
|
1306 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1307 | |
/* We use char because int might match the return type of a gcc2
|
1308 | |
builtin and then its argument prototype would still apply. */
|
1309 | |
char newtInit();
|
1310 | |
|
1311 | |
int main() {
|
1312 | |
newtInit()
|
1313 | |
; return 0; }
|
1314 | |
EOF
|
1315 | |
if { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1316 | |
rm -rf conftest*
|
1317 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1318 | |
else
|
1319 | |
echo "configure: failed program was:" >&5
|
1320 | |
cat conftest.$ac_ext >&5
|
1321 | |
rm -rf conftest*
|
1322 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1323 | |
fi
|
1324 | |
rm -f conftest*
|
1325 | |
LIBS="$ac_save_LIBS"
|
1326 | |
|
1327 | |
fi
|
1328 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1329 | |
echo "$ac_t""yes" 1>&6
|
|
3402 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3403 |
/* confdefs.h. */
|
|
3404 |
_ACEOF
|
|
3405 |
cat confdefs.h >>conftest.$ac_ext
|
|
3406 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3407 |
/* end confdefs.h. */
|
|
3408 |
|
|
3409 |
/* Override any GCC internal prototype to avoid an error.
|
|
3410 |
Use char because int might match the return type of a GCC
|
|
3411 |
builtin and then its argument prototype would still apply. */
|
|
3412 |
#ifdef __cplusplus
|
|
3413 |
extern "C"
|
|
3414 |
#endif
|
|
3415 |
char newtInit ();
|
|
3416 |
int
|
|
3417 |
main ()
|
|
3418 |
{
|
|
3419 |
return newtInit ();
|
|
3420 |
;
|
|
3421 |
return 0;
|
|
3422 |
}
|
|
3423 |
_ACEOF
|
|
3424 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3425 |
if { (ac_try="$ac_link"
|
|
3426 |
case "(($ac_try" in
|
|
3427 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3428 |
*) ac_try_echo=$ac_try;;
|
|
3429 |
esac
|
|
3430 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3431 |
(eval "$ac_link") 2>conftest.er1
|
|
3432 |
ac_status=$?
|
|
3433 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3434 |
rm -f conftest.er1
|
|
3435 |
cat conftest.err >&5
|
|
3436 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3437 |
(exit $ac_status); } && {
|
|
3438 |
test -z "$ac_c_werror_flag" ||
|
|
3439 |
test ! -s conftest.err
|
|
3440 |
} && test -s conftest$ac_exeext &&
|
|
3441 |
$as_test_x conftest$ac_exeext; then
|
|
3442 |
ac_cv_lib_newt_newtInit=yes
|
|
3443 |
else
|
|
3444 |
echo "$as_me: failed program was:" >&5
|
|
3445 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3446 |
|
|
3447 |
ac_cv_lib_newt_newtInit=no
|
|
3448 |
fi
|
|
3449 |
|
|
3450 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3451 |
conftest$ac_exeext conftest.$ac_ext
|
|
3452 |
LIBS=$ac_check_lib_save_LIBS
|
|
3453 |
fi
|
|
3454 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
|
|
3455 |
echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6; }
|
|
3456 |
if test $ac_cv_lib_newt_newtInit = yes; then
|
1330 | 3457 |
FRONTEND_MODULES="$FRONTEND_MODULES newt"
|
1331 | 3458 |
else
|
1332 | |
echo "$ac_t""no" 1>&6
|
1333 | |
echo "*** Cannot build Newt frontend ***"
|
1334 | |
fi
|
1335 | |
|
1336 | |
|
1337 | |
|
1338 | |
fi
|
|
3459 |
echo "*** Cannot build Newt frontend ***"
|
|
3460 |
fi
|
|
3461 |
|
|
3462 |
|
|
3463 |
|
|
3464 |
fi
|
|
3465 |
|
|
3466 |
|
|
3467 |
|
|
3468 |
|
|
3469 |
|
1339 | 3470 |
|
1340 | 3471 |
|
1341 | 3472 |
|
1342 | 3473 |
|
1343 | 3474 |
ac_header_dirent=no
|
1344 | |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
1345 | |
do
|
1346 | |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
1347 | |
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
1348 | |
echo "configure:1350: checking for $ac_hdr that defines DIR" >&5
|
1349 | |
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
1350 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1351 | |
else
|
1352 | |
cat > conftest.$ac_ext <<EOF
|
1353 | |
#line 1355 "configure"
|
1354 | |
#include "confdefs.h"
|
|
3475 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
|
3476 |
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
|
3477 |
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
|
3478 |
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
|
3479 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
3480 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3481 |
else
|
|
3482 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3483 |
/* confdefs.h. */
|
|
3484 |
_ACEOF
|
|
3485 |
cat confdefs.h >>conftest.$ac_ext
|
|
3486 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3487 |
/* end confdefs.h. */
|
1355 | 3488 |
#include <sys/types.h>
|
1356 | 3489 |
#include <$ac_hdr>
|
1357 | |
int main() {
|
1358 | |
DIR *dirp = 0;
|
1359 | |
; return 0; }
|
1360 | |
EOF
|
1361 | |
if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1362 | |
rm -rf conftest*
|
1363 | |
eval "ac_cv_header_dirent_$ac_safe=yes"
|
1364 | |
else
|
1365 | |
echo "configure: failed program was:" >&5
|
1366 | |
cat conftest.$ac_ext >&5
|
1367 | |
rm -rf conftest*
|
1368 | |
eval "ac_cv_header_dirent_$ac_safe=no"
|
1369 | |
fi
|
1370 | |
rm -f conftest*
|
1371 | |
fi
|
1372 | |
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
1373 | |
echo "$ac_t""yes" 1>&6
|
1374 | |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
1375 | |
cat >> confdefs.h <<EOF
|
1376 | |
#define $ac_tr_hdr 1
|
1377 | |
EOF
|
1378 | |
ac_header_dirent=$ac_hdr; break
|
1379 | |
else
|
1380 | |
echo "$ac_t""no" 1>&6
|
1381 | |
fi
|
|
3490 |
|
|
3491 |
int
|
|
3492 |
main ()
|
|
3493 |
{
|
|
3494 |
if ((DIR *) 0)
|
|
3495 |
return 0;
|
|
3496 |
;
|
|
3497 |
return 0;
|
|
3498 |
}
|
|
3499 |
_ACEOF
|
|
3500 |
rm -f conftest.$ac_objext
|
|
3501 |
if { (ac_try="$ac_compile"
|
|
3502 |
case "(($ac_try" in
|
|
3503 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3504 |
*) ac_try_echo=$ac_try;;
|
|
3505 |
esac
|
|
3506 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3507 |
(eval "$ac_compile") 2>conftest.er1
|
|
3508 |
ac_status=$?
|
|
3509 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3510 |
rm -f conftest.er1
|
|
3511 |
cat conftest.err >&5
|
|
3512 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3513 |
(exit $ac_status); } && {
|
|
3514 |
test -z "$ac_c_werror_flag" ||
|
|
3515 |
test ! -s conftest.err
|
|
3516 |
} && test -s conftest.$ac_objext; then
|
|
3517 |
eval "$as_ac_Header=yes"
|
|
3518 |
else
|
|
3519 |
echo "$as_me: failed program was:" >&5
|
|
3520 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3521 |
|
|
3522 |
eval "$as_ac_Header=no"
|
|
3523 |
fi
|
|
3524 |
|
|
3525 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3526 |
fi
|
|
3527 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
3528 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
3529 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
3530 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
3531 |
cat >>confdefs.h <<_ACEOF
|
|
3532 |
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
|
3533 |
_ACEOF
|
|
3534 |
|
|
3535 |
ac_header_dirent=$ac_hdr; break
|
|
3536 |
fi
|
|
3537 |
|
1382 | 3538 |
done
|
1383 | 3539 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
1384 | 3540 |
if test $ac_header_dirent = dirent.h; then
|
1385 | |
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
1386 | |
echo "configure:1388: checking for opendir in -ldir" >&5
|
1387 | |
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
1388 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1389 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1390 | |
else
|
1391 | |
ac_save_LIBS="$LIBS"
|
1392 | |
LIBS="-ldir $LIBS"
|
1393 | |
cat > conftest.$ac_ext <<EOF
|
1394 | |
#line 1396 "configure"
|
1395 | |
#include "confdefs.h"
|
1396 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1397 | |
/* We use char because int might match the return type of a gcc2
|
1398 | |
builtin and then its argument prototype would still apply. */
|
1399 | |
char opendir();
|
1400 | |
|
1401 | |
int main() {
|
1402 | |
opendir()
|
1403 | |
; return 0; }
|
1404 | |
EOF
|
1405 | |
if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1406 | |
rm -rf conftest*
|
1407 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1408 | |
else
|
1409 | |
echo "configure: failed program was:" >&5
|
1410 | |
cat conftest.$ac_ext >&5
|
1411 | |
rm -rf conftest*
|
1412 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1413 | |
fi
|
1414 | |
rm -f conftest*
|
1415 | |
LIBS="$ac_save_LIBS"
|
1416 | |
|
1417 | |
fi
|
1418 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1419 | |
echo "$ac_t""yes" 1>&6
|
1420 | |
LIBS="$LIBS -ldir"
|
1421 | |
else
|
1422 | |
echo "$ac_t""no" 1>&6
|
1423 | |
fi
|
1424 | |
|
1425 | |
else
|
1426 | |
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
1427 | |
echo "configure:1429: checking for opendir in -lx" >&5
|
1428 | |
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
1429 | |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1430 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1431 | |
else
|
1432 | |
ac_save_LIBS="$LIBS"
|
1433 | |
LIBS="-lx $LIBS"
|
1434 | |
cat > conftest.$ac_ext <<EOF
|
1435 | |
#line 1437 "configure"
|
1436 | |
#include "confdefs.h"
|
1437 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
1438 | |
/* We use char because int might match the return type of a gcc2
|
1439 | |
builtin and then its argument prototype would still apply. */
|
1440 | |
char opendir();
|
1441 | |
|
1442 | |
int main() {
|
1443 | |
opendir()
|
1444 | |
; return 0; }
|
1445 | |
EOF
|
1446 | |
if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1447 | |
rm -rf conftest*
|
1448 | |
eval "ac_cv_lib_$ac_lib_var=yes"
|
1449 | |
else
|
1450 | |
echo "configure: failed program was:" >&5
|
1451 | |
cat conftest.$ac_ext >&5
|
1452 | |
rm -rf conftest*
|
1453 | |
eval "ac_cv_lib_$ac_lib_var=no"
|
1454 | |
fi
|
1455 | |
rm -f conftest*
|
1456 | |
LIBS="$ac_save_LIBS"
|
1457 | |
|
1458 | |
fi
|
1459 | |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1460 | |
echo "$ac_t""yes" 1>&6
|
1461 | |
LIBS="$LIBS -lx"
|
1462 | |
else
|
1463 | |
echo "$ac_t""no" 1>&6
|
1464 | |
fi
|
1465 | |
|
1466 | |
fi
|
1467 | |
|
1468 | |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1469 | |
echo "configure:1471: checking how to run the C preprocessor" >&5
|
|
3541 |
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
|
3542 |
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
|
3543 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3544 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3545 |
else
|
|
3546 |
ac_func_search_save_LIBS=$LIBS
|
|
3547 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3548 |
/* confdefs.h. */
|
|
3549 |
_ACEOF
|
|
3550 |
cat confdefs.h >>conftest.$ac_ext
|
|
3551 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3552 |
/* end confdefs.h. */
|
|
3553 |
|
|
3554 |
/* Override any GCC internal prototype to avoid an error.
|
|
3555 |
Use char because int might match the return type of a GCC
|
|
3556 |
builtin and then its argument prototype would still apply. */
|
|
3557 |
#ifdef __cplusplus
|
|
3558 |
extern "C"
|
|
3559 |
#endif
|
|
3560 |
char opendir ();
|
|
3561 |
int
|
|
3562 |
main ()
|
|
3563 |
{
|
|
3564 |
return opendir ();
|
|
3565 |
;
|
|
3566 |
return 0;
|
|
3567 |
}
|
|
3568 |
_ACEOF
|
|
3569 |
for ac_lib in '' dir; do
|
|
3570 |
if test -z "$ac_lib"; then
|
|
3571 |
ac_res="none required"
|
|
3572 |
else
|
|
3573 |
ac_res=-l$ac_lib
|
|
3574 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
3575 |
fi
|
|
3576 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3577 |
if { (ac_try="$ac_link"
|
|
3578 |
case "(($ac_try" in
|
|
3579 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3580 |
*) ac_try_echo=$ac_try;;
|
|
3581 |
esac
|
|
3582 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3583 |
(eval "$ac_link") 2>conftest.er1
|
|
3584 |
ac_status=$?
|
|
3585 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3586 |
rm -f conftest.er1
|
|
3587 |
cat conftest.err >&5
|
|
3588 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3589 |
(exit $ac_status); } && {
|
|
3590 |
test -z "$ac_c_werror_flag" ||
|
|
3591 |
test ! -s conftest.err
|
|
3592 |
} && test -s conftest$ac_exeext &&
|
|
3593 |
$as_test_x conftest$ac_exeext; then
|
|
3594 |
ac_cv_search_opendir=$ac_res
|
|
3595 |
else
|
|
3596 |
echo "$as_me: failed program was:" >&5
|
|
3597 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3598 |
|
|
3599 |
|
|
3600 |
fi
|
|
3601 |
|
|
3602 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3603 |
conftest$ac_exeext
|
|
3604 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3605 |
break
|
|
3606 |
fi
|
|
3607 |
done
|
|
3608 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3609 |
:
|
|
3610 |
else
|
|
3611 |
ac_cv_search_opendir=no
|
|
3612 |
fi
|
|
3613 |
rm conftest.$ac_ext
|
|
3614 |
LIBS=$ac_func_search_save_LIBS
|
|
3615 |
fi
|
|
3616 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
|
3617 |
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
|
3618 |
ac_res=$ac_cv_search_opendir
|
|
3619 |
if test "$ac_res" != no; then
|
|
3620 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
3621 |
|
|
3622 |
fi
|
|
3623 |
|
|
3624 |
else
|
|
3625 |
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
|
3626 |
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
|
3627 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3628 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3629 |
else
|
|
3630 |
ac_func_search_save_LIBS=$LIBS
|
|
3631 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3632 |
/* confdefs.h. */
|
|
3633 |
_ACEOF
|
|
3634 |
cat confdefs.h >>conftest.$ac_ext
|
|
3635 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3636 |
/* end confdefs.h. */
|
|
3637 |
|
|
3638 |
/* Override any GCC internal prototype to avoid an error.
|
|
3639 |
Use char because int might match the return type of a GCC
|
|
3640 |
builtin and then its argument prototype would still apply. */
|
|
3641 |
#ifdef __cplusplus
|
|
3642 |
extern "C"
|
|
3643 |
#endif
|
|
3644 |
char opendir ();
|
|
3645 |
int
|
|
3646 |
main ()
|
|
3647 |
{
|
|
3648 |
return opendir ();
|
|
3649 |
;
|
|
3650 |
return 0;
|
|
3651 |
}
|
|
3652 |
_ACEOF
|
|
3653 |
for ac_lib in '' x; do
|
|
3654 |
if test -z "$ac_lib"; then
|
|
3655 |
ac_res="none required"
|
|
3656 |
else
|
|
3657 |
ac_res=-l$ac_lib
|
|
3658 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
3659 |
fi
|
|
3660 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
3661 |
if { (ac_try="$ac_link"
|
|
3662 |
case "(($ac_try" in
|
|
3663 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3664 |
*) ac_try_echo=$ac_try;;
|
|
3665 |
esac
|
|
3666 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3667 |
(eval "$ac_link") 2>conftest.er1
|
|
3668 |
ac_status=$?
|
|
3669 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3670 |
rm -f conftest.er1
|
|
3671 |
cat conftest.err >&5
|
|
3672 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3673 |
(exit $ac_status); } && {
|
|
3674 |
test -z "$ac_c_werror_flag" ||
|
|
3675 |
test ! -s conftest.err
|
|
3676 |
} && test -s conftest$ac_exeext &&
|
|
3677 |
$as_test_x conftest$ac_exeext; then
|
|
3678 |
ac_cv_search_opendir=$ac_res
|
|
3679 |
else
|
|
3680 |
echo "$as_me: failed program was:" >&5
|
|
3681 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3682 |
|
|
3683 |
|
|
3684 |
fi
|
|
3685 |
|
|
3686 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
3687 |
conftest$ac_exeext
|
|
3688 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3689 |
break
|
|
3690 |
fi
|
|
3691 |
done
|
|
3692 |
if test "${ac_cv_search_opendir+set}" = set; then
|
|
3693 |
:
|
|
3694 |
else
|
|
3695 |
ac_cv_search_opendir=no
|
|
3696 |
fi
|
|
3697 |
rm conftest.$ac_ext
|
|
3698 |
LIBS=$ac_func_search_save_LIBS
|
|
3699 |
fi
|
|
3700 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
|
3701 |
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
|
3702 |
ac_res=$ac_cv_search_opendir
|
|
3703 |
if test "$ac_res" != no; then
|
|
3704 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
3705 |
|
|
3706 |
fi
|
|
3707 |
|
|
3708 |
fi
|
|
3709 |
|
|
3710 |
ac_ext=c
|
|
3711 |
ac_cpp='$CPP $CPPFLAGS'
|
|
3712 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3713 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3714 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3715 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
3716 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
1470 | 3717 |
# On Suns, sometimes $CPP names a directory.
|
1471 | 3718 |
if test -n "$CPP" && test -d "$CPP"; then
|
1472 | 3719 |
CPP=
|
1473 | 3720 |
fi
|
1474 | 3721 |
if test -z "$CPP"; then
|
1475 | |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
1476 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1477 | |
else
|
1478 | |
# This must be in double quotes, not single quotes, because CPP may get
|
1479 | |
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
1480 | |
CPP="${CC-cc} -E"
|
|
3722 |
if test "${ac_cv_prog_CPP+set}" = set; then
|
|
3723 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3724 |
else
|
|
3725 |
# Double quotes because CPP needs to be expanded
|
|
3726 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
3727 |
do
|
|
3728 |
ac_preproc_ok=false
|
|
3729 |
for ac_c_preproc_warn_flag in '' yes
|
|
3730 |
do
|
|
3731 |
# Use a header file that comes with gcc, so configuring glibc
|
|
3732 |
# with a fresh cross-compiler works.
|
|
3733 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3734 |
# <limits.h> exists even on freestanding compilers.
|
1481 | 3735 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
1482 | |
# not just through cpp.
|
1483 | |
cat > conftest.$ac_ext <<EOF
|
1484 | |
#line 1486 "configure"
|
1485 | |
#include "confdefs.h"
|
1486 | |
#include <assert.h>
|
1487 | |
Syntax Error
|
1488 | |
EOF
|
1489 | |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1490 | |
{ (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1491 | |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1492 | |
if test -z "$ac_err"; then
|
|
3736 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
3737 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3738 |
/* confdefs.h. */
|
|
3739 |
_ACEOF
|
|
3740 |
cat confdefs.h >>conftest.$ac_ext
|
|
3741 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3742 |
/* end confdefs.h. */
|
|
3743 |
#ifdef __STDC__
|
|
3744 |
# include <limits.h>
|
|
3745 |
#else
|
|
3746 |
# include <assert.h>
|
|
3747 |
#endif
|
|
3748 |
Syntax error
|
|
3749 |
_ACEOF
|
|
3750 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
3751 |
case "(($ac_try" in
|
|
3752 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3753 |
*) ac_try_echo=$ac_try;;
|
|
3754 |
esac
|
|
3755 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3756 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
3757 |
ac_status=$?
|
|
3758 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3759 |
rm -f conftest.er1
|
|
3760 |
cat conftest.err >&5
|
|
3761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3762 |
(exit $ac_status); } >/dev/null && {
|
|
3763 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
3764 |
test ! -s conftest.err
|
|
3765 |
}; then
|
1493 | 3766 |
:
|
1494 | 3767 |
else
|
1495 | |
echo "$ac_err" >&5
|
1496 | |
echo "configure: failed program was:" >&5
|
1497 | |
cat conftest.$ac_ext >&5
|
1498 | |
rm -rf conftest*
|
1499 | |
CPP="${CC-cc} -E -traditional-cpp"
|
1500 | |
cat > conftest.$ac_ext <<EOF
|
1501 | |
#line 1503 "configure"
|
1502 | |
#include "confdefs.h"
|
1503 | |
#include <assert.h>
|
1504 | |
Syntax Error
|
1505 | |
EOF
|
1506 | |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1507 | |
{ (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1508 | |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1509 | |
if test -z "$ac_err"; then
|
|
3768 |
echo "$as_me: failed program was:" >&5
|
|
3769 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3770 |
|
|
3771 |
# Broken: fails on valid input.
|
|
3772 |
continue
|
|
3773 |
fi
|
|
3774 |
|
|
3775 |
rm -f conftest.err conftest.$ac_ext
|
|
3776 |
|
|
3777 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
3778 |
# can be detected and how.
|
|
3779 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3780 |
/* confdefs.h. */
|
|
3781 |
_ACEOF
|
|
3782 |
cat confdefs.h >>conftest.$ac_ext
|
|
3783 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3784 |
/* end confdefs.h. */
|
|
3785 |
#include <ac_nonexistent.h>
|
|
3786 |
_ACEOF
|
|
3787 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
3788 |
case "(($ac_try" in
|
|
3789 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3790 |
*) ac_try_echo=$ac_try;;
|
|
3791 |
esac
|
|
3792 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3793 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
3794 |
ac_status=$?
|
|
3795 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3796 |
rm -f conftest.er1
|
|
3797 |
cat conftest.err >&5
|
|
3798 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3799 |
(exit $ac_status); } >/dev/null && {
|
|
3800 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
3801 |
test ! -s conftest.err
|
|
3802 |
}; then
|
|
3803 |
# Broken: success on invalid input.
|
|
3804 |
continue
|
|
3805 |
else
|
|
3806 |
echo "$as_me: failed program was:" >&5
|
|
3807 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3808 |
|
|
3809 |
# Passes both tests.
|
|
3810 |
ac_preproc_ok=:
|
|
3811 |
break
|
|
3812 |
fi
|
|
3813 |
|
|
3814 |
rm -f conftest.err conftest.$ac_ext
|
|
3815 |
|
|
3816 |
done
|
|
3817 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3818 |
rm -f conftest.err conftest.$ac_ext
|
|
3819 |
if $ac_preproc_ok; then
|
|
3820 |
break
|
|
3821 |
fi
|
|
3822 |
|
|
3823 |
done
|
|
3824 |
ac_cv_prog_CPP=$CPP
|
|
3825 |
|
|
3826 |
fi
|
|
3827 |
CPP=$ac_cv_prog_CPP
|
|
3828 |
else
|
|
3829 |
ac_cv_prog_CPP=$CPP
|
|
3830 |
fi
|
|
3831 |
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
|
3832 |
echo "${ECHO_T}$CPP" >&6; }
|
|
3833 |
ac_preproc_ok=false
|
|
3834 |
for ac_c_preproc_warn_flag in '' yes
|
|
3835 |
do
|
|
3836 |
# Use a header file that comes with gcc, so configuring glibc
|
|
3837 |
# with a fresh cross-compiler works.
|
|
3838 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3839 |
# <limits.h> exists even on freestanding compilers.
|
|
3840 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
3841 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
3842 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3843 |
/* confdefs.h. */
|
|
3844 |
_ACEOF
|
|
3845 |
cat confdefs.h >>conftest.$ac_ext
|
|
3846 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3847 |
/* end confdefs.h. */
|
|
3848 |
#ifdef __STDC__
|
|
3849 |
# include <limits.h>
|
|
3850 |
#else
|
|
3851 |
# include <assert.h>
|
|
3852 |
#endif
|
|
3853 |
Syntax error
|
|
3854 |
_ACEOF
|
|
3855 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
3856 |
case "(($ac_try" in
|
|
3857 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3858 |
*) ac_try_echo=$ac_try;;
|
|
3859 |
esac
|
|
3860 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3861 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
3862 |
ac_status=$?
|
|
3863 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3864 |
rm -f conftest.er1
|
|
3865 |
cat conftest.err >&5
|
|
3866 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3867 |
(exit $ac_status); } >/dev/null && {
|
|
3868 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
3869 |
test ! -s conftest.err
|
|
3870 |
}; then
|
1510 | 3871 |
:
|
1511 | 3872 |
else
|
1512 | |
echo "$ac_err" >&5
|
1513 | |
echo "configure: failed program was:" >&5
|
1514 | |
cat conftest.$ac_ext >&5
|
1515 | |
rm -rf conftest*
|
1516 | |
CPP="${CC-cc} -nologo -E"
|
1517 | |
cat > conftest.$ac_ext <<EOF
|
1518 | |
#line 1520 "configure"
|
1519 | |
#include "confdefs.h"
|
1520 | |
#include <assert.h>
|
1521 | |
Syntax Error
|
1522 | |
EOF
|
1523 | |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1524 | |
{ (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1525 | |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1526 | |
if test -z "$ac_err"; then
|
|
3873 |
echo "$as_me: failed program was:" >&5
|
|
3874 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3875 |
|
|
3876 |
# Broken: fails on valid input.
|
|
3877 |
continue
|
|
3878 |
fi
|
|
3879 |
|
|
3880 |
rm -f conftest.err conftest.$ac_ext
|
|
3881 |
|
|
3882 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
3883 |
# can be detected and how.
|
|
3884 |
cat >conftest.$ac_ext <<_ACEOF
|
|
3885 |
/* confdefs.h. */
|
|
3886 |
_ACEOF
|
|
3887 |
cat confdefs.h >>conftest.$ac_ext
|
|
3888 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
3889 |
/* end confdefs.h. */
|
|
3890 |
#include <ac_nonexistent.h>
|
|
3891 |
_ACEOF
|
|
3892 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
3893 |
case "(($ac_try" in
|
|
3894 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3895 |
*) ac_try_echo=$ac_try;;
|
|
3896 |
esac
|
|
3897 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
3898 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
3899 |
ac_status=$?
|
|
3900 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
3901 |
rm -f conftest.er1
|
|
3902 |
cat conftest.err >&5
|
|
3903 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
3904 |
(exit $ac_status); } >/dev/null && {
|
|
3905 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
3906 |
test ! -s conftest.err
|
|
3907 |
}; then
|
|
3908 |
# Broken: success on invalid input.
|
|
3909 |
continue
|
|
3910 |
else
|
|
3911 |
echo "$as_me: failed program was:" >&5
|
|
3912 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
3913 |
|
|
3914 |
# Passes both tests.
|
|
3915 |
ac_preproc_ok=:
|
|
3916 |
break
|
|
3917 |
fi
|
|
3918 |
|
|
3919 |
rm -f conftest.err conftest.$ac_ext
|
|
3920 |
|
|
3921 |
done
|
|
3922 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3923 |
rm -f conftest.err conftest.$ac_ext
|
|
3924 |
if $ac_preproc_ok; then
|
1527 | 3925 |
:
|
1528 | 3926 |
else
|
1529 | |
echo "$ac_err" >&5
|
1530 | |
echo "configure: failed program was:" >&5
|
1531 | |
cat conftest.$ac_ext >&5
|
1532 | |
rm -rf conftest*
|
1533 | |
CPP=/lib/cpp
|
1534 | |
fi
|
1535 | |
rm -f conftest*
|
1536 | |
fi
|
1537 | |
rm -f conftest*
|
1538 | |
fi
|
1539 | |
rm -f conftest*
|
1540 | |
ac_cv_prog_CPP="$CPP"
|
1541 | |
fi
|
1542 | |
CPP="$ac_cv_prog_CPP"
|
1543 | |
else
|
1544 | |
ac_cv_prog_CPP="$CPP"
|
1545 | |
fi
|
1546 | |
echo "$ac_t""$CPP" 1>&6
|
1547 | |
|
1548 | |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
1549 | |
echo "configure:1551: checking for ANSI C header files" >&5
|
1550 | |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
1551 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1552 | |
else
|
1553 | |
cat > conftest.$ac_ext <<EOF
|
1554 | |
#line 1556 "configure"
|
1555 | |
#include "confdefs.h"
|
|
3927 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
3928 |
See \`config.log' for more details." >&5
|
|
3929 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
3930 |
See \`config.log' for more details." >&2;}
|
|
3931 |
{ (exit 1); exit 1; }; }
|
|
3932 |
fi
|
|
3933 |
|
|
3934 |
ac_ext=c
|
|
3935 |
ac_cpp='$CPP $CPPFLAGS'
|
|
3936 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3937 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3938 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3939 |
|
|
3940 |
|
|
3941 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
|
3942 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
|
3943 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
3944 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3945 |
else
|
|
3946 |
# Extract the first word of "grep ggrep" to use in msg output
|
|
3947 |
if test -z "$GREP"; then
|
|
3948 |
set dummy grep ggrep; ac_prog_name=$2
|
|
3949 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
3950 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
3951 |
else
|
|
3952 |
ac_path_GREP_found=false
|
|
3953 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
3954 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3955 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
3956 |
do
|
|
3957 |
IFS=$as_save_IFS
|
|
3958 |
test -z "$as_dir" && as_dir=.
|
|
3959 |
for ac_prog in grep ggrep; do
|
|
3960 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3961 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
3962 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
3963 |
# Check for GNU ac_path_GREP and select it if it is found.
|
|
3964 |
# Check for GNU $ac_path_GREP
|
|
3965 |
case `"$ac_path_GREP" --version 2>&1` in
|
|
3966 |
*GNU*)
|
|
3967 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
3968 |
*)
|
|
3969 |
ac_count=0
|
|
3970 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
3971 |
while :
|
|
3972 |
do
|
|
3973 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
3974 |
mv "conftest.tmp" "conftest.in"
|
|
3975 |
cp "conftest.in" "conftest.nl"
|
|
3976 |
echo 'GREP' >> "conftest.nl"
|
|
3977 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
3978 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
3979 |
ac_count=`expr $ac_count + 1`
|
|
3980 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
3981 |
# Best one so far, save it but keep looking for a better one
|
|
3982 |
ac_cv_path_GREP="$ac_path_GREP"
|
|
3983 |
ac_path_GREP_max=$ac_count
|
|
3984 |
fi
|
|
3985 |
# 10*(2^10) chars as input seems more than enough
|
|
3986 |
test $ac_count -gt 10 && break
|
|
3987 |
done
|
|
3988 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
3989 |
esac
|
|
3990 |
|
|
3991 |
|
|
3992 |
$ac_path_GREP_found && break 3
|
|
3993 |
done
|
|
3994 |
done
|
|
3995 |
|
|
3996 |
done
|
|
3997 |
IFS=$as_save_IFS
|
|
3998 |
|
|
3999 |
|
|
4000 |
fi
|
|
4001 |
|
|
4002 |
GREP="$ac_cv_path_GREP"
|
|
4003 |
if test -z "$GREP"; then
|
|
4004 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
4005 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
4006 |
{ (exit 1); exit 1; }; }
|
|
4007 |
fi
|
|
4008 |
|
|
4009 |
else
|
|
4010 |
ac_cv_path_GREP=$GREP
|
|
4011 |
fi
|
|
4012 |
|
|
4013 |
|
|
4014 |
fi
|
|
4015 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
|
4016 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
|
4017 |
GREP="$ac_cv_path_GREP"
|
|
4018 |
|
|
4019 |
|
|
4020 |
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
|
4021 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
|
4022 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
4023 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4024 |
else
|
|
4025 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
4026 |
then ac_cv_path_EGREP="$GREP -E"
|
|
4027 |
else
|
|
4028 |
# Extract the first word of "egrep" to use in msg output
|
|
4029 |
if test -z "$EGREP"; then
|
|
4030 |
set dummy egrep; ac_prog_name=$2
|
|
4031 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
4032 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4033 |
else
|
|
4034 |
ac_path_EGREP_found=false
|
|
4035 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
4036 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4037 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
4038 |
do
|
|
4039 |
IFS=$as_save_IFS
|
|
4040 |
test -z "$as_dir" && as_dir=.
|
|
4041 |
for ac_prog in egrep; do
|
|
4042 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4043 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
4044 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
4045 |
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
4046 |
# Check for GNU $ac_path_EGREP
|
|
4047 |
case `"$ac_path_EGREP" --version 2>&1` in
|
|
4048 |
*GNU*)
|
|
4049 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
4050 |
*)
|
|
4051 |
ac_count=0
|
|
4052 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
4053 |
while :
|
|
4054 |
do
|
|
4055 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
4056 |
mv "conftest.tmp" "conftest.in"
|
|
4057 |
cp "conftest.in" "conftest.nl"
|
|
4058 |
echo 'EGREP' >> "conftest.nl"
|
|
4059 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
4060 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
4061 |
ac_count=`expr $ac_count + 1`
|
|
4062 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
4063 |
# Best one so far, save it but keep looking for a better one
|
|
4064 |
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
4065 |
ac_path_EGREP_max=$ac_count
|
|
4066 |
fi
|
|
4067 |
# 10*(2^10) chars as input seems more than enough
|
|
4068 |
test $ac_count -gt 10 && break
|
|
4069 |
done
|
|
4070 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
4071 |
esac
|
|
4072 |
|
|
4073 |
|
|
4074 |
$ac_path_EGREP_found && break 3
|
|
4075 |
done
|
|
4076 |
done
|
|
4077 |
|
|
4078 |
done
|
|
4079 |
IFS=$as_save_IFS
|
|
4080 |
|
|
4081 |
|
|
4082 |
fi
|
|
4083 |
|
|
4084 |
EGREP="$ac_cv_path_EGREP"
|
|
4085 |
if test -z "$EGREP"; then
|
|
4086 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
4087 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
4088 |
{ (exit 1); exit 1; }; }
|
|
4089 |
fi
|
|
4090 |
|
|
4091 |
else
|
|
4092 |
ac_cv_path_EGREP=$EGREP
|
|
4093 |
fi
|
|
4094 |
|
|
4095 |
|
|
4096 |
fi
|
|
4097 |
fi
|
|
4098 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
|
4099 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
|
4100 |
EGREP="$ac_cv_path_EGREP"
|
|
4101 |
|
|
4102 |
|
|
4103 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
4104 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
|
4105 |
if test "${ac_cv_header_stdc+set}" = set; then
|
|
4106 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4107 |
else
|
|
4108 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4109 |
/* confdefs.h. */
|
|
4110 |
_ACEOF
|
|
4111 |
cat confdefs.h >>conftest.$ac_ext
|
|
4112 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4113 |
/* end confdefs.h. */
|
1556 | 4114 |
#include <stdlib.h>
|
1557 | 4115 |
#include <stdarg.h>
|
1558 | 4116 |
#include <string.h>
|
1559 | 4117 |
#include <float.h>
|
1560 | |
EOF
|
1561 | |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1562 | |
{ (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1563 | |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1564 | |
if test -z "$ac_err"; then
|
1565 | |
rm -rf conftest*
|
|
4118 |
|
|
4119 |
int
|
|
4120 |
main ()
|
|
4121 |
{
|
|
4122 |
|
|
4123 |
;
|
|
4124 |
return 0;
|
|
4125 |
}
|
|
4126 |
_ACEOF
|
|
4127 |
rm -f conftest.$ac_objext
|
|
4128 |
if { (ac_try="$ac_compile"
|
|
4129 |
case "(($ac_try" in
|
|
4130 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4131 |
*) ac_try_echo=$ac_try;;
|
|
4132 |
esac
|
|
4133 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4134 |
(eval "$ac_compile") 2>conftest.er1
|
|
4135 |
ac_status=$?
|
|
4136 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4137 |
rm -f conftest.er1
|
|
4138 |
cat conftest.err >&5
|
|
4139 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4140 |
(exit $ac_status); } && {
|
|
4141 |
test -z "$ac_c_werror_flag" ||
|
|
4142 |
test ! -s conftest.err
|
|
4143 |
} && test -s conftest.$ac_objext; then
|
1566 | 4144 |
ac_cv_header_stdc=yes
|
1567 | 4145 |
else
|
1568 | |
echo "$ac_err" >&5
|
1569 | |
echo "configure: failed program was:" >&5
|
1570 | |
cat conftest.$ac_ext >&5
|
1571 | |
rm -rf conftest*
|
1572 | |
ac_cv_header_stdc=no
|
1573 | |
fi
|
1574 | |
rm -f conftest*
|
|
4146 |
echo "$as_me: failed program was:" >&5
|
|
4147 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4148 |
|
|
4149 |
ac_cv_header_stdc=no
|
|
4150 |
fi
|
|
4151 |
|
|
4152 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
1575 | 4153 |
|
1576 | 4154 |
if test $ac_cv_header_stdc = yes; then
|
1577 | 4155 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
1578 | |
cat > conftest.$ac_ext <<EOF
|
1579 | |
#line 1581 "configure"
|
1580 | |
#include "confdefs.h"
|
|
4156 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4157 |
/* confdefs.h. */
|
|
4158 |
_ACEOF
|
|
4159 |
cat confdefs.h >>conftest.$ac_ext
|
|
4160 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4161 |
/* end confdefs.h. */
|
1581 | 4162 |
#include <string.h>
|
1582 | |
EOF
|
|
4163 |
|
|
4164 |
_ACEOF
|
1583 | 4165 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1584 | |
egrep "memchr" >/dev/null 2>&1; then
|
|
4166 |
$EGREP "memchr" >/dev/null 2>&1; then
|
1585 | 4167 |
:
|
1586 | 4168 |
else
|
1587 | |
rm -rf conftest*
|
1588 | 4169 |
ac_cv_header_stdc=no
|
1589 | 4170 |
fi
|
1590 | 4171 |
rm -f conftest*
|
|
1593 | 4174 |
|
1594 | 4175 |
if test $ac_cv_header_stdc = yes; then
|
1595 | 4176 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
1596 | |
cat > conftest.$ac_ext <<EOF
|
1597 | |
#line 1599 "configure"
|
1598 | |
#include "confdefs.h"
|
|
4177 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4178 |
/* confdefs.h. */
|
|
4179 |
_ACEOF
|
|
4180 |
cat confdefs.h >>conftest.$ac_ext
|
|
4181 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4182 |
/* end confdefs.h. */
|
1599 | 4183 |
#include <stdlib.h>
|
1600 | |
EOF
|
|
4184 |
|
|
4185 |
_ACEOF
|
1601 | 4186 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1602 | |
egrep "free" >/dev/null 2>&1; then
|
|
4187 |
$EGREP "free" >/dev/null 2>&1; then
|
1603 | 4188 |
:
|
1604 | 4189 |
else
|
1605 | |
rm -rf conftest*
|
1606 | 4190 |
ac_cv_header_stdc=no
|
1607 | 4191 |
fi
|
1608 | 4192 |
rm -f conftest*
|
|
1611 | 4195 |
|
1612 | 4196 |
if test $ac_cv_header_stdc = yes; then
|
1613 | 4197 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
1614 | |
if test "$cross_compiling" = yes; then
|
|
4198 |
if test "$cross_compiling" = yes; then
|
1615 | 4199 |
:
|
1616 | 4200 |
else
|
1617 | |
cat > conftest.$ac_ext <<EOF
|
1618 | |
#line 1620 "configure"
|
1619 | |
#include "confdefs.h"
|
|
4201 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4202 |
/* confdefs.h. */
|
|
4203 |
_ACEOF
|
|
4204 |
cat confdefs.h >>conftest.$ac_ext
|
|
4205 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4206 |
/* end confdefs.h. */
|
1620 | 4207 |
#include <ctype.h>
|
1621 | |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
1622 | |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
4208 |
#include <stdlib.h>
|
|
4209 |
#if ((' ' & 0x0FF) == 0x020)
|
|
4210 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
4211 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
4212 |
#else
|
|
4213 |
# define ISLOWER(c) \
|
|
4214 |
(('a' <= (c) && (c) <= 'i') \
|
|
4215 |
|| ('j' <= (c) && (c) <= 'r') \
|
|
4216 |
|| ('s' <= (c) && (c) <= 'z'))
|
|
4217 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
4218 |
#endif
|
|
4219 |
|
1623 | 4220 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
1624 | |
int main () { int i; for (i = 0; i < 256; i++)
|
1625 | |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
1626 | |
exit (0); }
|
1627 | |
|
1628 | |
EOF
|
1629 | |
if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1630 | |
then
|
|
4221 |
int
|
|
4222 |
main ()
|
|
4223 |
{
|
|
4224 |
int i;
|
|
4225 |
for (i = 0; i < 256; i++)
|
|
4226 |
if (XOR (islower (i), ISLOWER (i))
|
|
4227 |
|| toupper (i) != TOUPPER (i))
|
|
4228 |
return 2;
|
|
4229 |
return 0;
|
|
4230 |
}
|
|
4231 |
_ACEOF
|
|
4232 |
rm -f conftest$ac_exeext
|
|
4233 |
if { (ac_try="$ac_link"
|
|
4234 |
case "(($ac_try" in
|
|
4235 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4236 |
*) ac_try_echo=$ac_try;;
|
|
4237 |
esac
|
|
4238 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4239 |
(eval "$ac_link") 2>&5
|
|
4240 |
ac_status=$?
|
|
4241 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4242 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
4243 |
{ (case "(($ac_try" in
|
|
4244 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4245 |
*) ac_try_echo=$ac_try;;
|
|
4246 |
esac
|
|
4247 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4248 |
(eval "$ac_try") 2>&5
|
|
4249 |
ac_status=$?
|
|
4250 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4251 |
(exit $ac_status); }; }; then
|
1631 | 4252 |
:
|
1632 | 4253 |
else
|
1633 | |
echo "configure: failed program was:" >&5
|
1634 | |
cat conftest.$ac_ext >&5
|
1635 | |
rm -fr conftest*
|
1636 | |
ac_cv_header_stdc=no
|
1637 | |
fi
|
1638 | |
rm -fr conftest*
|
1639 | |
fi
|
1640 | |
|
1641 | |
fi
|
1642 | |
fi
|
1643 | |
|
1644 | |
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
4254 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
4255 |
echo "$as_me: failed program was:" >&5
|
|
4256 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4257 |
|
|
4258 |
( exit $ac_status )
|
|
4259 |
ac_cv_header_stdc=no
|
|
4260 |
fi
|
|
4261 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
4262 |
fi
|
|
4263 |
|
|
4264 |
|
|
4265 |
fi
|
|
4266 |
fi
|
|
4267 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
4268 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
1645 | 4269 |
if test $ac_cv_header_stdc = yes; then
|
1646 | |
cat >> confdefs.h <<\EOF
|
|
4270 |
|
|
4271 |
cat >>confdefs.h <<\_ACEOF
|
1647 | 4272 |
#define STDC_HEADERS 1
|
1648 | |
EOF
|
1649 | |
|
1650 | |
fi
|
1651 | |
|
1652 | |
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
1653 | |
echo "configure:1655: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
1654 | |
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
1655 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1656 | |
else
|
1657 | |
cat > conftest.$ac_ext <<EOF
|
1658 | |
#line 1660 "configure"
|
1659 | |
#include "confdefs.h"
|
|
4273 |
_ACEOF
|
|
4274 |
|
|
4275 |
fi
|
|
4276 |
|
|
4277 |
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
4278 |
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
|
|
4279 |
if test "${ac_cv_header_sys_wait_h+set}" = set; then
|
|
4280 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4281 |
else
|
|
4282 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4283 |
/* confdefs.h. */
|
|
4284 |
_ACEOF
|
|
4285 |
cat confdefs.h >>conftest.$ac_ext
|
|
4286 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4287 |
/* end confdefs.h. */
|
1660 | 4288 |
#include <sys/types.h>
|
1661 | 4289 |
#include <sys/wait.h>
|
1662 | 4290 |
#ifndef WEXITSTATUS
|
1663 | |
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
4291 |
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
|
1664 | 4292 |
#endif
|
1665 | 4293 |
#ifndef WIFEXITED
|
1666 | |
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
4294 |
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
1667 | 4295 |
#endif
|
1668 | |
int main() {
|
1669 | |
int s;
|
1670 | |
wait (&s);
|
1671 | |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
1672 | |
; return 0; }
|
1673 | |
EOF
|
1674 | |
if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1675 | |
rm -rf conftest*
|
|
4296 |
|
|
4297 |
int
|
|
4298 |
main ()
|
|
4299 |
{
|
|
4300 |
int s;
|
|
4301 |
wait (&s);
|
|
4302 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
4303 |
;
|
|
4304 |
return 0;
|
|
4305 |
}
|
|
4306 |
_ACEOF
|
|
4307 |
rm -f conftest.$ac_objext
|
|
4308 |
if { (ac_try="$ac_compile"
|
|
4309 |
case "(($ac_try" in
|
|
4310 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4311 |
*) ac_try_echo=$ac_try;;
|
|
4312 |
esac
|
|
4313 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4314 |
(eval "$ac_compile") 2>conftest.er1
|
|
4315 |
ac_status=$?
|
|
4316 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4317 |
rm -f conftest.er1
|
|
4318 |
cat conftest.err >&5
|
|
4319 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4320 |
(exit $ac_status); } && {
|
|
4321 |
test -z "$ac_c_werror_flag" ||
|
|
4322 |
test ! -s conftest.err
|
|
4323 |
} && test -s conftest.$ac_objext; then
|
1676 | 4324 |
ac_cv_header_sys_wait_h=yes
|
1677 | 4325 |
else
|
1678 | |
echo "configure: failed program was:" >&5
|
1679 | |
cat conftest.$ac_ext >&5
|
1680 | |
rm -rf conftest*
|
1681 | |
ac_cv_header_sys_wait_h=no
|
1682 | |
fi
|
1683 | |
rm -f conftest*
|
1684 | |
fi
|
1685 | |
|
1686 | |
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
4326 |
echo "$as_me: failed program was:" >&5
|
|
4327 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4328 |
|
|
4329 |
ac_cv_header_sys_wait_h=no
|
|
4330 |
fi
|
|
4331 |
|
|
4332 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4333 |
fi
|
|
4334 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
|
|
4335 |
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
|
1687 | 4336 |
if test $ac_cv_header_sys_wait_h = yes; then
|
1688 | |
cat >> confdefs.h <<\EOF
|
|
4337 |
|
|
4338 |
cat >>confdefs.h <<\_ACEOF
|
1689 | 4339 |
#define HAVE_SYS_WAIT_H 1
|
1690 | |
EOF
|
1691 | |
|
1692 | |
fi
|
1693 | |
|
1694 | |
for ac_hdr in fcntl.h sys/ioctl.h unistd.h
|
|
4340 |
_ACEOF
|
|
4341 |
|
|
4342 |
fi
|
|
4343 |
|
|
4344 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
4345 |
|
|
4346 |
|
|
4347 |
|
|
4348 |
|
|
4349 |
|
|
4350 |
|
|
4351 |
|
|
4352 |
|
|
4353 |
|
|
4354 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
4355 |
inttypes.h stdint.h unistd.h
|
1695 | 4356 |
do
|
1696 | |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
1697 | |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1698 | |
echo "configure:1700: checking for $ac_hdr" >&5
|
1699 | |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1700 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1701 | |
else
|
1702 | |
cat > conftest.$ac_ext <<EOF
|
1703 | |
#line 1705 "configure"
|
1704 | |
#include "confdefs.h"
|
1705 | |
#include <$ac_hdr>
|
1706 | |
EOF
|
1707 | |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1708 | |
{ (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1709 | |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1710 | |
if test -z "$ac_err"; then
|
1711 | |
rm -rf conftest*
|
1712 | |
eval "ac_cv_header_$ac_safe=yes"
|
1713 | |
else
|
1714 | |
echo "$ac_err" >&5
|
1715 | |
echo "configure: failed program was:" >&5
|
1716 | |
cat conftest.$ac_ext >&5
|
1717 | |
rm -rf conftest*
|
1718 | |
eval "ac_cv_header_$ac_safe=no"
|
1719 | |
fi
|
1720 | |
rm -f conftest*
|
1721 | |
fi
|
1722 | |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
1723 | |
echo "$ac_t""yes" 1>&6
|
1724 | |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
1725 | |
cat >> confdefs.h <<EOF
|
1726 | |
#define $ac_tr_hdr 1
|
1727 | |
EOF
|
1728 | |
|
1729 | |
else
|
1730 | |
echo "$ac_t""no" 1>&6
|
1731 | |
fi
|
|
4357 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
4358 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
4359 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
4360 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
4361 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4362 |
else
|
|
4363 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4364 |
/* confdefs.h. */
|
|
4365 |
_ACEOF
|
|
4366 |
cat confdefs.h >>conftest.$ac_ext
|
|
4367 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4368 |
/* end confdefs.h. */
|
|
4369 |
$ac_includes_default
|
|
4370 |
|
|
4371 |
#include <$ac_header>
|
|
4372 |
_ACEOF
|
|
4373 |
rm -f conftest.$ac_objext
|
|
4374 |
if { (ac_try="$ac_compile"
|
|
4375 |
case "(($ac_try" in
|
|
4376 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4377 |
*) ac_try_echo=$ac_try;;
|
|
4378 |
esac
|
|
4379 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4380 |
(eval "$ac_compile") 2>conftest.er1
|
|
4381 |
ac_status=$?
|
|
4382 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4383 |
rm -f conftest.er1
|
|
4384 |
cat conftest.err >&5
|
|
4385 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4386 |
(exit $ac_status); } && {
|
|
4387 |
test -z "$ac_c_werror_flag" ||
|
|
4388 |
test ! -s conftest.err
|
|
4389 |
} && test -s conftest.$ac_objext; then
|
|
4390 |
eval "$as_ac_Header=yes"
|
|
4391 |
else
|
|
4392 |
echo "$as_me: failed program was:" >&5
|
|
4393 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4394 |
|
|
4395 |
eval "$as_ac_Header=no"
|
|
4396 |
fi
|
|
4397 |
|
|
4398 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4399 |
fi
|
|
4400 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
4401 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
4402 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
4403 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
4404 |
cat >>confdefs.h <<_ACEOF
|
|
4405 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
4406 |
_ACEOF
|
|
4407 |
|
|
4408 |
fi
|
|
4409 |
|
1732 | 4410 |
done
|
1733 | 4411 |
|
1734 | 4412 |
|
1735 | |
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1736 | |
echo "configure:1738: checking for working const" >&5
|
1737 | |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
1738 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1739 | |
else
|
1740 | |
cat > conftest.$ac_ext <<EOF
|
1741 | |
#line 1743 "configure"
|
1742 | |
#include "confdefs.h"
|
1743 | |
|
1744 | |
int main() {
|
1745 | |
|
1746 | |
/* Ultrix mips cc rejects this. */
|
1747 | |
typedef int charset[2]; const charset x;
|
1748 | |
/* SunOS 4.1.1 cc rejects this. */
|
1749 | |
char const *const *ccp;
|
1750 | |
char **p;
|
1751 | |
/* NEC SVR4.0.2 mips cc rejects this. */
|
1752 | |
struct point {int x, y;};
|
1753 | |
static struct point const zero = {0,0};
|
1754 | |
/* AIX XL C 1.02.0.0 rejects this.
|
1755 | |
It does not let you subtract one const X* pointer from another in an arm
|
1756 | |
of an if-expression whose if-part is not a constant expression */
|
1757 | |
const char *g = "string";
|
1758 | |
ccp = &g + (g ? g-g : 0);
|
1759 | |
/* HPUX 7.0 cc rejects these. */
|
1760 | |
++ccp;
|
1761 | |
p = (char**) ccp;
|
1762 | |
ccp = (char const *const *) p;
|
1763 | |
{ /* SCO 3.2v4 cc rejects this. */
|
1764 | |
char *t;
|
1765 | |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
1766 | |
|
1767 | |
*t++ = 0;
|
|
4413 |
|
|
4414 |
|
|
4415 |
|
|
4416 |
for ac_header in fcntl.h sys/ioctl.h unistd.h
|
|
4417 |
do
|
|
4418 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
4419 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
4420 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
4421 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
4422 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
4423 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4424 |
fi
|
|
4425 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
4426 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
4427 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
4428 |
else
|
|
4429 |
# Is the header compilable?
|
|
4430 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
4431 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
|
4432 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4433 |
/* confdefs.h. */
|
|
4434 |
_ACEOF
|
|
4435 |
cat confdefs.h >>conftest.$ac_ext
|
|
4436 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4437 |
/* end confdefs.h. */
|
|
4438 |
$ac_includes_default
|
|
4439 |
#include <$ac_header>
|
|
4440 |
_ACEOF
|
|
4441 |
rm -f conftest.$ac_objext
|
|
4442 |
if { (ac_try="$ac_compile"
|
|
4443 |
case "(($ac_try" in
|
|
4444 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4445 |
*) ac_try_echo=$ac_try;;
|
|
4446 |
esac
|
|
4447 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4448 |
(eval "$ac_compile") 2>conftest.er1
|
|
4449 |
ac_status=$?
|
|
4450 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4451 |
rm -f conftest.er1
|
|
4452 |
cat conftest.err >&5
|
|
4453 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4454 |
(exit $ac_status); } && {
|
|
4455 |
test -z "$ac_c_werror_flag" ||
|
|
4456 |
test ! -s conftest.err
|
|
4457 |
} && test -s conftest.$ac_objext; then
|
|
4458 |
ac_header_compiler=yes
|
|
4459 |
else
|
|
4460 |
echo "$as_me: failed program was:" >&5
|
|
4461 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4462 |
|
|
4463 |
ac_header_compiler=no
|
|
4464 |
fi
|
|
4465 |
|
|
4466 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4467 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
4468 |
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
4469 |
|
|
4470 |
# Is the header present?
|
|
4471 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
4472 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
|
4473 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4474 |
/* confdefs.h. */
|
|
4475 |
_ACEOF
|
|
4476 |
cat confdefs.h >>conftest.$ac_ext
|
|
4477 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4478 |
/* end confdefs.h. */
|
|
4479 |
#include <$ac_header>
|
|
4480 |
_ACEOF
|
|
4481 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
4482 |
case "(($ac_try" in
|
|
4483 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4484 |
*) ac_try_echo=$ac_try;;
|
|
4485 |
esac
|
|
4486 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4487 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
4488 |
ac_status=$?
|
|
4489 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4490 |
rm -f conftest.er1
|
|
4491 |
cat conftest.err >&5
|
|
4492 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4493 |
(exit $ac_status); } >/dev/null && {
|
|
4494 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
4495 |
test ! -s conftest.err
|
|
4496 |
}; then
|
|
4497 |
ac_header_preproc=yes
|
|
4498 |
else
|
|
4499 |
echo "$as_me: failed program was:" >&5
|
|
4500 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4501 |
|
|
4502 |
ac_header_preproc=no
|
|
4503 |
fi
|
|
4504 |
|
|
4505 |
rm -f conftest.err conftest.$ac_ext
|
|
4506 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
4507 |
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
4508 |
|
|
4509 |
# So? What about this header?
|
|
4510 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
4511 |
yes:no: )
|
|
4512 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
4513 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
4514 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
4515 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
4516 |
ac_header_preproc=yes
|
|
4517 |
;;
|
|
4518 |
no:yes:* )
|
|
4519 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
4520 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
4521 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
4522 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
4523 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
4524 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
4525 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
4526 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
4527 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
4528 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
4529 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
4530 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
4531 |
|
|
4532 |
;;
|
|
4533 |
esac
|
|
4534 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
4535 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
4536 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
4537 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4538 |
else
|
|
4539 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
4540 |
fi
|
|
4541 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
4542 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
4543 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
4544 |
|
|
4545 |
fi
|
|
4546 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
4547 |
cat >>confdefs.h <<_ACEOF
|
|
4548 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
4549 |
_ACEOF
|
|
4550 |
|
|
4551 |
fi
|
|
4552 |
|
|
4553 |
done
|
|
4554 |
|
|
4555 |
|
|
4556 |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
|
4557 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
|
4558 |
if test "${ac_cv_c_const+set}" = set; then
|
|
4559 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4560 |
else
|
|
4561 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4562 |
/* confdefs.h. */
|
|
4563 |
_ACEOF
|
|
4564 |
cat confdefs.h >>conftest.$ac_ext
|
|
4565 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4566 |
/* end confdefs.h. */
|
|
4567 |
|
|
4568 |
int
|
|
4569 |
main ()
|
|
4570 |
{
|
|
4571 |
/* FIXME: Include the comments suggested by Paul. */
|
|
4572 |
#ifndef __cplusplus
|
|
4573 |
/* Ultrix mips cc rejects this. */
|
|
4574 |
typedef int charset[2];
|
|
4575 |
const charset cs;
|
|
4576 |
/* SunOS 4.1.1 cc rejects this. */
|
|
4577 |
char const *const *pcpcc;
|
|
4578 |
char **ppc;
|
|
4579 |
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
4580 |
struct point {int x, y;};
|
|
4581 |
static struct point const zero = {0,0};
|
|
4582 |
/* AIX XL C 1.02.0.0 rejects this.
|
|
4583 |
It does not let you subtract one const X* pointer from another in
|
|
4584 |
an arm of an if-expression whose if-part is not a constant
|
|
4585 |
expression */
|
|
4586 |
const char *g = "string";
|
|
4587 |
pcpcc = &g + (g ? g-g : 0);
|
|
4588 |
/* HPUX 7.0 cc rejects these. */
|
|
4589 |
++pcpcc;
|
|
4590 |
ppc = (char**) pcpcc;
|
|
4591 |
pcpcc = (char const *const *) ppc;
|
|
4592 |
{ /* SCO 3.2v4 cc rejects this. */
|
|
4593 |
char *t;
|
|
4594 |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4595 |
|
|
4596 |
*t++ = 0;
|
|
4597 |
if (s) return 0;
|
|
4598 |
}
|
|
4599 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
4600 |
int x[] = {25, 17};
|
|
4601 |
const int *foo = &x[0];
|
|
4602 |
++foo;
|
|
4603 |
}
|
|
4604 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4605 |
typedef const int *iptr;
|
|
4606 |
iptr p = 0;
|
|
4607 |
++p;
|
|
4608 |
}
|
|
4609 |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
4610 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4611 |
struct s { int j; const int *ap[3]; };
|
|
4612 |
struct s *b; b->j = 5;
|
|
4613 |
}
|
|
4614 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4615 |
const int foo = 10;
|
|
4616 |
if (!foo) return 0;
|
|
4617 |
}
|
|
4618 |
return !cs[0] && !zero.x;
|
|
4619 |
#endif
|
|
4620 |
|
|
4621 |
;
|
|
4622 |
return 0;
|
1768 | 4623 |
}
|
1769 | |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
1770 | |
int x[] = {25, 17};
|
1771 | |
const int *foo = &x[0];
|
1772 | |
++foo;
|
|
4624 |
_ACEOF
|
|
4625 |
rm -f conftest.$ac_objext
|
|
4626 |
if { (ac_try="$ac_compile"
|
|
4627 |
case "(($ac_try" in
|
|
4628 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4629 |
*) ac_try_echo=$ac_try;;
|
|
4630 |
esac
|
|
4631 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4632 |
(eval "$ac_compile") 2>conftest.er1
|
|
4633 |
ac_status=$?
|
|
4634 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4635 |
rm -f conftest.er1
|
|
4636 |
cat conftest.err >&5
|
|
4637 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4638 |
(exit $ac_status); } && {
|
|
4639 |
test -z "$ac_c_werror_flag" ||
|
|
4640 |
test ! -s conftest.err
|
|
4641 |
} && test -s conftest.$ac_objext; then
|
|
4642 |
ac_cv_c_const=yes
|
|
4643 |
else
|
|
4644 |
echo "$as_me: failed program was:" >&5
|
|
4645 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4646 |
|
|
4647 |
ac_cv_c_const=no
|
|
4648 |
fi
|
|
4649 |
|
|
4650 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4651 |
fi
|
|
4652 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
|
4653 |
echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
|
4654 |
if test $ac_cv_c_const = no; then
|
|
4655 |
|
|
4656 |
cat >>confdefs.h <<\_ACEOF
|
|
4657 |
#define const
|
|
4658 |
_ACEOF
|
|
4659 |
|
|
4660 |
fi
|
|
4661 |
|
|
4662 |
{ echo "$as_me:$LINENO: checking for mode_t" >&5
|
|
4663 |
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
|
|
4664 |
if test "${ac_cv_type_mode_t+set}" = set; then
|
|
4665 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4666 |
else
|
|
4667 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4668 |
/* confdefs.h. */
|
|
4669 |
_ACEOF
|
|
4670 |
cat confdefs.h >>conftest.$ac_ext
|
|
4671 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4672 |
/* end confdefs.h. */
|
|
4673 |
$ac_includes_default
|
|
4674 |
typedef mode_t ac__type_new_;
|
|
4675 |
int
|
|
4676 |
main ()
|
|
4677 |
{
|
|
4678 |
if ((ac__type_new_ *) 0)
|
|
4679 |
return 0;
|
|
4680 |
if (sizeof (ac__type_new_))
|
|
4681 |
return 0;
|
|
4682 |
;
|
|
4683 |
return 0;
|
1773 | 4684 |
}
|
1774 | |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
1775 | |
typedef const int *iptr;
|
1776 | |
iptr p = 0;
|
1777 | |
++p;
|
|
4685 |
_ACEOF
|
|
4686 |
rm -f conftest.$ac_objext
|
|
4687 |
if { (ac_try="$ac_compile"
|
|
4688 |
case "(($ac_try" in
|
|
4689 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4690 |
*) ac_try_echo=$ac_try;;
|
|
4691 |
esac
|
|
4692 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4693 |
(eval "$ac_compile") 2>conftest.er1
|
|
4694 |
ac_status=$?
|
|
4695 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4696 |
rm -f conftest.er1
|
|
4697 |
cat conftest.err >&5
|
|
4698 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4699 |
(exit $ac_status); } && {
|
|
4700 |
test -z "$ac_c_werror_flag" ||
|
|
4701 |
test ! -s conftest.err
|
|
4702 |
} && test -s conftest.$ac_objext; then
|
|
4703 |
ac_cv_type_mode_t=yes
|
|
4704 |
else
|
|
4705 |
echo "$as_me: failed program was:" >&5
|
|
4706 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4707 |
|
|
4708 |
ac_cv_type_mode_t=no
|
|
4709 |
fi
|
|
4710 |
|
|
4711 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4712 |
fi
|
|
4713 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
|
|
4714 |
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
|
|
4715 |
if test $ac_cv_type_mode_t = yes; then
|
|
4716 |
:
|
|
4717 |
else
|
|
4718 |
|
|
4719 |
cat >>confdefs.h <<_ACEOF
|
|
4720 |
#define mode_t int
|
|
4721 |
_ACEOF
|
|
4722 |
|
|
4723 |
fi
|
|
4724 |
|
|
4725 |
{ echo "$as_me:$LINENO: checking for pid_t" >&5
|
|
4726 |
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
|
|
4727 |
if test "${ac_cv_type_pid_t+set}" = set; then
|
|
4728 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4729 |
else
|
|
4730 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4731 |
/* confdefs.h. */
|
|
4732 |
_ACEOF
|
|
4733 |
cat confdefs.h >>conftest.$ac_ext
|
|
4734 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4735 |
/* end confdefs.h. */
|
|
4736 |
$ac_includes_default
|
|
4737 |
typedef pid_t ac__type_new_;
|
|
4738 |
int
|
|
4739 |
main ()
|
|
4740 |
{
|
|
4741 |
if ((ac__type_new_ *) 0)
|
|
4742 |
return 0;
|
|
4743 |
if (sizeof (ac__type_new_))
|
|
4744 |
return 0;
|
|
4745 |
;
|
|
4746 |
return 0;
|
1778 | 4747 |
}
|
1779 | |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
1780 | |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
1781 | |
struct s { int j; const int *ap[3]; };
|
1782 | |
struct s *b; b->j = 5;
|
|
4748 |
_ACEOF
|
|
4749 |
rm -f conftest.$ac_objext
|
|
4750 |
if { (ac_try="$ac_compile"
|
|
4751 |
case "(($ac_try" in
|
|
4752 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4753 |
*) ac_try_echo=$ac_try;;
|
|
4754 |
esac
|
|
4755 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4756 |
(eval "$ac_compile") 2>conftest.er1
|
|
4757 |
ac_status=$?
|
|
4758 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4759 |
rm -f conftest.er1
|
|
4760 |
cat conftest.err >&5
|
|
4761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4762 |
(exit $ac_status); } && {
|
|
4763 |
test -z "$ac_c_werror_flag" ||
|
|
4764 |
test ! -s conftest.err
|
|
4765 |
} && test -s conftest.$ac_objext; then
|
|
4766 |
ac_cv_type_pid_t=yes
|
|
4767 |
else
|
|
4768 |
echo "$as_me: failed program was:" >&5
|
|
4769 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4770 |
|
|
4771 |
ac_cv_type_pid_t=no
|
|
4772 |
fi
|
|
4773 |
|
|
4774 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4775 |
fi
|
|
4776 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
|
|
4777 |
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
|
|
4778 |
if test $ac_cv_type_pid_t = yes; then
|
|
4779 |
:
|
|
4780 |
else
|
|
4781 |
|
|
4782 |
cat >>confdefs.h <<_ACEOF
|
|
4783 |
#define pid_t int
|
|
4784 |
_ACEOF
|
|
4785 |
|
|
4786 |
fi
|
|
4787 |
|
|
4788 |
{ echo "$as_me:$LINENO: checking for size_t" >&5
|
|
4789 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
|
4790 |
if test "${ac_cv_type_size_t+set}" = set; then
|
|
4791 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4792 |
else
|
|
4793 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4794 |
/* confdefs.h. */
|
|
4795 |
_ACEOF
|
|
4796 |
cat confdefs.h >>conftest.$ac_ext
|
|
4797 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4798 |
/* end confdefs.h. */
|
|
4799 |
$ac_includes_default
|
|
4800 |
typedef size_t ac__type_new_;
|
|
4801 |
int
|
|
4802 |
main ()
|
|
4803 |
{
|
|
4804 |
if ((ac__type_new_ *) 0)
|
|
4805 |
return 0;
|
|
4806 |
if (sizeof (ac__type_new_))
|
|
4807 |
return 0;
|
|
4808 |
;
|
|
4809 |
return 0;
|
1783 | 4810 |
}
|
1784 | |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
1785 | |
const int foo = 10;
|
|
4811 |
_ACEOF
|
|
4812 |
rm -f conftest.$ac_objext
|
|
4813 |
if { (ac_try="$ac_compile"
|
|
4814 |
case "(($ac_try" in
|
|
4815 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4816 |
*) ac_try_echo=$ac_try;;
|
|
4817 |
esac
|
|
4818 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4819 |
(eval "$ac_compile") 2>conftest.er1
|
|
4820 |
ac_status=$?
|
|
4821 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4822 |
rm -f conftest.er1
|
|
4823 |
cat conftest.err >&5
|
|
4824 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4825 |
(exit $ac_status); } && {
|
|
4826 |
test -z "$ac_c_werror_flag" ||
|
|
4827 |
test ! -s conftest.err
|
|
4828 |
} && test -s conftest.$ac_objext; then
|
|
4829 |
ac_cv_type_size_t=yes
|
|
4830 |
else
|
|
4831 |
echo "$as_me: failed program was:" >&5
|
|
4832 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4833 |
|
|
4834 |
ac_cv_type_size_t=no
|
|
4835 |
fi
|
|
4836 |
|
|
4837 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4838 |
fi
|
|
4839 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
|
4840 |
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
|
4841 |
if test $ac_cv_type_size_t = yes; then
|
|
4842 |
:
|
|
4843 |
else
|
|
4844 |
|
|
4845 |
cat >>confdefs.h <<_ACEOF
|
|
4846 |
#define size_t unsigned int
|
|
4847 |
_ACEOF
|
|
4848 |
|
|
4849 |
fi
|
|
4850 |
|
|
4851 |
|
|
4852 |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
|
4853 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
|
4854 |
if test "${ac_cv_c_const+set}" = set; then
|
|
4855 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4856 |
else
|
|
4857 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4858 |
/* confdefs.h. */
|
|
4859 |
_ACEOF
|
|
4860 |
cat confdefs.h >>conftest.$ac_ext
|
|
4861 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4862 |
/* end confdefs.h. */
|
|
4863 |
|
|
4864 |
int
|
|
4865 |
main ()
|
|
4866 |
{
|
|
4867 |
/* FIXME: Include the comments suggested by Paul. */
|
|
4868 |
#ifndef __cplusplus
|
|
4869 |
/* Ultrix mips cc rejects this. */
|
|
4870 |
typedef int charset[2];
|
|
4871 |
const charset cs;
|
|
4872 |
/* SunOS 4.1.1 cc rejects this. */
|
|
4873 |
char const *const *pcpcc;
|
|
4874 |
char **ppc;
|
|
4875 |
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
4876 |
struct point {int x, y;};
|
|
4877 |
static struct point const zero = {0,0};
|
|
4878 |
/* AIX XL C 1.02.0.0 rejects this.
|
|
4879 |
It does not let you subtract one const X* pointer from another in
|
|
4880 |
an arm of an if-expression whose if-part is not a constant
|
|
4881 |
expression */
|
|
4882 |
const char *g = "string";
|
|
4883 |
pcpcc = &g + (g ? g-g : 0);
|
|
4884 |
/* HPUX 7.0 cc rejects these. */
|
|
4885 |
++pcpcc;
|
|
4886 |
ppc = (char**) pcpcc;
|
|
4887 |
pcpcc = (char const *const *) ppc;
|
|
4888 |
{ /* SCO 3.2v4 cc rejects this. */
|
|
4889 |
char *t;
|
|
4890 |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4891 |
|
|
4892 |
*t++ = 0;
|
|
4893 |
if (s) return 0;
|
|
4894 |
}
|
|
4895 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
4896 |
int x[] = {25, 17};
|
|
4897 |
const int *foo = &x[0];
|
|
4898 |
++foo;
|
|
4899 |
}
|
|
4900 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4901 |
typedef const int *iptr;
|
|
4902 |
iptr p = 0;
|
|
4903 |
++p;
|
|
4904 |
}
|
|
4905 |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
4906 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4907 |
struct s { int j; const int *ap[3]; };
|
|
4908 |
struct s *b; b->j = 5;
|
|
4909 |
}
|
|
4910 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4911 |
const int foo = 10;
|
|
4912 |
if (!foo) return 0;
|
|
4913 |
}
|
|
4914 |
return !cs[0] && !zero.x;
|
|
4915 |
#endif
|
|
4916 |
|
|
4917 |
;
|
|
4918 |
return 0;
|
1786 | 4919 |
}
|
1787 | |
|
1788 | |
; return 0; }
|
1789 | |
EOF
|
1790 | |
if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1791 | |
rm -rf conftest*
|
|
4920 |
_ACEOF
|
|
4921 |
rm -f conftest.$ac_objext
|
|
4922 |
if { (ac_try="$ac_compile"
|
|
4923 |
case "(($ac_try" in
|
|
4924 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4925 |
*) ac_try_echo=$ac_try;;
|
|
4926 |
esac
|
|
4927 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4928 |
(eval "$ac_compile") 2>conftest.er1
|
|
4929 |
ac_status=$?
|
|
4930 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4931 |
rm -f conftest.er1
|
|
4932 |
cat conftest.err >&5
|
|
4933 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4934 |
(exit $ac_status); } && {
|
|
4935 |
test -z "$ac_c_werror_flag" ||
|
|
4936 |
test ! -s conftest.err
|
|
4937 |
} && test -s conftest.$ac_objext; then
|
1792 | 4938 |
ac_cv_c_const=yes
|
1793 | 4939 |
else
|
1794 | |
echo "configure: failed program was:" >&5
|
1795 | |
cat conftest.$ac_ext >&5
|
1796 | |
rm -rf conftest*
|
1797 | |
ac_cv_c_const=no
|
1798 | |
fi
|
1799 | |
rm -f conftest*
|
1800 | |
fi
|
1801 | |
|
1802 | |
echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4940 |
echo "$as_me: failed program was:" >&5
|
|
4941 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4942 |
|
|
4943 |
ac_cv_c_const=no
|
|
4944 |
fi
|
|
4945 |
|
|
4946 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4947 |
fi
|
|
4948 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
|
4949 |
echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
1803 | 4950 |
if test $ac_cv_c_const = no; then
|
1804 | |
cat >> confdefs.h <<\EOF
|
1805 | |
#define const
|
1806 | |
EOF
|
1807 | |
|
1808 | |
fi
|
1809 | |
|
1810 | |
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
1811 | |
echo "configure:1813: checking for mode_t" >&5
|
1812 | |
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
1813 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1814 | |
else
|
1815 | |
cat > conftest.$ac_ext <<EOF
|
1816 | |
#line 1818 "configure"
|
1817 | |
#include "confdefs.h"
|
1818 | |
#include <sys/types.h>
|
1819 | |
#if STDC_HEADERS
|
1820 | |
#include <stdlib.h>
|
1821 | |
#include <stddef.h>
|
1822 | |
#endif
|
1823 | |
EOF
|
1824 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1825 | |
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1826 | |
rm -rf conftest*
|
1827 | |
ac_cv_type_mode_t=yes
|
1828 | |
else
|
1829 | |
rm -rf conftest*
|
1830 | |
ac_cv_type_mode_t=no
|
1831 | |
fi
|
1832 | |
rm -f conftest*
|
1833 | |
|
1834 | |
fi
|
1835 | |
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
1836 | |
if test $ac_cv_type_mode_t = no; then
|
1837 | |
cat >> confdefs.h <<\EOF
|
1838 | |
#define mode_t int
|
1839 | |
EOF
|
1840 | |
|
1841 | |
fi
|
1842 | |
|
1843 | |
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
1844 | |
echo "configure:1846: checking for pid_t" >&5
|
1845 | |
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
1846 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1847 | |
else
|
1848 | |
cat > conftest.$ac_ext <<EOF
|
1849 | |
#line 1851 "configure"
|
1850 | |
#include "confdefs.h"
|
1851 | |
#include <sys/types.h>
|
1852 | |
#if STDC_HEADERS
|
1853 | |
#include <stdlib.h>
|
1854 | |
#include <stddef.h>
|
1855 | |
#endif
|
1856 | |
EOF
|
1857 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1858 | |
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1859 | |
rm -rf conftest*
|
1860 | |
ac_cv_type_pid_t=yes
|
1861 | |
else
|
1862 | |
rm -rf conftest*
|
1863 | |
ac_cv_type_pid_t=no
|
1864 | |
fi
|
1865 | |
rm -f conftest*
|
1866 | |
|
1867 | |
fi
|
1868 | |
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
1869 | |
if test $ac_cv_type_pid_t = no; then
|
1870 | |
cat >> confdefs.h <<\EOF
|
1871 | |
#define pid_t int
|
1872 | |
EOF
|
1873 | |
|
1874 | |
fi
|
1875 | |
|
1876 | |
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
1877 | |
echo "configure:1879: checking for size_t" >&5
|
1878 | |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
1879 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1880 | |
else
|
1881 | |
cat > conftest.$ac_ext <<EOF
|
1882 | |
#line 1884 "configure"
|
1883 | |
#include "confdefs.h"
|
1884 | |
#include <sys/types.h>
|
1885 | |
#if STDC_HEADERS
|
1886 | |
#include <stdlib.h>
|
1887 | |
#include <stddef.h>
|
1888 | |
#endif
|
1889 | |
EOF
|
1890 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1891 | |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1892 | |
rm -rf conftest*
|
1893 | |
ac_cv_type_size_t=yes
|
1894 | |
else
|
1895 | |
rm -rf conftest*
|
1896 | |
ac_cv_type_size_t=no
|
1897 | |
fi
|
1898 | |
rm -f conftest*
|
1899 | |
|
1900 | |
fi
|
1901 | |
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
1902 | |
if test $ac_cv_type_size_t = no; then
|
1903 | |
cat >> confdefs.h <<\EOF
|
1904 | |
#define size_t unsigned
|
1905 | |
EOF
|
1906 | |
|
1907 | |
fi
|
1908 | |
|
1909 | |
|
1910 | |
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1911 | |
echo "configure:1913: checking for working const" >&5
|
1912 | |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
1913 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
1914 | |
else
|
1915 | |
cat > conftest.$ac_ext <<EOF
|
1916 | |
#line 1918 "configure"
|
1917 | |
#include "confdefs.h"
|
1918 | |
|
1919 | |
int main() {
|
1920 | |
|
1921 | |
/* Ultrix mips cc rejects this. */
|
1922 | |
typedef int charset[2]; const charset x;
|
1923 | |
/* SunOS 4.1.1 cc rejects this. */
|
1924 | |
char const *const *ccp;
|
1925 | |
char **p;
|
1926 | |
/* NEC SVR4.0.2 mips cc rejects this. */
|
1927 | |
struct point {int x, y;};
|
1928 | |
static struct point const zero = {0,0};
|
1929 | |
/* AIX XL C 1.02.0.0 rejects this.
|
1930 | |
It does not let you subtract one const X* pointer from another in an arm
|
1931 | |
of an if-expression whose if-part is not a constant expression */
|
1932 | |
const char *g = "string";
|
1933 | |
ccp = &g + (g ? g-g : 0);
|
1934 | |
/* HPUX 7.0 cc rejects these. */
|
1935 | |
++ccp;
|
1936 | |
p = (char**) ccp;
|
1937 | |
ccp = (char const *const *) p;
|
1938 | |
{ /* SCO 3.2v4 cc rejects this. */
|
1939 | |
char *t;
|
1940 | |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
1941 | |
|
1942 | |
*t++ = 0;
|
1943 | |
}
|
1944 | |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
1945 | |
int x[] = {25, 17};
|
1946 | |
const int *foo = &x[0];
|
1947 | |
++foo;
|
1948 | |
}
|
1949 | |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
1950 | |
typedef const int *iptr;
|
1951 | |
iptr p = 0;
|
1952 | |
++p;
|
1953 | |
}
|
1954 | |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
1955 | |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
1956 | |
struct s { int j; const int *ap[3]; };
|
1957 | |
struct s *b; b->j = 5;
|
1958 | |
}
|
1959 | |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
1960 | |
const int foo = 10;
|
1961 | |
}
|
1962 | |
|
1963 | |
; return 0; }
|
1964 | |
EOF
|
1965 | |
if { (eval echo configure:1967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1966 | |
rm -rf conftest*
|
1967 | |
ac_cv_c_const=yes
|
1968 | |
else
|
1969 | |
echo "configure: failed program was:" >&5
|
1970 | |
cat conftest.$ac_ext >&5
|
1971 | |
rm -rf conftest*
|
1972 | |
ac_cv_c_const=no
|
1973 | |
fi
|
1974 | |
rm -f conftest*
|
1975 | |
fi
|
1976 | |
|
1977 | |
echo "$ac_t""$ac_cv_c_const" 1>&6
|
1978 | |
if test $ac_cv_c_const = no; then
|
1979 | |
cat >> confdefs.h <<\EOF
|
1980 | |
#define const
|
1981 | |
EOF
|
1982 | |
|
1983 | |
fi
|
1984 | |
|
1985 | |
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
1986 | |
echo "configure:1988: checking for inline" >&5
|
1987 | |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
1988 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
4951 |
|
|
4952 |
cat >>confdefs.h <<\_ACEOF
|
|
4953 |
#define const
|
|
4954 |
_ACEOF
|
|
4955 |
|
|
4956 |
fi
|
|
4957 |
|
|
4958 |
{ echo "$as_me:$LINENO: checking for inline" >&5
|
|
4959 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
|
|
4960 |
if test "${ac_cv_c_inline+set}" = set; then
|
|
4961 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1989 | 4962 |
else
|
1990 | 4963 |
ac_cv_c_inline=no
|
1991 | 4964 |
for ac_kw in inline __inline__ __inline; do
|
1992 | |
cat > conftest.$ac_ext <<EOF
|
1993 | |
#line 1995 "configure"
|
1994 | |
#include "confdefs.h"
|
1995 | |
|
1996 | |
int main() {
|
1997 | |
} $ac_kw foo() {
|
1998 | |
; return 0; }
|
1999 | |
EOF
|
2000 | |
if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001 | |
rm -rf conftest*
|
2002 | |
ac_cv_c_inline=$ac_kw; break
|
2003 | |
else
|
2004 | |
echo "configure: failed program was:" >&5
|
2005 | |
cat conftest.$ac_ext >&5
|
2006 | |
fi
|
2007 | |
rm -f conftest*
|
|
4965 |
cat >conftest.$ac_ext <<_ACEOF
|
|
4966 |
/* confdefs.h. */
|
|
4967 |
_ACEOF
|
|
4968 |
cat confdefs.h >>conftest.$ac_ext
|
|
4969 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
4970 |
/* end confdefs.h. */
|
|
4971 |
#ifndef __cplusplus
|
|
4972 |
typedef int foo_t;
|
|
4973 |
static $ac_kw foo_t static_foo () {return 0; }
|
|
4974 |
$ac_kw foo_t foo () {return 0; }
|
|
4975 |
#endif
|
|
4976 |
|
|
4977 |
_ACEOF
|
|
4978 |
rm -f conftest.$ac_objext
|
|
4979 |
if { (ac_try="$ac_compile"
|
|
4980 |
case "(($ac_try" in
|
|
4981 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4982 |
*) ac_try_echo=$ac_try;;
|
|
4983 |
esac
|
|
4984 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
4985 |
(eval "$ac_compile") 2>conftest.er1
|
|
4986 |
ac_status=$?
|
|
4987 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
4988 |
rm -f conftest.er1
|
|
4989 |
cat conftest.err >&5
|
|
4990 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
4991 |
(exit $ac_status); } && {
|
|
4992 |
test -z "$ac_c_werror_flag" ||
|
|
4993 |
test ! -s conftest.err
|
|
4994 |
} && test -s conftest.$ac_objext; then
|
|
4995 |
ac_cv_c_inline=$ac_kw
|
|
4996 |
else
|
|
4997 |
echo "$as_me: failed program was:" >&5
|
|
4998 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
4999 |
|
|
5000 |
|
|
5001 |
fi
|
|
5002 |
|
|
5003 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5004 |
test "$ac_cv_c_inline" != no && break
|
2008 | 5005 |
done
|
2009 | 5006 |
|
2010 | 5007 |
fi
|
2011 | |
|
2012 | |
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
2013 | |
case "$ac_cv_c_inline" in
|
|
5008 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
|
5009 |
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
|
|
5010 |
|
|
5011 |
|
|
5012 |
case $ac_cv_c_inline in
|
2014 | 5013 |
inline | yes) ;;
|
2015 | |
no) cat >> confdefs.h <<\EOF
|
2016 | |
#define inline
|
2017 | |
EOF
|
2018 | |
;;
|
2019 | |
*) cat >> confdefs.h <<EOF
|
2020 | |
#define inline $ac_cv_c_inline
|
2021 | |
EOF
|
2022 | |
;;
|
2023 | |
esac
|
2024 | |
|
2025 | |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
2026 | |
echo "configure:2028: checking whether time.h and sys/time.h may both be included" >&5
|
2027 | |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
2028 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
2029 | |
else
|
2030 | |
cat > conftest.$ac_ext <<EOF
|
2031 | |
#line 2033 "configure"
|
2032 | |
#include "confdefs.h"
|
|
5014 |
*)
|
|
5015 |
case $ac_cv_c_inline in
|
|
5016 |
no) ac_val=;;
|
|
5017 |
*) ac_val=$ac_cv_c_inline;;
|
|
5018 |
esac
|
|
5019 |
cat >>confdefs.h <<_ACEOF
|
|
5020 |
#ifndef __cplusplus
|
|
5021 |
#define inline $ac_val
|
|
5022 |
#endif
|
|
5023 |
_ACEOF
|
|
5024 |
;;
|
|
5025 |
esac
|
|
5026 |
|
|
5027 |
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
|
5028 |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
|
5029 |
if test "${ac_cv_header_time+set}" = set; then
|
|
5030 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
5031 |
else
|
|
5032 |
cat >conftest.$ac_ext <<_ACEOF
|
|
5033 |
/* confdefs.h. */
|
|
5034 |
_ACEOF
|
|
5035 |
cat confdefs.h >>conftest.$ac_ext
|
|
5036 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
5037 |
/* end confdefs.h. */
|
2033 | 5038 |
#include <sys/types.h>
|
2034 | 5039 |
#include <sys/time.h>
|
2035 | 5040 |
#include <time.h>
|
2036 | |
int main() {
|
2037 | |
struct tm *tp;
|
2038 | |
; return 0; }
|
2039 | |
EOF
|
2040 | |
if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2041 | |
rm -rf conftest*
|
|
5041 |
|
|
5042 |
int
|
|
5043 |
main ()
|
|
5044 |
{
|
|
5045 |
if ((struct tm *) 0)
|
|
5046 |
return 0;
|
|
5047 |
;
|
|
5048 |
return 0;
|
|
5049 |
}
|
|
5050 |
_ACEOF
|
|
5051 |
rm -f conftest.$ac_objext
|
|
5052 |
if { (ac_try="$ac_compile"
|
|
5053 |
case "(($ac_try" in
|
|
5054 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
5055 |
*) ac_try_echo=$ac_try;;
|
|
5056 |
esac
|
|
5057 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
5058 |
(eval "$ac_compile") 2>conftest.er1
|
|
5059 |
ac_status=$?
|
|
5060 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
5061 |
rm -f conftest.er1
|
|
5062 |
cat conftest.err >&5
|
|
5063 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
5064 |
(exit $ac_status); } && {
|
|
5065 |
test -z "$ac_c_werror_flag" ||
|
|
5066 |
test ! -s conftest.err
|
|
5067 |
} && test -s conftest.$ac_objext; then
|
2042 | 5068 |
ac_cv_header_time=yes
|
2043 | 5069 |
else
|
2044 | |
echo "configure: failed program was:" >&5
|
2045 | |
cat conftest.$ac_ext >&5
|
2046 | |
rm -rf conftest*
|
2047 | |
ac_cv_header_time=no
|
2048 | |
fi
|
2049 | |
rm -f conftest*
|
2050 | |
fi
|
2051 | |
|
2052 | |
echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
5070 |
echo "$as_me: failed program was:" >&5
|
|
5071 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
5072 |
|
|
5073 |
ac_cv_header_time=no
|
|
5074 |
fi
|
|
5075 |
|
|
5076 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5077 |
fi
|
|
5078 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
|
5079 |
echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
2053 | 5080 |
if test $ac_cv_header_time = yes; then
|
2054 | |
cat >> confdefs.h <<\EOF
|
|
5081 |
|
|
5082 |
cat >>confdefs.h <<\_ACEOF
|
2055 | 5083 |
#define TIME_WITH_SYS_TIME 1
|
2056 | |
EOF
|
2057 | |
|
2058 | |
fi
|
2059 | |
|
2060 | |
|
2061 | |
if test $ac_cv_prog_gcc = yes; then
|
2062 | |
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
2063 | |
echo "configure:2065: checking whether ${CC-cc} needs -traditional" >&5
|
2064 | |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
2065 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
|
5084 |
_ACEOF
|
|
5085 |
|
|
5086 |
fi
|
|
5087 |
|
|
5088 |
|
|
5089 |
if test $ac_cv_c_compiler_gnu = yes; then
|
|
5090 |
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
|
5091 |
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
|
5092 |
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
|
5093 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2066 | 5094 |
else
|
2067 | 5095 |
ac_pattern="Autoconf.*'x'"
|
2068 | |
cat > conftest.$ac_ext <<EOF
|
2069 | |
#line 2071 "configure"
|
2070 | |
#include "confdefs.h"
|
|
5096 |
cat >conftest.$ac_ext <<_ACEOF
|
|
5097 |
/* confdefs.h. */
|
|
5098 |
_ACEOF
|
|
5099 |
cat confdefs.h >>conftest.$ac_ext
|
|
5100 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
5101 |
/* end confdefs.h. */
|
2071 | 5102 |
#include <sgtty.h>
|
2072 | 5103 |
Autoconf TIOCGETP
|
2073 | |
EOF
|
|
5104 |
_ACEOF
|
2074 | 5105 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2075 | |
egrep "$ac_pattern" >/dev/null 2>&1; then
|
2076 | |
rm -rf conftest*
|
|
5106 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
2077 | 5107 |
ac_cv_prog_gcc_traditional=yes
|
2078 | 5108 |
else
|
2079 | |
rm -rf conftest*
|
2080 | 5109 |
ac_cv_prog_gcc_traditional=no
|
2081 | 5110 |
fi
|
2082 | 5111 |
rm -f conftest*
|
2083 | 5112 |
|
2084 | 5113 |
|
2085 | 5114 |
if test $ac_cv_prog_gcc_traditional = no; then
|
2086 | |
cat > conftest.$ac_ext <<EOF
|
2087 | |
#line 2089 "configure"
|
2088 | |
#include "confdefs.h"
|
|
5115 |
cat >conftest.$ac_ext <<_ACEOF
|
|
5116 |
/* confdefs.h. */
|
|
5117 |
_ACEOF
|
|
5118 |
cat confdefs.h >>conftest.$ac_ext
|
|
5119 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
5120 |
/* end confdefs.h. */
|
2089 | 5121 |
#include <termio.h>
|
2090 | 5122 |
Autoconf TCGETA
|
2091 | |
EOF
|
|
5123 |
_ACEOF
|
2092 | 5124 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2093 | |
egrep "$ac_pattern" >/dev/null 2>&1; then
|
2094 | |
rm -rf conftest*
|
|
5125 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
2095 | 5126 |
ac_cv_prog_gcc_traditional=yes
|
2096 | 5127 |
fi
|
2097 | 5128 |
rm -f conftest*
|
2098 | 5129 |
|
2099 | 5130 |
fi
|
2100 | 5131 |
fi
|
2101 | |
|
2102 | |
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
|
5132 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
|
5133 |
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
2103 | 5134 |
if test $ac_cv_prog_gcc_traditional = yes; then
|
2104 | 5135 |
CC="$CC -traditional"
|
2105 | 5136 |
fi
|
2106 | 5137 |
fi
|
2107 | 5138 |
|
2108 | |
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
2109 | |
echo "configure:2111: checking return type of signal handlers" >&5
|
2110 | |
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
2111 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
2112 | |
else
|
2113 | |
cat > conftest.$ac_ext <<EOF
|
2114 | |
#line 2116 "configure"
|
2115 | |
#include "confdefs.h"
|
|
5139 |
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
|
5140 |
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
|
5141 |
if test "${ac_cv_type_signal+set}" = set; then
|
|
5142 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
5143 |
else
|
|
5144 |
cat >conftest.$ac_ext <<_ACEOF
|
|
5145 |
/* confdefs.h. */
|
|
5146 |
_ACEOF
|
|
5147 |
cat confdefs.h >>conftest.$ac_ext
|
|
5148 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
5149 |
/* end confdefs.h. */
|
2116 | 5150 |
#include <sys/types.h>
|
2117 | 5151 |
#include <signal.h>
|
2118 | |
#ifdef signal
|
2119 | |
#undef signal
|
2120 | |
#endif
|
2121 | |
#ifdef __cplusplus
|
2122 | |
extern "C" void (*signal (int, void (*)(int)))(int);
|
2123 | |
#else
|
2124 | |
void (*signal ()) ();
|
2125 | |
#endif
|
2126 | |
|
2127 | |
int main() {
|
2128 | |
int i;
|
2129 | |
; return 0; }
|
2130 | |
EOF
|
2131 | |
if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2132 | |
rm -rf conftest*
|
2133 | |
ac_cv_type_signal=void
|
2134 | |
else
|
2135 | |
echo "configure: failed program was:" >&5
|
2136 | |
cat conftest.$ac_ext >&5
|
2137 | |
rm -rf conftest*
|
|
5152 |
|
|
5153 |
int
|
|
5154 |
main ()
|
|
5155 |
{
|
|
5156 |
return *(signal (0, 0)) (0) == 1;
|
|
5157 |
;
|
|
5158 |
return 0;
|
|
5159 |
}
|
|
5160 |
_ACEOF
|
|
5161 |
rm -f conftest.$ac_objext
|
|
5162 |
if { (ac_try="$ac_compile"
|
|
5163 |
case "(($ac_try" in
|
|
5164 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
5165 |
*) ac_try_echo=$ac_try;;
|
|
5166 |
esac
|
|
5167 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
5168 |
(eval "$ac_compile") 2>conftest.er1
|
|
5169 |
ac_status=$?
|
|
5170 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
5171 |
rm -f conftest.er1
|
|
5172 |
cat conftest.err >&5
|
|
5173 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
5174 |
(exit $ac_status); } && {
|
|
5175 |
test -z "$ac_c_werror_flag" ||
|
|
5176 |
test ! -s conftest.err
|
|
5177 |
} && test -s conftest.$ac_objext; then
|
2138 | 5178 |
ac_cv_type_signal=int
|
2139 | |
fi
|
2140 | |
rm -f conftest*
|
2141 | |
fi
|
2142 | |
|
2143 | |
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
2144 | |
cat >> confdefs.h <<EOF
|
|
5179 |
else
|
|
5180 |
echo "$as_me: failed program was:" >&5
|
|
5181 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
5182 |
|
|
5183 |
ac_cv_type_signal=void
|
|
5184 |
fi
|
|
5185 |
|
|
5186 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5187 |
fi
|
|
5188 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
|
5189 |
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
|
5190 |
|
|
5191 |
cat >>confdefs.h <<_ACEOF
|
2145 | 5192 |
#define RETSIGTYPE $ac_cv_type_signal
|
2146 | |
EOF
|
|
5193 |
_ACEOF
|
|
5194 |
|
|
5195 |
|
|
5196 |
|
|
5197 |
|
2147 | 5198 |
|
2148 | 5199 |
|
2149 | 5200 |
for ac_func in socket strdup strstr strtol
|
2150 | 5201 |
do
|
2151 | |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2152 | |
echo "configure:2154: checking for $ac_func" >&5
|
2153 | |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
2154 | |
echo $ac_n "(cached) $ac_c" 1>&6
|
2155 | |
else
|
2156 | |
cat > conftest.$ac_ext <<EOF
|
2157 | |
#line 2159 "configure"
|
2158 | |
#include "confdefs.h"
|
|
5202 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
5203 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
5204 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
5205 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
5206 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
5207 |
else
|
|
5208 |
cat >conftest.$ac_ext <<_ACEOF
|
|
5209 |
/* confdefs.h. */
|
|
5210 |
_ACEOF
|
|
5211 |
cat confdefs.h >>conftest.$ac_ext
|
|
5212 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
5213 |
/* end confdefs.h. */
|
|
5214 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
5215 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
5216 |
#define $ac_func innocuous_$ac_func
|
|
5217 |
|
2159 | 5218 |
/* System header to define __stub macros and hopefully few prototypes,
|
2160 | |
which can conflict with char $ac_func(); below. */
|
2161 | |
#include <assert.h>
|
2162 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
2163 | |
/* We use char because int might match the return type of a gcc2
|
2164 | |
builtin and then its argument prototype would still apply. */
|
2165 | |
char $ac_func();
|
2166 | |
|
2167 | |
int main() {
|
2168 | |
|
|
5219 |
which can conflict with char $ac_func (); below.
|
|
5220 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
5221 |
<limits.h> exists even on freestanding compilers. */
|
|
5222 |
|
|
5223 |
#ifdef __STDC__
|
|
5224 |
# include <limits.h>
|
|
5225 |
#else
|
|
5226 |
# include <assert.h>
|
|
5227 |
#endif
|
|
5228 |
|
|
5229 |
#undef $ac_func
|
|
5230 |
|
|
5231 |
/* Override any GCC internal prototype to avoid an error.
|
|
5232 |
Use char because int might match the return type of a GCC
|
|
5233 |
builtin and then its argument prototype would still apply. */
|
|
5234 |
#ifdef __cplusplus
|
|
5235 |
extern "C"
|
|
5236 |
#endif
|
|
5237 |
char $ac_func ();
|
2169 | 5238 |
/* The GNU C library defines this for functions which it implements
|
2170 | 5239 |
to always fail with ENOSYS. Some functions are actually named
|
2171 | 5240 |
something starting with __ and the normal name is an alias. */
|
2172 | |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5241 |
#if defined __stub_$ac_func || defined __stub___$ac_func
|
2173 | 5242 |
choke me
|
2174 | |
#else
|
2175 | |
$ac_func();
|
2176 | 5243 |
#endif
|
2177 | 5244 |
|
2178 | |
; return 0; }
|
2179 | |
EOF
|
2180 | |
if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2181 | |
rm -rf conftest*
|
2182 | |
eval "ac_cv_func_$ac_func=yes"
|
2183 | |
else
|
2184 | |
echo "configure: failed program was:" >&5
|
2185 | |
cat conftest.$ac_ext >&5
|
2186 | |
rm -rf conftest*
|
2187 | |
eval "ac_cv_func_$ac_func=no"
|
2188 | |
fi
|
2189 | |
rm -f conftest*
|
2190 | |
fi
|
2191 | |
|
2192 | |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
2193 | |
echo "$ac_t""yes" 1>&6
|
2194 | |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
2195 | |
cat >> confdefs.h <<EOF
|
2196 | |
#define $ac_tr_func 1
|
2197 | |
EOF
|
2198 | |
|
2199 | |
else
|
2200 | |
echo "$ac_t""no" 1>&6
|
|
5245 |
int
|
|
5246 |
main ()
|
|
5247 |
{
|
|
5248 |
return $ac_func ();
|
|
5249 |
;
|
|
5250 |
return 0;
|
|
5251 |
}
|
|
5252 |
_ACEOF
|
|
5253 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
5254 |
if { (ac_try="$ac_link"
|
|
5255 |
case "(($ac_try" in
|
|
5256 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
5257 |
*) ac_try_echo=$ac_try;;
|
|
5258 |
esac
|
|
5259 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
5260 |
(eval "$ac_link") 2>conftest.er1
|
|
5261 |
ac_status=$?
|
|
5262 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
5263 |
rm -f conftest.er1
|
|
5264 |
cat conftest.err >&5
|
|
5265 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
5266 |
(exit $ac_status); } && {
|
|
5267 |
test -z "$ac_c_werror_flag" ||
|
|
5268 |
test ! -s conftest.err
|
|
5269 |
} && test -s conftest$ac_exeext &&
|
|
5270 |
$as_test_x conftest$ac_exeext; then
|
|
5271 |
eval "$as_ac_var=yes"
|
|
5272 |
else
|
|
5273 |
echo "$as_me: failed program was:" >&5
|
|
5274 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
5275 |
|
|
5276 |
eval "$as_ac_var=no"
|
|
5277 |
fi
|
|
5278 |
|
|
5279 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
5280 |
conftest$ac_exeext conftest.$ac_ext
|
|
5281 |
fi
|
|
5282 |
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
5283 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
5284 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
5285 |
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
5286 |
cat >>confdefs.h <<_ACEOF
|
|
5287 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
5288 |
_ACEOF
|
|
5289 |
|
2201 | 5290 |
fi
|
2202 | 5291 |
done
|
2203 | 5292 |
|
2204 | 5293 |
|
2205 | |
trap '' 1 2 15
|
2206 | |
cat > confcache <<\EOF
|
|
5294 |
ac_config_files="$ac_config_files globalmakeflags src/cdebconf.conf-dist src/Makefile man/Makefile"
|
|
5295 |
|
|
5296 |
cat >confcache <<\_ACEOF
|
2207 | 5297 |
# This file is a shell script that caches the results of configure
|
2208 | 5298 |
# tests run on this system so they can be shared between configure
|
2209 | |
# scripts and configure runs. It is not useful on other systems.
|
2210 | |
# If it contains results you don't want to keep, you may remove or edit it.
|
|
5299 |
# scripts and configure runs, see configure's option --config-cache.
|
|
5300 |
# It is not useful on other systems. If it contains results you don't
|
|
5301 |
# want to keep, you may remove or edit it.
|
2211 | 5302 |
#
|
2212 | |
# By default, configure uses ./config.cache as the cache file,
|
2213 | |
# creating it if it does not exist already. You can give configure
|
2214 | |
# the --cache-file=FILE option to use a different cache file; that is
|
2215 | |
# what configure does when it calls configure scripts in
|
2216 | |
# subdirectories, so they share the cache.
|
2217 | |
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
2218 | |
# config.status only pays attention to the cache file if you give it the
|
2219 | |
# --recheck option to rerun configure.
|
|
5303 |
# config.status only pays attention to the cache file if you give it
|
|
5304 |
# the --recheck option to rerun configure.
|
2220 | 5305 |
#
|
2221 | |
EOF
|
|
5306 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
5307 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
5308 |
# following values.
|
|
5309 |
|
|
5310 |
_ACEOF
|
|
5311 |
|
2222 | 5312 |
# The following way of writing the cache mishandles newlines in values,
|
2223 | 5313 |
# but we know of no workaround that is simple, portable, and efficient.
|
2224 | |
# So, don't put newlines in cache variables' values.
|
|
5314 |
# So, we kill variables containing newlines.
|
2225 | 5315 |
# Ultrix sh set writes to stderr and can't be redirected directly,
|
2226 | 5316 |
# and sets the high bit in the cache file unless we assign to the vars.
|
2227 | |
(set) 2>&1 |
|
2228 | |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
2229 | |
*ac_space=\ *)
|
2230 | |
# `set' does not quote correctly, so add quotes (double-quote substitution
|
2231 | |
# turns \\\\ into \\, and sed turns \\ into \).
|
2232 | |
sed -n \
|
2233 | |
-e "s/'/'\\\\''/g" \
|
2234 | |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
2235 | |
;;
|
2236 | |
*)
|
2237 | |
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
2238 | |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
2239 | |
;;
|
2240 | |
esac >> confcache
|
2241 | |
if cmp -s $cache_file confcache; then
|
2242 | |
:
|
2243 | |
else
|
2244 | |
if test -w $cache_file; then
|
2245 | |
echo "updating cache $cache_file"
|
2246 | |
cat confcache > $cache_file
|
|
5317 |
(
|
|
5318 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
5319 |
eval ac_val=\$$ac_var
|
|
5320 |
case $ac_val in #(
|
|
5321 |
*${as_nl}*)
|
|
5322 |
case $ac_var in #(
|
|
5323 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
5324 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
5325 |
esac
|
|
5326 |
case $ac_var in #(
|
|
5327 |
_ | IFS | as_nl) ;; #(
|
|
5328 |
*) $as_unset $ac_var ;;
|
|
5329 |
esac ;;
|
|
5330 |
esac
|
|
5331 |
done
|
|
5332 |
|
|
5333 |
(set) 2>&1 |
|
|
5334 |
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
5335 |
*${as_nl}ac_space=\ *)
|
|
5336 |
# `set' does not quote correctly, so add quotes (double-quote
|
|
5337 |
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
|
5338 |
sed -n \
|
|
5339 |
"s/'/'\\\\''/g;
|
|
5340 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
5341 |
;; #(
|
|
5342 |
*)
|
|
5343 |
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
5344 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
5345 |
;;
|
|
5346 |
esac |
|
|
5347 |
sort
|
|
5348 |
) |
|
|
5349 |
sed '
|
|
5350 |
/^ac_cv_env_/b end
|
|
5351 |
t clear
|
|
5352 |
:clear
|
|
5353 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
5354 |
t end
|
|
5355 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
5356 |
:end' >>confcache
|
|
5357 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
5358 |
if test -w "$cache_file"; then
|
|
5359 |
test "x$cache_file" != "x/dev/null" &&
|
|
5360 |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
|
5361 |
echo "$as_me: updating cache $cache_file" >&6;}
|
|
5362 |
cat confcache >$cache_file
|
2247 | 5363 |
else
|
2248 | |
echo "not updating unwritable cache $cache_file"
|
|
5364 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
|
5365 |
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
2249 | 5366 |
fi
|
2250 | 5367 |
fi
|
2251 | 5368 |
rm -f confcache
|
2252 | |
|
2253 | |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
2254 | 5369 |
|
2255 | 5370 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
2256 | 5371 |
# Let make expand exec_prefix.
|
2257 | 5372 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
2258 | 5373 |
|
2259 | |
# Any assignment to VPATH causes Sun make to only execute
|
2260 | |
# the first set of double-colon rules, so remove it if not needed.
|
2261 | |
# If there is a colon in the path, we need to keep it.
|
2262 | |
if test "x$srcdir" = x.; then
|
2263 | |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
2264 | |
fi
|
2265 | |
|
2266 | |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
2267 | |
|
2268 | 5374 |
DEFS=-DHAVE_CONFIG_H
|
2269 | 5375 |
|
2270 | |
# Without the "./", some shells look in PATH for config.status.
|
|
5376 |
ac_libobjs=
|
|
5377 |
ac_ltlibobjs=
|
|
5378 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
5379 |
# 1. Remove the extension, and $U if already installed.
|
|
5380 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
5381 |
ac_i=`echo "$ac_i" | sed "$ac_script"`
|
|
5382 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
5383 |
# will be set to the directory where LIBOBJS objects are built.
|
|
5384 |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
5385 |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
5386 |
done
|
|
5387 |
LIBOBJS=$ac_libobjs
|
|
5388 |
|
|
5389 |
LTLIBOBJS=$ac_ltlibobjs
|
|
5390 |
|
|
5391 |
|
|
5392 |
|
2271 | 5393 |
: ${CONFIG_STATUS=./config.status}
|
2272 | |
|
2273 | |
echo creating $CONFIG_STATUS
|
2274 | |
rm -f $CONFIG_STATUS
|
2275 | |
cat > $CONFIG_STATUS <<EOF
|
2276 | |
#! /bin/sh
|
2277 | |
# Generated automatically by configure.
|
|
5394 |
ac_clean_files_save=$ac_clean_files
|
|
5395 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
5396 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
|
5397 |
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
5398 |
cat >$CONFIG_STATUS <<_ACEOF
|
|
5399 |
#! $SHELL
|
|
5400 |
# Generated by $as_me.
|
2278 | 5401 |
# Run this file to recreate the current configuration.
|
2279 | |
# This directory was configured as follows,
|
2280 | |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
2281 | |
#
|
2282 | |
# $0 $ac_configure_args
|
2283 | |
#
|
2284 | 5402 |
# Compiler output produced by configure, useful for debugging
|
2285 | |
# configure, is in ./config.log if it exists.
|
2286 | |
|
2287 | |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
2288 | |
for ac_option
|
|
5403 |
# configure, is in config.log if it exists.
|
|
5404 |
|
|
5405 |
debug=false
|
|
5406 |
ac_cs_recheck=false
|
|
5407 |
ac_cs_silent=false
|
|
5408 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
5409 |
_ACEOF
|
|
5410 |
|
|
5411 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
5412 |
## --------------------- ##
|
|
5413 |
## M4sh Initialization. ##
|
|
5414 |
## --------------------- ##
|
|
5415 |
|
|
5416 |
# Be more Bourne compatible
|
|
5417 |
DUALCASE=1; export DUALCASE # for MKS sh
|
|
5418 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
5419 |
emulate sh
|
|
5420 |
NULLCMD=:
|
|
5421 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
5422 |
# is contrary to our usage. Disable this feature.
|
|
5423 |
alias -g '${1+"$@"}'='"$@"'
|
|
5424 |
setopt NO_GLOB_SUBST
|
|
5425 |
else
|
|
5426 |
case `(set -o) 2>/dev/null` in
|
|
5427 |
*posix*) set -o posix ;;
|
|
5428 |
esac
|
|
5429 |
|
|
5430 |
fi
|
|
5431 |
|
|
5432 |
|
|
5433 |
|
|
5434 |
|
|
5435 |
# PATH needs CR
|
|
5436 |
# Avoid depending upon Character Ranges.
|
|
5437 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
5438 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
5439 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
5440 |
as_cr_digits='0123456789'
|
|
5441 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
5442 |
|
|
5443 |
# The user is always right.
|
|
5444 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
5445 |
echo "#! /bin/sh" >conf$$.sh
|
|
5446 |
echo "exit 0" >>conf$$.sh
|
|
5447 |
chmod +x conf$$.sh
|
|
5448 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
5449 |
PATH_SEPARATOR=';'
|
|
5450 |
else
|
|
5451 |
PATH_SEPARATOR=:
|
|
5452 |
fi
|
|
5453 |
rm -f conf$$.sh
|
|
5454 |
fi
|
|
5455 |
|
|
5456 |
# Support unset when possible.
|
|
5457 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
5458 |
as_unset=unset
|
|
5459 |
else
|
|
5460 |
as_unset=false
|
|
5461 |
fi
|
|
5462 |
|
|
5463 |
|
|
5464 |
# IFS
|
|
5465 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
5466 |
# there to prevent editors from complaining about space-tab.
|
|
5467 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
5468 |
# splitting by setting IFS to empty value.)
|
|
5469 |
as_nl='
|
|
5470 |
'
|
|
5471 |
IFS=" "" $as_nl"
|
|
5472 |
|
|
5473 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
5474 |
case $0 in
|
|
5475 |
*[\\/]* ) as_myself=$0 ;;
|
|
5476 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5477 |
for as_dir in $PATH
|
2289 | 5478 |
do
|
2290 | |
case "\$ac_option" in
|
|
5479 |
IFS=$as_save_IFS
|
|
5480 |
test -z "$as_dir" && as_dir=.
|
|
5481 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
5482 |
done
|
|
5483 |
IFS=$as_save_IFS
|
|
5484 |
|
|
5485 |
;;
|
|
5486 |
esac
|
|
5487 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
5488 |
# in which case we are not to be found in the path.
|
|
5489 |
if test "x$as_myself" = x; then
|
|
5490 |
as_myself=$0
|
|
5491 |
fi
|
|
5492 |
if test ! -f "$as_myself"; then
|
|
5493 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
5494 |
{ (exit 1); exit 1; }
|
|
5495 |
fi
|
|
5496 |
|
|
5497 |
# Work around bugs in pre-3.0 UWIN ksh.
|
|
5498 |
for as_var in ENV MAIL MAILPATH
|
|
5499 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
5500 |
done
|
|
5501 |
PS1='$ '
|
|
5502 |
PS2='> '
|
|
5503 |
PS4='+ '
|
|
5504 |
|
|
5505 |
# NLS nuisances.
|
|
5506 |
for as_var in \
|
|
5507 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
5508 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
5509 |
LC_TELEPHONE LC_TIME
|
|
5510 |
do
|
|
5511 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
5512 |
eval $as_var=C; export $as_var
|
|
5513 |
else
|
|
5514 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
5515 |
fi
|
|
5516 |
done
|
|
5517 |
|
|
5518 |
# Required to use basename.
|
|
5519 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
5520 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
5521 |
as_expr=expr
|
|
5522 |
else
|
|
5523 |
as_expr=false
|
|
5524 |
fi
|
|
5525 |
|
|
5526 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
5527 |
as_basename=basename
|
|
5528 |
else
|
|
5529 |
as_basename=false
|
|
5530 |
fi
|
|
5531 |
|
|
5532 |
|
|
5533 |
# Name of the executable.
|
|
5534 |
as_me=`$as_basename -- "$0" ||
|
|
5535 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
5536 |
X"$0" : 'X\(//\)$' \| \
|
|
5537 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
5538 |
echo X/"$0" |
|
|
5539 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
5540 |
s//\1/
|
|
5541 |
q
|
|
5542 |
}
|
|
5543 |
/^X\/\(\/\/\)$/{
|
|
5544 |
s//\1/
|
|
5545 |
q
|
|
5546 |
}
|
|
5547 |
/^X\/\(\/\).*/{
|
|
5548 |
s//\1/
|
|
5549 |
q
|
|
5550 |
}
|
|
5551 |
s/.*/./; q'`
|
|
5552 |
|
|
5553 |
# CDPATH.
|
|
5554 |
$as_unset CDPATH
|
|
5555 |
|
|
5556 |
|
|
5557 |
|
|
5558 |
as_lineno_1=$LINENO
|
|
5559 |
as_lineno_2=$LINENO
|
|
5560 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
5561 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
5562 |
|
|
5563 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
5564 |
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
5565 |
# line-number line after each line using $LINENO; the second 'sed'
|
|
5566 |
# does the real work. The second script uses 'N' to pair each
|
|
5567 |
# line-number line with the line containing $LINENO, and appends
|
|
5568 |
# trailing '-' during substitution so that $LINENO is not a special
|
|
5569 |
# case at line end.
|
|
5570 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
5571 |
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
5572 |
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
5573 |
sed -n '
|
|
5574 |
p
|
|
5575 |
/[$]LINENO/=
|
|
5576 |
' <$as_myself |
|
|
5577 |
sed '
|
|
5578 |
s/[$]LINENO.*/&-/
|
|
5579 |
t lineno
|
|
5580 |
b
|
|
5581 |
:lineno
|
|
5582 |
N
|
|
5583 |
:loop
|
|
5584 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
5585 |
t loop
|
|
5586 |
s/-\n.*//
|
|
5587 |
' >$as_me.lineno &&
|
|
5588 |
chmod +x "$as_me.lineno" ||
|
|
5589 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
5590 |
{ (exit 1); exit 1; }; }
|
|
5591 |
|
|
5592 |
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
5593 |
# (the dirname of $[0] is not the place where we might find the
|
|
5594 |
# original and so on. Autoconf is especially sensitive to this).
|
|
5595 |
. "./$as_me.lineno"
|
|
5596 |
# Exit status is that of the last command.
|
|
5597 |
exit
|
|
5598 |
}
|
|
5599 |
|
|
5600 |
|
|
5601 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
5602 |
as_dirname=dirname
|
|
5603 |
else
|
|
5604 |
as_dirname=false
|
|
5605 |
fi
|
|
5606 |
|
|
5607 |
ECHO_C= ECHO_N= ECHO_T=
|
|
5608 |
case `echo -n x` in
|
|
5609 |
-n*)
|
|
5610 |
case `echo 'x\c'` in
|
|
5611 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
5612 |
*) ECHO_C='\c';;
|
|
5613 |
esac;;
|
|
5614 |
*)
|
|
5615 |
ECHO_N='-n';;
|
|
5616 |
esac
|
|
5617 |
|
|
5618 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
5619 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
5620 |
as_expr=expr
|
|
5621 |
else
|
|
5622 |
as_expr=false
|
|
5623 |
fi
|
|
5624 |
|
|
5625 |
rm -f conf$$ conf$$.exe conf$$.file
|
|
5626 |
if test -d conf$$.dir; then
|
|
5627 |
rm -f conf$$.dir/conf$$.file
|
|
5628 |
else
|
|
5629 |
rm -f conf$$.dir
|
|
5630 |
mkdir conf$$.dir
|
|
5631 |
fi
|
|
5632 |
echo >conf$$.file
|
|
5633 |
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
5634 |
as_ln_s='ln -s'
|
|
5635 |
# ... but there are two gotchas:
|
|
5636 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
5637 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
5638 |
# In both cases, we have to default to `cp -p'.
|
|
5639 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
5640 |
as_ln_s='cp -p'
|
|
5641 |
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
5642 |
as_ln_s=ln
|
|
5643 |
else
|
|
5644 |
as_ln_s='cp -p'
|
|
5645 |
fi
|
|
5646 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
5647 |
rmdir conf$$.dir 2>/dev/null
|
|
5648 |
|
|
5649 |
if mkdir -p . 2>/dev/null; then
|
|
5650 |
as_mkdir_p=:
|
|
5651 |
else
|
|
5652 |
test -d ./-p && rmdir ./-p
|
|
5653 |
as_mkdir_p=false
|
|
5654 |
fi
|
|
5655 |
|
|
5656 |
if test -x / >/dev/null 2>&1; then
|
|
5657 |
as_test_x='test -x'
|
|
5658 |
else
|
|
5659 |
if ls -dL / >/dev/null 2>&1; then
|
|
5660 |
as_ls_L_option=L
|
|
5661 |
else
|
|
5662 |
as_ls_L_option=
|
|
5663 |
fi
|
|
5664 |
as_test_x='
|
|
5665 |
eval sh -c '\''
|
|
5666 |
if test -d "$1"; then
|
|
5667 |
test -d "$1/.";
|
|
5668 |
else
|
|
5669 |
case $1 in
|
|
5670 |
-*)set "./$1";;
|
|
5671 |
esac;
|
|
5672 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
|
5673 |
???[sx]*):;;*)false;;esac;fi
|
|
5674 |
'\'' sh
|
|
5675 |
'
|
|
5676 |
fi
|
|
5677 |
as_executable_p=$as_test_x
|
|
5678 |
|
|
5679 |
# Sed expression to map a string onto a valid CPP name.
|
|
5680 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
5681 |
|
|
5682 |
# Sed expression to map a string onto a valid variable name.
|
|
5683 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
5684 |
|
|
5685 |
|
|
5686 |
exec 6>&1
|
|
5687 |
|
|
5688 |
# Save the log message, to keep $[0] and so on meaningful, and to
|
|
5689 |
# report actual input values of CONFIG_FILES etc. instead of their
|
|
5690 |
# values after options handling.
|
|
5691 |
ac_log="
|
|
5692 |
This file was extended by $as_me, which was
|
|
5693 |
generated by GNU Autoconf 2.61. Invocation command line was
|
|
5694 |
|
|
5695 |
CONFIG_FILES = $CONFIG_FILES
|
|
5696 |
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
5697 |
CONFIG_LINKS = $CONFIG_LINKS
|
|
5698 |
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
5699 |
$ $0 $@
|
|
5700 |
|
|
5701 |
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
5702 |
"
|
|
5703 |
|
|
5704 |
_ACEOF
|
|
5705 |
|
|
5706 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
5707 |
# Files that config.status was made for.
|
|
5708 |
config_files="$ac_config_files"
|
|
5709 |
config_headers="$ac_config_headers"
|
|
5710 |
|
|
5711 |
_ACEOF
|
|
5712 |
|
|
5713 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
5714 |
ac_cs_usage="\
|
|
5715 |
\`$as_me' instantiates files from templates according to the
|
|
5716 |
current configuration.
|
|
5717 |
|
|
5718 |
Usage: $0 [OPTIONS] [FILE]...
|
|
5719 |
|
|
5720 |
-h, --help print this help, then exit
|
|
5721 |
-V, --version print version number and configuration settings, then exit
|
|
5722 |
-q, --quiet do not print progress messages
|
|
5723 |
-d, --debug don't remove temporary files
|
|
5724 |
--recheck update $as_me by reconfiguring in the same conditions
|
|
5725 |
--file=FILE[:TEMPLATE]
|
|
5726 |
instantiate the configuration file FILE
|
|
5727 |
--header=FILE[:TEMPLATE]
|
|
5728 |
instantiate the configuration header FILE
|
|
5729 |
|
|
5730 |
Configuration files:
|
|
5731 |
$config_files
|
|
5732 |
|
|
5733 |
Configuration headers:
|
|
5734 |
$config_headers
|
|
5735 |
|
|
5736 |
Report bugs to <bug-autoconf@gnu.org>."
|
|
5737 |
|
|
5738 |
_ACEOF
|
|
5739 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
5740 |
ac_cs_version="\\
|
|
5741 |
config.status
|
|
5742 |
configured by $0, generated by GNU Autoconf 2.61,
|
|
5743 |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
|
5744 |
|
|
5745 |
Copyright (C) 2006 Free Software Foundation, Inc.
|
|
5746 |
This config.status script is free software; the Free Software Foundation
|
|
5747 |
gives unlimited permission to copy, distribute and modify it."
|
|
5748 |
|
|
5749 |
ac_pwd='$ac_pwd'
|
|
5750 |
srcdir='$srcdir'
|
|
5751 |
_ACEOF
|
|
5752 |
|
|
5753 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
5754 |
# If no file are specified by the user, then we need to provide default
|
|
5755 |
# value. By we need to know if files were specified by the user.
|
|
5756 |
ac_need_defaults=:
|
|
5757 |
while test $# != 0
|
|
5758 |
do
|
|
5759 |
case $1 in
|
|
5760 |
--*=*)
|
|
5761 |
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
5762 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
5763 |
ac_shift=:
|
|
5764 |
;;
|
|
5765 |
*)
|
|
5766 |
ac_option=$1
|
|
5767 |
ac_optarg=$2
|
|
5768 |
ac_shift=shift
|
|
5769 |
;;
|
|
5770 |
esac
|
|
5771 |
|
|
5772 |
case $ac_option in
|
|
5773 |
# Handling of the options.
|
2291 | 5774 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
2292 | |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
2293 | |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
2294 | |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
2295 | |
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
2296 | |
exit 0 ;;
|
2297 | |
-help | --help | --hel | --he | --h)
|
2298 | |
echo "\$ac_cs_usage"; exit 0 ;;
|
2299 | |
*) echo "\$ac_cs_usage"; exit 1 ;;
|
|
5775 |
ac_cs_recheck=: ;;
|
|
5776 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
5777 |
echo "$ac_cs_version"; exit ;;
|
|
5778 |
--debug | --debu | --deb | --de | --d | -d )
|
|
5779 |
debug=: ;;
|
|
5780 |
--file | --fil | --fi | --f )
|
|
5781 |
$ac_shift
|
|
5782 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
|
5783 |
ac_need_defaults=false;;
|
|
5784 |
--header | --heade | --head | --hea )
|
|
5785 |
$ac_shift
|
|
5786 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
|
5787 |
ac_need_defaults=false;;
|
|
5788 |
--he | --h)
|
|
5789 |
# Conflict between --help and --header
|
|
5790 |
{ echo "$as_me: error: ambiguous option: $1
|
|
5791 |
Try \`$0 --help' for more information." >&2
|
|
5792 |
{ (exit 1); exit 1; }; };;
|
|
5793 |
--help | --hel | -h )
|
|
5794 |
echo "$ac_cs_usage"; exit ;;
|
|
5795 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
5796 |
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
5797 |
ac_cs_silent=: ;;
|
|
5798 |
|
|
5799 |
# This is an error.
|
|
5800 |
-*) { echo "$as_me: error: unrecognized option: $1
|
|
5801 |
Try \`$0 --help' for more information." >&2
|
|
5802 |
{ (exit 1); exit 1; }; } ;;
|
|
5803 |
|
|
5804 |
*) ac_config_targets="$ac_config_targets $1"
|
|
5805 |
ac_need_defaults=false ;;
|
|
5806 |
|
|
5807 |
esac
|
|
5808 |
shift
|
|
5809 |
done
|
|
5810 |
|
|
5811 |
ac_configure_extra_args=
|
|
5812 |
|
|
5813 |
if $ac_cs_silent; then
|
|
5814 |
exec 6>/dev/null
|
|
5815 |
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
5816 |
fi
|
|
5817 |
|
|
5818 |
_ACEOF
|
|
5819 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
5820 |
if \$ac_cs_recheck; then
|
|
5821 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
|
5822 |
CONFIG_SHELL=$SHELL
|
|
5823 |
export CONFIG_SHELL
|
|
5824 |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
5825 |
fi
|
|
5826 |
|
|
5827 |
_ACEOF
|
|
5828 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
5829 |
exec 5>>config.log
|
|
5830 |
{
|
|
5831 |
echo
|
|
5832 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
5833 |
## Running $as_me. ##
|
|
5834 |
_ASBOX
|
|
5835 |
echo "$ac_log"
|
|
5836 |
} >&5
|
|
5837 |
|
|
5838 |
_ACEOF
|
|
5839 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
5840 |
_ACEOF
|
|
5841 |
|
|
5842 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
5843 |
|
|
5844 |
# Handling of arguments.
|
|
5845 |
for ac_config_target in $ac_config_targets
|
|
5846 |
do
|
|
5847 |
case $ac_config_target in
|
|
5848 |
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.h.in" ;;
|
|
5849 |
"globalmakeflags") CONFIG_FILES="$CONFIG_FILES globalmakeflags" ;;
|
|
5850 |
"src/cdebconf.conf-dist") CONFIG_FILES="$CONFIG_FILES src/cdebconf.conf-dist" ;;
|
|
5851 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
|
5852 |
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
|
|
5853 |
|
|
5854 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
|
5855 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
|
5856 |
{ (exit 1); exit 1; }; };;
|
2300 | 5857 |
esac
|
2301 | 5858 |
done
|
2302 | 5859 |
|
2303 | |
ac_given_srcdir=$srcdir
|
2304 | |
|
2305 | |
trap 'rm -fr `echo "globalmakeflags src/cdebconf.conf-dist src/Makefile man/Makefile src/config.h:src/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
2306 | |
EOF
|
2307 | |
cat >> $CONFIG_STATUS <<EOF
|
2308 | |
|
2309 | |
# Protect against being on the right side of a sed subst in config.status.
|
2310 | |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
2311 | |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
2312 | |
$ac_vpsub
|
2313 | |
$extrasub
|
2314 | |
s%@SHELL@%$SHELL%g
|
2315 | |
s%@CFLAGS@%$CFLAGS%g
|
2316 | |
s%@CPPFLAGS@%$CPPFLAGS%g
|
2317 | |
s%@CXXFLAGS@%$CXXFLAGS%g
|
2318 | |
s%@FFLAGS@%$FFLAGS%g
|
2319 | |
s%@DEFS@%$DEFS%g
|
2320 | |
s%@LDFLAGS@%$LDFLAGS%g
|
2321 | |
s%@LIBS@%$LIBS%g
|
2322 | |
s%@exec_prefix@%$exec_prefix%g
|
2323 | |
s%@prefix@%$prefix%g
|
2324 | |
s%@program_transform_name@%$program_transform_name%g
|
2325 | |
s%@bindir@%$bindir%g
|
2326 | |
s%@sbindir@%$sbindir%g
|
2327 | |
s%@libexecdir@%$libexecdir%g
|
2328 | |
s%@datadir@%$datadir%g
|
2329 | |
s%@sysconfdir@%$sysconfdir%g
|
2330 | |
s%@sharedstatedir@%$sharedstatedir%g
|
2331 | |
s%@localstatedir@%$localstatedir%g
|
2332 | |
s%@libdir@%$libdir%g
|
2333 | |
s%@includedir@%$includedir%g
|
2334 | |
s%@oldincludedir@%$oldincludedir%g
|
2335 | |
s%@infodir@%$infodir%g
|
2336 | |
s%@mandir@%$mandir%g
|
2337 | |
s%@SET_MAKE@%$SET_MAKE%g
|
2338 | |
s%@CC@%$CC%g
|
2339 | |
s%@HAVESED@%$HAVESED%g
|
2340 | |
s%@POD2MAN@%$POD2MAN%g
|
2341 | |
s%@TOPDIR@%$TOPDIR%g
|
2342 | |
s%@BUILDDIR@%$BUILDDIR%g
|
2343 | |
s%@RPATH@%$RPATH%g
|
2344 | |
s%@DEFAULT_FRONTEND@%$DEFAULT_FRONTEND%g
|
2345 | |
s%@FRONTEND_MODULES@%$FRONTEND_MODULES%g
|
2346 | |
s%@DB_MODULES@%$DB_MODULES%g
|
2347 | |
s%@CPP@%$CPP%g
|
2348 | |
|
2349 | |
CEOF
|
2350 | |
EOF
|
2351 | |
|
2352 | |
cat >> $CONFIG_STATUS <<\EOF
|
2353 | |
|
2354 | |
# Split the substitutions into bite-sized pieces for seds with
|
2355 | |
# small command number limits, like on Digital OSF/1 and HP-UX.
|
2356 | |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
2357 | |
ac_file=1 # Number of current file.
|
2358 | |
ac_beg=1 # First line for current file.
|
2359 | |
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
2360 | |
ac_more_lines=:
|
2361 | |
ac_sed_cmds=""
|
2362 | |
while $ac_more_lines; do
|
2363 | |
if test $ac_beg -gt 1; then
|
2364 | |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
5860 |
|
|
5861 |
# If the user did not use the arguments to specify the items to instantiate,
|
|
5862 |
# then the envvar interface is used. Set only those that are not.
|
|
5863 |
# We use the long form for the default assignment because of an extremely
|
|
5864 |
# bizarre bug on SunOS 4.1.3.
|
|
5865 |
if $ac_need_defaults; then
|
|
5866 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
5867 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
5868 |
fi
|
|
5869 |
|
|
5870 |
# Have a temporary directory for convenience. Make it in the build tree
|
|
5871 |
# simply because there is no reason against having it here, and in addition,
|
|
5872 |
# creating and moving files from /tmp can sometimes cause problems.
|
|
5873 |
# Hook for its removal unless debugging.
|
|
5874 |
# Note that there is a small window in which the directory will not be cleaned:
|
|
5875 |
# after its creation but before its name has been assigned to `$tmp'.
|
|
5876 |
$debug ||
|
|
5877 |
{
|
|
5878 |
tmp=
|
|
5879 |
trap 'exit_status=$?
|
|
5880 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
|
5881 |
' 0
|
|
5882 |
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
|
5883 |
}
|
|
5884 |
# Create a (secure) tmp directory for tmp files.
|
|
5885 |
|
|
5886 |
{
|
|
5887 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
5888 |
test -n "$tmp" && test -d "$tmp"
|
|
5889 |
} ||
|
|
5890 |
{
|
|
5891 |
tmp=./conf$$-$RANDOM
|
|
5892 |
(umask 077 && mkdir "$tmp")
|
|
5893 |
} ||
|
|
5894 |
{
|
|
5895 |
echo "$me: cannot create a temporary directory in ." >&2
|
|
5896 |
{ (exit 1); exit 1; }
|
|
5897 |
}
|
|
5898 |
|
|
5899 |
#
|
|
5900 |
# Set up the sed scripts for CONFIG_FILES section.
|
|
5901 |
#
|
|
5902 |
|
|
5903 |
# No need to generate the scripts if there are no CONFIG_FILES.
|
|
5904 |
# This happens for instance when ./config.status config.h
|
|
5905 |
if test -n "$CONFIG_FILES"; then
|
|
5906 |
|
|
5907 |
_ACEOF
|
|
5908 |
|
|
5909 |
|
|
5910 |
|
|
5911 |
ac_delim='%!_!# '
|
|
5912 |
for ac_last_try in false false false false false :; do
|
|
5913 |
cat >conf$$subs.sed <<_ACEOF
|
|
5914 |
SHELL!$SHELL$ac_delim
|
|
5915 |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
|
5916 |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
|
5917 |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
|
5918 |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
|
5919 |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
|
5920 |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
|
5921 |
exec_prefix!$exec_prefix$ac_delim
|
|
5922 |
prefix!$prefix$ac_delim
|
|
5923 |
program_transform_name!$program_transform_name$ac_delim
|
|
5924 |
bindir!$bindir$ac_delim
|
|
5925 |
sbindir!$sbindir$ac_delim
|
|
5926 |
libexecdir!$libexecdir$ac_delim
|
|
5927 |
datarootdir!$datarootdir$ac_delim
|
|
5928 |
datadir!$datadir$ac_delim
|
|
5929 |
sysconfdir!$sysconfdir$ac_delim
|
|
5930 |
sharedstatedir!$sharedstatedir$ac_delim
|
|
5931 |
localstatedir!$localstatedir$ac_delim
|
|
5932 |
includedir!$includedir$ac_delim
|
|
5933 |
oldincludedir!$oldincludedir$ac_delim
|
|
5934 |
docdir!$docdir$ac_delim
|
|
5935 |
infodir!$infodir$ac_delim
|
|
5936 |
htmldir!$htmldir$ac_delim
|
|
5937 |
dvidir!$dvidir$ac_delim
|
|
5938 |
pdfdir!$pdfdir$ac_delim
|
|
5939 |
psdir!$psdir$ac_delim
|
|
5940 |
libdir!$libdir$ac_delim
|
|
5941 |
localedir!$localedir$ac_delim
|
|
5942 |
mandir!$mandir$ac_delim
|
|
5943 |
DEFS!$DEFS$ac_delim
|
|
5944 |
ECHO_C!$ECHO_C$ac_delim
|
|
5945 |
ECHO_N!$ECHO_N$ac_delim
|
|
5946 |
ECHO_T!$ECHO_T$ac_delim
|
|
5947 |
LIBS!$LIBS$ac_delim
|
|
5948 |
build_alias!$build_alias$ac_delim
|
|
5949 |
host_alias!$host_alias$ac_delim
|
|
5950 |
target_alias!$target_alias$ac_delim
|
|
5951 |
SET_MAKE!$SET_MAKE$ac_delim
|
|
5952 |
CC!$CC$ac_delim
|
|
5953 |
CFLAGS!$CFLAGS$ac_delim
|
|
5954 |
LDFLAGS!$LDFLAGS$ac_delim
|
|
5955 |
CPPFLAGS!$CPPFLAGS$ac_delim
|
|
5956 |
ac_ct_CC!$ac_ct_CC$ac_delim
|
|
5957 |
EXEEXT!$EXEEXT$ac_delim
|
|
5958 |
OBJEXT!$OBJEXT$ac_delim
|
|
5959 |
HAVESED!$HAVESED$ac_delim
|
|
5960 |
POD2MAN!$POD2MAN$ac_delim
|
|
5961 |
TOPDIR!$TOPDIR$ac_delim
|
|
5962 |
BUILDDIR!$BUILDDIR$ac_delim
|
|
5963 |
RPATH!$RPATH$ac_delim
|
|
5964 |
DEFAULT_FRONTEND!$DEFAULT_FRONTEND$ac_delim
|
|
5965 |
FRONTEND_MODULES!$FRONTEND_MODULES$ac_delim
|
|
5966 |
DB_MODULES!$DB_MODULES$ac_delim
|
|
5967 |
CPP!$CPP$ac_delim
|
|
5968 |
GREP!$GREP$ac_delim
|
|
5969 |
EGREP!$EGREP$ac_delim
|
|
5970 |
LIBOBJS!$LIBOBJS$ac_delim
|
|
5971 |
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
|
5972 |
_ACEOF
|
|
5973 |
|
|
5974 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
|
|
5975 |
break
|
|
5976 |
elif $ac_last_try; then
|
|
5977 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
5978 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
|
5979 |
{ (exit 1); exit 1; }; }
|
2365 | 5980 |
else
|
2366 | |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
2367 | |
fi
|
2368 | |
if test ! -s conftest.s$ac_file; then
|
2369 | |
ac_more_lines=false
|
2370 | |
rm -f conftest.s$ac_file
|
2371 | |
else
|
2372 | |
if test -z "$ac_sed_cmds"; then
|
2373 | |
ac_sed_cmds="sed -f conftest.s$ac_file"
|
2374 | |
else
|
2375 | |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
2376 | |
fi
|
2377 | |
ac_file=`expr $ac_file + 1`
|
2378 | |
ac_beg=$ac_end
|
2379 | |
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
5981 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
2380 | 5982 |
fi
|
2381 | 5983 |
done
|
2382 | |
if test -z "$ac_sed_cmds"; then
|
2383 | |
ac_sed_cmds=cat
|
2384 | |
fi
|
2385 | |
EOF
|
2386 | |
|
2387 | |
cat >> $CONFIG_STATUS <<EOF
|
2388 | |
|
2389 | |
CONFIG_FILES=\${CONFIG_FILES-"globalmakeflags src/cdebconf.conf-dist src/Makefile man/Makefile"}
|
2390 | |
EOF
|
2391 | |
cat >> $CONFIG_STATUS <<\EOF
|
2392 | |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
2393 | |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2394 | |
case "$ac_file" in
|
2395 | |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
2396 | |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
2397 | |
*) ac_file_in="${ac_file}.in" ;;
|
|
5984 |
|
|
5985 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
|
5986 |
if test -n "$ac_eof"; then
|
|
5987 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
|
5988 |
ac_eof=`expr $ac_eof + 1`
|
|
5989 |
fi
|
|
5990 |
|
|
5991 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
5992 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
|
5993 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
|
5994 |
_ACEOF
|
|
5995 |
sed '
|
|
5996 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
|
5997 |
s/^/s,@/; s/!/@,|#_!!_#|/
|
|
5998 |
:n
|
|
5999 |
t n
|
|
6000 |
s/'"$ac_delim"'$/,g/; t
|
|
6001 |
s/$/\\/; p
|
|
6002 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
|
6003 |
' >>$CONFIG_STATUS <conf$$subs.sed
|
|
6004 |
rm -f conf$$subs.sed
|
|
6005 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
6006 |
:end
|
|
6007 |
s/|#_!!_#|//g
|
|
6008 |
CEOF$ac_eof
|
|
6009 |
_ACEOF
|
|
6010 |
|
|
6011 |
|
|
6012 |
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
|
6013 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
6014 |
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
6015 |
# (actually we leave an empty line to preserve line numbers).
|
|
6016 |
if test "x$srcdir" = x.; then
|
|
6017 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
6018 |
s/:*\$(srcdir):*/:/
|
|
6019 |
s/:*\${srcdir}:*/:/
|
|
6020 |
s/:*@srcdir@:*/:/
|
|
6021 |
s/^\([^=]*=[ ]*\):*/\1/
|
|
6022 |
s/:*$//
|
|
6023 |
s/^[^=]*=[ ]*$//
|
|
6024 |
}'
|
|
6025 |
fi
|
|
6026 |
|
|
6027 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
6028 |
fi # test -n "$CONFIG_FILES"
|
|
6029 |
|
|
6030 |
|
|
6031 |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
|
6032 |
do
|
|
6033 |
case $ac_tag in
|
|
6034 |
:[FHLC]) ac_mode=$ac_tag; continue;;
|
2398 | 6035 |
esac
|
2399 | |
|
2400 | |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
2401 | |
|
2402 | |
# Remove last slash and all that follows it. Not all systems have dirname.
|
2403 | |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
2404 | |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
2405 | |
# The file is in a subdirectory.
|
2406 | |
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
2407 | |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
2408 | |
# A "../" for each directory in $ac_dir_suffix.
|
2409 | |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
2410 | |
else
|
2411 | |
ac_dir_suffix= ac_dots=
|
2412 | |
fi
|
2413 | |
|
2414 | |
case "$ac_given_srcdir" in
|
2415 | |
.) srcdir=.
|
2416 | |
if test -z "$ac_dots"; then top_srcdir=.
|
2417 | |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
2418 | |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
2419 | |
*) # Relative path.
|
2420 | |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
2421 | |
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
6036 |
case $ac_mode$ac_tag in
|
|
6037 |
:[FHL]*:*);;
|
|
6038 |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
|
6039 |
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
|
6040 |
{ (exit 1); exit 1; }; };;
|
|
6041 |
:[FH]-) ac_tag=-:-;;
|
|
6042 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
2422 | 6043 |
esac
|
2423 | |
|
2424 | |
|
2425 | |
echo creating "$ac_file"
|
2426 | |
rm -f "$ac_file"
|
2427 | |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
2428 | |
case "$ac_file" in
|
2429 | |
*Makefile*) ac_comsub="1i\\
|
2430 | |
# $configure_input" ;;
|
2431 | |
*) ac_comsub= ;;
|
|
6044 |
ac_save_IFS=$IFS
|
|
6045 |
IFS=:
|
|
6046 |
set x $ac_tag
|
|
6047 |
IFS=$ac_save_IFS
|
|
6048 |
shift
|
|
6049 |
ac_file=$1
|
|
6050 |
shift
|
|
6051 |
|
|
6052 |
case $ac_mode in
|
|
6053 |
:L) ac_source=$1;;
|
|
6054 |
:[FH])
|
|
6055 |
ac_file_inputs=
|
|
6056 |
for ac_f
|
|
6057 |
do
|
|
6058 |
case $ac_f in
|
|
6059 |
-) ac_f="$tmp/stdin";;
|
|
6060 |
*) # Look for the file first in the build tree, then in the source tree
|
|
6061 |
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
6062 |
# because $ac_f cannot contain `:'.
|
|
6063 |
test -f "$ac_f" ||
|
|
6064 |
case $ac_f in
|
|
6065 |
[\\/$]*) false;;
|
|
6066 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
6067 |
esac ||
|
|
6068 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
|
6069 |
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
|
6070 |
{ (exit 1); exit 1; }; };;
|
|
6071 |
esac
|
|
6072 |
ac_file_inputs="$ac_file_inputs $ac_f"
|
|
6073 |
done
|
|
6074 |
|
|
6075 |
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
6076 |
# use $as_me), people would be surprised to read:
|
|
6077 |
# /* config.h. Generated by config.status. */
|
|
6078 |
configure_input="Generated from "`IFS=:
|
|
6079 |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
|
6080 |
if test x"$ac_file" != x-; then
|
|
6081 |
configure_input="$ac_file. $configure_input"
|
|
6082 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
|
6083 |
echo "$as_me: creating $ac_file" >&6;}
|
|
6084 |
fi
|
|
6085 |
|
|
6086 |
case $ac_tag in
|
|
6087 |
*:-:* | *:-) cat >"$tmp/stdin";;
|
|
6088 |
esac
|
|
6089 |
;;
|
2432 | 6090 |
esac
|
2433 | 6091 |
|
2434 | |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
2435 | |
sed -e "$ac_comsub
|
2436 | |
s%@configure_input@%$configure_input%g
|
2437 | |
s%@srcdir@%$srcdir%g
|
2438 | |
s%@top_srcdir@%$top_srcdir%g
|
2439 | |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
2440 | |
fi; done
|
2441 | |
rm -f conftest.s*
|
2442 | |
|
2443 | |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
2444 | |
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
2445 | |
#
|
2446 | |
# ac_d sets the value in "#define NAME VALUE" lines.
|
2447 | |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
2448 | |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
2449 | |
ac_dC='\3'
|
2450 | |
ac_dD='%g'
|
2451 | |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
2452 | |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
2453 | |
ac_uB='\([ ]\)%\1#\2define\3'
|
2454 | |
ac_uC=' '
|
2455 | |
ac_uD='\4%g'
|
2456 | |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
2457 | |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
2458 | |
ac_eB='$%\1#\2define\3'
|
2459 | |
ac_eC=' '
|
2460 | |
ac_eD='%g'
|
2461 | |
|
2462 | |
if test "${CONFIG_HEADERS+set}" != set; then
|
2463 | |
EOF
|
2464 | |
cat >> $CONFIG_STATUS <<EOF
|
2465 | |
CONFIG_HEADERS="src/config.h:src/config.h.in"
|
2466 | |
EOF
|
2467 | |
cat >> $CONFIG_STATUS <<\EOF
|
2468 | |
fi
|
2469 | |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
2470 | |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2471 | |
case "$ac_file" in
|
2472 | |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
2473 | |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
2474 | |
*) ac_file_in="${ac_file}.in" ;;
|
|
6092 |
ac_dir=`$as_dirname -- "$ac_file" ||
|
|
6093 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
6094 |
X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
6095 |
X"$ac_file" : 'X\(//\)$' \| \
|
|
6096 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
6097 |
echo X"$ac_file" |
|
|
6098 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
6099 |
s//\1/
|
|
6100 |
q
|
|
6101 |
}
|
|
6102 |
/^X\(\/\/\)[^/].*/{
|
|
6103 |
s//\1/
|
|
6104 |
q
|
|
6105 |
}
|
|
6106 |
/^X\(\/\/\)$/{
|
|
6107 |
s//\1/
|
|
6108 |
q
|
|
6109 |
}
|
|
6110 |
/^X\(\/\).*/{
|
|
6111 |
s//\1/
|
|
6112 |
q
|
|
6113 |
}
|
|
6114 |
s/.*/./; q'`
|
|
6115 |
{ as_dir="$ac_dir"
|
|
6116 |
case $as_dir in #(
|
|
6117 |
-*) as_dir=./$as_dir;;
|
2475 | 6118 |
esac
|
2476 | |
|
2477 | |
echo creating $ac_file
|
2478 | |
|
2479 | |
rm -f conftest.frag conftest.in conftest.out
|
2480 | |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
2481 | |
cat $ac_file_inputs > conftest.in
|
2482 | |
|
2483 | |
EOF
|
2484 | |
|
2485 | |
# Transform confdefs.h into a sed script conftest.vals that substitutes
|
2486 | |
# the proper values into config.h.in to produce config.h. And first:
|
2487 | |
# Protect against being on the right side of a sed subst in config.status.
|
2488 | |
# Protect against being in an unquoted here document in config.status.
|
2489 | |
rm -f conftest.vals
|
2490 | |
cat > conftest.hdr <<\EOF
|
2491 | |
s/[\\&%]/\\&/g
|
2492 | |
s%[\\$`]%\\&%g
|
2493 | |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
2494 | |
s%ac_d%ac_u%gp
|
2495 | |
s%ac_u%ac_e%gp
|
2496 | |
EOF
|
2497 | |
sed -n -f conftest.hdr confdefs.h > conftest.vals
|
2498 | |
rm -f conftest.hdr
|
2499 | |
|
2500 | |
# This sed command replaces #undef with comments. This is necessary, for
|
|
6119 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
|
6120 |
as_dirs=
|
|
6121 |
while :; do
|
|
6122 |
case $as_dir in #(
|
|
6123 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
|
6124 |
*) as_qdir=$as_dir;;
|
|
6125 |
esac
|
|
6126 |
as_dirs="'$as_qdir' $as_dirs"
|
|
6127 |
as_dir=`$as_dirname -- "$as_dir" ||
|
|
6128 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
6129 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
6130 |
X"$as_dir" : 'X\(//\)$' \| \
|
|
6131 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
6132 |
echo X"$as_dir" |
|
|
6133 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
6134 |
s//\1/
|
|
6135 |
q
|
|
6136 |
}
|
|
6137 |
/^X\(\/\/\)[^/].*/{
|
|
6138 |
s//\1/
|
|
6139 |
q
|
|
6140 |
}
|
|
6141 |
/^X\(\/\/\)$/{
|
|
6142 |
s//\1/
|
|
6143 |
q
|
|
6144 |
}
|
|
6145 |
/^X\(\/\).*/{
|
|
6146 |
s//\1/
|
|
6147 |
q
|
|
6148 |
}
|
|
6149 |
s/.*/./; q'`
|
|
6150 |
test -d "$as_dir" && break
|
|
6151 |
done
|
|
6152 |
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
6153 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
|
6154 |
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
|
6155 |
{ (exit 1); exit 1; }; }; }
|
|
6156 |
ac_builddir=.
|
|
6157 |
|
|
6158 |
case "$ac_dir" in
|
|
6159 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
6160 |
*)
|
|
6161 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
6162 |
# A ".." for each directory in $ac_dir_suffix.
|
|
6163 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
6164 |
case $ac_top_builddir_sub in
|
|
6165 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
6166 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
6167 |
esac ;;
|
|
6168 |
esac
|
|
6169 |
ac_abs_top_builddir=$ac_pwd
|
|
6170 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
6171 |
# for backward compatibility:
|
|
6172 |
ac_top_builddir=$ac_top_build_prefix
|
|
6173 |
|
|
6174 |
case $srcdir in
|
|
6175 |
.) # We are building in place.
|
|
6176 |
ac_srcdir=.
|
|
6177 |
ac_top_srcdir=$ac_top_builddir_sub
|
|
6178 |
ac_abs_top_srcdir=$ac_pwd ;;
|
|
6179 |
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
6180 |
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
6181 |
ac_top_srcdir=$srcdir
|
|
6182 |
ac_abs_top_srcdir=$srcdir ;;
|
|
6183 |
*) # Relative name.
|
|
6184 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
6185 |
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
6186 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
6187 |
esac
|
|
6188 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
6189 |
|
|
6190 |
|
|
6191 |
case $ac_mode in
|
|
6192 |
:F)
|
|
6193 |
#
|
|
6194 |
# CONFIG_FILE
|
|
6195 |
#
|
|
6196 |
|
|
6197 |
_ACEOF
|
|
6198 |
|
|
6199 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
6200 |
# If the template does not know about datarootdir, expand it.
|
|
6201 |
# FIXME: This hack should be removed a few years after 2.60.
|
|
6202 |
ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
6203 |
|
|
6204 |
case `sed -n '/datarootdir/ {
|
|
6205 |
p
|
|
6206 |
q
|
|
6207 |
}
|
|
6208 |
/@datadir@/p
|
|
6209 |
/@docdir@/p
|
|
6210 |
/@infodir@/p
|
|
6211 |
/@localedir@/p
|
|
6212 |
/@mandir@/p
|
|
6213 |
' $ac_file_inputs` in
|
|
6214 |
*datarootdir*) ac_datarootdir_seen=yes;;
|
|
6215 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
6216 |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
6217 |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
6218 |
_ACEOF
|
|
6219 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
6220 |
ac_datarootdir_hack='
|
|
6221 |
s&@datadir@&$datadir&g
|
|
6222 |
s&@docdir@&$docdir&g
|
|
6223 |
s&@infodir@&$infodir&g
|
|
6224 |
s&@localedir@&$localedir&g
|
|
6225 |
s&@mandir@&$mandir&g
|
|
6226 |
s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
6227 |
esac
|
|
6228 |
_ACEOF
|
|
6229 |
|
|
6230 |
# Neutralize VPATH when `$srcdir' = `.'.
|
|
6231 |
# Shell code in configure.ac might set extrasub.
|
|
6232 |
# FIXME: do we really want to maintain this feature?
|
|
6233 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
6234 |
sed "$ac_vpsub
|
|
6235 |
$extrasub
|
|
6236 |
_ACEOF
|
|
6237 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
6238 |
:t
|
|
6239 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
6240 |
s&@configure_input@&$configure_input&;t t
|
|
6241 |
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
6242 |
s&@srcdir@&$ac_srcdir&;t t
|
|
6243 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
6244 |
s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
6245 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
6246 |
s&@builddir@&$ac_builddir&;t t
|
|
6247 |
s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
6248 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
6249 |
$ac_datarootdir_hack
|
|
6250 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
|
|
6251 |
|
|
6252 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
6253 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
6254 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
6255 |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
6256 |
which seems to be undefined. Please make sure it is defined." >&5
|
|
6257 |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
6258 |
which seems to be undefined. Please make sure it is defined." >&2;}
|
|
6259 |
|
|
6260 |
rm -f "$tmp/stdin"
|
|
6261 |
case $ac_file in
|
|
6262 |
-) cat "$tmp/out"; rm -f "$tmp/out";;
|
|
6263 |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
|
6264 |
esac
|
|
6265 |
;;
|
|
6266 |
:H)
|
|
6267 |
#
|
|
6268 |
# CONFIG_HEADER
|
|
6269 |
#
|
|
6270 |
_ACEOF
|
|
6271 |
|
|
6272 |
# Transform confdefs.h into a sed script `conftest.defines', that
|
|
6273 |
# substitutes the proper values into config.h.in to produce config.h.
|
|
6274 |
rm -f conftest.defines conftest.tail
|
|
6275 |
# First, append a space to every undef/define line, to ease matching.
|
|
6276 |
echo 's/$/ /' >conftest.defines
|
|
6277 |
# Then, protect against being on the right side of a sed subst, or in
|
|
6278 |
# an unquoted here document, in config.status. If some macros were
|
|
6279 |
# called several times there might be several #defines for the same
|
|
6280 |
# symbol, which is useless. But do not sort them, since the last
|
|
6281 |
# AC_DEFINE must be honored.
|
|
6282 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
6283 |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
|
6284 |
# NAME is the cpp macro being defined, VALUE is the value it is being given.
|
|
6285 |
# PARAMS is the parameter list in the macro definition--in most cases, it's
|
|
6286 |
# just an empty string.
|
|
6287 |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
|
6288 |
ac_dB='\\)[ (].*,\\1define\\2'
|
|
6289 |
ac_dC=' '
|
|
6290 |
ac_dD=' ,'
|
|
6291 |
|
|
6292 |
uniq confdefs.h |
|
|
6293 |
sed -n '
|
|
6294 |
t rset
|
|
6295 |
:rset
|
|
6296 |
s/^[ ]*#[ ]*define[ ][ ]*//
|
|
6297 |
t ok
|
|
6298 |
d
|
|
6299 |
:ok
|
|
6300 |
s/[\\&,]/\\&/g
|
|
6301 |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
|
6302 |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
|
6303 |
' >>conftest.defines
|
|
6304 |
|
|
6305 |
# Remove the space that was appended to ease matching.
|
|
6306 |
# Then replace #undef with comments. This is necessary, for
|
2501 | 6307 |
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
2502 | 6308 |
# on some systems where configure will not decide to define it.
|
2503 | |
cat >> conftest.vals <<\EOF
|
2504 | |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
2505 | |
EOF
|
2506 | |
|
2507 | |
# Break up conftest.vals because some shells have a limit on
|
2508 | |
# the size of here documents, and old seds have small limits too.
|
2509 | |
|
2510 | |
rm -f conftest.tail
|
|
6309 |
# (The regexp can be short, since the line contains either #define or #undef.)
|
|
6310 |
echo 's/ $//
|
|
6311 |
s,^[ #]*u.*,/* & */,' >>conftest.defines
|
|
6312 |
|
|
6313 |
# Break up conftest.defines:
|
|
6314 |
ac_max_sed_lines=50
|
|
6315 |
|
|
6316 |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
|
6317 |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
|
6318 |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
|
6319 |
# et cetera.
|
|
6320 |
ac_in='$ac_file_inputs'
|
|
6321 |
ac_out='"$tmp/out1"'
|
|
6322 |
ac_nxt='"$tmp/out2"'
|
|
6323 |
|
2511 | 6324 |
while :
|
2512 | 6325 |
do
|
2513 | |
ac_lines=`grep -c . conftest.vals`
|
2514 | |
# grep -c gives empty output for an empty file on some AIX systems.
|
2515 | |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
2516 | |
# Write a limited-size here document to conftest.frag.
|
2517 | |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
2518 | |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
6326 |
# Write a here document:
|
|
6327 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
6328 |
# First, check the format of the line:
|
|
6329 |
cat >"\$tmp/defines.sed" <<\\CEOF
|
|
6330 |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
|
6331 |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
|
6332 |
b
|
|
6333 |
:def
|
|
6334 |
_ACEOF
|
|
6335 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
2519 | 6336 |
echo 'CEOF
|
2520 | |
sed -f conftest.frag conftest.in > conftest.out
|
2521 | |
rm -f conftest.in
|
2522 | |
mv conftest.out conftest.in
|
2523 | |
' >> $CONFIG_STATUS
|
2524 | |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
2525 | |
rm -f conftest.vals
|
2526 | |
mv conftest.tail conftest.vals
|
|
6337 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
|
6338 |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
|
6339 |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
|
6340 |
grep . conftest.tail >/dev/null || break
|
|
6341 |
rm -f conftest.defines
|
|
6342 |
mv conftest.tail conftest.defines
|
2527 | 6343 |
done
|
2528 | |
rm -f conftest.vals
|
2529 | |
|
2530 | |
cat >> $CONFIG_STATUS <<\EOF
|
2531 | |
rm -f conftest.frag conftest.h
|
2532 | |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
2533 | |
cat conftest.in >> conftest.h
|
2534 | |
rm -f conftest.in
|
2535 | |
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
2536 | |
echo "$ac_file is unchanged"
|
2537 | |
rm -f conftest.h
|
|
6344 |
rm -f conftest.defines conftest.tail
|
|
6345 |
|
|
6346 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
|
6347 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
6348 |
if test x"$ac_file" != x-; then
|
|
6349 |
echo "/* $configure_input */" >"$tmp/config.h"
|
|
6350 |
cat "$ac_result" >>"$tmp/config.h"
|
|
6351 |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
|
6352 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
|
6353 |
echo "$as_me: $ac_file is unchanged" >&6;}
|
|
6354 |
else
|
|
6355 |
rm -f $ac_file
|
|
6356 |
mv "$tmp/config.h" $ac_file
|
|
6357 |
fi
|
2538 | 6358 |
else
|
2539 | |
# Remove last slash and all that follows it. Not all systems have dirname.
|
2540 | |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
2541 | |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
2542 | |
# The file is in a subdirectory.
|
2543 | |
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
2544 | |
fi
|
2545 | |
rm -f $ac_file
|
2546 | |
mv conftest.h $ac_file
|
|
6359 |
echo "/* $configure_input */"
|
|
6360 |
cat "$ac_result"
|
2547 | 6361 |
fi
|
2548 | |
fi; done
|
2549 | |
|
2550 | |
EOF
|
2551 | |
cat >> $CONFIG_STATUS <<EOF
|
2552 | |
|
2553 | |
EOF
|
2554 | |
cat >> $CONFIG_STATUS <<\EOF
|
2555 | |
|
2556 | |
exit 0
|
2557 | |
EOF
|
|
6362 |
rm -f "$tmp/out12"
|
|
6363 |
;;
|
|
6364 |
|
|
6365 |
|
|
6366 |
esac
|
|
6367 |
|
|
6368 |
done # for ac_tag
|
|
6369 |
|
|
6370 |
|
|
6371 |
{ (exit 0); exit 0; }
|
|
6372 |
_ACEOF
|
2558 | 6373 |
chmod +x $CONFIG_STATUS
|
2559 | |
rm -fr confdefs* $ac_clean_files
|
2560 | |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
2561 | |
|
|
6374 |
ac_clean_files=$ac_clean_files_save
|
|
6375 |
|
|
6376 |
|
|
6377 |
# configure is writing to config.log, and then calls config.status.
|
|
6378 |
# config.status does its own redirection, appending to config.log.
|
|
6379 |
# Unfortunately, on DOS this fails, as config.log is still kept open
|
|
6380 |
# by configure, so config.status won't be able to write to it; its
|
|
6381 |
# output is simply discarded. So we exec the FD to /dev/null,
|
|
6382 |
# effectively closing config.log, so it can be properly (re)opened and
|
|
6383 |
# appended to by config.status. When coming back to configure, we
|
|
6384 |
# need to make the FD available again.
|
|
6385 |
if test "$no_create" != yes; then
|
|
6386 |
ac_cs_success=:
|
|
6387 |
ac_config_status_args=
|
|
6388 |
test "$silent" = yes &&
|
|
6389 |
ac_config_status_args="$ac_config_status_args --quiet"
|
|
6390 |
exec 5>/dev/null
|
|
6391 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
6392 |
exec 5>>config.log
|
|
6393 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
6394 |
# would make configure fail if this is the last instruction.
|
|
6395 |
$ac_cs_success || { (exit 1); exit 1; }
|
|
6396 |
fi
|
|
6397 |
|