iof-bird / bird-2.0.1 / configure @ 2b5ca73a
History | View | Annotate | Download (194 KB)
1 |
#! /bin/sh |
---|---|
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 |
# |
8 |
# |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## -------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## -------------------- ## |
14 |
|
15 |
# Be more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in #( |
26 |
*posix*) : |
27 |
set -o posix ;; #( |
28 |
*) : |
29 |
;; |
30 |
esac |
31 |
fi |
32 |
|
33 |
|
34 |
as_nl=' |
35 |
' |
36 |
export as_nl |
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
42 |
# but without wasting forks for bash or zsh. |
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
45 |
as_echo='print -r --' |
46 |
as_echo_n='print -rn --' |
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='printf %s\n' |
49 |
as_echo_n='printf %s' |
50 |
else |
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 |
as_echo_n='/usr/ucb/echo -n' |
54 |
else |
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 |
as_echo_n_body='eval |
57 |
arg=$1; |
58 |
case $arg in #( |
59 |
*"$as_nl"*) |
60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 |
esac; |
63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
64 |
' |
65 |
export as_echo_n_body |
66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
67 |
fi |
68 |
export as_echo_body |
69 |
as_echo='sh -c $as_echo_body as_echo' |
70 |
fi |
71 |
|
72 |
# The user is always right. |
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
74 |
PATH_SEPARATOR=: |
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 |
PATH_SEPARATOR=';' |
78 |
} |
79 |
fi |
80 |
|
81 |
|
82 |
# IFS |
83 |
# We need space, tab and new line, in precisely that order. Quoting is |
84 |
# there to prevent editors from complaining about space-tab. |
85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
86 |
# splitting by setting IFS to empty value.) |
87 |
IFS=" "" $as_nl" |
88 |
|
89 |
# Find who we are. Look in the path if we contain no directory separator. |
90 |
as_myself= |
91 |
case $0 in #(( |
92 |
*[\\/]* ) as_myself=$0 ;; |
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 |
for as_dir in $PATH |
95 |
do |
96 |
IFS=$as_save_IFS |
97 |
test -z "$as_dir" && as_dir=. |
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
# Unset variables that we do not need and which cause bugs (e.g. in |
115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
116 |
# suppresses any "Segmentation fault" message there. '((' could |
117 |
# trigger a bug in pdksh 5.2.14. |
118 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
119 |
do eval test x\${$as_var+set} = xset \ |
120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
121 |
done |
122 |
PS1='$ ' |
123 |
PS2='> ' |
124 |
PS4='+ ' |
125 |
|
126 |
# NLS nuisances. |
127 |
LC_ALL=C |
128 |
export LC_ALL |
129 |
LANGUAGE=C |
130 |
export LANGUAGE |
131 |
|
132 |
# CDPATH. |
133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 |
|
135 |
# Use a proper internal environment variable to ensure we don't fall |
136 |
# into an infinite loop, continuously re-executing ourselves. |
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 |
_as_can_reexec=no; export _as_can_reexec; |
139 |
# We cannot yet assume a decent shell, so we have to provide a |
140 |
# neutralization value for shells without unset; and this also |
141 |
# works around shells that cannot unset nonexistent variables. |
142 |
# Preserve -v and -x to the replacement shell. |
143 |
BASH_ENV=/dev/null |
144 |
ENV=/dev/null |
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
146 |
case $- in # (((( |
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
148 |
*v* ) as_opts=-v ;; |
149 |
*x* ) as_opts=-x ;; |
150 |
* ) as_opts= ;; |
151 |
esac |
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
154 |
# out after a failed `exec'. |
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 |
as_fn_exit 255 |
157 |
fi |
158 |
# We don't want this to propagate to other subprocesses. |
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 |
emulate sh |
163 |
NULLCMD=: |
164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 |
# is contrary to our usage. Disable this feature. |
166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 |
setopt NO_GLOB_SUBST |
168 |
else |
169 |
case \`(set -o) 2>/dev/null\` in #( |
170 |
*posix*) : |
171 |
set -o posix ;; #( |
172 |
*) : |
173 |
;; |
174 |
esac |
175 |
fi |
176 |
" |
177 |
as_required="as_fn_return () { (exit \$1); } |
178 |
as_fn_success () { as_fn_return 0; } |
179 |
as_fn_failure () { as_fn_return 1; } |
180 |
as_fn_ret_success () { return 0; } |
181 |
as_fn_ret_failure () { return 1; } |
182 |
|
183 |
exitcode=0 |
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
189 |
|
190 |
else |
191 |
exitcode=1; echo positional parameters were not saved. |
192 |
fi |
193 |
test x\$exitcode = x0 || exit 1 |
194 |
test -x / || exit 1" |
195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 |
test \$(( 1 + 1 )) = 2 || exit 1" |
200 |
if (eval "$as_required") 2>/dev/null; then : |
201 |
as_have_required=yes |
202 |
else |
203 |
as_have_required=no |
204 |
fi |
205 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
206 |
|
207 |
else |
208 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
209 |
as_found=false |
210 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
211 |
do |
212 |
IFS=$as_save_IFS |
213 |
test -z "$as_dir" && as_dir=. |
214 |
as_found=: |
215 |
case $as_dir in #( |
216 |
/*) |
217 |
for as_base in sh bash ksh sh5; do |
218 |
# Try only shells that exist, to save several forks. |
219 |
as_shell=$as_dir/$as_base |
220 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
221 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
222 |
CONFIG_SHELL=$as_shell as_have_required=yes |
223 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
224 |
break 2 |
225 |
fi |
226 |
fi |
227 |
done;; |
228 |
esac |
229 |
as_found=false |
230 |
done |
231 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
233 |
CONFIG_SHELL=$SHELL as_have_required=yes |
234 |
fi; } |
235 |
IFS=$as_save_IFS |
236 |
|
237 |
|
238 |
if test "x$CONFIG_SHELL" != x; then : |
239 |
export CONFIG_SHELL |
240 |
# We cannot yet assume a decent shell, so we have to provide a |
241 |
# neutralization value for shells without unset; and this also |
242 |
# works around shells that cannot unset nonexistent variables. |
243 |
# Preserve -v and -x to the replacement shell. |
244 |
BASH_ENV=/dev/null |
245 |
ENV=/dev/null |
246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
247 |
case $- in # (((( |
248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
249 |
*v* ) as_opts=-v ;; |
250 |
*x* ) as_opts=-x ;; |
251 |
* ) as_opts= ;; |
252 |
esac |
253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
255 |
# out after a failed `exec'. |
256 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 |
exit 255 |
258 |
fi |
259 |
|
260 |
if test x$as_have_required = xno; then : |
261 |
$as_echo "$0: This script requires a shell more modern than all" |
262 |
$as_echo "$0: the shells that I found on your system." |
263 |
if test x${ZSH_VERSION+set} = xset ; then |
264 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
266 |
else |
267 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 |
$0: including any error possibly output before this |
269 |
$0: message. Then install a modern shell, or manually run |
270 |
$0: the script under such a shell if you do have one." |
271 |
fi |
272 |
exit 1 |
273 |
fi |
274 |
fi |
275 |
fi |
276 |
SHELL=${CONFIG_SHELL-/bin/sh} |
277 |
export SHELL |
278 |
# Unset more variables known to interfere with behavior of common tools. |
279 |
CLICOLOR_FORCE= GREP_OPTIONS= |
280 |
unset CLICOLOR_FORCE GREP_OPTIONS |
281 |
|
282 |
## --------------------- ## |
283 |
## M4sh Shell Functions. ## |
284 |
## --------------------- ## |
285 |
# as_fn_unset VAR |
286 |
# --------------- |
287 |
# Portably unset VAR. |
288 |
as_fn_unset () |
289 |
{ |
290 |
{ eval $1=; unset $1;} |
291 |
} |
292 |
as_unset=as_fn_unset |
293 |
|
294 |
# as_fn_set_status STATUS |
295 |
# ----------------------- |
296 |
# Set $? to STATUS, without forking. |
297 |
as_fn_set_status () |
298 |
{ |
299 |
return $1 |
300 |
} # as_fn_set_status |
301 |
|
302 |
# as_fn_exit STATUS |
303 |
# ----------------- |
304 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
305 |
as_fn_exit () |
306 |
{ |
307 |
set +e |
308 |
as_fn_set_status $1 |
309 |
exit $1 |
310 |
} # as_fn_exit |
311 |
|
312 |
# as_fn_mkdir_p |
313 |
# ------------- |
314 |
# Create "$as_dir" as a directory, including parents if necessary. |
315 |
as_fn_mkdir_p () |
316 |
{ |
317 |
|
318 |
case $as_dir in #( |
319 |
-*) as_dir=./$as_dir;; |
320 |
esac |
321 |
test -d "$as_dir" || eval $as_mkdir_p || { |
322 |
as_dirs= |
323 |
while :; do |
324 |
case $as_dir in #( |
325 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
326 |
*) as_qdir=$as_dir;; |
327 |
esac |
328 |
as_dirs="'$as_qdir' $as_dirs" |
329 |
as_dir=`$as_dirname -- "$as_dir" || |
330 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
331 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
332 |
X"$as_dir" : 'X\(//\)$' \| \ |
333 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
334 |
$as_echo X"$as_dir" | |
335 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
336 |
s//\1/ |
337 |
q |
338 |
} |
339 |
/^X\(\/\/\)[^/].*/{ |
340 |
s//\1/ |
341 |
q |
342 |
} |
343 |
/^X\(\/\/\)$/{ |
344 |
s//\1/ |
345 |
q |
346 |
} |
347 |
/^X\(\/\).*/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
s/.*/./; q'` |
352 |
test -d "$as_dir" && break |
353 |
done |
354 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
355 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
356 |
|
357 |
|
358 |
} # as_fn_mkdir_p |
359 |
|
360 |
# as_fn_executable_p FILE |
361 |
# ----------------------- |
362 |
# Test if FILE is an executable regular file. |
363 |
as_fn_executable_p () |
364 |
{ |
365 |
test -f "$1" && test -x "$1" |
366 |
} # as_fn_executable_p |
367 |
# as_fn_append VAR VALUE |
368 |
# ---------------------- |
369 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
370 |
# advantage of any shell optimizations that allow amortized linear growth over |
371 |
# repeated appends, instead of the typical quadratic growth present in naive |
372 |
# implementations. |
373 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
374 |
eval 'as_fn_append () |
375 |
{ |
376 |
eval $1+=\$2 |
377 |
}' |
378 |
else |
379 |
as_fn_append () |
380 |
{ |
381 |
eval $1=\$$1\$2 |
382 |
} |
383 |
fi # as_fn_append |
384 |
|
385 |
# as_fn_arith ARG... |
386 |
# ------------------ |
387 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
388 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
389 |
# must be portable across $(()) and expr. |
390 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
391 |
eval 'as_fn_arith () |
392 |
{ |
393 |
as_val=$(( $* )) |
394 |
}' |
395 |
else |
396 |
as_fn_arith () |
397 |
{ |
398 |
as_val=`expr "$@" || test $? -eq 1` |
399 |
} |
400 |
fi # as_fn_arith |
401 |
|
402 |
|
403 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 |
# ---------------------------------------- |
405 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
407 |
# script with STATUS, using 1 if that was 0. |
408 |
as_fn_error () |
409 |
{ |
410 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
411 |
if test "$4"; then |
412 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
413 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
414 |
fi |
415 |
$as_echo "$as_me: error: $2" >&2 |
416 |
as_fn_exit $as_status |
417 |
} # as_fn_error |
418 |
|
419 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
420 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
421 |
as_expr=expr |
422 |
else |
423 |
as_expr=false |
424 |
fi |
425 |
|
426 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
427 |
as_basename=basename |
428 |
else |
429 |
as_basename=false |
430 |
fi |
431 |
|
432 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 |
as_dirname=dirname |
434 |
else |
435 |
as_dirname=false |
436 |
fi |
437 |
|
438 |
as_me=`$as_basename -- "$0" || |
439 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 |
X"$0" : 'X\(//\)$' \| \ |
441 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 |
$as_echo X/"$0" | |
443 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 |
s//\1/ |
445 |
q |
446 |
} |
447 |
/^X\/\(\/\/\)$/{ |
448 |
s//\1/ |
449 |
q |
450 |
} |
451 |
/^X\/\(\/\).*/{ |
452 |
s//\1/ |
453 |
q |
454 |
} |
455 |
s/.*/./; q'` |
456 |
|
457 |
# Avoid depending upon Character Ranges. |
458 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
459 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
460 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
461 |
as_cr_digits='0123456789' |
462 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
463 |
|
464 |
|
465 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
467 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
468 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
469 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
470 |
sed -n ' |
471 |
p |
472 |
/[$]LINENO/= |
473 |
' <$as_myself | |
474 |
sed ' |
475 |
s/[$]LINENO.*/&-/ |
476 |
t lineno |
477 |
b |
478 |
:lineno |
479 |
N |
480 |
:loop |
481 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
482 |
t loop |
483 |
s/-\n.*// |
484 |
' >$as_me.lineno && |
485 |
chmod +x "$as_me.lineno" || |
486 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
487 |
|
488 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 |
# already done that, so ensure we don't try to do so again and fall |
490 |
# in an infinite loop. This has already happened in practice. |
491 |
_as_can_reexec=no; export _as_can_reexec |
492 |
# Don't try to exec as it changes $[0], causing all sort of problems |
493 |
# (the dirname of $[0] is not the place where we might find the |
494 |
# original and so on. Autoconf is especially sensitive to this). |
495 |
. "./$as_me.lineno" |
496 |
# Exit status is that of the last command. |
497 |
exit |
498 |
} |
499 |
|
500 |
ECHO_C= ECHO_N= ECHO_T= |
501 |
case `echo -n x` in #((((( |
502 |
-n*) |
503 |
case `echo 'xy\c'` in |
504 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
505 |
xy) ECHO_C='\c';; |
506 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
507 |
ECHO_T=' ';; |
508 |
esac;; |
509 |
*) |
510 |
ECHO_N='-n';; |
511 |
esac |
512 |
|
513 |
rm -f conf$$ conf$$.exe conf$$.file |
514 |
if test -d conf$$.dir; then |
515 |
rm -f conf$$.dir/conf$$.file |
516 |
else |
517 |
rm -f conf$$.dir |
518 |
mkdir conf$$.dir 2>/dev/null |
519 |
fi |
520 |
if (echo >conf$$.file) 2>/dev/null; then |
521 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
522 |
as_ln_s='ln -s' |
523 |
# ... but there are two gotchas: |
524 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
525 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
526 |
# In both cases, we have to default to `cp -pR'. |
527 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
528 |
as_ln_s='cp -pR' |
529 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s=ln |
531 |
else |
532 |
as_ln_s='cp -pR' |
533 |
fi |
534 |
else |
535 |
as_ln_s='cp -pR' |
536 |
fi |
537 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 |
rmdir conf$$.dir 2>/dev/null |
539 |
|
540 |
if mkdir -p . 2>/dev/null; then |
541 |
as_mkdir_p='mkdir -p "$as_dir"' |
542 |
else |
543 |
test -d ./-p && rmdir ./-p |
544 |
as_mkdir_p=false |
545 |
fi |
546 |
|
547 |
as_test_x='test -x' |
548 |
as_executable_p=as_fn_executable_p |
549 |
|
550 |
# Sed expression to map a string onto a valid CPP name. |
551 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
552 |
|
553 |
# Sed expression to map a string onto a valid variable name. |
554 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
555 |
|
556 |
|
557 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
558 |
exec 6>&1 |
559 |
|
560 |
# Name of the host. |
561 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
562 |
# so uname gets run too. |
563 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
564 |
|
565 |
# |
566 |
# Initializations. |
567 |
# |
568 |
ac_default_prefix=/usr/local |
569 |
ac_clean_files= |
570 |
ac_config_libobj_dir=. |
571 |
LIBOBJS= |
572 |
cross_compiling=no |
573 |
subdirs= |
574 |
MFLAGS= |
575 |
MAKEFLAGS= |
576 |
|
577 |
# Identity of this package. |
578 |
PACKAGE_NAME= |
579 |
PACKAGE_TARNAME= |
580 |
PACKAGE_VERSION= |
581 |
PACKAGE_STRING= |
582 |
PACKAGE_BUGREPORT= |
583 |
PACKAGE_URL= |
584 |
|
585 |
ac_unique_file="conf/confbase.Y" |
586 |
ac_header_list= |
587 |
# Factoring default headers for most tests. |
588 |
ac_includes_default="\ |
589 |
#include <stdio.h> |
590 |
#ifdef HAVE_SYS_TYPES_H |
591 |
# include <sys/types.h> |
592 |
#endif |
593 |
#ifdef HAVE_SYS_STAT_H |
594 |
# include <sys/stat.h> |
595 |
#endif |
596 |
#ifdef STDC_HEADERS |
597 |
# include <stdlib.h> |
598 |
# include <stddef.h> |
599 |
#else |
600 |
# ifdef HAVE_STDLIB_H |
601 |
# include <stdlib.h> |
602 |
# endif |
603 |
#endif |
604 |
#ifdef HAVE_STRING_H |
605 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
606 |
# include <memory.h> |
607 |
# endif |
608 |
# include <string.h> |
609 |
#endif |
610 |
#ifdef HAVE_STRINGS_H |
611 |
# include <strings.h> |
612 |
#endif |
613 |
#ifdef HAVE_INTTYPES_H |
614 |
# include <inttypes.h> |
615 |
#endif |
616 |
#ifdef HAVE_STDINT_H |
617 |
# include <stdint.h> |
618 |
#endif |
619 |
#ifdef HAVE_UNISTD_H |
620 |
# include <unistd.h> |
621 |
#endif" |
622 |
|
623 |
ac_subst_vars='LTLIBOBJS |
624 |
LIBOBJS |
625 |
CLIENT_LIBS |
626 |
CLIENT |
627 |
EGREP |
628 |
GREP |
629 |
protocols |
630 |
DAEMON_LIBS |
631 |
iproutedir |
632 |
sysdep_dirs |
633 |
RANLIB |
634 |
INSTALL_DATA |
635 |
INSTALL_SCRIPT |
636 |
INSTALL_PROGRAM |
637 |
CPP |
638 |
host_os |
639 |
host_vendor |
640 |
host_cpu |
641 |
host |
642 |
build_os |
643 |
build_vendor |
644 |
build_cpu |
645 |
build |
646 |
OBJEXT |
647 |
EXEEXT |
648 |
ac_ct_CC |
649 |
CPPFLAGS |
650 |
LDFLAGS |
651 |
CFLAGS |
652 |
CC |
653 |
CONTROL_SOCKET |
654 |
CONFIG_FILE |
655 |
runtimedir |
656 |
srcdir |
657 |
exedir |
658 |
objdir |
659 |
M4 |
660 |
BISON |
661 |
FLEX |
662 |
target_alias |
663 |
host_alias |
664 |
build_alias |
665 |
LIBS |
666 |
ECHO_T |
667 |
ECHO_N |
668 |
ECHO_C |
669 |
DEFS |
670 |
mandir |
671 |
localedir |
672 |
libdir |
673 |
psdir |
674 |
pdfdir |
675 |
dvidir |
676 |
htmldir |
677 |
infodir |
678 |
docdir |
679 |
oldincludedir |
680 |
includedir |
681 |
localstatedir |
682 |
sharedstatedir |
683 |
sysconfdir |
684 |
datadir |
685 |
datarootdir |
686 |
libexecdir |
687 |
sbindir |
688 |
bindir |
689 |
program_transform_name |
690 |
prefix |
691 |
exec_prefix |
692 |
PACKAGE_URL |
693 |
PACKAGE_BUGREPORT |
694 |
PACKAGE_STRING |
695 |
PACKAGE_VERSION |
696 |
PACKAGE_TARNAME |
697 |
PACKAGE_NAME |
698 |
PATH_SEPARATOR |
699 |
SHELL' |
700 |
ac_subst_files='' |
701 |
ac_user_opts=' |
702 |
enable_option_checking |
703 |
enable_client |
704 |
enable_debug |
705 |
enable_memcheck |
706 |
enable_pthreads |
707 |
enable_libssh |
708 |
enable_mpls_kernel |
709 |
with_protocols |
710 |
with_sysconfig |
711 |
with_runtimedir |
712 |
with_iproutedir |
713 |
' |
714 |
ac_precious_vars='build_alias |
715 |
host_alias |
716 |
target_alias |
717 |
FLEX |
718 |
BISON |
719 |
M4 |
720 |
CC |
721 |
CFLAGS |
722 |
LDFLAGS |
723 |
LIBS |
724 |
CPPFLAGS |
725 |
CPP' |
726 |
|
727 |
|
728 |
# Initialize some variables set by options. |
729 |
ac_init_help= |
730 |
ac_init_version=false |
731 |
ac_unrecognized_opts= |
732 |
ac_unrecognized_sep= |
733 |
# The variables have the same names as the options, with |
734 |
# dashes changed to underlines. |
735 |
cache_file=/dev/null |
736 |
exec_prefix=NONE |
737 |
no_create= |
738 |
no_recursion= |
739 |
prefix=NONE |
740 |
program_prefix=NONE |
741 |
program_suffix=NONE |
742 |
program_transform_name=s,x,x, |
743 |
silent= |
744 |
site= |
745 |
srcdir= |
746 |
verbose= |
747 |
x_includes=NONE |
748 |
x_libraries=NONE |
749 |
|
750 |
# Installation directory options. |
751 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
752 |
# and all the variables that are supposed to be based on exec_prefix |
753 |
# by default will actually change. |
754 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
755 |
# (The list follows the same order as the GNU Coding Standards.) |
756 |
bindir='${exec_prefix}/bin' |
757 |
sbindir='${exec_prefix}/sbin' |
758 |
libexecdir='${exec_prefix}/libexec' |
759 |
datarootdir='${prefix}/share' |
760 |
datadir='${datarootdir}' |
761 |
sysconfdir='${prefix}/etc' |
762 |
sharedstatedir='${prefix}/com' |
763 |
localstatedir='${prefix}/var' |
764 |
includedir='${prefix}/include' |
765 |
oldincludedir='/usr/include' |
766 |
docdir='${datarootdir}/doc/${PACKAGE}' |
767 |
infodir='${datarootdir}/info' |
768 |
htmldir='${docdir}' |
769 |
dvidir='${docdir}' |
770 |
pdfdir='${docdir}' |
771 |
psdir='${docdir}' |
772 |
libdir='${exec_prefix}/lib' |
773 |
localedir='${datarootdir}/locale' |
774 |
mandir='${datarootdir}/man' |
775 |
|
776 |
ac_prev= |
777 |
ac_dashdash= |
778 |
for ac_option |
779 |
do |
780 |
# If the previous option needs an argument, assign it. |
781 |
if test -n "$ac_prev"; then |
782 |
eval $ac_prev=\$ac_option |
783 |
ac_prev= |
784 |
continue |
785 |
fi |
786 |
|
787 |
case $ac_option in |
788 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
789 |
*=) ac_optarg= ;; |
790 |
*) ac_optarg=yes ;; |
791 |
esac |
792 |
|
793 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
794 |
|
795 |
case $ac_dashdash$ac_option in |
796 |
--) |
797 |
ac_dashdash=yes ;; |
798 |
|
799 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
800 |
ac_prev=bindir ;; |
801 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
802 |
bindir=$ac_optarg ;; |
803 |
|
804 |
-build | --build | --buil | --bui | --bu) |
805 |
ac_prev=build_alias ;; |
806 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
807 |
build_alias=$ac_optarg ;; |
808 |
|
809 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
810 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
811 |
ac_prev=cache_file ;; |
812 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
813 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
814 |
cache_file=$ac_optarg ;; |
815 |
|
816 |
--config-cache | -C) |
817 |
cache_file=config.cache ;; |
818 |
|
819 |
-datadir | --datadir | --datadi | --datad) |
820 |
ac_prev=datadir ;; |
821 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
822 |
datadir=$ac_optarg ;; |
823 |
|
824 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
825 |
| --dataroo | --dataro | --datar) |
826 |
ac_prev=datarootdir ;; |
827 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
828 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
829 |
datarootdir=$ac_optarg ;; |
830 |
|
831 |
-disable-* | --disable-*) |
832 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
833 |
# Reject names that are not valid shell variable names. |
834 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
835 |
as_fn_error $? "invalid feature name: $ac_useropt" |
836 |
ac_useropt_orig=$ac_useropt |
837 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
838 |
case $ac_user_opts in |
839 |
*" |
840 |
"enable_$ac_useropt" |
841 |
"*) ;; |
842 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
843 |
ac_unrecognized_sep=', ';; |
844 |
esac |
845 |
eval enable_$ac_useropt=no ;; |
846 |
|
847 |
-docdir | --docdir | --docdi | --doc | --do) |
848 |
ac_prev=docdir ;; |
849 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
850 |
docdir=$ac_optarg ;; |
851 |
|
852 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
853 |
ac_prev=dvidir ;; |
854 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
855 |
dvidir=$ac_optarg ;; |
856 |
|
857 |
-enable-* | --enable-*) |
858 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
859 |
# Reject names that are not valid shell variable names. |
860 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
861 |
as_fn_error $? "invalid feature name: $ac_useropt" |
862 |
ac_useropt_orig=$ac_useropt |
863 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
864 |
case $ac_user_opts in |
865 |
*" |
866 |
"enable_$ac_useropt" |
867 |
"*) ;; |
868 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
869 |
ac_unrecognized_sep=', ';; |
870 |
esac |
871 |
eval enable_$ac_useropt=\$ac_optarg ;; |
872 |
|
873 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
874 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
875 |
| --exec | --exe | --ex) |
876 |
ac_prev=exec_prefix ;; |
877 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
878 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
879 |
| --exec=* | --exe=* | --ex=*) |
880 |
exec_prefix=$ac_optarg ;; |
881 |
|
882 |
-gas | --gas | --ga | --g) |
883 |
# Obsolete; use --with-gas. |
884 |
with_gas=yes ;; |
885 |
|
886 |
-help | --help | --hel | --he | -h) |
887 |
ac_init_help=long ;; |
888 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
889 |
ac_init_help=recursive ;; |
890 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
891 |
ac_init_help=short ;; |
892 |
|
893 |
-host | --host | --hos | --ho) |
894 |
ac_prev=host_alias ;; |
895 |
-host=* | --host=* | --hos=* | --ho=*) |
896 |
host_alias=$ac_optarg ;; |
897 |
|
898 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
899 |
ac_prev=htmldir ;; |
900 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
901 |
| --ht=*) |
902 |
htmldir=$ac_optarg ;; |
903 |
|
904 |
-includedir | --includedir | --includedi | --included | --include \ |
905 |
| --includ | --inclu | --incl | --inc) |
906 |
ac_prev=includedir ;; |
907 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
908 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
909 |
includedir=$ac_optarg ;; |
910 |
|
911 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
912 |
ac_prev=infodir ;; |
913 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
914 |
infodir=$ac_optarg ;; |
915 |
|
916 |
-libdir | --libdir | --libdi | --libd) |
917 |
ac_prev=libdir ;; |
918 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
919 |
libdir=$ac_optarg ;; |
920 |
|
921 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
922 |
| --libexe | --libex | --libe) |
923 |
ac_prev=libexecdir ;; |
924 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
925 |
| --libexe=* | --libex=* | --libe=*) |
926 |
libexecdir=$ac_optarg ;; |
927 |
|
928 |
-localedir | --localedir | --localedi | --localed | --locale) |
929 |
ac_prev=localedir ;; |
930 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
931 |
localedir=$ac_optarg ;; |
932 |
|
933 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
934 |
| --localstate | --localstat | --localsta | --localst | --locals) |
935 |
ac_prev=localstatedir ;; |
936 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
937 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
938 |
localstatedir=$ac_optarg ;; |
939 |
|
940 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
941 |
ac_prev=mandir ;; |
942 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
943 |
mandir=$ac_optarg ;; |
944 |
|
945 |
-nfp | --nfp | --nf) |
946 |
# Obsolete; use --without-fp. |
947 |
with_fp=no ;; |
948 |
|
949 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
950 |
| --no-cr | --no-c | -n) |
951 |
no_create=yes ;; |
952 |
|
953 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
954 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
955 |
no_recursion=yes ;; |
956 |
|
957 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
958 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
959 |
| --oldin | --oldi | --old | --ol | --o) |
960 |
ac_prev=oldincludedir ;; |
961 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
962 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
963 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
964 |
oldincludedir=$ac_optarg ;; |
965 |
|
966 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
967 |
ac_prev=prefix ;; |
968 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
969 |
prefix=$ac_optarg ;; |
970 |
|
971 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
972 |
| --program-pre | --program-pr | --program-p) |
973 |
ac_prev=program_prefix ;; |
974 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
975 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
976 |
program_prefix=$ac_optarg ;; |
977 |
|
978 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
979 |
| --program-suf | --program-su | --program-s) |
980 |
ac_prev=program_suffix ;; |
981 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
982 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
983 |
program_suffix=$ac_optarg ;; |
984 |
|
985 |
-program-transform-name | --program-transform-name \ |
986 |
| --program-transform-nam | --program-transform-na \ |
987 |
| --program-transform-n | --program-transform- \ |
988 |
| --program-transform | --program-transfor \ |
989 |
| --program-transfo | --program-transf \ |
990 |
| --program-trans | --program-tran \ |
991 |
| --progr-tra | --program-tr | --program-t) |
992 |
ac_prev=program_transform_name ;; |
993 |
-program-transform-name=* | --program-transform-name=* \ |
994 |
| --program-transform-nam=* | --program-transform-na=* \ |
995 |
| --program-transform-n=* | --program-transform-=* \ |
996 |
| --program-transform=* | --program-transfor=* \ |
997 |
| --program-transfo=* | --program-transf=* \ |
998 |
| --program-trans=* | --program-tran=* \ |
999 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1000 |
program_transform_name=$ac_optarg ;; |
1001 |
|
1002 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1003 |
ac_prev=pdfdir ;; |
1004 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1005 |
pdfdir=$ac_optarg ;; |
1006 |
|
1007 |
-psdir | --psdir | --psdi | --psd | --ps) |
1008 |
ac_prev=psdir ;; |
1009 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1010 |
psdir=$ac_optarg ;; |
1011 |
|
1012 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1013 |
| -silent | --silent | --silen | --sile | --sil) |
1014 |
silent=yes ;; |
1015 |
|
1016 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1017 |
ac_prev=sbindir ;; |
1018 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1019 |
| --sbi=* | --sb=*) |
1020 |
sbindir=$ac_optarg ;; |
1021 |
|
1022 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1023 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1024 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1025 |
| --sha | --sh) |
1026 |
ac_prev=sharedstatedir ;; |
1027 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1028 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1029 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1030 |
| --sha=* | --sh=*) |
1031 |
sharedstatedir=$ac_optarg ;; |
1032 |
|
1033 |
-site | --site | --sit) |
1034 |
ac_prev=site ;; |
1035 |
-site=* | --site=* | --sit=*) |
1036 |
site=$ac_optarg ;; |
1037 |
|
1038 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1039 |
ac_prev=srcdir ;; |
1040 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1041 |
srcdir=$ac_optarg ;; |
1042 |
|
1043 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1044 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1045 |
ac_prev=sysconfdir ;; |
1046 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1047 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1048 |
sysconfdir=$ac_optarg ;; |
1049 |
|
1050 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1051 |
ac_prev=target_alias ;; |
1052 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1053 |
target_alias=$ac_optarg ;; |
1054 |
|
1055 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1056 |
verbose=yes ;; |
1057 |
|
1058 |
-version | --version | --versio | --versi | --vers | -V) |
1059 |
ac_init_version=: ;; |
1060 |
|
1061 |
-with-* | --with-*) |
1062 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1063 |
# Reject names that are not valid shell variable names. |
1064 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1065 |
as_fn_error $? "invalid package name: $ac_useropt" |
1066 |
ac_useropt_orig=$ac_useropt |
1067 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1068 |
case $ac_user_opts in |
1069 |
*" |
1070 |
"with_$ac_useropt" |
1071 |
"*) ;; |
1072 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1073 |
ac_unrecognized_sep=', ';; |
1074 |
esac |
1075 |
eval with_$ac_useropt=\$ac_optarg ;; |
1076 |
|
1077 |
-without-* | --without-*) |
1078 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1079 |
# Reject names that are not valid shell variable names. |
1080 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1081 |
as_fn_error $? "invalid package name: $ac_useropt" |
1082 |
ac_useropt_orig=$ac_useropt |
1083 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1084 |
case $ac_user_opts in |
1085 |
*" |
1086 |
"with_$ac_useropt" |
1087 |
"*) ;; |
1088 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1089 |
ac_unrecognized_sep=', ';; |
1090 |
esac |
1091 |
eval with_$ac_useropt=no ;; |
1092 |
|
1093 |
--x) |
1094 |
# Obsolete; use --with-x. |
1095 |
with_x=yes ;; |
1096 |
|
1097 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1098 |
| --x-incl | --x-inc | --x-in | --x-i) |
1099 |
ac_prev=x_includes ;; |
1100 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1101 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1102 |
x_includes=$ac_optarg ;; |
1103 |
|
1104 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1105 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1106 |
ac_prev=x_libraries ;; |
1107 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1108 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1109 |
x_libraries=$ac_optarg ;; |
1110 |
|
1111 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1112 |
Try \`$0 --help' for more information" |
1113 |
;; |
1114 |
|
1115 |
*=*) |
1116 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1117 |
# Reject names that are not valid shell variable names. |
1118 |
case $ac_envvar in #( |
1119 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1120 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1121 |
esac |
1122 |
eval $ac_envvar=\$ac_optarg |
1123 |
export $ac_envvar ;; |
1124 |
|
1125 |
*) |
1126 |
# FIXME: should be removed in autoconf 3.0. |
1127 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1128 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1129 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1130 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1131 |
;; |
1132 |
|
1133 |
esac |
1134 |
done |
1135 |
|
1136 |
if test -n "$ac_prev"; then |
1137 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1138 |
as_fn_error $? "missing argument to $ac_option" |
1139 |
fi |
1140 |
|
1141 |
if test -n "$ac_unrecognized_opts"; then |
1142 |
case $enable_option_checking in |
1143 |
no) ;; |
1144 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1145 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1146 |
esac |
1147 |
fi |
1148 |
|
1149 |
# Check all directory arguments for consistency. |
1150 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1151 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1152 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1153 |
libdir localedir mandir |
1154 |
do |
1155 |
eval ac_val=\$$ac_var |
1156 |
# Remove trailing slashes. |
1157 |
case $ac_val in |
1158 |
*/ ) |
1159 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1160 |
eval $ac_var=\$ac_val;; |
1161 |
esac |
1162 |
# Be sure to have absolute directory names. |
1163 |
case $ac_val in |
1164 |
[\\/$]* | ?:[\\/]* ) continue;; |
1165 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1166 |
esac |
1167 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1168 |
done |
1169 |
|
1170 |
# There might be people who depend on the old broken behavior: `$host' |
1171 |
# used to hold the argument of --host etc. |
1172 |
# FIXME: To remove some day. |
1173 |
build=$build_alias |
1174 |
host=$host_alias |
1175 |
target=$target_alias |
1176 |
|
1177 |
# FIXME: To remove some day. |
1178 |
if test "x$host_alias" != x; then |
1179 |
if test "x$build_alias" = x; then |
1180 |
cross_compiling=maybe |
1181 |
elif test "x$build_alias" != "x$host_alias"; then |
1182 |
cross_compiling=yes |
1183 |
fi |
1184 |
fi |
1185 |
|
1186 |
ac_tool_prefix= |
1187 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1188 |
|
1189 |
test "$silent" = yes && exec 6>/dev/null |
1190 |
|
1191 |
|
1192 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1193 |
ac_ls_di=`ls -di .` && |
1194 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1195 |
as_fn_error $? "working directory cannot be determined" |
1196 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1197 |
as_fn_error $? "pwd does not report name of working directory" |
1198 |
|
1199 |
|
1200 |
# Find the source files, if location was not specified. |
1201 |
if test -z "$srcdir"; then |
1202 |
ac_srcdir_defaulted=yes |
1203 |
# Try the directory containing this script, then the parent directory. |
1204 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1205 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1206 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1207 |
X"$as_myself" : 'X\(//\)$' \| \ |
1208 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1209 |
$as_echo X"$as_myself" | |
1210 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1211 |
s//\1/ |
1212 |
q |
1213 |
} |
1214 |
/^X\(\/\/\)[^/].*/{ |
1215 |
s//\1/ |
1216 |
q |
1217 |
} |
1218 |
/^X\(\/\/\)$/{ |
1219 |
s//\1/ |
1220 |
q |
1221 |
} |
1222 |
/^X\(\/\).*/{ |
1223 |
s//\1/ |
1224 |
q |
1225 |
} |
1226 |
s/.*/./; q'` |
1227 |
srcdir=$ac_confdir |
1228 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1229 |
srcdir=.. |
1230 |
fi |
1231 |
else |
1232 |
ac_srcdir_defaulted=no |
1233 |
fi |
1234 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1235 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1236 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1237 |
fi |
1238 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1239 |
ac_abs_confdir=`( |
1240 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1241 |
pwd)` |
1242 |
# When building in place, set srcdir=. |
1243 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1244 |
srcdir=. |
1245 |
fi |
1246 |
# Remove unnecessary trailing slashes from srcdir. |
1247 |
# Double slashes in file names in object file debugging info |
1248 |
# mess up M-x gdb in Emacs. |
1249 |
case $srcdir in |
1250 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1251 |
esac |
1252 |
for ac_var in $ac_precious_vars; do |
1253 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1254 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1255 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1256 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1257 |
done |
1258 |
|
1259 |
# |
1260 |
# Report the --help message. |
1261 |
# |
1262 |
if test "$ac_init_help" = "long"; then |
1263 |
# Omit some internal or obsolete options to make the list less imposing. |
1264 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1265 |
cat <<_ACEOF |
1266 |
\`configure' configures this package to adapt to many kinds of systems. |
1267 |
|
1268 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1269 |
|
1270 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1271 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1272 |
|
1273 |
Defaults for the options are specified in brackets. |
1274 |
|
1275 |
Configuration: |
1276 |
-h, --help display this help and exit |
1277 |
--help=short display options specific to this package |
1278 |
--help=recursive display the short help of all the included packages |
1279 |
-V, --version display version information and exit |
1280 |
-q, --quiet, --silent do not print \`checking ...' messages |
1281 |
--cache-file=FILE cache test results in FILE [disabled] |
1282 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1283 |
-n, --no-create do not create output files |
1284 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1285 |
|
1286 |
Installation directories: |
1287 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1288 |
[$ac_default_prefix] |
1289 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1290 |
[PREFIX] |
1291 |
|
1292 |
By default, \`make install' will install all the files in |
1293 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1294 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1295 |
for instance \`--prefix=\$HOME'. |
1296 |
|
1297 |
For better control, use the options below. |
1298 |
|
1299 |
Fine tuning of the installation directories: |
1300 |
--bindir=DIR user executables [EPREFIX/bin] |
1301 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1302 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1303 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1304 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1305 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1306 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1307 |
--includedir=DIR C header files [PREFIX/include] |
1308 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1309 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1310 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1311 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1312 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1313 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1314 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1315 |
--htmldir=DIR html documentation [DOCDIR] |
1316 |
--dvidir=DIR dvi documentation [DOCDIR] |
1317 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1318 |
--psdir=DIR ps documentation [DOCDIR] |
1319 |
_ACEOF |
1320 |
|
1321 |
cat <<\_ACEOF |
1322 |
|
1323 |
System types: |
1324 |
--build=BUILD configure for building on BUILD [guessed] |
1325 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1326 |
_ACEOF |
1327 |
fi |
1328 |
|
1329 |
if test -n "$ac_init_help"; then |
1330 |
|
1331 |
cat <<\_ACEOF |
1332 |
|
1333 |
Optional Features: |
1334 |
--disable-option-checking ignore unrecognized --enable/--with options |
1335 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1336 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1337 |
--enable-client enable building of BIRD client [yes] |
1338 |
--enable-debug enable internal debugging routines [no] |
1339 |
--enable-memcheck check memory allocations when debugging [yes] |
1340 |
--enable-pthreads enable POSIX threads support [try] |
1341 |
--enable-libssh enable LibSSH support together with RPKI [try] |
1342 |
--enable-mpls-kernel enable MPLS support in kernel protocol [try] |
1343 |
|
1344 |
Optional Packages: |
1345 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1346 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1347 |
--with-protocols=LIST include specified routing protocols [all] |
1348 |
--with-sysconfig=FILE use specified BIRD system configuration file |
1349 |
--with-runtimedir=PATH path for runtime files [LOCALSTATEDIR/run] |
1350 |
--with-iproutedir=PATH path to iproute2 config files [/etc/iproute2] |
1351 |
|
1352 |
Some influential environment variables: |
1353 |
FLEX location of the Flex program |
1354 |
BISON location of the Bison program |
1355 |
M4 location of the M4 program |
1356 |
CC C compiler command |
1357 |
CFLAGS C compiler flags |
1358 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1359 |
nonstandard directory <lib dir> |
1360 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1361 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1362 |
you have headers in a nonstandard directory <include dir> |
1363 |
CPP C preprocessor |
1364 |
|
1365 |
Use these variables to override the choices made by `configure' or to help |
1366 |
it to find libraries and programs with nonstandard names/locations. |
1367 |
|
1368 |
Report bugs to the package provider. |
1369 |
_ACEOF |
1370 |
ac_status=$? |
1371 |
fi |
1372 |
|
1373 |
if test "$ac_init_help" = "recursive"; then |
1374 |
# If there are subdirs, report their specific --help. |
1375 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1376 |
test -d "$ac_dir" || |
1377 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1378 |
continue |
1379 |
ac_builddir=. |
1380 |
|
1381 |
case "$ac_dir" in |
1382 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1383 |
*) |
1384 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1385 |
# A ".." for each directory in $ac_dir_suffix. |
1386 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1387 |
case $ac_top_builddir_sub in |
1388 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1389 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1390 |
esac ;; |
1391 |
esac |
1392 |
ac_abs_top_builddir=$ac_pwd |
1393 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1394 |
# for backward compatibility: |
1395 |
ac_top_builddir=$ac_top_build_prefix |
1396 |
|
1397 |
case $srcdir in |
1398 |
.) # We are building in place. |
1399 |
ac_srcdir=. |
1400 |
ac_top_srcdir=$ac_top_builddir_sub |
1401 |
ac_abs_top_srcdir=$ac_pwd ;; |
1402 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1403 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1404 |
ac_top_srcdir=$srcdir |
1405 |
ac_abs_top_srcdir=$srcdir ;; |
1406 |
*) # Relative name. |
1407 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1408 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1409 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1410 |
esac |
1411 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1412 |
|
1413 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1414 |
# Check for guested configure. |
1415 |
if test -f "$ac_srcdir/configure.gnu"; then |
1416 |
echo && |
1417 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1418 |
elif test -f "$ac_srcdir/configure"; then |
1419 |
echo && |
1420 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1421 |
else |
1422 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1423 |
fi || ac_status=$? |
1424 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1425 |
done |
1426 |
fi |
1427 |
|
1428 |
test -n "$ac_init_help" && exit $ac_status |
1429 |
if $ac_init_version; then |
1430 |
cat <<\_ACEOF |
1431 |
configure |
1432 |
generated by GNU Autoconf 2.69 |
1433 |
|
1434 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1435 |
This configure script is free software; the Free Software Foundation |
1436 |
gives unlimited permission to copy, distribute and modify it. |
1437 |
_ACEOF |
1438 |
exit |
1439 |
fi |
1440 |
|
1441 |
## ------------------------ ## |
1442 |
## Autoconf initialization. ## |
1443 |
## ------------------------ ## |
1444 |
|
1445 |
# ac_fn_c_try_compile LINENO |
1446 |
# -------------------------- |
1447 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1448 |
ac_fn_c_try_compile () |
1449 |
{ |
1450 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1451 |
rm -f conftest.$ac_objext |
1452 |
if { { ac_try="$ac_compile" |
1453 |
case "(($ac_try" in |
1454 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1455 |
*) ac_try_echo=$ac_try;; |
1456 |
esac |
1457 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1458 |
$as_echo "$ac_try_echo"; } >&5 |
1459 |
(eval "$ac_compile") 2>conftest.err |
1460 |
ac_status=$? |
1461 |
if test -s conftest.err; then |
1462 |
grep -v '^ *+' conftest.err >conftest.er1 |
1463 |
cat conftest.er1 >&5 |
1464 |
mv -f conftest.er1 conftest.err |
1465 |
fi |
1466 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1467 |
test $ac_status = 0; } && { |
1468 |
test -z "$ac_c_werror_flag" || |
1469 |
test ! -s conftest.err |
1470 |
} && test -s conftest.$ac_objext; then : |
1471 |
ac_retval=0 |
1472 |
else |
1473 |
$as_echo "$as_me: failed program was:" >&5 |
1474 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1475 |
|
1476 |
ac_retval=1 |
1477 |
fi |
1478 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1479 |
as_fn_set_status $ac_retval |
1480 |
|
1481 |
} # ac_fn_c_try_compile |
1482 |
|
1483 |
# ac_fn_c_try_link LINENO |
1484 |
# ----------------------- |
1485 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1486 |
ac_fn_c_try_link () |
1487 |
{ |
1488 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1489 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1490 |
if { { ac_try="$ac_link" |
1491 |
case "(($ac_try" in |
1492 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1493 |
*) ac_try_echo=$ac_try;; |
1494 |
esac |
1495 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1496 |
$as_echo "$ac_try_echo"; } >&5 |
1497 |
(eval "$ac_link") 2>conftest.err |
1498 |
ac_status=$? |
1499 |
if test -s conftest.err; then |
1500 |
grep -v '^ *+' conftest.err >conftest.er1 |
1501 |
cat conftest.er1 >&5 |
1502 |
mv -f conftest.er1 conftest.err |
1503 |
fi |
1504 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1505 |
test $ac_status = 0; } && { |
1506 |
test -z "$ac_c_werror_flag" || |
1507 |
test ! -s conftest.err |
1508 |
} && test -s conftest$ac_exeext && { |
1509 |
test "$cross_compiling" = yes || |
1510 |
test -x conftest$ac_exeext |
1511 |
}; then : |
1512 |
ac_retval=0 |
1513 |
else |
1514 |
$as_echo "$as_me: failed program was:" >&5 |
1515 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1516 |
|
1517 |
ac_retval=1 |
1518 |
fi |
1519 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1520 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1521 |
# interfere with the next link command; also delete a directory that is |
1522 |
# left behind by Apple's compiler. We do this before executing the actions. |
1523 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1524 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1525 |
as_fn_set_status $ac_retval |
1526 |
|
1527 |
} # ac_fn_c_try_link |
1528 |
|
1529 |
# ac_fn_c_try_cpp LINENO |
1530 |
# ---------------------- |
1531 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1532 |
ac_fn_c_try_cpp () |
1533 |
{ |
1534 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1535 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1536 |
case "(($ac_try" in |
1537 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1538 |
*) ac_try_echo=$ac_try;; |
1539 |
esac |
1540 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1541 |
$as_echo "$ac_try_echo"; } >&5 |
1542 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1543 |
ac_status=$? |
1544 |
if test -s conftest.err; then |
1545 |
grep -v '^ *+' conftest.err >conftest.er1 |
1546 |
cat conftest.er1 >&5 |
1547 |
mv -f conftest.er1 conftest.err |
1548 |
fi |
1549 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1550 |
test $ac_status = 0; } > conftest.i && { |
1551 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1552 |
test ! -s conftest.err |
1553 |
}; then : |
1554 |
ac_retval=0 |
1555 |
else |
1556 |
$as_echo "$as_me: failed program was:" >&5 |
1557 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1558 |
|
1559 |
ac_retval=1 |
1560 |
fi |
1561 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1562 |
as_fn_set_status $ac_retval |
1563 |
|
1564 |
} # ac_fn_c_try_cpp |
1565 |
|
1566 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1567 |
# ------------------------------------------------------- |
1568 |
# Tests whether HEADER exists and can be compiled using the include files in |
1569 |
# INCLUDES, setting the cache variable VAR accordingly. |
1570 |
ac_fn_c_check_header_compile () |
1571 |
{ |
1572 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1574 |
$as_echo_n "checking for $2... " >&6; } |
1575 |
if eval \${$3+:} false; then : |
1576 |
$as_echo_n "(cached) " >&6 |
1577 |
else |
1578 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1579 |
/* end confdefs.h. */ |
1580 |
$4 |
1581 |
#include <$2> |
1582 |
_ACEOF |
1583 |
if ac_fn_c_try_compile "$LINENO"; then : |
1584 |
eval "$3=yes" |
1585 |
else |
1586 |
eval "$3=no" |
1587 |
fi |
1588 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1589 |
fi |
1590 |
eval ac_res=\$$3 |
1591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1592 |
$as_echo "$ac_res" >&6; } |
1593 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1594 |
|
1595 |
} # ac_fn_c_check_header_compile |
1596 |
|
1597 |
# ac_fn_c_try_run LINENO |
1598 |
# ---------------------- |
1599 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1600 |
# that executables *can* be run. |
1601 |
ac_fn_c_try_run () |
1602 |
{ |
1603 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1604 |
if { { ac_try="$ac_link" |
1605 |
case "(($ac_try" in |
1606 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1607 |
*) ac_try_echo=$ac_try;; |
1608 |
esac |
1609 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1610 |
$as_echo "$ac_try_echo"; } >&5 |
1611 |
(eval "$ac_link") 2>&5 |
1612 |
ac_status=$? |
1613 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1614 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1615 |
{ { case "(($ac_try" in |
1616 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1617 |
*) ac_try_echo=$ac_try;; |
1618 |
esac |
1619 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1620 |
$as_echo "$ac_try_echo"; } >&5 |
1621 |
(eval "$ac_try") 2>&5 |
1622 |
ac_status=$? |
1623 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1624 |
test $ac_status = 0; }; }; then : |
1625 |
ac_retval=0 |
1626 |
else |
1627 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1628 |
$as_echo "$as_me: failed program was:" >&5 |
1629 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1630 |
|
1631 |
ac_retval=$ac_status |
1632 |
fi |
1633 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1634 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1635 |
as_fn_set_status $ac_retval |
1636 |
|
1637 |
} # ac_fn_c_try_run |
1638 |
|
1639 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1640 |
# ---------------------------------------------------- |
1641 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
1642 |
# INCLUDES, setting cache variable VAR accordingly. |
1643 |
ac_fn_c_check_member () |
1644 |
{ |
1645 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1646 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1647 |
$as_echo_n "checking for $2.$3... " >&6; } |
1648 |
if eval \${$4+:} false; then : |
1649 |
$as_echo_n "(cached) " >&6 |
1650 |
else |
1651 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1652 |
/* end confdefs.h. */ |
1653 |
$5 |
1654 |
int |
1655 |
main () |
1656 |
{ |
1657 |
static $2 ac_aggr; |
1658 |
if (ac_aggr.$3) |
1659 |
return 0; |
1660 |
; |
1661 |
return 0; |
1662 |
} |
1663 |
_ACEOF |
1664 |
if ac_fn_c_try_compile "$LINENO"; then : |
1665 |
eval "$4=yes" |
1666 |
else |
1667 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1668 |
/* end confdefs.h. */ |
1669 |
$5 |
1670 |
int |
1671 |
main () |
1672 |
{ |
1673 |
static $2 ac_aggr; |
1674 |
if (sizeof ac_aggr.$3) |
1675 |
return 0; |
1676 |
; |
1677 |
return 0; |
1678 |
} |
1679 |
_ACEOF |
1680 |
if ac_fn_c_try_compile "$LINENO"; then : |
1681 |
eval "$4=yes" |
1682 |
else |
1683 |
eval "$4=no" |
1684 |
fi |
1685 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1686 |
fi |
1687 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1688 |
fi |
1689 |
eval ac_res=\$$4 |
1690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1691 |
$as_echo "$ac_res" >&6; } |
1692 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1693 |
|
1694 |
} # ac_fn_c_check_member |
1695 |
|
1696 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1697 |
# ------------------------------------------------------- |
1698 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1699 |
# the include files in INCLUDES and setting the cache variable VAR |
1700 |
# accordingly. |
1701 |
ac_fn_c_check_header_mongrel () |
1702 |
{ |
1703 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1704 |
if eval \${$3+:} false; then : |
1705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1706 |
$as_echo_n "checking for $2... " >&6; } |
1707 |
if eval \${$3+:} false; then : |
1708 |
$as_echo_n "(cached) " >&6 |
1709 |
fi |
1710 |
eval ac_res=\$$3 |
1711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1712 |
$as_echo "$ac_res" >&6; } |
1713 |
else |
1714 |
# Is the header compilable? |
1715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1716 |
$as_echo_n "checking $2 usability... " >&6; } |
1717 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1718 |
/* end confdefs.h. */ |
1719 |
$4 |
1720 |
#include <$2> |
1721 |
_ACEOF |
1722 |
if ac_fn_c_try_compile "$LINENO"; then : |
1723 |
ac_header_compiler=yes |
1724 |
else |
1725 |
ac_header_compiler=no |
1726 |
fi |
1727 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1728 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1729 |
$as_echo "$ac_header_compiler" >&6; } |
1730 |
|
1731 |
# Is the header present? |
1732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1733 |
$as_echo_n "checking $2 presence... " >&6; } |
1734 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1735 |
/* end confdefs.h. */ |
1736 |
#include <$2> |
1737 |
_ACEOF |
1738 |
if ac_fn_c_try_cpp "$LINENO"; then : |
1739 |
ac_header_preproc=yes |
1740 |
else |
1741 |
ac_header_preproc=no |
1742 |
fi |
1743 |
rm -f conftest.err conftest.i conftest.$ac_ext |
1744 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1745 |
$as_echo "$ac_header_preproc" >&6; } |
1746 |
|
1747 |
# So? What about this header? |
1748 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1749 |
yes:no: ) |
1750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1751 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1753 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1754 |
;; |
1755 |
no:yes:* ) |
1756 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1757 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1759 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1761 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1763 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1765 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1766 |
;; |
1767 |
esac |
1768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1769 |
$as_echo_n "checking for $2... " >&6; } |
1770 |
if eval \${$3+:} false; then : |
1771 |
$as_echo_n "(cached) " >&6 |
1772 |
else |
1773 |
eval "$3=\$ac_header_compiler" |
1774 |
fi |
1775 |
eval ac_res=\$$3 |
1776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1777 |
$as_echo "$ac_res" >&6; } |
1778 |
fi |
1779 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1780 |
|
1781 |
} # ac_fn_c_check_header_mongrel |
1782 |
cat >config.log <<_ACEOF |
1783 |
This file contains any messages produced by compilers while |
1784 |
running configure, to aid debugging if configure makes a mistake. |
1785 |
|
1786 |
It was created by $as_me, which was |
1787 |
generated by GNU Autoconf 2.69. Invocation command line was |
1788 |
|
1789 |
$ $0 $@ |
1790 |
|
1791 |
_ACEOF |
1792 |
exec 5>>config.log |
1793 |
{ |
1794 |
cat <<_ASUNAME |
1795 |
## --------- ## |
1796 |
## Platform. ## |
1797 |
## --------- ## |
1798 |
|
1799 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1800 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1801 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1802 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1803 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1804 |
|
1805 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1806 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1807 |
|
1808 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1809 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1810 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1811 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1812 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1813 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1814 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1815 |
|
1816 |
_ASUNAME |
1817 |
|
1818 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1819 |
for as_dir in $PATH |
1820 |
do |
1821 |
IFS=$as_save_IFS |
1822 |
test -z "$as_dir" && as_dir=. |
1823 |
$as_echo "PATH: $as_dir" |
1824 |
done |
1825 |
IFS=$as_save_IFS |
1826 |
|
1827 |
} >&5 |
1828 |
|
1829 |
cat >&5 <<_ACEOF |
1830 |
|
1831 |
|
1832 |
## ----------- ## |
1833 |
## Core tests. ## |
1834 |
## ----------- ## |
1835 |
|
1836 |
_ACEOF |
1837 |
|
1838 |
|
1839 |
# Keep a trace of the command line. |
1840 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1841 |
# Strip out --silent because we don't want to record it for future runs. |
1842 |
# Also quote any args containing shell meta-characters. |
1843 |
# Make two passes to allow for proper duplicate-argument suppression. |
1844 |
ac_configure_args= |
1845 |
ac_configure_args0= |
1846 |
ac_configure_args1= |
1847 |
ac_must_keep_next=false |
1848 |
for ac_pass in 1 2 |
1849 |
do |
1850 |
for ac_arg |
1851 |
do |
1852 |
case $ac_arg in |
1853 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1854 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1855 |
| -silent | --silent | --silen | --sile | --sil) |
1856 |
continue ;; |
1857 |
*\'*) |
1858 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1859 |
esac |
1860 |
case $ac_pass in |
1861 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1862 |
2) |
1863 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1864 |
if test $ac_must_keep_next = true; then |
1865 |
ac_must_keep_next=false # Got value, back to normal. |
1866 |
else |
1867 |
case $ac_arg in |
1868 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1869 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1870 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1871 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1872 |
case "$ac_configure_args0 " in |
1873 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1874 |
esac |
1875 |
;; |
1876 |
-* ) ac_must_keep_next=true ;; |
1877 |
esac |
1878 |
fi |
1879 |
as_fn_append ac_configure_args " '$ac_arg'" |
1880 |
;; |
1881 |
esac |
1882 |
done |
1883 |
done |
1884 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1885 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1886 |
|
1887 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1888 |
# config.log. We remove comments because anyway the quotes in there |
1889 |
# would cause problems or look ugly. |
1890 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1891 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1892 |
trap 'exit_status=$? |
1893 |
# Save into config.log some information that might help in debugging. |
1894 |
{ |
1895 |
echo |
1896 |
|
1897 |
$as_echo "## ---------------- ## |
1898 |
## Cache variables. ## |
1899 |
## ---------------- ##" |
1900 |
echo |
1901 |
# The following way of writing the cache mishandles newlines in values, |
1902 |
( |
1903 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1904 |
eval ac_val=\$$ac_var |
1905 |
case $ac_val in #( |
1906 |
*${as_nl}*) |
1907 |
case $ac_var in #( |
1908 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1909 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1910 |
esac |
1911 |
case $ac_var in #( |
1912 |
_ | IFS | as_nl) ;; #( |
1913 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1914 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1915 |
esac ;; |
1916 |
esac |
1917 |
done |
1918 |
(set) 2>&1 | |
1919 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1920 |
*${as_nl}ac_space=\ *) |
1921 |
sed -n \ |
1922 |
"s/'\''/'\''\\\\'\'''\''/g; |
1923 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1924 |
;; #( |
1925 |
*) |
1926 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1927 |
;; |
1928 |
esac | |
1929 |
sort |
1930 |
) |
1931 |
echo |
1932 |
|
1933 |
$as_echo "## ----------------- ## |
1934 |
## Output variables. ## |
1935 |
## ----------------- ##" |
1936 |
echo |
1937 |
for ac_var in $ac_subst_vars |
1938 |
do |
1939 |
eval ac_val=\$$ac_var |
1940 |
case $ac_val in |
1941 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1942 |
esac |
1943 |
$as_echo "$ac_var='\''$ac_val'\''" |
1944 |
done | sort |
1945 |
echo |
1946 |
|
1947 |
if test -n "$ac_subst_files"; then |
1948 |
$as_echo "## ------------------- ## |
1949 |
## File substitutions. ## |
1950 |
## ------------------- ##" |
1951 |
echo |
1952 |
for ac_var in $ac_subst_files |
1953 |
do |
1954 |
eval ac_val=\$$ac_var |
1955 |
case $ac_val in |
1956 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1957 |
esac |
1958 |
$as_echo "$ac_var='\''$ac_val'\''" |
1959 |
done | sort |
1960 |
echo |
1961 |
fi |
1962 |
|
1963 |
if test -s confdefs.h; then |
1964 |
$as_echo "## ----------- ## |
1965 |
## confdefs.h. ## |
1966 |
## ----------- ##" |
1967 |
echo |
1968 |
cat confdefs.h |
1969 |
echo |
1970 |
fi |
1971 |
test "$ac_signal" != 0 && |
1972 |
$as_echo "$as_me: caught signal $ac_signal" |
1973 |
$as_echo "$as_me: exit $exit_status" |
1974 |
} >&5 |
1975 |
rm -f core *.core core.conftest.* && |
1976 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1977 |
exit $exit_status |
1978 |
' 0 |
1979 |
for ac_signal in 1 2 13 15; do |
1980 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1981 |
done |
1982 |
ac_signal=0 |
1983 |
|
1984 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1985 |
rm -f -r conftest* confdefs.h |
1986 |
|
1987 |
$as_echo "/* confdefs.h */" > confdefs.h |
1988 |
|
1989 |
# Predefined preprocessor variables. |
1990 |
|
1991 |
cat >>confdefs.h <<_ACEOF |
1992 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1993 |
_ACEOF |
1994 |
|
1995 |
cat >>confdefs.h <<_ACEOF |
1996 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1997 |
_ACEOF |
1998 |
|
1999 |
cat >>confdefs.h <<_ACEOF |
2000 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2001 |
_ACEOF |
2002 |
|
2003 |
cat >>confdefs.h <<_ACEOF |
2004 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2005 |
_ACEOF |
2006 |
|
2007 |
cat >>confdefs.h <<_ACEOF |
2008 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2009 |
_ACEOF |
2010 |
|
2011 |
cat >>confdefs.h <<_ACEOF |
2012 |
#define PACKAGE_URL "$PACKAGE_URL" |
2013 |
_ACEOF |
2014 |
|
2015 |
|
2016 |
# Let the site file select an alternate cache file if it wants to. |
2017 |
# Prefer an explicitly selected file to automatically selected ones. |
2018 |
ac_site_file1=NONE |
2019 |
ac_site_file2=NONE |
2020 |
if test -n "$CONFIG_SITE"; then |
2021 |
# We do not want a PATH search for config.site. |
2022 |
case $CONFIG_SITE in #(( |
2023 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2024 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2025 |
*) ac_site_file1=./$CONFIG_SITE;; |
2026 |
esac |
2027 |
elif test "x$prefix" != xNONE; then |
2028 |
ac_site_file1=$prefix/share/config.site |
2029 |
ac_site_file2=$prefix/etc/config.site |
2030 |
else |
2031 |
ac_site_file1=$ac_default_prefix/share/config.site |
2032 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2033 |
fi |
2034 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2035 |
do |
2036 |
test "x$ac_site_file" = xNONE && continue |
2037 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2039 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2040 |
sed 's/^/| /' "$ac_site_file" >&5 |
2041 |
. "$ac_site_file" \ |
2042 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2043 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2044 |
as_fn_error $? "failed to load site script $ac_site_file |
2045 |
See \`config.log' for more details" "$LINENO" 5; } |
2046 |
fi |
2047 |
done |
2048 |
|
2049 |
if test -r "$cache_file"; then |
2050 |
# Some versions of bash will fail to source /dev/null (special files |
2051 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2052 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2054 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2055 |
case $cache_file in |
2056 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2057 |
*) . "./$cache_file";; |
2058 |
esac |
2059 |
fi |
2060 |
else |
2061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2062 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2063 |
>$cache_file |
2064 |
fi |
2065 |
|
2066 |
as_fn_append ac_header_list " alloca.h" |
2067 |
as_fn_append ac_header_list " syslog.h" |
2068 |
# Check that the precious variables saved in the cache have kept the same |
2069 |
# value. |
2070 |
ac_cache_corrupted=false |
2071 |
for ac_var in $ac_precious_vars; do |
2072 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2073 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2074 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2075 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2076 |
case $ac_old_set,$ac_new_set in |
2077 |
set,) |
2078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2079 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2080 |
ac_cache_corrupted=: ;; |
2081 |
,set) |
2082 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2083 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2084 |
ac_cache_corrupted=: ;; |
2085 |
,);; |
2086 |
*) |
2087 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2088 |
# differences in whitespace do not lead to failure. |
2089 |
ac_old_val_w=`echo x $ac_old_val` |
2090 |
ac_new_val_w=`echo x $ac_new_val` |
2091 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2093 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2094 |
ac_cache_corrupted=: |
2095 |
else |
2096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2097 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2098 |
eval $ac_var=\$ac_old_val |
2099 |
fi |
2100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2101 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2103 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2104 |
fi;; |
2105 |
esac |
2106 |
# Pass precious variables to config.status. |
2107 |
if test "$ac_new_set" = set; then |
2108 |
case $ac_new_val in |
2109 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2110 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2111 |
esac |
2112 |
case " $ac_configure_args " in |
2113 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2114 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2115 |
esac |
2116 |
fi |
2117 |
done |
2118 |
if $ac_cache_corrupted; then |
2119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2120 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2122 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2123 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2124 |
fi |
2125 |
## -------------------- ## |
2126 |
## Main body of script. ## |
2127 |
## -------------------- ## |
2128 |
|
2129 |
ac_ext=c |
2130 |
ac_cpp='$CPP $CPPFLAGS' |
2131 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2132 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2133 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2134 |
|
2135 |
|
2136 |
|
2137 |
ac_aux_dir= |
2138 |
for ac_dir in tools "$srcdir"/tools; do |
2139 |
if test -f "$ac_dir/install-sh"; then |
2140 |
ac_aux_dir=$ac_dir |
2141 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2142 |
break |
2143 |
elif test -f "$ac_dir/install.sh"; then |
2144 |
ac_aux_dir=$ac_dir |
2145 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2146 |
break |
2147 |
elif test -f "$ac_dir/shtool"; then |
2148 |
ac_aux_dir=$ac_dir |
2149 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2150 |
break |
2151 |
fi |
2152 |
done |
2153 |
if test -z "$ac_aux_dir"; then |
2154 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5 |
2155 |
fi |
2156 |
|
2157 |
# These three variables are undocumented and unsupported, |
2158 |
# and are intended to be withdrawn in a future Autoconf release. |
2159 |
# They can cause serious problems if a builder's source tree is in a directory |
2160 |
# whose full name contains unusual characters. |
2161 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2162 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2163 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2164 |
|
2165 |
|
2166 |
|
2167 |
# Check whether --enable-client was given. |
2168 |
if test "${enable_client+set}" = set; then : |
2169 |
enableval=$enable_client; |
2170 |
else |
2171 |
enable_client=yes |
2172 |
|
2173 |
fi |
2174 |
|
2175 |
|
2176 |
# Check whether --enable-debug was given. |
2177 |
if test "${enable_debug+set}" = set; then : |
2178 |
enableval=$enable_debug; |
2179 |
else |
2180 |
enable_debug=no |
2181 |
|
2182 |
fi |
2183 |
|
2184 |
|
2185 |
# Check whether --enable-memcheck was given. |
2186 |
if test "${enable_memcheck+set}" = set; then : |
2187 |
enableval=$enable_memcheck; |
2188 |
else |
2189 |
enable_memcheck=yes |
2190 |
|
2191 |
fi |
2192 |
|
2193 |
|
2194 |
# Check whether --enable-pthreads was given. |
2195 |
if test "${enable_pthreads+set}" = set; then : |
2196 |
enableval=$enable_pthreads; |
2197 |
else |
2198 |
enable_pthreads=try |
2199 |
|
2200 |
fi |
2201 |
|
2202 |
|
2203 |
# Check whether --enable-libssh was given. |
2204 |
if test "${enable_libssh+set}" = set; then : |
2205 |
enableval=$enable_libssh; |
2206 |
else |
2207 |
enable_libssh=try |
2208 |
|
2209 |
fi |
2210 |
|
2211 |
|
2212 |
# Check whether --enable-mpls-kernel was given. |
2213 |
if test "${enable_mpls_kernel+set}" = set; then : |
2214 |
enableval=$enable_mpls_kernel; |
2215 |
else |
2216 |
enable_mpls_kernel=try |
2217 |
|
2218 |
fi |
2219 |
|
2220 |
|
2221 |
|
2222 |
# Check whether --with-protocols was given. |
2223 |
if test "${with_protocols+set}" = set; then : |
2224 |
withval=$with_protocols; |
2225 |
else |
2226 |
with_protocols="all" |
2227 |
|
2228 |
fi |
2229 |
|
2230 |
|
2231 |
|
2232 |
# Check whether --with-sysconfig was given. |
2233 |
if test "${with_sysconfig+set}" = set; then : |
2234 |
withval=$with_sysconfig; |
2235 |
|
2236 |
fi |
2237 |
|
2238 |
|
2239 |
|
2240 |
# Check whether --with-runtimedir was given. |
2241 |
if test "${with_runtimedir+set}" = set; then : |
2242 |
withval=$with_runtimedir; runtimedir="$with_runtimedir" |
2243 |
else |
2244 |
runtimedir="\$(localstatedir)/run" |
2245 |
|
2246 |
fi |
2247 |
|
2248 |
|
2249 |
|
2250 |
# Check whether --with-iproutedir was given. |
2251 |
if test "${with_iproutedir+set}" = set; then : |
2252 |
withval=$with_iproutedir; given_iproutedir="yes" |
2253 |
|
2254 |
fi |
2255 |
|
2256 |
|
2257 |
|
2258 |
|
2259 |
|
2260 |
|
2261 |
|
2262 |
if test "$srcdir" = . ; then |
2263 |
# Building in current directory => create obj directory holding all objects |
2264 |
objdir=obj |
2265 |
else |
2266 |
# Building in separate directory |
2267 |
objdir=. |
2268 |
fi |
2269 |
|
2270 |
exedir=. |
2271 |
|
2272 |
|
2273 |
|
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 |
if test "$enable_debug" = yes ; then |
2279 |
CONFIG_FILE="bird.conf" |
2280 |
CONTROL_SOCKET="bird.ctl" |
2281 |
else |
2282 |
CONFIG_FILE="\$(sysconfdir)/bird.conf" |
2283 |
CONTROL_SOCKET="$runtimedir/bird.ctl" |
2284 |
fi |
2285 |
|
2286 |
|
2287 |
|
2288 |
ac_ext=c |
2289 |
ac_cpp='$CPP $CPPFLAGS' |
2290 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2291 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2292 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2293 |
if test -n "$ac_tool_prefix"; then |
2294 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2295 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2297 |
$as_echo_n "checking for $ac_word... " >&6; } |
2298 |
if ${ac_cv_prog_CC+:} false; then : |
2299 |
$as_echo_n "(cached) " >&6 |
2300 |
else |
2301 |
if test -n "$CC"; then |
2302 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2303 |
else |
2304 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2305 |
for as_dir in $PATH |
2306 |
do |
2307 |
IFS=$as_save_IFS |
2308 |
test -z "$as_dir" && as_dir=. |
2309 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2310 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2311 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2312 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2313 |
break 2 |
2314 |
fi |
2315 |
done |
2316 |
done |
2317 |
IFS=$as_save_IFS |
2318 |
|
2319 |
fi |
2320 |
fi |
2321 |
CC=$ac_cv_prog_CC |
2322 |
if test -n "$CC"; then |
2323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2324 |
$as_echo "$CC" >&6; } |
2325 |
else |
2326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2327 |
$as_echo "no" >&6; } |
2328 |
fi |
2329 |
|
2330 |
|
2331 |
fi |
2332 |
if test -z "$ac_cv_prog_CC"; then |
2333 |
ac_ct_CC=$CC |
2334 |
# Extract the first word of "gcc", so it can be a program name with args. |
2335 |
set dummy gcc; ac_word=$2 |
2336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2337 |
$as_echo_n "checking for $ac_word... " >&6; } |
2338 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2339 |
$as_echo_n "(cached) " >&6 |
2340 |
else |
2341 |
if test -n "$ac_ct_CC"; then |
2342 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2343 |
else |
2344 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2345 |
for as_dir in $PATH |
2346 |
do |
2347 |
IFS=$as_save_IFS |
2348 |
test -z "$as_dir" && as_dir=. |
2349 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2350 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2351 |
ac_cv_prog_ac_ct_CC="gcc" |
2352 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2353 |
break 2 |
2354 |
fi |
2355 |
done |
2356 |
done |
2357 |
IFS=$as_save_IFS |
2358 |
|
2359 |
fi |
2360 |
fi |
2361 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2362 |
if test -n "$ac_ct_CC"; then |
2363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2364 |
$as_echo "$ac_ct_CC" >&6; } |
2365 |
else |
2366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2367 |
$as_echo "no" >&6; } |
2368 |
fi |
2369 |
|
2370 |
if test "x$ac_ct_CC" = x; then |
2371 |
CC="" |
2372 |
else |
2373 |
case $cross_compiling:$ac_tool_warned in |
2374 |
yes:) |
2375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2376 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2377 |
ac_tool_warned=yes ;; |
2378 |
esac |
2379 |
CC=$ac_ct_CC |
2380 |
fi |
2381 |
else |
2382 |
CC="$ac_cv_prog_CC" |
2383 |
fi |
2384 |
|
2385 |
if test -z "$CC"; then |
2386 |
if test -n "$ac_tool_prefix"; then |
2387 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2388 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2390 |
$as_echo_n "checking for $ac_word... " >&6; } |
2391 |
if ${ac_cv_prog_CC+:} false; then : |
2392 |
$as_echo_n "(cached) " >&6 |
2393 |
else |
2394 |
if test -n "$CC"; then |
2395 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2396 |
else |
2397 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2398 |
for as_dir in $PATH |
2399 |
do |
2400 |
IFS=$as_save_IFS |
2401 |
test -z "$as_dir" && as_dir=. |
2402 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2403 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2404 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2405 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2406 |
break 2 |
2407 |
fi |
2408 |
done |
2409 |
done |
2410 |
IFS=$as_save_IFS |
2411 |
|
2412 |
fi |
2413 |
fi |
2414 |
CC=$ac_cv_prog_CC |
2415 |
if test -n "$CC"; then |
2416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2417 |
$as_echo "$CC" >&6; } |
2418 |
else |
2419 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2420 |
$as_echo "no" >&6; } |
2421 |
fi |
2422 |
|
2423 |
|
2424 |
fi |
2425 |
fi |
2426 |
if test -z "$CC"; then |
2427 |
# Extract the first word of "cc", so it can be a program name with args. |
2428 |
set dummy cc; ac_word=$2 |
2429 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2430 |
$as_echo_n "checking for $ac_word... " >&6; } |
2431 |
if ${ac_cv_prog_CC+:} false; then : |
2432 |
$as_echo_n "(cached) " >&6 |
2433 |
else |
2434 |
if test -n "$CC"; then |
2435 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2436 |
else |
2437 |
ac_prog_rejected=no |
2438 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2439 |
for as_dir in $PATH |
2440 |
do |
2441 |
IFS=$as_save_IFS |
2442 |
test -z "$as_dir" && as_dir=. |
2443 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2444 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2445 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2446 |
ac_prog_rejected=yes |
2447 |
continue |
2448 |
fi |
2449 |
ac_cv_prog_CC="cc" |
2450 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2451 |
break 2 |
2452 |
fi |
2453 |
done |
2454 |
done |
2455 |
IFS=$as_save_IFS |
2456 |
|
2457 |
if test $ac_prog_rejected = yes; then |
2458 |
# We found a bogon in the path, so make sure we never use it. |
2459 |
set dummy $ac_cv_prog_CC |
2460 |
shift |
2461 |
if test $# != 0; then |
2462 |
# We chose a different compiler from the bogus one. |
2463 |
# However, it has the same basename, so the bogon will be chosen |
2464 |
# first if we set CC to just the basename; use the full file name. |
2465 |
shift |
2466 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2467 |
fi |
2468 |
fi |
2469 |
fi |
2470 |
fi |
2471 |
CC=$ac_cv_prog_CC |
2472 |
if test -n "$CC"; then |
2473 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2474 |
$as_echo "$CC" >&6; } |
2475 |
else |
2476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2477 |
$as_echo "no" >&6; } |
2478 |
fi |
2479 |
|
2480 |
|
2481 |
fi |
2482 |
if test -z "$CC"; then |
2483 |
if test -n "$ac_tool_prefix"; then |
2484 |
for ac_prog in cl.exe |
2485 |
do |
2486 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2487 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2489 |
$as_echo_n "checking for $ac_word... " >&6; } |
2490 |
if ${ac_cv_prog_CC+:} false; then : |
2491 |
$as_echo_n "(cached) " >&6 |
2492 |
else |
2493 |
if test -n "$CC"; then |
2494 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2495 |
else |
2496 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2497 |
for as_dir in $PATH |
2498 |
do |
2499 |
IFS=$as_save_IFS |
2500 |
test -z "$as_dir" && as_dir=. |
2501 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2502 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2503 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2504 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2505 |
break 2 |
2506 |
fi |
2507 |
done |
2508 |
done |
2509 |
IFS=$as_save_IFS |
2510 |
|
2511 |
fi |
2512 |
fi |
2513 |
CC=$ac_cv_prog_CC |
2514 |
if test -n "$CC"; then |
2515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2516 |
$as_echo "$CC" >&6; } |
2517 |
else |
2518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2519 |
$as_echo "no" >&6; } |
2520 |
fi |
2521 |
|
2522 |
|
2523 |
test -n "$CC" && break |
2524 |
done |
2525 |
fi |
2526 |
if test -z "$CC"; then |
2527 |
ac_ct_CC=$CC |
2528 |
for ac_prog in cl.exe |
2529 |
do |
2530 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2531 |
set dummy $ac_prog; ac_word=$2 |
2532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2533 |
$as_echo_n "checking for $ac_word... " >&6; } |
2534 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2535 |
$as_echo_n "(cached) " >&6 |
2536 |
else |
2537 |
if test -n "$ac_ct_CC"; then |
2538 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2539 |
else |
2540 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2541 |
for as_dir in $PATH |
2542 |
do |
2543 |
IFS=$as_save_IFS |
2544 |
test -z "$as_dir" && as_dir=. |
2545 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2546 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2547 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2548 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2549 |
break 2 |
2550 |
fi |
2551 |
done |
2552 |
done |
2553 |
IFS=$as_save_IFS |
2554 |
|
2555 |
fi |
2556 |
fi |
2557 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2558 |
if test -n "$ac_ct_CC"; then |
2559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2560 |
$as_echo "$ac_ct_CC" >&6; } |
2561 |
else |
2562 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2563 |
$as_echo "no" >&6; } |
2564 |
fi |
2565 |
|
2566 |
|
2567 |
test -n "$ac_ct_CC" && break |
2568 |
done |
2569 |
|
2570 |
if test "x$ac_ct_CC" = x; then |
2571 |
CC="" |
2572 |
else |
2573 |
case $cross_compiling:$ac_tool_warned in |
2574 |
yes:) |
2575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2576 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2577 |
ac_tool_warned=yes ;; |
2578 |
esac |
2579 |
CC=$ac_ct_CC |
2580 |
fi |
2581 |
fi |
2582 |
|
2583 |
fi |
2584 |
|
2585 |
|
2586 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2587 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2588 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
2589 |
See \`config.log' for more details" "$LINENO" 5; } |
2590 |
|
2591 |
# Provide some information about the compiler. |
2592 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2593 |
set X $ac_compile |
2594 |
ac_compiler=$2 |
2595 |
for ac_option in --version -v -V -qversion; do |
2596 |
{ { ac_try="$ac_compiler $ac_option >&5" |
2597 |
case "(($ac_try" in |
2598 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2599 |
*) ac_try_echo=$ac_try;; |
2600 |
esac |
2601 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2602 |
$as_echo "$ac_try_echo"; } >&5 |
2603 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2604 |
ac_status=$? |
2605 |
if test -s conftest.err; then |
2606 |
sed '10a\ |
2607 |
... rest of stderr output deleted ... |
2608 |
10q' conftest.err >conftest.er1 |
2609 |
cat conftest.er1 >&5 |
2610 |
fi |
2611 |
rm -f conftest.er1 conftest.err |
2612 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2613 |
test $ac_status = 0; } |
2614 |
done |
2615 |
|
2616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2617 |
/* end confdefs.h. */ |
2618 |
|
2619 |
int |
2620 |
main () |
2621 |
{ |
2622 |
|
2623 |
; |
2624 |
return 0; |
2625 |
} |
2626 |
_ACEOF |
2627 |
ac_clean_files_save=$ac_clean_files |
2628 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2629 |
# Try to create an executable without -o first, disregard a.out. |
2630 |
# It will help us diagnose broken compilers, and finding out an intuition |
2631 |
# of exeext. |
2632 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2633 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
2634 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2635 |
|
2636 |
# The possible output files: |
2637 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2638 |
|
2639 |
ac_rmfiles= |
2640 |
for ac_file in $ac_files |
2641 |
do |
2642 |
case $ac_file in |
2643 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2644 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2645 |
esac |
2646 |
done |
2647 |
rm -f $ac_rmfiles |
2648 |
|
2649 |
if { { ac_try="$ac_link_default" |
2650 |
case "(($ac_try" in |
2651 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2652 |
*) ac_try_echo=$ac_try;; |
2653 |
esac |
2654 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2655 |
$as_echo "$ac_try_echo"; } >&5 |
2656 |
(eval "$ac_link_default") 2>&5 |
2657 |
ac_status=$? |
2658 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2659 |
test $ac_status = 0; }; then : |
2660 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2661 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2662 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2663 |
# so that the user can short-circuit this test for compilers unknown to |
2664 |
# Autoconf. |
2665 |
for ac_file in $ac_files '' |
2666 |
do |
2667 |
test -f "$ac_file" || continue |
2668 |
case $ac_file in |
2669 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2670 |
;; |
2671 |
[ab].out ) |
2672 |
# We found the default executable, but exeext='' is most |
2673 |
# certainly right. |
2674 |
break;; |
2675 |
*.* ) |
2676 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2677 |
then :; else |
2678 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2679 |
fi |
2680 |
# We set ac_cv_exeext here because the later test for it is not |
2681 |
# safe: cross compilers may not add the suffix if given an `-o' |
2682 |
# argument, so we may need to know it at that point already. |
2683 |
# Even if this section looks crufty: it has the advantage of |
2684 |
# actually working. |
2685 |
break;; |
2686 |
* ) |
2687 |
break;; |
2688 |
esac |
2689 |
done |
2690 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2691 |
|
2692 |
else |
2693 |
ac_file='' |
2694 |
fi |
2695 |
if test -z "$ac_file"; then : |
2696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2697 |
$as_echo "no" >&6; } |
2698 |
$as_echo "$as_me: failed program was:" >&5 |
2699 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2700 |
|
2701 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2702 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2703 |
as_fn_error 77 "C compiler cannot create executables |
2704 |
See \`config.log' for more details" "$LINENO" 5; } |
2705 |
else |
2706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2707 |
$as_echo "yes" >&6; } |
2708 |
fi |
2709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2710 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
2711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2712 |
$as_echo "$ac_file" >&6; } |
2713 |
ac_exeext=$ac_cv_exeext |
2714 |
|
2715 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2716 |
ac_clean_files=$ac_clean_files_save |
2717 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2718 |
$as_echo_n "checking for suffix of executables... " >&6; } |
2719 |
if { { ac_try="$ac_link" |
2720 |
case "(($ac_try" in |
2721 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2722 |
*) ac_try_echo=$ac_try;; |
2723 |
esac |
2724 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2725 |
$as_echo "$ac_try_echo"; } >&5 |
2726 |
(eval "$ac_link") 2>&5 |
2727 |
ac_status=$? |
2728 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2729 |
test $ac_status = 0; }; then : |
2730 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2731 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2732 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2733 |
# `rm'. |
2734 |
for ac_file in conftest.exe conftest conftest.*; do |
2735 |
test -f "$ac_file" || continue |
2736 |
case $ac_file in |
2737 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2738 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2739 |
break;; |
2740 |
* ) break;; |
2741 |
esac |
2742 |
done |
2743 |
else |
2744 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2745 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2746 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2747 |
See \`config.log' for more details" "$LINENO" 5; } |
2748 |
fi |
2749 |
rm -f conftest conftest$ac_cv_exeext |
2750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2751 |
$as_echo "$ac_cv_exeext" >&6; } |
2752 |
|
2753 |
rm -f conftest.$ac_ext |
2754 |
EXEEXT=$ac_cv_exeext |
2755 |
ac_exeext=$EXEEXT |
2756 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2757 |
/* end confdefs.h. */ |
2758 |
#include <stdio.h> |
2759 |
int |
2760 |
main () |
2761 |
{ |
2762 |
FILE *f = fopen ("conftest.out", "w"); |
2763 |
return ferror (f) || fclose (f) != 0; |
2764 |
|
2765 |
; |
2766 |
return 0; |
2767 |
} |
2768 |
_ACEOF |
2769 |
ac_clean_files="$ac_clean_files conftest.out" |
2770 |
# Check that the compiler produces executables we can run. If not, either |
2771 |
# the compiler is broken, or we cross compile. |
2772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2773 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
2774 |
if test "$cross_compiling" != yes; then |
2775 |
{ { ac_try="$ac_link" |
2776 |
case "(($ac_try" in |
2777 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2778 |
*) ac_try_echo=$ac_try;; |
2779 |
esac |
2780 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2781 |
$as_echo "$ac_try_echo"; } >&5 |
2782 |
(eval "$ac_link") 2>&5 |
2783 |
ac_status=$? |
2784 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2785 |
test $ac_status = 0; } |
2786 |
if { ac_try='./conftest$ac_cv_exeext' |
2787 |
{ { case "(($ac_try" in |
2788 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2789 |
*) ac_try_echo=$ac_try;; |
2790 |
esac |
2791 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2792 |
$as_echo "$ac_try_echo"; } >&5 |
2793 |
(eval "$ac_try") 2>&5 |
2794 |
ac_status=$? |
2795 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2796 |
test $ac_status = 0; }; }; then |
2797 |
cross_compiling=no |
2798 |
else |
2799 |
if test "$cross_compiling" = maybe; then |
2800 |
cross_compiling=yes |
2801 |
else |
2802 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2803 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2804 |
as_fn_error $? "cannot run C compiled programs. |
2805 |
If you meant to cross compile, use \`--host'. |
2806 |
See \`config.log' for more details" "$LINENO" 5; } |
2807 |
fi |
2808 |
fi |
2809 |
fi |
2810 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2811 |
$as_echo "$cross_compiling" >&6; } |
2812 |
|
2813 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2814 |
ac_clean_files=$ac_clean_files_save |
2815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2816 |
$as_echo_n "checking for suffix of object files... " >&6; } |
2817 |
if ${ac_cv_objext+:} false; then : |
2818 |
$as_echo_n "(cached) " >&6 |
2819 |
else |
2820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2821 |
/* end confdefs.h. */ |
2822 |
|
2823 |
int |
2824 |
main () |
2825 |
{ |
2826 |
|
2827 |
; |
2828 |
return 0; |
2829 |
} |
2830 |
_ACEOF |
2831 |
rm -f conftest.o conftest.obj |
2832 |
if { { ac_try="$ac_compile" |
2833 |
case "(($ac_try" in |
2834 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2835 |
*) ac_try_echo=$ac_try;; |
2836 |
esac |
2837 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2838 |
$as_echo "$ac_try_echo"; } >&5 |
2839 |
(eval "$ac_compile") 2>&5 |
2840 |
ac_status=$? |
2841 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2842 |
test $ac_status = 0; }; then : |
2843 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2844 |
test -f "$ac_file" || continue; |
2845 |
case $ac_file in |
2846 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2847 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2848 |
break;; |
2849 |
esac |
2850 |
done |
2851 |
else |
2852 |
$as_echo "$as_me: failed program was:" >&5 |
2853 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2854 |
|
2855 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2856 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2857 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
2858 |
See \`config.log' for more details" "$LINENO" 5; } |
2859 |
fi |
2860 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2861 |
fi |
2862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2863 |
$as_echo "$ac_cv_objext" >&6; } |
2864 |
OBJEXT=$ac_cv_objext |
2865 |
ac_objext=$OBJEXT |
2866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2867 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2868 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
2869 |
$as_echo_n "(cached) " >&6 |
2870 |
else |
2871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2872 |
/* end confdefs.h. */ |
2873 |
|
2874 |
int |
2875 |
main () |
2876 |
{ |
2877 |
#ifndef __GNUC__ |
2878 |
choke me |
2879 |
#endif |
2880 |
|
2881 |
; |
2882 |
return 0; |
2883 |
} |
2884 |
_ACEOF |
2885 |
if ac_fn_c_try_compile "$LINENO"; then : |
2886 |
ac_compiler_gnu=yes |
2887 |
else |
2888 |
ac_compiler_gnu=no |
2889 |
fi |
2890 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2891 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2892 |
|
2893 |
fi |
2894 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2895 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2896 |
if test $ac_compiler_gnu = yes; then |
2897 |
GCC=yes |
2898 |
else |
2899 |
GCC= |
2900 |
fi |
2901 |
ac_test_CFLAGS=${CFLAGS+set} |
2902 |
ac_save_CFLAGS=$CFLAGS |
2903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2904 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
2905 |
if ${ac_cv_prog_cc_g+:} false; then : |
2906 |
$as_echo_n "(cached) " >&6 |
2907 |
else |
2908 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2909 |
ac_c_werror_flag=yes |
2910 |
ac_cv_prog_cc_g=no |
2911 |
CFLAGS="-g" |
2912 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2913 |
/* end confdefs.h. */ |
2914 |
|
2915 |
int |
2916 |
main () |
2917 |
{ |
2918 |
|
2919 |
; |
2920 |
return 0; |
2921 |
} |
2922 |
_ACEOF |
2923 |
if ac_fn_c_try_compile "$LINENO"; then : |
2924 |
ac_cv_prog_cc_g=yes |
2925 |
else |
2926 |
CFLAGS="" |
2927 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2928 |
/* end confdefs.h. */ |
2929 |
|
2930 |
int |
2931 |
main () |
2932 |
{ |
2933 |
|
2934 |
; |
2935 |
return 0; |
2936 |
} |
2937 |
_ACEOF |
2938 |
if ac_fn_c_try_compile "$LINENO"; then : |
2939 |
|
2940 |
else |
2941 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2942 |
CFLAGS="-g" |
2943 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2944 |
/* end confdefs.h. */ |
2945 |
|
2946 |
int |
2947 |
main () |
2948 |
{ |
2949 |
|
2950 |
; |
2951 |
return 0; |
2952 |
} |
2953 |
_ACEOF |
2954 |
if ac_fn_c_try_compile "$LINENO"; then : |
2955 |
ac_cv_prog_cc_g=yes |
2956 |
fi |
2957 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2958 |
fi |
2959 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2960 |
fi |
2961 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2962 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2963 |
fi |
2964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2965 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
2966 |
if test "$ac_test_CFLAGS" = set; then |
2967 |
CFLAGS=$ac_save_CFLAGS |
2968 |
elif test $ac_cv_prog_cc_g = yes; then |
2969 |
if test "$GCC" = yes; then |
2970 |
CFLAGS="-g -O2" |
2971 |
else |
2972 |
CFLAGS="-g" |
2973 |
fi |
2974 |
else |
2975 |
if test "$GCC" = yes; then |
2976 |
CFLAGS="-O2" |
2977 |
else |
2978 |
CFLAGS= |
2979 |
fi |
2980 |
fi |
2981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2982 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
2983 |
if ${ac_cv_prog_cc_c89+:} false; then : |
2984 |
$as_echo_n "(cached) " >&6 |
2985 |
else |
2986 |
ac_cv_prog_cc_c89=no |
2987 |
ac_save_CC=$CC |
2988 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2989 |
/* end confdefs.h. */ |
2990 |
#include <stdarg.h> |
2991 |
#include <stdio.h> |
2992 |
struct stat; |
2993 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2994 |
struct buf { int x; }; |
2995 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2996 |
static char *e (p, i) |
2997 |
char **p; |
2998 |
int i; |
2999 |
{ |
3000 |
return p[i]; |
3001 |
} |
3002 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3003 |
{ |
3004 |
char *s; |
3005 |
va_list v; |
3006 |
va_start (v,p); |
3007 |
s = g (p, va_arg (v,int)); |
3008 |
va_end (v); |
3009 |
return s; |
3010 |
} |
3011 |
|
3012 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3013 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3014 |
These don't provoke an error unfortunately, instead are silently treated |
3015 |
as 'x'. The following induces an error, until -std is added to get |
3016 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3017 |
array size at least. It's necessary to write '\x00'==0 to get something |
3018 |
that's true only with -std. */ |
3019 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3020 |
|
3021 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3022 |
inside strings and character constants. */ |
3023 |
#define FOO(x) 'x' |
3024 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3025 |
|
3026 |
int test (int i, double x); |
3027 |
struct s1 {int (*f) (int a);}; |
3028 |
struct s2 {int (*f) (double a);}; |
3029 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3030 |
int argc; |
3031 |
char **argv; |
3032 |
int |
3033 |
main () |
3034 |
{ |
3035 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3036 |
; |
3037 |
return 0; |
3038 |
} |
3039 |
_ACEOF |
3040 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3041 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3042 |
do |
3043 |
CC="$ac_save_CC $ac_arg" |
3044 |
if ac_fn_c_try_compile "$LINENO"; then : |
3045 |
ac_cv_prog_cc_c89=$ac_arg |
3046 |
fi |
3047 |
rm -f core conftest.err conftest.$ac_objext |
3048 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3049 |
done |
3050 |
rm -f conftest.$ac_ext |
3051 |
CC=$ac_save_CC |
3052 |
|
3053 |
fi |
3054 |
# AC_CACHE_VAL |
3055 |
case "x$ac_cv_prog_cc_c89" in |
3056 |
x) |
3057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3058 |
$as_echo "none needed" >&6; } ;; |
3059 |
xno) |
3060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3061 |
$as_echo "unsupported" >&6; } ;; |
3062 |
*) |
3063 |
CC="$CC $ac_cv_prog_cc_c89" |
3064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3065 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3066 |
esac |
3067 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3068 |
|
3069 |
fi |
3070 |
|
3071 |
ac_ext=c |
3072 |
ac_cpp='$CPP $CPPFLAGS' |
3073 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3074 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3075 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3076 |
|
3077 |
|
3078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
3079 |
$as_echo_n "checking for library containing clock_gettime... " >&6; } |
3080 |
if ${ac_cv_search_clock_gettime+:} false; then : |
3081 |
$as_echo_n "(cached) " >&6 |
3082 |
else |
3083 |
ac_func_search_save_LIBS=$LIBS |
3084 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3085 |
/* end confdefs.h. */ |
3086 |
|
3087 |
/* Override any GCC internal prototype to avoid an error. |
3088 |
Use char because int might match the return type of a GCC |
3089 |
builtin and then its argument prototype would still apply. */ |
3090 |
#ifdef __cplusplus |
3091 |
extern "C" |
3092 |
#endif |
3093 |
char clock_gettime (); |
3094 |
int |
3095 |
main () |
3096 |
{ |
3097 |
return clock_gettime (); |
3098 |
; |
3099 |
return 0; |
3100 |
} |
3101 |
_ACEOF |
3102 |
for ac_lib in '' rt posix4; do |
3103 |
if test -z "$ac_lib"; then |
3104 |
ac_res="none required" |
3105 |
else |
3106 |
ac_res=-l$ac_lib |
3107 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3108 |
fi |
3109 |
if ac_fn_c_try_link "$LINENO"; then : |
3110 |
ac_cv_search_clock_gettime=$ac_res |
3111 |
fi |
3112 |
rm -f core conftest.err conftest.$ac_objext \ |
3113 |
conftest$ac_exeext |
3114 |
if ${ac_cv_search_clock_gettime+:} false; then : |
3115 |
break |
3116 |
fi |
3117 |
done |
3118 |
if ${ac_cv_search_clock_gettime+:} false; then : |
3119 |
|
3120 |
else |
3121 |
ac_cv_search_clock_gettime=no |
3122 |
fi |
3123 |
rm conftest.$ac_ext |
3124 |
LIBS=$ac_func_search_save_LIBS |
3125 |
fi |
3126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
3127 |
$as_echo "$ac_cv_search_clock_gettime" >&6; } |
3128 |
ac_res=$ac_cv_search_clock_gettime |
3129 |
if test "$ac_res" != no; then : |
3130 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3131 |
|
3132 |
else |
3133 |
as_fn_error $? "Function clock_gettime not available." "$LINENO" 5 |
3134 |
|
3135 |
fi |
3136 |
|
3137 |
|
3138 |
# Make sure we can run config.sub. |
3139 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3140 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
3141 |
|
3142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3143 |
$as_echo_n "checking build system type... " >&6; } |
3144 |
if ${ac_cv_build+:} false; then : |
3145 |
$as_echo_n "(cached) " >&6 |
3146 |
else |
3147 |
ac_build_alias=$build_alias |
3148 |
test "x$ac_build_alias" = x && |
3149 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3150 |
test "x$ac_build_alias" = x && |
3151 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3152 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3153 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
3154 |
|
3155 |
fi |
3156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3157 |
$as_echo "$ac_cv_build" >&6; } |
3158 |
case $ac_cv_build in |
3159 |
*-*-*) ;; |
3160 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3161 |
esac |
3162 |
build=$ac_cv_build |
3163 |
ac_save_IFS=$IFS; IFS='-' |
3164 |
set x $ac_cv_build |
3165 |
shift |
3166 |
build_cpu=$1 |
3167 |
build_vendor=$2 |
3168 |
shift; shift |
3169 |
# Remember, the first character of IFS is used to create $*, |
3170 |
# except with old shells: |
3171 |
build_os=$* |
3172 |
IFS=$ac_save_IFS |
3173 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3174 |
|
3175 |
|
3176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3177 |
$as_echo_n "checking host system type... " >&6; } |
3178 |
if ${ac_cv_host+:} false; then : |
3179 |
$as_echo_n "(cached) " >&6 |
3180 |
else |
3181 |
if test "x$host_alias" = x; then |
3182 |
ac_cv_host=$ac_cv_build |
3183 |
else |
3184 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3185 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
3186 |
fi |
3187 |
|
3188 |
fi |
3189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3190 |
$as_echo "$ac_cv_host" >&6; } |
3191 |
case $ac_cv_host in |
3192 |
*-*-*) ;; |
3193 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3194 |
esac |
3195 |
host=$ac_cv_host |
3196 |
ac_save_IFS=$IFS; IFS='-' |
3197 |
set x $ac_cv_host |
3198 |
shift |
3199 |
host_cpu=$1 |
3200 |
host_vendor=$2 |
3201 |
shift; shift |
3202 |
# Remember, the first character of IFS is used to create $*, |
3203 |
# except with old shells: |
3204 |
host_os=$* |
3205 |
IFS=$ac_save_IFS |
3206 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3207 |
|
3208 |
|
3209 |
|
3210 |
# Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC |
3211 |
if test "$ac_test_CFLAGS" != set ; then |
3212 |
bird_cflags_default=yes |
3213 |
fi |
3214 |
|
3215 |
ac_ext=c |
3216 |
ac_cpp='$CPP $CPPFLAGS' |
3217 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3218 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3219 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3220 |
if test -n "$ac_tool_prefix"; then |
3221 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3222 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3223 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3224 |
$as_echo_n "checking for $ac_word... " >&6; } |
3225 |
if ${ac_cv_prog_CC+:} false; then : |
3226 |
$as_echo_n "(cached) " >&6 |
3227 |
else |
3228 |
if test -n "$CC"; then |
3229 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3230 |
else |
3231 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3232 |
for as_dir in $PATH |
3233 |
do |
3234 |
IFS=$as_save_IFS |
3235 |
test -z "$as_dir" && as_dir=. |
3236 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3237 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3238 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3239 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3240 |
break 2 |
3241 |
fi |
3242 |
done |
3243 |
done |
3244 |
IFS=$as_save_IFS |
3245 |
|
3246 |
fi |
3247 |
fi |
3248 |
CC=$ac_cv_prog_CC |
3249 |
if test -n "$CC"; then |
3250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3251 |
$as_echo "$CC" >&6; } |
3252 |
else |
3253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3254 |
$as_echo "no" >&6; } |
3255 |
fi |
3256 |
|
3257 |
|
3258 |
fi |
3259 |
if test -z "$ac_cv_prog_CC"; then |
3260 |
ac_ct_CC=$CC |
3261 |
# Extract the first word of "gcc", so it can be a program name with args. |
3262 |
set dummy gcc; ac_word=$2 |
3263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3264 |
$as_echo_n "checking for $ac_word... " >&6; } |
3265 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3266 |
$as_echo_n "(cached) " >&6 |
3267 |
else |
3268 |
if test -n "$ac_ct_CC"; then |
3269 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3270 |
else |
3271 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3272 |
for as_dir in $PATH |
3273 |
do |
3274 |
IFS=$as_save_IFS |
3275 |
test -z "$as_dir" && as_dir=. |
3276 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3277 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3278 |
ac_cv_prog_ac_ct_CC="gcc" |
3279 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3280 |
break 2 |
3281 |
fi |
3282 |
done |
3283 |
done |
3284 |
IFS=$as_save_IFS |
3285 |
|
3286 |
fi |
3287 |
fi |
3288 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3289 |
if test -n "$ac_ct_CC"; then |
3290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3291 |
$as_echo "$ac_ct_CC" >&6; } |
3292 |
else |
3293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3294 |
$as_echo "no" >&6; } |
3295 |
fi |
3296 |
|
3297 |
if test "x$ac_ct_CC" = x; then |
3298 |
CC="" |
3299 |
else |
3300 |
case $cross_compiling:$ac_tool_warned in |
3301 |
yes:) |
3302 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3303 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3304 |
ac_tool_warned=yes ;; |
3305 |
esac |
3306 |
CC=$ac_ct_CC |
3307 |
fi |
3308 |
else |
3309 |
CC="$ac_cv_prog_CC" |
3310 |
fi |
3311 |
|
3312 |
if test -z "$CC"; then |
3313 |
if test -n "$ac_tool_prefix"; then |
3314 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3315 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3316 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3317 |
$as_echo_n "checking for $ac_word... " >&6; } |
3318 |
if ${ac_cv_prog_CC+:} false; then : |
3319 |
$as_echo_n "(cached) " >&6 |
3320 |
else |
3321 |
if test -n "$CC"; then |
3322 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3323 |
else |
3324 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3325 |
for as_dir in $PATH |
3326 |
do |
3327 |
IFS=$as_save_IFS |
3328 |
test -z "$as_dir" && as_dir=. |
3329 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3330 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3331 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3332 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3333 |
break 2 |
3334 |
fi |
3335 |
done |
3336 |
done |
3337 |
IFS=$as_save_IFS |
3338 |
|
3339 |
fi |
3340 |
fi |
3341 |
CC=$ac_cv_prog_CC |
3342 |
if test -n "$CC"; then |
3343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3344 |
$as_echo "$CC" >&6; } |
3345 |
else |
3346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3347 |
$as_echo "no" >&6; } |
3348 |
fi |
3349 |
|
3350 |
|
3351 |
fi |
3352 |
fi |
3353 |
if test -z "$CC"; then |
3354 |
# Extract the first word of "cc", so it can be a program name with args. |
3355 |
set dummy cc; ac_word=$2 |
3356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3357 |
$as_echo_n "checking for $ac_word... " >&6; } |
3358 |
if ${ac_cv_prog_CC+:} false; then : |
3359 |
$as_echo_n "(cached) " >&6 |
3360 |
else |
3361 |
if test -n "$CC"; then |
3362 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3363 |
else |
3364 |
ac_prog_rejected=no |
3365 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3366 |
for as_dir in $PATH |
3367 |
do |
3368 |
IFS=$as_save_IFS |
3369 |
test -z "$as_dir" && as_dir=. |
3370 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3371 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3372 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3373 |
ac_prog_rejected=yes |
3374 |
continue |
3375 |
fi |
3376 |
ac_cv_prog_CC="cc" |
3377 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3378 |
break 2 |
3379 |
fi |
3380 |
done |
3381 |
done |
3382 |
IFS=$as_save_IFS |
3383 |
|
3384 |
if test $ac_prog_rejected = yes; then |
3385 |
# We found a bogon in the path, so make sure we never use it. |
3386 |
set dummy $ac_cv_prog_CC |
3387 |
shift |
3388 |
if test $# != 0; then |
3389 |
# We chose a different compiler from the bogus one. |
3390 |
# However, it has the same basename, so the bogon will be chosen |
3391 |
# first if we set CC to just the basename; use the full file name. |
3392 |
shift |
3393 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3394 |
fi |
3395 |
fi |
3396 |
fi |
3397 |
fi |
3398 |
CC=$ac_cv_prog_CC |
3399 |
if test -n "$CC"; then |
3400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3401 |
$as_echo "$CC" >&6; } |
3402 |
else |
3403 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3404 |
$as_echo "no" >&6; } |
3405 |
fi |
3406 |
|
3407 |
|
3408 |
fi |
3409 |
if test -z "$CC"; then |
3410 |
if test -n "$ac_tool_prefix"; then |
3411 |
for ac_prog in cl.exe |
3412 |
do |
3413 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3414 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3416 |
$as_echo_n "checking for $ac_word... " >&6; } |
3417 |
if ${ac_cv_prog_CC+:} false; then : |
3418 |
$as_echo_n "(cached) " >&6 |
3419 |
else |
3420 |
if test -n "$CC"; then |
3421 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3422 |
else |
3423 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3424 |
for as_dir in $PATH |
3425 |
do |
3426 |
IFS=$as_save_IFS |
3427 |
test -z "$as_dir" && as_dir=. |
3428 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3429 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3430 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3431 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3432 |
break 2 |
3433 |
fi |
3434 |
done |
3435 |
done |
3436 |
IFS=$as_save_IFS |
3437 |
|
3438 |
fi |
3439 |
fi |
3440 |
CC=$ac_cv_prog_CC |
3441 |
if test -n "$CC"; then |
3442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3443 |
$as_echo "$CC" >&6; } |
3444 |
else |
3445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3446 |
$as_echo "no" >&6; } |
3447 |
fi |
3448 |
|
3449 |
|
3450 |
test -n "$CC" && break |
3451 |
done |
3452 |
fi |
3453 |
if test -z "$CC"; then |
3454 |
ac_ct_CC=$CC |
3455 |
for ac_prog in cl.exe |
3456 |
do |
3457 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3458 |
set dummy $ac_prog; ac_word=$2 |
3459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3460 |
$as_echo_n "checking for $ac_word... " >&6; } |
3461 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3462 |
$as_echo_n "(cached) " >&6 |
3463 |
else |
3464 |
if test -n "$ac_ct_CC"; then |
3465 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3466 |
else |
3467 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3468 |
for as_dir in $PATH |
3469 |
do |
3470 |
IFS=$as_save_IFS |
3471 |
test -z "$as_dir" && as_dir=. |
3472 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3473 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3474 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3475 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3476 |
break 2 |
3477 |
fi |
3478 |
done |
3479 |
done |
3480 |
IFS=$as_save_IFS |
3481 |
|
3482 |
fi |
3483 |
fi |
3484 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3485 |
if test -n "$ac_ct_CC"; then |
3486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3487 |
$as_echo "$ac_ct_CC" >&6; } |
3488 |
else |
3489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3490 |
$as_echo "no" >&6; } |
3491 |
fi |
3492 |
|
3493 |
|
3494 |
test -n "$ac_ct_CC" && break |
3495 |
done |
3496 |
|
3497 |
if test "x$ac_ct_CC" = x; then |
3498 |
CC="" |
3499 |
else |
3500 |
case $cross_compiling:$ac_tool_warned in |
3501 |
yes:) |
3502 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3503 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3504 |
ac_tool_warned=yes ;; |
3505 |
esac |
3506 |
CC=$ac_ct_CC |
3507 |
fi |
3508 |
fi |
3509 |
|
3510 |
fi |
3511 |
|
3512 |
|
3513 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3514 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3515 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3516 |
See \`config.log' for more details" "$LINENO" 5; } |
3517 |
|
3518 |
# Provide some information about the compiler. |
3519 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3520 |
set X $ac_compile |
3521 |
ac_compiler=$2 |
3522 |
for ac_option in --version -v -V -qversion; do |
3523 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3524 |
case "(($ac_try" in |
3525 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3526 |
*) ac_try_echo=$ac_try;; |
3527 |
esac |
3528 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3529 |
$as_echo "$ac_try_echo"; } >&5 |
3530 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3531 |
ac_status=$? |
3532 |
if test -s conftest.err; then |
3533 |
sed '10a\ |
3534 |
... rest of stderr output deleted ... |
3535 |
10q' conftest.err >conftest.er1 |
3536 |
cat conftest.er1 >&5 |
3537 |
fi |
3538 |
rm -f conftest.er1 conftest.err |
3539 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3540 |
test $ac_status = 0; } |
3541 |
done |
3542 |
|
3543 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3544 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3545 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3546 |
$as_echo_n "(cached) " >&6 |
3547 |
else |
3548 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3549 |
/* end confdefs.h. */ |
3550 |
|
3551 |
int |
3552 |
main () |
3553 |
{ |
3554 |
#ifndef __GNUC__ |
3555 |
choke me |
3556 |
#endif |
3557 |
|
3558 |
; |
3559 |
return 0; |
3560 |
} |
3561 |
_ACEOF |
3562 |
if ac_fn_c_try_compile "$LINENO"; then : |
3563 |
ac_compiler_gnu=yes |
3564 |
else |
3565 |
ac_compiler_gnu=no |
3566 |
fi |
3567 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3568 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3569 |
|
3570 |
fi |
3571 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3572 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3573 |
if test $ac_compiler_gnu = yes; then |
3574 |
GCC=yes |
3575 |
else |
3576 |
GCC= |
3577 |
fi |
3578 |
ac_test_CFLAGS=${CFLAGS+set} |
3579 |
ac_save_CFLAGS=$CFLAGS |
3580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3581 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3582 |
if ${ac_cv_prog_cc_g+:} false; then : |
3583 |
$as_echo_n "(cached) " >&6 |
3584 |
else |
3585 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3586 |
ac_c_werror_flag=yes |
3587 |
ac_cv_prog_cc_g=no |
3588 |
CFLAGS="-g" |
3589 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3590 |
/* end confdefs.h. */ |
3591 |
|
3592 |
int |
3593 |
main () |
3594 |
{ |
3595 |
|
3596 |
; |
3597 |
return 0; |
3598 |
} |
3599 |
_ACEOF |
3600 |
if ac_fn_c_try_compile "$LINENO"; then : |
3601 |
ac_cv_prog_cc_g=yes |
3602 |
else |
3603 |
CFLAGS="" |
3604 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3605 |
/* end confdefs.h. */ |
3606 |
|
3607 |
int |
3608 |
main () |
3609 |
{ |
3610 |
|
3611 |
; |
3612 |
return 0; |
3613 |
} |
3614 |
_ACEOF |
3615 |
if ac_fn_c_try_compile "$LINENO"; then : |
3616 |
|
3617 |
else |
3618 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3619 |
CFLAGS="-g" |
3620 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3621 |
/* end confdefs.h. */ |
3622 |
|
3623 |
int |
3624 |
main () |
3625 |
{ |
3626 |
|
3627 |
; |
3628 |
return 0; |
3629 |
} |
3630 |
_ACEOF |
3631 |
if ac_fn_c_try_compile "$LINENO"; then : |
3632 |
ac_cv_prog_cc_g=yes |
3633 |
fi |
3634 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3635 |
fi |
3636 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3637 |
fi |
3638 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3639 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3640 |
fi |
3641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3642 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3643 |
if test "$ac_test_CFLAGS" = set; then |
3644 |
CFLAGS=$ac_save_CFLAGS |
3645 |
elif test $ac_cv_prog_cc_g = yes; then |
3646 |
if test "$GCC" = yes; then |
3647 |
CFLAGS="-g -O2" |
3648 |
else |
3649 |
CFLAGS="-g" |
3650 |
fi |
3651 |
else |
3652 |
if test "$GCC" = yes; then |
3653 |
CFLAGS="-O2" |
3654 |
else |
3655 |
CFLAGS= |
3656 |
fi |
3657 |
fi |
3658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3659 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3660 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3661 |
$as_echo_n "(cached) " >&6 |
3662 |
else |
3663 |
ac_cv_prog_cc_c89=no |
3664 |
ac_save_CC=$CC |
3665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3666 |
/* end confdefs.h. */ |
3667 |
#include <stdarg.h> |
3668 |
#include <stdio.h> |
3669 |
struct stat; |
3670 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3671 |
struct buf { int x; }; |
3672 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3673 |
static char *e (p, i) |
3674 |
char **p; |
3675 |
int i; |
3676 |
{ |
3677 |
return p[i]; |
3678 |
} |
3679 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3680 |
{ |
3681 |
char *s; |
3682 |
va_list v; |
3683 |
va_start (v,p); |
3684 |
s = g (p, va_arg (v,int)); |
3685 |
va_end (v); |
3686 |
return s; |
3687 |
} |
3688 |
|
3689 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3690 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3691 |
These don't provoke an error unfortunately, instead are silently treated |
3692 |
as 'x'. The following induces an error, until -std is added to get |
3693 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3694 |
array size at least. It's necessary to write '\x00'==0 to get something |
3695 |
that's true only with -std. */ |
3696 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3697 |
|
3698 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3699 |
inside strings and character constants. */ |
3700 |
#define FOO(x) 'x' |
3701 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3702 |
|
3703 |
int test (int i, double x); |
3704 |
struct s1 {int (*f) (int a);}; |
3705 |
struct s2 {int (*f) (double a);}; |
3706 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3707 |
int argc; |
3708 |
char **argv; |
3709 |
int |
3710 |
main () |
3711 |
{ |
3712 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3713 |
; |
3714 |
return 0; |
3715 |
} |
3716 |
_ACEOF |
3717 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3718 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3719 |
do |
3720 |
CC="$ac_save_CC $ac_arg" |
3721 |
if ac_fn_c_try_compile "$LINENO"; then : |
3722 |
ac_cv_prog_cc_c89=$ac_arg |
3723 |
fi |
3724 |
rm -f core conftest.err conftest.$ac_objext |
3725 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3726 |
done |
3727 |
rm -f conftest.$ac_ext |
3728 |
CC=$ac_save_CC |
3729 |
|
3730 |
fi |
3731 |
# AC_CACHE_VAL |
3732 |
case "x$ac_cv_prog_cc_c89" in |
3733 |
x) |
3734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3735 |
$as_echo "none needed" >&6; } ;; |
3736 |
xno) |
3737 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3738 |
$as_echo "unsupported" >&6; } ;; |
3739 |
*) |
3740 |
CC="$CC $ac_cv_prog_cc_c89" |
3741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3742 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3743 |
esac |
3744 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3745 |
|
3746 |
fi |
3747 |
|
3748 |
ac_ext=c |
3749 |
ac_cpp='$CPP $CPPFLAGS' |
3750 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3751 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3752 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3753 |
|
3754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3755 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3756 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3757 |
$as_echo_n "(cached) " >&6 |
3758 |
else |
3759 |
ac_cv_prog_cc_c99=no |
3760 |
ac_save_CC=$CC |
3761 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3762 |
/* end confdefs.h. */ |
3763 |
#include <stdarg.h> |
3764 |
#include <stdbool.h> |
3765 |
#include <stdlib.h> |
3766 |
#include <wchar.h> |
3767 |
#include <stdio.h> |
3768 |
|
3769 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
3770 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
3771 |
#define showlist(...) puts (#__VA_ARGS__) |
3772 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
3773 |
static void |
3774 |
test_varargs_macros (void) |
3775 |
{ |
3776 |
int x = 1234; |
3777 |
int y = 5678; |
3778 |
debug ("Flag"); |
3779 |
debug ("X = %d\n", x); |
3780 |
showlist (The first, second, and third items.); |
3781 |
report (x>y, "x is %d but y is %d", x, y); |
3782 |
} |
3783 |
|
3784 |
// Check long long types. |
3785 |
#define BIG64 18446744073709551615ull |
3786 |
#define BIG32 4294967295ul |
3787 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
3788 |
#if !BIG_OK |
3789 |
your preprocessor is broken; |
3790 |
#endif |
3791 |
#if BIG_OK |
3792 |
#else |
3793 |
your preprocessor is broken; |
3794 |
#endif |
3795 |
static long long int bignum = -9223372036854775807LL; |
3796 |
static unsigned long long int ubignum = BIG64; |
3797 |
|
3798 |
struct incomplete_array |
3799 |
{ |
3800 |
int datasize; |
3801 |
double data[]; |
3802 |
}; |
3803 |
|
3804 |
struct named_init { |
3805 |
int number; |
3806 |
const wchar_t *name; |
3807 |
double average; |
3808 |
}; |
3809 |
|
3810 |
typedef const char *ccp; |
3811 |
|
3812 |
static inline int |
3813 |
test_restrict (ccp restrict text) |
3814 |
{ |
3815 |
// See if C++-style comments work. |
3816 |
// Iterate through items via the restricted pointer. |
3817 |
// Also check for declarations in for loops. |
3818 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
3819 |
continue; |
3820 |
return 0; |
3821 |
} |
3822 |
|
3823 |
// Check varargs and va_copy. |
3824 |
static void |
3825 |
test_varargs (const char *format, ...) |
3826 |
{ |
3827 |
va_list args; |
3828 |
va_start (args, format); |
3829 |
va_list args_copy; |
3830 |
va_copy (args_copy, args); |
3831 |
|
3832 |
const char *str; |
3833 |
int number; |
3834 |
float fnumber; |
3835 |
|
3836 |
while (*format) |
3837 |
{ |
3838 |
switch (*format++) |
3839 |
{ |
3840 |
case 's': // string |
3841 |
str = va_arg (args_copy, const char *); |
3842 |
break; |
3843 |
case 'd': // int |
3844 |
number = va_arg (args_copy, int); |
3845 |
break; |
3846 |
case 'f': // float |
3847 |
fnumber = va_arg (args_copy, double); |
3848 |
break; |
3849 |
default: |
3850 |
break; |
3851 |
} |
3852 |
} |
3853 |
va_end (args_copy); |
3854 |
va_end (args); |
3855 |
} |
3856 |
|
3857 |
int |
3858 |
main () |
3859 |
{ |
3860 |
|
3861 |
// Check bool. |
3862 |
_Bool success = false; |
3863 |
|
3864 |
// Check restrict. |
3865 |
if (test_restrict ("String literal") == 0) |
3866 |
success = true; |
3867 |
char *restrict newvar = "Another string"; |
3868 |
|
3869 |
// Check varargs. |
3870 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
3871 |
test_varargs_macros (); |
3872 |
|
3873 |
// Check flexible array members. |
3874 |
struct incomplete_array *ia = |
3875 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
3876 |
ia->datasize = 10; |
3877 |
for (int i = 0; i < ia->datasize; ++i) |
3878 |
ia->data[i] = i * 1.234; |
3879 |
|
3880 |
// Check named initializers. |
3881 |
struct named_init ni = { |
3882 |
.number = 34, |
3883 |
.name = L"Test wide string", |
3884 |
.average = 543.34343, |
3885 |
}; |
3886 |
|
3887 |
ni.number = 58; |
3888 |
|
3889 |
int dynamic_array[ni.number]; |
3890 |
dynamic_array[ni.number - 1] = 543; |
3891 |
|
3892 |
// work around unused variable warnings |
3893 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
3894 |
|| dynamic_array[ni.number - 1] != 543); |
3895 |
|
3896 |
; |
3897 |
return 0; |
3898 |
} |
3899 |
_ACEOF |
3900 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
3901 |
do |
3902 |
CC="$ac_save_CC $ac_arg" |
3903 |
if ac_fn_c_try_compile "$LINENO"; then : |
3904 |
ac_cv_prog_cc_c99=$ac_arg |
3905 |
fi |
3906 |
rm -f core conftest.err conftest.$ac_objext |
3907 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
3908 |
done |
3909 |
rm -f conftest.$ac_ext |
3910 |
CC=$ac_save_CC |
3911 |
|
3912 |
fi |
3913 |
# AC_CACHE_VAL |
3914 |
case "x$ac_cv_prog_cc_c99" in |
3915 |
x) |
3916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3917 |
$as_echo "none needed" >&6; } ;; |
3918 |
xno) |
3919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3920 |
$as_echo "unsupported" >&6; } ;; |
3921 |
*) |
3922 |
CC="$CC $ac_cv_prog_cc_c99" |
3923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
3924 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
3925 |
esac |
3926 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
3927 |
|
3928 |
fi |
3929 |
|
3930 |
|
3931 |
if test -z "$GCC" ; then |
3932 |
as_fn_error $? "This program requires the GNU C Compiler." "$LINENO" 5 |
3933 |
fi |
3934 |
|
3935 |
if test "$enable_pthreads" != no ; then |
3936 |
|
3937 |
bird_tmp_cflags="$CFLAGS" |
3938 |
CFLAGS="$CFLAGS -pthread" |
3939 |
|
3940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads are available" >&5 |
3941 |
$as_echo_n "checking whether POSIX threads are available... " >&6; } |
3942 |
if ${bird_cv_lib_pthreads+:} false; then : |
3943 |
$as_echo_n "(cached) " >&6 |
3944 |
else |
3945 |
|
3946 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3947 |
/* end confdefs.h. */ |
3948 |
|
3949 |
#include <pthread.h> |
3950 |
int |
3951 |
main () |
3952 |
{ |
3953 |
|
3954 |
pthread_t pt; |
3955 |
pthread_create(&pt, NULL, NULL, NULL); |
3956 |
pthread_spinlock_t lock; |
3957 |
pthread_spin_lock(&lock); |
3958 |
|
3959 |
|
3960 |
; |
3961 |
return 0; |
3962 |
} |
3963 |
|
3964 |
_ACEOF |
3965 |
if ac_fn_c_try_link "$LINENO"; then : |
3966 |
bird_cv_lib_pthreads=yes |
3967 |
else |
3968 |
bird_cv_lib_pthreads=no |
3969 |
|
3970 |
fi |
3971 |
rm -f core conftest.err conftest.$ac_objext \ |
3972 |
conftest$ac_exeext conftest.$ac_ext |
3973 |
|
3974 |
|
3975 |
fi |
3976 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_lib_pthreads" >&5 |
3977 |
$as_echo "$bird_cv_lib_pthreads" >&6; } |
3978 |
|
3979 |
CFLAGS="$bird_tmp_cflags" |
3980 |
|
3981 |
|
3982 |
if test "$bird_cv_lib_pthreads" = yes ; then |
3983 |
|
3984 |
$as_echo "#define USE_PTHREADS 1" >>confdefs.h |
3985 |
|
3986 |
CFLAGS="$CFLAGS -pthread" |
3987 |
LDFLAGS="$LDFLAGS -pthread" |
3988 |
proto_bfd=bfd |
3989 |
elif test "$enable_pthreads" = yes ; then |
3990 |
as_fn_error $? "POSIX threads not available." "$LINENO" 5 |
3991 |
fi |
3992 |
|
3993 |
if test "$enable_pthreads" = try ; then |
3994 |
enable_pthreads="$bird_cv_lib_pthreads" |
3995 |
fi |
3996 |
fi |
3997 |
|
3998 |
if test "$bird_cflags_default" = yes ; then |
3999 |
|
4000 |
bird_tmp_cflags="$CFLAGS" |
4001 |
CFLAGS="-Wall -Wno-pointer-sign" |
4002 |
|
4003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5 |
4004 |
$as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; } |
4005 |
if ${bird_cv_c_option_wno_pointer_sign+:} false; then : |
4006 |
$as_echo_n "(cached) " >&6 |
4007 |
else |
4008 |
|
4009 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4010 |
/* end confdefs.h. */ |
4011 |
|
4012 |
int |
4013 |
main () |
4014 |
{ |
4015 |
|
4016 |
; |
4017 |
return 0; |
4018 |
} |
4019 |
_ACEOF |
4020 |
if ac_fn_c_try_compile "$LINENO"; then : |
4021 |
bird_cv_c_option_wno_pointer_sign=yes |
4022 |
else |
4023 |
bird_cv_c_option_wno_pointer_sign=no |
4024 |
|
4025 |
fi |
4026 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4027 |
|
4028 |
|
4029 |
fi |
4030 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_wno_pointer_sign" >&5 |
4031 |
$as_echo "$bird_cv_c_option_wno_pointer_sign" >&6; } |
4032 |
|
4033 |
CFLAGS="$bird_tmp_cflags" |
4034 |
|
4035 |
|
4036 |
bird_tmp_cflags="$CFLAGS" |
4037 |
CFLAGS="-Wall -Wextra -Wno-missing-field-initializers" |
4038 |
|
4039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-missing-field-initializers" >&5 |
4040 |
$as_echo_n "checking whether CC supports -Wno-missing-field-initializers... " >&6; } |
4041 |
if ${bird_cv_c_option_wno_missing_init+:} false; then : |
4042 |
$as_echo_n "(cached) " >&6 |
4043 |
else |
4044 |
|
4045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4046 |
/* end confdefs.h. */ |
4047 |
|
4048 |
int |
4049 |
main () |
4050 |
{ |
4051 |
|
4052 |
; |
4053 |
return 0; |
4054 |
} |
4055 |
_ACEOF |
4056 |
if ac_fn_c_try_compile "$LINENO"; then : |
4057 |
bird_cv_c_option_wno_missing_init=yes |
4058 |
else |
4059 |
bird_cv_c_option_wno_missing_init=no |
4060 |
|
4061 |
fi |
4062 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4063 |
|
4064 |
|
4065 |
fi |
4066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_wno_missing_init" >&5 |
4067 |
$as_echo "$bird_cv_c_option_wno_missing_init" >&6; } |
4068 |
|
4069 |
CFLAGS="$bird_tmp_cflags" |
4070 |
|
4071 |
|
4072 |
bird_tmp_cflags="$CFLAGS" |
4073 |
CFLAGS=" -fno-strict-aliasing" |
4074 |
|
4075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-aliasing" >&5 |
4076 |
$as_echo_n "checking whether CC supports -fno-strict-aliasing... " >&6; } |
4077 |
if ${bird_cv_c_option_fno_strict_aliasing+:} false; then : |
4078 |
$as_echo_n "(cached) " >&6 |
4079 |
else |
4080 |
|
4081 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4082 |
/* end confdefs.h. */ |
4083 |
|
4084 |
int |
4085 |
main () |
4086 |
{ |
4087 |
|
4088 |
; |
4089 |
return 0; |
4090 |
} |
4091 |
_ACEOF |
4092 |
if ac_fn_c_try_compile "$LINENO"; then : |
4093 |
bird_cv_c_option_fno_strict_aliasing=yes |
4094 |
else |
4095 |
bird_cv_c_option_fno_strict_aliasing=no |
4096 |
|
4097 |
fi |
4098 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4099 |
|
4100 |
|
4101 |
fi |
4102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_aliasing" >&5 |
4103 |
$as_echo "$bird_cv_c_option_fno_strict_aliasing" >&6; } |
4104 |
|
4105 |
CFLAGS="$bird_tmp_cflags" |
4106 |
|
4107 |
|
4108 |
bird_tmp_cflags="$CFLAGS" |
4109 |
CFLAGS=" -fno-strict-overflow" |
4110 |
|
4111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-overflow" >&5 |
4112 |
$as_echo_n "checking whether CC supports -fno-strict-overflow... " >&6; } |
4113 |
if ${bird_cv_c_option_fno_strict_overflow+:} false; then : |
4114 |
$as_echo_n "(cached) " >&6 |
4115 |
else |
4116 |
|
4117 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4118 |
/* end confdefs.h. */ |
4119 |
|
4120 |
int |
4121 |
main () |
4122 |
{ |
4123 |
|
4124 |
; |
4125 |
return 0; |
4126 |
} |
4127 |
_ACEOF |
4128 |
if ac_fn_c_try_compile "$LINENO"; then : |
4129 |
bird_cv_c_option_fno_strict_overflow=yes |
4130 |
else |
4131 |
bird_cv_c_option_fno_strict_overflow=no |
4132 |
|
4133 |
fi |
4134 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4135 |
|
4136 |
|
4137 |
fi |
4138 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_overflow" >&5 |
4139 |
$as_echo "$bird_cv_c_option_fno_strict_overflow" >&6; } |
4140 |
|
4141 |
CFLAGS="$bird_tmp_cflags" |
4142 |
|
4143 |
|
4144 |
CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses" |
4145 |
|
4146 |
if test "$bird_cv_c_option_wno_pointer_sign" = yes ; then |
4147 |
CFLAGS="$CFLAGS -Wno-pointer-sign" |
4148 |
fi |
4149 |
|
4150 |
|
4151 |
if test "$bird_cv_c_option_wno_missing_init" = yes ; then |
4152 |
CFLAGS="$CFLAGS -Wno-missing-field-initializers" |
4153 |
fi |
4154 |
|
4155 |
|
4156 |
if test "$bird_cv_c_option_fno_strict_aliasing" = yes ; then |
4157 |
CFLAGS="$CFLAGS -fno-strict-aliasing" |
4158 |
fi |
4159 |
|
4160 |
|
4161 |
if test "$bird_cv_c_option_fno_strict_overflow" = yes ; then |
4162 |
CFLAGS="$CFLAGS -fno-strict-overflow" |
4163 |
fi |
4164 |
|
4165 |
fi |
4166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS" >&5 |
4167 |
$as_echo_n "checking CFLAGS... " >&6; } |
4168 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 |
4169 |
$as_echo "$CFLAGS" >&6; } |
4170 |
|
4171 |
|
4172 |
ac_ext=c |
4173 |
ac_cpp='$CPP $CPPFLAGS' |
4174 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4175 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4176 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4178 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
4179 |
# On Suns, sometimes $CPP names a directory. |
4180 |
if test -n "$CPP" && test -d "$CPP"; then |
4181 |
CPP= |
4182 |
fi |
4183 |
if test -z "$CPP"; then |
4184 |
if ${ac_cv_prog_CPP+:} false; then : |
4185 |
$as_echo_n "(cached) " >&6 |
4186 |
else |
4187 |
# Double quotes because CPP needs to be expanded |
4188 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4189 |
do |
4190 |
ac_preproc_ok=false |
4191 |
for ac_c_preproc_warn_flag in '' yes |
4192 |
do |
4193 |
# Use a header file that comes with gcc, so configuring glibc |
4194 |
# with a fresh cross-compiler works. |
4195 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4196 |
# <limits.h> exists even on freestanding compilers. |
4197 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4198 |
# not just through cpp. "Syntax error" is here to catch this case. |
4199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4200 |
/* end confdefs.h. */ |
4201 |
#ifdef __STDC__ |
4202 |
# include <limits.h> |
4203 |
#else |
4204 |
# include <assert.h> |
4205 |
#endif |
4206 |
Syntax error |
4207 |
_ACEOF |
4208 |
if ac_fn_c_try_cpp "$LINENO"; then : |
4209 |
|
4210 |
else |
4211 |
# Broken: fails on valid input. |
4212 |
continue |
4213 |
fi |
4214 |
rm -f conftest.err conftest.i conftest.$ac_ext |
4215 |
|
4216 |
# OK, works on sane cases. Now check whether nonexistent headers |
4217 |
# can be detected and how. |
4218 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4219 |
/* end confdefs.h. */ |
4220 |
#include <ac_nonexistent.h> |
4221 |
_ACEOF |
4222 |
if ac_fn_c_try_cpp "$LINENO"; then : |
4223 |
# Broken: success on invalid input. |
4224 |
continue |
4225 |
else |
4226 |
# Passes both tests. |
4227 |
ac_preproc_ok=: |
4228 |
break |
4229 |
fi |
4230 |
rm -f conftest.err conftest.i conftest.$ac_ext |
4231 |
|
4232 |
done |
4233 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4234 |
rm -f conftest.i conftest.err conftest.$ac_ext |
4235 |
if $ac_preproc_ok; then : |
4236 |
break |
4237 |
fi |
4238 |
|
4239 |
done |
4240 |
ac_cv_prog_CPP=$CPP |
4241 |
|
4242 |
fi |
4243 |
CPP=$ac_cv_prog_CPP |
4244 |
else |
4245 |
ac_cv_prog_CPP=$CPP |
4246 |
fi |
4247 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4248 |
$as_echo "$CPP" >&6; } |
4249 |
ac_preproc_ok=false |
4250 |
for ac_c_preproc_warn_flag in '' yes |
4251 |
do |
4252 |
# Use a header file that comes with gcc, so configuring glibc |
4253 |
# with a fresh cross-compiler works. |
4254 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4255 |
# <limits.h> exists even on freestanding compilers. |
4256 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4257 |
# not just through cpp. "Syntax error" is here to catch this case. |
4258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4259 |
/* end confdefs.h. */ |
4260 |
#ifdef __STDC__ |
4261 |
# include <limits.h> |
4262 |
#else |
4263 |
# include <assert.h> |
4264 |
#endif |
4265 |
Syntax error |
4266 |
_ACEOF |
4267 |
if ac_fn_c_try_cpp "$LINENO"; then : |
4268 |
|
4269 |
else |
4270 |
# Broken: fails on valid input. |
4271 |
continue |
4272 |
fi |
4273 |
rm -f conftest.err conftest.i conftest.$ac_ext |
4274 |
|
4275 |
# OK, works on sane cases. Now check whether nonexistent headers |
4276 |
# can be detected and how. |
4277 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4278 |
/* end confdefs.h. */ |
4279 |
#include <ac_nonexistent.h> |
4280 |
_ACEOF |
4281 |
if ac_fn_c_try_cpp "$LINENO"; then : |
4282 |
# Broken: success on invalid input. |
4283 |
continue |
4284 |
else |
4285 |
# Passes both tests. |
4286 |
ac_preproc_ok=: |
4287 |
break |
4288 |
fi |
4289 |
rm -f conftest.err conftest.i conftest.$ac_ext |
4290 |
|
4291 |
done |
4292 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4293 |
rm -f conftest.i conftest.err conftest.$ac_ext |
4294 |
if $ac_preproc_ok; then : |
4295 |
|
4296 |
else |
4297 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4298 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4299 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4300 |
See \`config.log' for more details" "$LINENO" 5; } |
4301 |
fi |
4302 |
|
4303 |
ac_ext=c |
4304 |
ac_cpp='$CPP $CPPFLAGS' |
4305 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4306 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4307 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4308 |
|
4309 |
# Find a good install program. We prefer a C program (faster), |
4310 |
# so one script is as good as another. But avoid the broken or |
4311 |
# incompatible versions: |
4312 |
# SysV /etc/install, /usr/sbin/install |
4313 |
# SunOS /usr/etc/install |
4314 |
# IRIX /sbin/install |
4315 |
# AIX /bin/install |
4316 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
4317 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4318 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4319 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4320 |
# OS/2's system install, which has a completely different semantic |
4321 |
# ./install, which can be erroneously created by make from ./install.sh. |
4322 |
# Reject install programs that cannot install multiple files. |
4323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4324 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
4325 |
if test -z "$INSTALL"; then |
4326 |
if ${ac_cv_path_install+:} false; then : |
4327 |
$as_echo_n "(cached) " >&6 |
4328 |
else |
4329 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4330 |
for as_dir in $PATH |
4331 |
do |
4332 |
IFS=$as_save_IFS |
4333 |
test -z "$as_dir" && as_dir=. |
4334 |
# Account for people who put trailing slashes in PATH elements. |
4335 |
case $as_dir/ in #(( |
4336 |
./ | .// | /[cC]/* | \ |
4337 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4338 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4339 |
/usr/ucb/* ) ;; |
4340 |
*) |
4341 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
4342 |
# Don't use installbsd from OSF since it installs stuff as root |
4343 |
# by default. |
4344 |
for ac_prog in ginstall scoinst install; do |
4345 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4346 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
4347 |
if test $ac_prog = install && |
4348 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4349 |
# AIX install. It has an incompatible calling convention. |
4350 |
: |
4351 |
elif test $ac_prog = install && |
4352 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4353 |
# program-specific install script used by HP pwplus--don't use. |
4354 |
: |
4355 |
else |
4356 |
rm -rf conftest.one conftest.two conftest.dir |
4357 |
echo one > conftest.one |
4358 |
echo two > conftest.two |
4359 |
mkdir conftest.dir |
4360 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
4361 |
test -s conftest.one && test -s conftest.two && |
4362 |
test -s conftest.dir/conftest.one && |
4363 |
test -s conftest.dir/conftest.two |
4364 |
then |
4365 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4366 |
break 3 |
4367 |
fi |
4368 |
fi |
4369 |
fi |
4370 |
done |
4371 |
done |
4372 |
;; |
4373 |
esac |
4374 |
|
4375 |
done |
4376 |
IFS=$as_save_IFS |
4377 |
|
4378 |
rm -rf conftest.one conftest.two conftest.dir |
4379 |
|
4380 |
fi |
4381 |
if test "${ac_cv_path_install+set}" = set; then |
4382 |
INSTALL=$ac_cv_path_install |
4383 |
else |
4384 |
# As a last resort, use the slow shell script. Don't cache a |
4385 |
# value for INSTALL within a source directory, because that will |
4386 |
# break other packages using the cache if that directory is |
4387 |
# removed, or if the value is a relative name. |
4388 |
INSTALL=$ac_install_sh |
4389 |
fi |
4390 |
fi |
4391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4392 |
$as_echo "$INSTALL" >&6; } |
4393 |
|
4394 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4395 |
# It thinks the first close brace ends the variable substitution. |
4396 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4397 |
|
4398 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4399 |
|
4400 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4401 |
|
4402 |
if test -n "$ac_tool_prefix"; then |
4403 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
4404 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
4405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4406 |
$as_echo_n "checking for $ac_word... " >&6; } |
4407 |
if ${ac_cv_prog_RANLIB+:} false; then : |
4408 |
$as_echo_n "(cached) " >&6 |
4409 |
else |
4410 |
if test -n "$RANLIB"; then |
4411 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
4412 |
else |
4413 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4414 |
for as_dir in $PATH |
4415 |
do |
4416 |
IFS=$as_save_IFS |
4417 |
test -z "$as_dir" && as_dir=. |
4418 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4419 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4420 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4421 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4422 |
break 2 |
4423 |
fi |
4424 |
done |
4425 |
done |
4426 |
IFS=$as_save_IFS |
4427 |
|
4428 |
fi |
4429 |
fi |
4430 |
RANLIB=$ac_cv_prog_RANLIB |
4431 |
if test -n "$RANLIB"; then |
4432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4433 |
$as_echo "$RANLIB" >&6; } |
4434 |
else |
4435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4436 |
$as_echo "no" >&6; } |
4437 |
fi |
4438 |
|
4439 |
|
4440 |
fi |
4441 |
if test -z "$ac_cv_prog_RANLIB"; then |
4442 |
ac_ct_RANLIB=$RANLIB |
4443 |
# Extract the first word of "ranlib", so it can be a program name with args. |
4444 |
set dummy ranlib; ac_word=$2 |
4445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4446 |
$as_echo_n "checking for $ac_word... " >&6; } |
4447 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
4448 |
$as_echo_n "(cached) " >&6 |
4449 |
else |
4450 |
if test -n "$ac_ct_RANLIB"; then |
4451 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
4452 |
else |
4453 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4454 |
for as_dir in $PATH |
4455 |
do |
4456 |
IFS=$as_save_IFS |
4457 |
test -z "$as_dir" && as_dir=. |
4458 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4459 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4460 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
4461 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4462 |
break 2 |
4463 |
fi |
4464 |
done |
4465 |
done |
4466 |
IFS=$as_save_IFS |
4467 |
|
4468 |
fi |
4469 |
fi |
4470 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4471 |
if test -n "$ac_ct_RANLIB"; then |
4472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4473 |
$as_echo "$ac_ct_RANLIB" >&6; } |
4474 |
else |
4475 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4476 |
$as_echo "no" >&6; } |
4477 |
fi |
4478 |
|
4479 |
if test "x$ac_ct_RANLIB" = x; then |
4480 |
RANLIB=":" |
4481 |
else |
4482 |
case $cross_compiling:$ac_tool_warned in |
4483 |
yes:) |
4484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4485 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4486 |
ac_tool_warned=yes ;; |
4487 |
esac |
4488 |
RANLIB=$ac_ct_RANLIB |
4489 |
fi |
4490 |
else |
4491 |
RANLIB="$ac_cv_prog_RANLIB" |
4492 |
fi |
4493 |
|
4494 |
# Extract the first word of "flex", so it can be a program name with args. |
4495 |
set dummy flex; ac_word=$2 |
4496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4497 |
$as_echo_n "checking for $ac_word... " >&6; } |
4498 |
if ${ac_cv_prog_FLEX+:} false; then : |
4499 |
$as_echo_n "(cached) " >&6 |
4500 |
else |
4501 |
if test -n "$FLEX"; then |
4502 |
ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
4503 |
else |
4504 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4505 |
for as_dir in $PATH |
4506 |
do |
4507 |
IFS=$as_save_IFS |
4508 |
test -z "$as_dir" && as_dir=. |
4509 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4510 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4511 |
ac_cv_prog_FLEX="flex" |
4512 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4513 |
break 2 |
4514 |
fi |
4515 |
done |
4516 |
done |
4517 |
IFS=$as_save_IFS |
4518 |
|
4519 |
fi |
4520 |
fi |
4521 |
FLEX=$ac_cv_prog_FLEX |
4522 |
if test -n "$FLEX"; then |
4523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
4524 |
$as_echo "$FLEX" >&6; } |
4525 |
else |
4526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4527 |
$as_echo "no" >&6; } |
4528 |
fi |
4529 |
|
4530 |
|
4531 |
# Extract the first word of "bison", so it can be a program name with args. |
4532 |
set dummy bison; ac_word=$2 |
4533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4534 |
$as_echo_n "checking for $ac_word... " >&6; } |
4535 |
if ${ac_cv_prog_BISON+:} false; then : |
4536 |
$as_echo_n "(cached) " >&6 |
4537 |
else |
4538 |
if test -n "$BISON"; then |
4539 |
ac_cv_prog_BISON="$BISON" # Let the user override the test. |
4540 |
else |
4541 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4542 |
for as_dir in $PATH |
4543 |
do |
4544 |
IFS=$as_save_IFS |
4545 |
test -z "$as_dir" && as_dir=. |
4546 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4547 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4548 |
ac_cv_prog_BISON="bison" |
4549 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4550 |
break 2 |
4551 |
fi |
4552 |
done |
4553 |
done |
4554 |
IFS=$as_save_IFS |
4555 |
|
4556 |
fi |
4557 |
fi |
4558 |
BISON=$ac_cv_prog_BISON |
4559 |
if test -n "$BISON"; then |
4560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
4561 |
$as_echo "$BISON" >&6; } |
4562 |
else |
4563 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4564 |
$as_echo "no" >&6; } |
4565 |
fi |
4566 |
|
4567 |
|
4568 |
for ac_prog in gm4 m4 |
4569 |
do |
4570 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4571 |
set dummy $ac_prog; ac_word=$2 |
4572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4573 |
$as_echo_n "checking for $ac_word... " >&6; } |
4574 |
if ${ac_cv_prog_M4+:} false; then : |
4575 |
$as_echo_n "(cached) " >&6 |
4576 |
else |
4577 |
if test -n "$M4"; then |
4578 |
ac_cv_prog_M4="$M4" # Let the user override the test. |
4579 |
else |
4580 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4581 |
for as_dir in $PATH |
4582 |
do |
4583 |
IFS=$as_save_IFS |
4584 |
test -z "$as_dir" && as_dir=. |
4585 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4586 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4587 |
ac_cv_prog_M4="$ac_prog" |
4588 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4589 |
break 2 |
4590 |
fi |
4591 |
done |
4592 |
done |
4593 |
IFS=$as_save_IFS |
4594 |
|
4595 |
fi |
4596 |
fi |
4597 |
M4=$ac_cv_prog_M4 |
4598 |
if test -n "$M4"; then |
4599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
4600 |
$as_echo "$M4" >&6; } |
4601 |
else |
4602 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4603 |
$as_echo "no" >&6; } |
4604 |
fi |
4605 |
|
4606 |
|
4607 |
test -n "$M4" && break |
4608 |
done |
4609 |
|
4610 |
|
4611 |
test -z "$FLEX" && as_fn_error $? "Flex is missing." "$LINENO" 5 |
4612 |
test -z "$BISON" && as_fn_error $? "Bison is missing." "$LINENO" 5 |
4613 |
test -z "$M4" && as_fn_error $? "M4 is missing." "$LINENO" 5 |
4614 |
|
4615 |
|
4616 |
# Check for GNU $M4 |
4617 |
case `"$M4" --version 2>&1` in |
4618 |
*GNU*) |
4619 |
|
4620 |
;; |
4621 |
*) |
4622 |
as_fn_error $? "Provided M4 is not GNU M4." "$LINENO" 5 |
4623 |
|
4624 |
;; |
4625 |
|
4626 |
|
4627 |
esac |
4628 |
|
4629 |
|
4630 |
if test -n "$with_sysconfig" -a "$with_sysconfig" != no ; then |
4631 |
if test -f $with_sysconfig ; then |
4632 |
sysdesc=$with_sysconfig |
4633 |
else |
4634 |
sysdesc=$srcdir/sysdep/cf/$with_sysconfig |
4635 |
if ! test -f $sysdesc ; then |
4636 |
sysdesc=$sysdesc.h |
4637 |
fi |
4638 |
fi |
4639 |
elif test -f sysconfig.h ; then |
4640 |
sysdesc=sysconfig |
4641 |
else |
4642 |
case "$host_os" in |
4643 |
linux*) |
4644 |
sysdesc=linux |
4645 |
default_iproutedir="/etc/iproute2" |
4646 |
;; |
4647 |
freebsd*) |
4648 |
sysdesc=bsd |
4649 |
CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
4650 |
LDFLAGS="$LDFLAGS -L/usr/local/lib" |
4651 |
;; |
4652 |
kfreebsd*) |
4653 |
sysdesc=bsd |
4654 |
;; |
4655 |
netbsd*) |
4656 |
sysdesc=bsd |
4657 |
CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" |
4658 |
LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib" |
4659 |
;; |
4660 |
openbsd*) |
4661 |
sysdesc=bsd |
4662 |
;; |
4663 |
dragonfly*) |
4664 |
sysdesc=bsd |
4665 |
;; |
4666 |
*) |
4667 |
as_fn_error $? "Cannot determine correct system configuration. Please use --with-sysconfig to set it manually." "$LINENO" 5 |
4668 |
;; |
4669 |
esac |
4670 |
sysdesc=$srcdir/sysdep/cf/$sysdesc.h |
4671 |
fi |
4672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS configuration should we use" >&5 |
4673 |
$as_echo_n "checking which OS configuration should we use... " >&6; } |
4674 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdesc" >&5 |
4675 |
$as_echo "$sysdesc" >&6; } |
4676 |
if ! test -f $sysdesc ; then |
4677 |
as_fn_error $? "The system configuration file is missing." "$LINENO" 5 |
4678 |
fi |
4679 |
sysname=`echo $sysdesc | sed 's/\.h$//'` |
4680 |
|
4681 |
cat >>confdefs.h <<_ACEOF |
4682 |
#define SYSCONF_INCLUDE "$sysdesc" |
4683 |
_ACEOF |
4684 |
|
4685 |
|
4686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system-dependent directories" >&5 |
4687 |
$as_echo_n "checking system-dependent directories... " >&6; } |
4688 |
sysdep_dirs="`sed <$sysdesc '/^Link: /!d;s/^Link: \(.*\)$/\1/' | tr '\012' ' '`" |
4689 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdep_dirs" >&5 |
4690 |
$as_echo "$sysdep_dirs" >&6; } |
4691 |
|
4692 |
|
4693 |
if test "$with_iproutedir" = no ; then with_iproutedir= ; fi |
4694 |
|
4695 |
if test -n "$given_iproutedir" |
4696 |
then iproutedir=$with_iproutedir |
4697 |
else iproutedir=$default_iproutedir |
4698 |
fi |
4699 |
|
4700 |
|
4701 |
|
4702 |
DAEMON_LIBS= |
4703 |
|
4704 |
|
4705 |
if test "$enable_libssh" != no ; then |
4706 |
ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" " |
4707 |
" |
4708 |
if test "x$ac_cv_header_libssh_libssh_h" = xyes; then : |
4709 |
true |
4710 |
else |
4711 |
fail=yes |
4712 |
fi |
4713 |
|
4714 |
|
4715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_connect in -lssh" >&5 |
4716 |
$as_echo_n "checking for ssh_connect in -lssh... " >&6; } |
4717 |
if ${ac_cv_lib_ssh_ssh_connect+:} false; then : |
4718 |
$as_echo_n "(cached) " >&6 |
4719 |
else |
4720 |
ac_check_lib_save_LIBS=$LIBS |
4721 |
LIBS="-lssh $LIBS" |
4722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4723 |
/* end confdefs.h. */ |
4724 |
|
4725 |
/* Override any GCC internal prototype to avoid an error. |
4726 |
Use char because int might match the return type of a GCC |
4727 |
builtin and then its argument prototype would still apply. */ |
4728 |
#ifdef __cplusplus |
4729 |
extern "C" |
4730 |
#endif |
4731 |
char ssh_connect (); |
4732 |
int |
4733 |
main () |
4734 |
{ |
4735 |
return ssh_connect (); |
4736 |
; |
4737 |
return 0; |
4738 |
} |
4739 |
_ACEOF |
4740 |
if ac_fn_c_try_link "$LINENO"; then : |
4741 |
ac_cv_lib_ssh_ssh_connect=yes |
4742 |
else |
4743 |
ac_cv_lib_ssh_ssh_connect=no |
4744 |
fi |
4745 |
rm -f core conftest.err conftest.$ac_objext \ |
4746 |
conftest$ac_exeext conftest.$ac_ext |
4747 |
LIBS=$ac_check_lib_save_LIBS |
4748 |
fi |
4749 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_connect" >&5 |
4750 |
$as_echo "$ac_cv_lib_ssh_ssh_connect" >&6; } |
4751 |
if test "x$ac_cv_lib_ssh_ssh_connect" = xyes; then : |
4752 |
true |
4753 |
else |
4754 |
fail=yes |
4755 |
fi |
4756 |
|
4757 |
|
4758 |
if test "$fail" != yes ; then |
4759 |
|
4760 |
$as_echo "#define HAVE_LIBSSH 1" >>confdefs.h |
4761 |
|
4762 |
DAEMON_LIBS="-lssh $DAEMON_LIBS" |
4763 |
proto_rpki=rpki |
4764 |
enable_libssh=yes |
4765 |
else |
4766 |
if test "$enable_libssh" = yes ; then |
4767 |
as_fn_error $? "LibSSH not available." "$LINENO" 5 |
4768 |
else |
4769 |
enable_libssh=no |
4770 |
fi |
4771 |
fi |
4772 |
fi |
4773 |
|
4774 |
if test "$enable_mpls_kernel" != no ; then |
4775 |
|
4776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux MPLS headers" >&5 |
4777 |
$as_echo_n "checking for Linux MPLS headers... " >&6; } |
4778 |
if ${bird_cv_mpls_kernel+:} false; then : |
4779 |
$as_echo_n "(cached) " >&6 |
4780 |
else |
4781 |
|
4782 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4783 |
/* end confdefs.h. */ |
4784 |
|
4785 |
|
4786 |
#include <linux/lwtunnel.h> |
4787 |
#include <linux/netlink.h> |
4788 |
#include <linux/rtnetlink.h> |
4789 |
#include <sys/socket.h> |
4790 |
void t(int arg); |
4791 |
|
4792 |
int |
4793 |
main () |
4794 |
{ |
4795 |
|
4796 |
t(AF_MPLS); |
4797 |
t(RTA_VIA); |
4798 |
t(RTA_NEWDST); |
4799 |
t(RTA_ENCAP_TYPE); |
4800 |
t(RTA_ENCAP); |
4801 |
struct rtvia rtvia; |
4802 |
t(LWTUNNEL_ENCAP_MPLS); |
4803 |
|
4804 |
|
4805 |
; |
4806 |
return 0; |
4807 |
} |
4808 |
|
4809 |
_ACEOF |
4810 |
if ac_fn_c_try_compile "$LINENO"; then : |
4811 |
bird_cv_mpls_kernel=yes |
4812 |
else |
4813 |
bird_cv_mpls_kernel=no |
4814 |
|
4815 |
fi |
4816 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4817 |
|
4818 |
|
4819 |
fi |
4820 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_mpls_kernel" >&5 |
4821 |
$as_echo "$bird_cv_mpls_kernel" >&6; } |
4822 |
|
4823 |
|
4824 |
if test "$bird_cv_mpls_kernel" = yes ; then |
4825 |
|
4826 |
$as_echo "#define HAVE_MPLS_KERNEL 1" >>confdefs.h |
4827 |
|
4828 |
elif test "$enable_mpls_kernel" = yes ; then |
4829 |
as_fn_error $? "Kernel MPLS support not found." "$LINENO" 5 |
4830 |
fi |
4831 |
|
4832 |
if test "$enable_mpls_kernel" = try ; then |
4833 |
enable_mpls_kernel="$bird_cv_mpls_kernel" |
4834 |
fi |
4835 |
fi |
4836 |
|
4837 |
all_protocols="$proto_bfd babel bgp ospf pipe radv rip $proto_rpki static" |
4838 |
|
4839 |
all_protocols=`echo $all_protocols | sed 's/ /,/g'` |
4840 |
|
4841 |
if test "$with_protocols" = all ; then |
4842 |
with_protocols="$all_protocols" |
4843 |
fi |
4844 |
|
4845 |
|
4846 |
|
4847 |
|
4848 |
|
4849 |
|
4850 |
|
4851 |
|
4852 |
|
4853 |
|
4854 |
|
4855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking protocols" >&5 |
4856 |
$as_echo_n "checking protocols... " >&6; } |
4857 |
protocols=`echo "$with_protocols" | sed 's/,/ /g'` |
4858 |
if test "$protocols" = no ; then protocols= ; fi |
4859 |
for a in $protocols ; do |
4860 |
if ! test -f $srcdir/proto/$a/Makefile ; then |
4861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
4862 |
$as_echo "failed" >&6; } |
4863 |
as_fn_error $? "Requested protocol $a not found" "$LINENO" 5 |
4864 |
fi |
4865 |
cat >>confdefs.h <<_ACEOF |
4866 |
#define CONFIG_`echo $a | tr 'a-z' 'A-Z'` 1 |
4867 |
_ACEOF |
4868 |
|
4869 |
done |
4870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4871 |
$as_echo "ok" >&6; } |
4872 |
|
4873 |
|
4874 |
case $sysdesc in |
4875 |
*/linux*) |
4876 |
ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" " |
4877 |
#include <asm/types.h> |
4878 |
#include <sys/socket.h> |
4879 |
|
4880 |
|
4881 |
" |
4882 |
if test "x$ac_cv_header_linux_rtnetlink_h" = xyes; then : |
4883 |
|
4884 |
else |
4885 |
as_fn_error $? "Appropriate version of Linux kernel headers not found." "$LINENO" 5 |
4886 |
fi |
4887 |
|
4888 |
|
4889 |
;; |
4890 |
esac |
4891 |
|
4892 |
|
4893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4894 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4895 |
if ${ac_cv_path_GREP+:} false; then : |
4896 |
$as_echo_n "(cached) " >&6 |
4897 |
else |
4898 |
if test -z "$GREP"; then |
4899 |
ac_path_GREP_found=false |
4900 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4901 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4902 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4903 |
do |
4904 |
IFS=$as_save_IFS |
4905 |
test -z "$as_dir" && as_dir=. |
4906 |
for ac_prog in grep ggrep; do |
4907 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4908 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4909 |
as_fn_executable_p "$ac_path_GREP" || continue |
4910 |
# Check for GNU ac_path_GREP and select it if it is found. |
4911 |
# Check for GNU $ac_path_GREP |
4912 |
case `"$ac_path_GREP" --version 2>&1` in |
4913 |
*GNU*) |
4914 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4915 |
*) |
4916 |
ac_count=0 |
4917 |
$as_echo_n 0123456789 >"conftest.in" |
4918 |
while : |
4919 |
do |
4920 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4921 |
mv "conftest.tmp" "conftest.in" |
4922 |
cp "conftest.in" "conftest.nl" |
4923 |
$as_echo 'GREP' >> "conftest.nl" |
4924 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4925 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4926 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4927 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4928 |
# Best one so far, save it but keep looking for a better one |
4929 |
ac_cv_path_GREP="$ac_path_GREP" |
4930 |
ac_path_GREP_max=$ac_count |
4931 |
fi |
4932 |
# 10*(2^10) chars as input seems more than enough |
4933 |
test $ac_count -gt 10 && break |
4934 |
done |
4935 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4936 |
esac |
4937 |
|
4938 |
$ac_path_GREP_found && break 3 |
4939 |
done |
4940 |
done |
4941 |
done |
4942 |
IFS=$as_save_IFS |
4943 |
if test -z "$ac_cv_path_GREP"; then |
4944 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4945 |
fi |
4946 |
else |
4947 |
ac_cv_path_GREP=$GREP |
4948 |
fi |
4949 |
|
4950 |
fi |
4951 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4952 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4953 |
GREP="$ac_cv_path_GREP" |
4954 |
|
4955 |
|
4956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4957 |
$as_echo_n "checking for egrep... " >&6; } |
4958 |
if ${ac_cv_path_EGREP+:} false; then : |
4959 |
$as_echo_n "(cached) " >&6 |
4960 |
else |
4961 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4962 |
then ac_cv_path_EGREP="$GREP -E" |
4963 |
else |
4964 |
if test -z "$EGREP"; then |
4965 |
ac_path_EGREP_found=false |
4966 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4967 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4968 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4969 |
do |
4970 |
IFS=$as_save_IFS |
4971 |
test -z "$as_dir" && as_dir=. |
4972 |
for ac_prog in egrep; do |
4973 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4974 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4975 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4976 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4977 |
# Check for GNU $ac_path_EGREP |
4978 |
case `"$ac_path_EGREP" --version 2>&1` in |
4979 |
*GNU*) |
4980 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4981 |
*) |
4982 |
ac_count=0 |
4983 |
$as_echo_n 0123456789 >"conftest.in" |
4984 |
while : |
4985 |
do |
4986 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4987 |
mv "conftest.tmp" "conftest.in" |
4988 |
cp "conftest.in" "conftest.nl" |
4989 |
$as_echo 'EGREP' >> "conftest.nl" |
4990 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4991 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4992 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4993 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4994 |
# Best one so far, save it but keep looking for a better one |
4995 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4996 |
ac_path_EGREP_max=$ac_count |
4997 |
fi |
4998 |
# 10*(2^10) chars as input seems more than enough |
4999 |
test $ac_count -gt 10 && break |
5000 |
done |
5001 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5002 |
esac |
5003 |
|
5004 |
$ac_path_EGREP_found && break 3 |
5005 |
done |
5006 |
done |
5007 |
done |
5008 |
IFS=$as_save_IFS |
5009 |
if test -z "$ac_cv_path_EGREP"; then |
5010 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5011 |
fi |
5012 |
else |
5013 |
ac_cv_path_EGREP=$EGREP |
5014 |
fi |
5015 |
|
5016 |
fi |
5017 |
fi |
5018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5019 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
5020 |
EGREP="$ac_cv_path_EGREP" |
5021 |
|
5022 |
|
5023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5024 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
5025 |
if ${ac_cv_header_stdc+:} false; then : |
5026 |
$as_echo_n "(cached) " >&6 |
5027 |
else |
5028 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5029 |
/* end confdefs.h. */ |
5030 |
#include <stdlib.h> |
5031 |
#include <stdarg.h> |
5032 |
#include <string.h> |
5033 |
#include <float.h> |
5034 |
|
5035 |
int |
5036 |
main () |
5037 |
{ |
5038 |
|
5039 |
; |
5040 |
return 0; |
5041 |
} |
5042 |
_ACEOF |
5043 |
if ac_fn_c_try_compile "$LINENO"; then : |
5044 |
ac_cv_header_stdc=yes |
5045 |
else |
5046 |
ac_cv_header_stdc=no |
5047 |
fi |
5048 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5049 |
|
5050 |
if test $ac_cv_header_stdc = yes; then |
5051 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5052 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5053 |
/* end confdefs.h. */ |
5054 |
#include <string.h> |
5055 |
|
5056 |
_ACEOF |
5057 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5058 |
$EGREP "memchr" >/dev/null 2>&1; then : |
5059 |
|
5060 |
else |
5061 |
ac_cv_header_stdc=no |
5062 |
fi |
5063 |
rm -f conftest* |
5064 |
|
5065 |
fi |
5066 |
|
5067 |
if test $ac_cv_header_stdc = yes; then |
5068 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5069 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5070 |
/* end confdefs.h. */ |
5071 |
#include <stdlib.h> |
5072 |
|
5073 |
_ACEOF |
5074 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5075 |
$EGREP "free" >/dev/null 2>&1; then : |
5076 |
|
5077 |
else |
5078 |
ac_cv_header_stdc=no |
5079 |
fi |
5080 |
rm -f conftest* |
5081 |
|
5082 |
fi |
5083 |
|
5084 |
if test $ac_cv_header_stdc = yes; then |
5085 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
5086 |
if test "$cross_compiling" = yes; then : |
5087 |
: |
5088 |
else |
5089 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5090 |
/* end confdefs.h. */ |
5091 |
#include <ctype.h> |
5092 |
#include <stdlib.h> |
5093 |
#if ((' ' & 0x0FF) == 0x020) |
5094 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5095 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5096 |
#else |
5097 |
# define ISLOWER(c) \ |
5098 |
(('a' <= (c) && (c) <= 'i') \ |
5099 |
|| ('j' <= (c) && (c) <= 'r') \ |
5100 |
|| ('s' <= (c) && (c) <= 'z')) |
5101 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5102 |
#endif |
5103 |
|
5104 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5105 |
int |
5106 |
main () |
5107 |
{ |
5108 |
int i; |
5109 |
for (i = 0; i < 256; i++) |
5110 |
if (XOR (islower (i), ISLOWER (i)) |
5111 |
|| toupper (i) != TOUPPER (i)) |
5112 |
return 2; |
5113 |
return 0; |
5114 |
} |
5115 |
_ACEOF |
5116 |
if ac_fn_c_try_run "$LINENO"; then : |
5117 |
|
5118 |
else |
5119 |
ac_cv_header_stdc=no |
5120 |
fi |
5121 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5122 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
5123 |
fi |
5124 |
|
5125 |
fi |
5126 |
fi |
5127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5128 |
$as_echo "$ac_cv_header_stdc" >&6; } |
5129 |
if test $ac_cv_header_stdc = yes; then |
5130 |
|
5131 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5132 |
|
5133 |
fi |
5134 |
|
5135 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5136 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5137 |
inttypes.h stdint.h unistd.h |
5138 |
do : |
5139 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5140 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5141 |
" |
5142 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5143 |
cat >>confdefs.h <<_ACEOF |
5144 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5145 |
_ACEOF |
5146 |
|
5147 |
fi |
5148 |
|
5149 |
done |
5150 |
|
5151 |
|
5152 |
|
5153 |
|
5154 |
|
5155 |
for ac_header in $ac_header_list |
5156 |
do : |
5157 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5158 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5159 |
" |
5160 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5161 |
cat >>confdefs.h <<_ACEOF |
5162 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5163 |
_ACEOF |
5164 |
|
5165 |
fi |
5166 |
|
5167 |
done |
5168 |
|
5169 |
|
5170 |
|
5171 |
|
5172 |
|
5173 |
|
5174 |
ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
5175 |
" |
5176 |
if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
5177 |
|
5178 |
cat >>confdefs.h <<_ACEOF |
5179 |
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
5180 |
_ACEOF |
5181 |
|
5182 |
|
5183 |
fi |
5184 |
|
5185 |
|
5186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5187 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
5188 |
if ${ac_cv_c_bigendian+:} false; then : |
5189 |
$as_echo_n "(cached) " >&6 |
5190 |
else |
5191 |
ac_cv_c_bigendian=unknown |
5192 |
# See if we're dealing with a universal compiler. |
5193 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5194 |
/* end confdefs.h. */ |
5195 |
#ifndef __APPLE_CC__ |
5196 |
not a universal capable compiler |
5197 |
#endif |
5198 |
typedef int dummy; |
5199 |
|
5200 |
_ACEOF |
5201 |
if ac_fn_c_try_compile "$LINENO"; then : |
5202 |
|
5203 |
# Check for potential -arch flags. It is not universal unless |
5204 |
# there are at least two -arch flags with different values. |
5205 |
ac_arch= |
5206 |
ac_prev= |
5207 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
5208 |
if test -n "$ac_prev"; then |
5209 |
case $ac_word in |
5210 |
i?86 | x86_64 | ppc | ppc64) |
5211 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
5212 |
ac_arch=$ac_word |
5213 |
else |
5214 |
ac_cv_c_bigendian=universal |
5215 |
break |
5216 |
fi |
5217 |
;; |
5218 |
esac |
5219 |
ac_prev= |
5220 |
elif test "x$ac_word" = "x-arch"; then |
5221 |
ac_prev=arch |
5222 |
fi |
5223 |
done |
5224 |
fi |
5225 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5226 |
if test $ac_cv_c_bigendian = unknown; then |
5227 |
# See if sys/param.h defines the BYTE_ORDER macro. |
5228 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5229 |
/* end confdefs.h. */ |
5230 |
#include <sys/types.h> |
5231 |
#include <sys/param.h> |
5232 |
|
5233 |
int |
5234 |
main () |
5235 |
{ |
5236 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5237 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
5238 |
&& LITTLE_ENDIAN) |
5239 |
bogus endian macros |
5240 |
#endif |
5241 |
|
5242 |
; |
5243 |
return 0; |
5244 |
} |
5245 |
_ACEOF |
5246 |
if ac_fn_c_try_compile "$LINENO"; then : |
5247 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
5248 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5249 |
/* end confdefs.h. */ |
5250 |
#include <sys/types.h> |
5251 |
#include <sys/param.h> |
5252 |
|
5253 |
int |
5254 |
main () |
5255 |
{ |
5256 |
#if BYTE_ORDER != BIG_ENDIAN |
5257 |
not big endian |
5258 |
#endif |
5259 |
|
5260 |
; |
5261 |
return 0; |
5262 |
} |
5263 |
_ACEOF |
5264 |
if ac_fn_c_try_compile "$LINENO"; then : |
5265 |
ac_cv_c_bigendian=yes |
5266 |
else |
5267 |
ac_cv_c_bigendian=no |
5268 |
fi |
5269 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5270 |
fi |
5271 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5272 |
fi |
5273 |
if test $ac_cv_c_bigendian = unknown; then |
5274 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
5275 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5276 |
/* end confdefs.h. */ |
5277 |
#include <limits.h> |
5278 |
|
5279 |
int |
5280 |
main () |
5281 |
{ |
5282 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
5283 |
bogus endian macros |
5284 |
#endif |
5285 |
|
5286 |
; |
5287 |
return 0; |
5288 |
} |
5289 |
_ACEOF |
5290 |
if ac_fn_c_try_compile "$LINENO"; then : |
5291 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
5292 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5293 |
/* end confdefs.h. */ |
5294 |
#include <limits.h> |
5295 |
|
5296 |
int |
5297 |
main () |
5298 |
{ |
5299 |
#ifndef _BIG_ENDIAN |
5300 |
not big endian |
5301 |
#endif |
5302 |
|
5303 |
; |
5304 |
return 0; |
5305 |
} |
5306 |
_ACEOF |
5307 |
if ac_fn_c_try_compile "$LINENO"; then : |
5308 |
ac_cv_c_bigendian=yes |
5309 |
else |
5310 |
ac_cv_c_bigendian=no |
5311 |
fi |
5312 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5313 |
fi |
5314 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5315 |
fi |
5316 |
if test $ac_cv_c_bigendian = unknown; then |
5317 |
# Compile a test program. |
5318 |
if test "$cross_compiling" = yes; then : |
5319 |
# Try to guess by grepping values from an object file. |
5320 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5321 |
/* end confdefs.h. */ |
5322 |
short int ascii_mm[] = |
5323 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
5324 |
short int ascii_ii[] = |
5325 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5326 |
int use_ascii (int i) { |
5327 |
return ascii_mm[i] + ascii_ii[i]; |
5328 |
} |
5329 |
short int ebcdic_ii[] = |
5330 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
5331 |
short int ebcdic_mm[] = |
5332 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5333 |
int use_ebcdic (int i) { |
5334 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
5335 |
} |
5336 |
extern int foo; |
5337 |
|
5338 |
int |
5339 |
main () |
5340 |
{ |
5341 |
return use_ascii (foo) == use_ebcdic (foo); |
5342 |
; |
5343 |
return 0; |
5344 |
} |
5345 |
_ACEOF |
5346 |
if ac_fn_c_try_compile "$LINENO"; then : |
5347 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
5348 |
ac_cv_c_bigendian=yes |
5349 |
fi |
5350 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
5351 |
if test "$ac_cv_c_bigendian" = unknown; then |
5352 |
ac_cv_c_bigendian=no |
5353 |
else |
5354 |
# finding both strings is unlikely to happen, but who knows? |
5355 |
ac_cv_c_bigendian=unknown |
5356 |
fi |
5357 |
fi |
5358 |
fi |
5359 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5360 |
else |
5361 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5362 |
/* end confdefs.h. */ |
5363 |
$ac_includes_default |
5364 |
int |
5365 |
main () |
5366 |
{ |
5367 |
|
5368 |
/* Are we little or big endian? From Harbison&Steele. */ |
5369 |
union |
5370 |
{ |
5371 |
long int l; |
5372 |
char c[sizeof (long int)]; |
5373 |
} u; |
5374 |
u.l = 1; |
5375 |
return u.c[sizeof (long int) - 1] == 1; |
5376 |
|
5377 |
; |
5378 |
return 0; |
5379 |
} |
5380 |
_ACEOF |
5381 |
if ac_fn_c_try_run "$LINENO"; then : |
5382 |
ac_cv_c_bigendian=no |
5383 |
else |
5384 |
ac_cv_c_bigendian=yes |
5385 |
fi |
5386 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5387 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
5388 |
fi |
5389 |
|
5390 |
fi |
5391 |
fi |
5392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5393 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
5394 |
case $ac_cv_c_bigendian in #( |
5395 |
yes) |
5396 |
|
5397 |
$as_echo "#define CPU_BIG_ENDIAN 1" >>confdefs.h |
5398 |
;; #( |
5399 |
no) |
5400 |
|
5401 |
$as_echo "#define CPU_LITTLE_ENDIAN 1" >>confdefs.h |
5402 |
;; #( |
5403 |
universal) |
5404 |
|
5405 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
5406 |
|
5407 |
;; #( |
5408 |
*) |
5409 |
as_fn_error $? "Cannot determine CPU endianity." "$LINENO" 5 |
5410 |
;; |
5411 |
esac |
5412 |
|
5413 |
|
5414 |
if test "$enable_debug" = yes ; then |
5415 |
|
5416 |
$as_echo "#define DEBUGGING 1" >>confdefs.h |
5417 |
|
5418 |
LDFLAGS="$LDFLAGS -rdynamic" |
5419 |
CFLAGS="$CFLAGS -O0 -ggdb -g3 -gdwarf-4" |
5420 |
|
5421 |
ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" |
5422 |
if test "x$ac_cv_header_execinfo_h" = xyes; then : |
5423 |
|
5424 |
|
5425 |
$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h |
5426 |
|
5427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 |
5428 |
$as_echo_n "checking for library containing backtrace... " >&6; } |
5429 |
if ${ac_cv_search_backtrace+:} false; then : |
5430 |
$as_echo_n "(cached) " >&6 |
5431 |
else |
5432 |
ac_func_search_save_LIBS=$LIBS |
5433 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5434 |
/* end confdefs.h. */ |
5435 |
|
5436 |
/* Override any GCC internal prototype to avoid an error. |
5437 |
Use char because int might match the return type of a GCC |
5438 |
builtin and then its argument prototype would still apply. */ |
5439 |
#ifdef __cplusplus |
5440 |
extern "C" |
5441 |
#endif |
5442 |
char backtrace (); |
5443 |
int |
5444 |
main () |
5445 |
{ |
5446 |
return backtrace (); |
5447 |
; |
5448 |
return 0; |
5449 |
} |
5450 |
_ACEOF |
5451 |
for ac_lib in '' execinfo; do |
5452 |
if test -z "$ac_lib"; then |
5453 |
ac_res="none required" |
5454 |
else |
5455 |
ac_res=-l$ac_lib |
5456 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5457 |
fi |
5458 |
if ac_fn_c_try_link "$LINENO"; then : |
5459 |
ac_cv_search_backtrace=$ac_res |
5460 |
fi |
5461 |
rm -f core conftest.err conftest.$ac_objext \ |
5462 |
conftest$ac_exeext |
5463 |
if ${ac_cv_search_backtrace+:} false; then : |
5464 |
break |
5465 |
fi |
5466 |
done |
5467 |
if ${ac_cv_search_backtrace+:} false; then : |
5468 |
|
5469 |
else |
5470 |
ac_cv_search_backtrace=no |
5471 |
fi |
5472 |
rm conftest.$ac_ext |
5473 |
LIBS=$ac_func_search_save_LIBS |
5474 |
fi |
5475 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 |
5476 |
$as_echo "$ac_cv_search_backtrace" >&6; } |
5477 |
ac_res=$ac_cv_search_backtrace |
5478 |
if test "$ac_res" != no; then : |
5479 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5480 |
|
5481 |
else |
5482 |
as_fn_error $? "Function backtrace not available." "$LINENO" 5 |
5483 |
|
5484 |
fi |
5485 |
|
5486 |
|
5487 |
|
5488 |
fi |
5489 |
|
5490 |
|
5491 |
|
5492 |
if test "$enable_memcheck" = yes ; then |
5493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_debug in -ldmalloc" >&5 |
5494 |
$as_echo_n "checking for dmalloc_debug in -ldmalloc... " >&6; } |
5495 |
if ${ac_cv_lib_dmalloc_dmalloc_debug+:} false; then : |
5496 |
$as_echo_n "(cached) " >&6 |
5497 |
else |
5498 |
ac_check_lib_save_LIBS=$LIBS |
5499 |
LIBS="-ldmalloc $LIBS" |
5500 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5501 |
/* end confdefs.h. */ |
5502 |
|
5503 |
/* Override any GCC internal prototype to avoid an error. |
5504 |
Use char because int might match the return type of a GCC |
5505 |
builtin and then its argument prototype would still apply. */ |
5506 |
#ifdef __cplusplus |
5507 |
extern "C" |
5508 |
#endif |
5509 |
char dmalloc_debug (); |
5510 |
int |
5511 |
main () |
5512 |
{ |
5513 |
return dmalloc_debug (); |
5514 |
; |
5515 |
return 0; |
5516 |
} |
5517 |
_ACEOF |
5518 |
if ac_fn_c_try_link "$LINENO"; then : |
5519 |
ac_cv_lib_dmalloc_dmalloc_debug=yes |
5520 |
else |
5521 |
ac_cv_lib_dmalloc_dmalloc_debug=no |
5522 |
fi |
5523 |
rm -f core conftest.err conftest.$ac_objext \ |
5524 |
conftest$ac_exeext conftest.$ac_ext |
5525 |
LIBS=$ac_check_lib_save_LIBS |
5526 |
fi |
5527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 |
5528 |
$as_echo "$ac_cv_lib_dmalloc_dmalloc_debug" >&6; } |
5529 |
if test "x$ac_cv_lib_dmalloc_dmalloc_debug" = xyes; then : |
5530 |
cat >>confdefs.h <<_ACEOF |
5531 |
#define HAVE_LIBDMALLOC 1 |
5532 |
_ACEOF |
5533 |
|
5534 |
LIBS="-ldmalloc $LIBS" |
5535 |
|
5536 |
fi |
5537 |
|
5538 |
if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then |
5539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 |
5540 |
$as_echo_n "checking for malloc in -lefence... " >&6; } |
5541 |
if ${ac_cv_lib_efence_malloc+:} false; then : |
5542 |
$as_echo_n "(cached) " >&6 |
5543 |
else |
5544 |
ac_check_lib_save_LIBS=$LIBS |
5545 |
LIBS="-lefence $LIBS" |
5546 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5547 |
/* end confdefs.h. */ |
5548 |
|
5549 |
/* Override any GCC internal prototype to avoid an error. |
5550 |
Use char because int might match the return type of a GCC |
5551 |
builtin and then its argument prototype would still apply. */ |
5552 |
#ifdef __cplusplus |
5553 |
extern "C" |
5554 |
#endif |
5555 |
char malloc (); |
5556 |
int |
5557 |
main () |
5558 |
{ |
5559 |
return malloc (); |
5560 |
; |
5561 |
return 0; |
5562 |
} |
5563 |
_ACEOF |
5564 |
if ac_fn_c_try_link "$LINENO"; then : |
5565 |
ac_cv_lib_efence_malloc=yes |
5566 |
else |
5567 |
ac_cv_lib_efence_malloc=no |
5568 |
fi |
5569 |
rm -f core conftest.err conftest.$ac_objext \ |
5570 |
conftest$ac_exeext conftest.$ac_ext |
5571 |
LIBS=$ac_check_lib_save_LIBS |
5572 |
fi |
5573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 |
5574 |
$as_echo "$ac_cv_lib_efence_malloc" >&6; } |
5575 |
if test "x$ac_cv_lib_efence_malloc" = xyes; then : |
5576 |
cat >>confdefs.h <<_ACEOF |
5577 |
#define HAVE_LIBEFENCE 1 |
5578 |
_ACEOF |
5579 |
|
5580 |
LIBS="-lefence $LIBS" |
5581 |
|
5582 |
fi |
5583 |
|
5584 |
fi |
5585 |
fi |
5586 |
fi |
5587 |
|
5588 |
CLIENT=birdcl |
5589 |
CLIENT_LIBS= |
5590 |
if test "$enable_client" = yes ; then |
5591 |
CLIENT="$CLIENT birdc" |
5592 |
BASE_LIBS="$LIBS" |
5593 |
LIBS="" |
5594 |
|
5595 |
for ac_header in curses.h |
5596 |
do : |
5597 |
ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default |
5598 |
|
5599 |
" |
5600 |
if test "x$ac_cv_header_curses_h" = xyes; then : |
5601 |
cat >>confdefs.h <<_ACEOF |
5602 |
#define HAVE_CURSES_H 1 |
5603 |
_ACEOF |
5604 |
|
5605 |
else |
5606 |
as_fn_error $? "The client requires ncurses library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5 |
5607 |
fi |
5608 |
|
5609 |
done |
5610 |
|
5611 |
|
5612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
5613 |
$as_echo_n "checking for library containing tgetent... " >&6; } |
5614 |
if ${ac_cv_search_tgetent+:} false; then : |
5615 |
$as_echo_n "(cached) " >&6 |
5616 |
else |
5617 |
ac_func_search_save_LIBS=$LIBS |
5618 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5619 |
/* end confdefs.h. */ |
5620 |
|
5621 |
/* Override any GCC internal prototype to avoid an error. |
5622 |
Use char because int might match the return type of a GCC |
5623 |
builtin and then its argument prototype would still apply. */ |
5624 |
#ifdef __cplusplus |
5625 |
extern "C" |
5626 |
#endif |
5627 |
char tgetent (); |
5628 |
int |
5629 |
main () |
5630 |
{ |
5631 |
return tgetent (); |
5632 |
; |
5633 |
return 0; |
5634 |
} |
5635 |
_ACEOF |
5636 |
for ac_lib in '' tinfo tinfow ncurses curses termcap; do |
5637 |
if test -z "$ac_lib"; then |
5638 |
ac_res="none required" |
5639 |
else |
5640 |
ac_res=-l$ac_lib |
5641 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5642 |
fi |
5643 |
if ac_fn_c_try_link "$LINENO"; then : |
5644 |
ac_cv_search_tgetent=$ac_res |
5645 |
fi |
5646 |
rm -f core conftest.err conftest.$ac_objext \ |
5647 |
conftest$ac_exeext |
5648 |
if ${ac_cv_search_tgetent+:} false; then : |
5649 |
break |
5650 |
fi |
5651 |
done |
5652 |
if ${ac_cv_search_tgetent+:} false; then : |
5653 |
|
5654 |
else |
5655 |
ac_cv_search_tgetent=no |
5656 |
fi |
5657 |
rm conftest.$ac_ext |
5658 |
LIBS=$ac_func_search_save_LIBS |
5659 |
fi |
5660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 |
5661 |
$as_echo "$ac_cv_search_tgetent" >&6; } |
5662 |
ac_res=$ac_cv_search_tgetent |
5663 |
if test "$ac_res" != no; then : |
5664 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5665 |
TINFO_LIBS="$LIBS"; LIBS="" |
5666 |
else |
5667 |
as_fn_error $? "The client requires ncurses library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5 |
5668 |
fi |
5669 |
|
5670 |
|
5671 |
for ac_header in readline/readline.h readline/history.h |
5672 |
do : |
5673 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5674 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5675 |
|
5676 |
" |
5677 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5678 |
cat >>confdefs.h <<_ACEOF |
5679 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5680 |
_ACEOF |
5681 |
|
5682 |
else |
5683 |
as_fn_error $? "The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5 |
5684 |
fi |
5685 |
|
5686 |
done |
5687 |
|
5688 |
|
5689 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_callback_read_char" >&5 |
5690 |
$as_echo_n "checking for library containing rl_callback_read_char... " >&6; } |
5691 |
if ${ac_cv_search_rl_callback_read_char+:} false; then : |
5692 |
$as_echo_n "(cached) " >&6 |
5693 |
else |
5694 |
ac_func_search_save_LIBS=$LIBS |
5695 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5696 |
/* end confdefs.h. */ |
5697 |
|
5698 |
/* Override any GCC internal prototype to avoid an error. |
5699 |
Use char because int might match the return type of a GCC |
5700 |
builtin and then its argument prototype would still apply. */ |
5701 |
#ifdef __cplusplus |
5702 |
extern "C" |
5703 |
#endif |
5704 |
char rl_callback_read_char (); |
5705 |
int |
5706 |
main () |
5707 |
{ |
5708 |
return rl_callback_read_char (); |
5709 |
; |
5710 |
return 0; |
5711 |
} |
5712 |
_ACEOF |
5713 |
for ac_lib in '' readline; do |
5714 |
if test -z "$ac_lib"; then |
5715 |
ac_res="none required" |
5716 |
else |
5717 |
ac_res=-l$ac_lib |
5718 |
LIBS="-l$ac_lib $TINFO_LIBS |
5719 |
$ac_func_search_save_LIBS" |
5720 |
fi |
5721 |
if ac_fn_c_try_link "$LINENO"; then : |
5722 |
ac_cv_search_rl_callback_read_char=$ac_res |
5723 |
fi |
5724 |
rm -f core conftest.err conftest.$ac_objext \ |
5725 |
conftest$ac_exeext |
5726 |
if ${ac_cv_search_rl_callback_read_char+:} false; then : |
5727 |
break |
5728 |
fi |
5729 |
done |
5730 |
if ${ac_cv_search_rl_callback_read_char+:} false; then : |
5731 |
|
5732 |
else |
5733 |
ac_cv_search_rl_callback_read_char=no |
5734 |
fi |
5735 |
rm conftest.$ac_ext |
5736 |
LIBS=$ac_func_search_save_LIBS |
5737 |
fi |
5738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_callback_read_char" >&5 |
5739 |
$as_echo "$ac_cv_search_rl_callback_read_char" >&6; } |
5740 |
ac_res=$ac_cv_search_rl_callback_read_char |
5741 |
if test "$ac_res" != no; then : |
5742 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5743 |
READLINE_LIBS="$LIBS"; LIBS="" |
5744 |
else |
5745 |
as_fn_error $? "The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5 |
5746 |
fi |
5747 |
|
5748 |
|
5749 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_crlf in -lreadline" >&5 |
5750 |
$as_echo_n "checking for rl_crlf in -lreadline... " >&6; } |
5751 |
if ${ac_cv_lib_readline_rl_crlf+:} false; then : |
5752 |
$as_echo_n "(cached) " >&6 |
5753 |
else |
5754 |
ac_check_lib_save_LIBS=$LIBS |
5755 |
LIBS="-lreadline $TINFO_LIBS |
5756 |
$LIBS" |
5757 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5758 |
/* end confdefs.h. */ |
5759 |
|
5760 |
/* Override any GCC internal prototype to avoid an error. |
5761 |
Use char because int might match the return type of a GCC |
5762 |
builtin and then its argument prototype would still apply. */ |
5763 |
#ifdef __cplusplus |
5764 |
extern "C" |
5765 |
#endif |
5766 |
char rl_crlf (); |
5767 |
int |
5768 |
main () |
5769 |
{ |
5770 |
return rl_crlf (); |
5771 |
; |
5772 |
return 0; |
5773 |
} |
5774 |
_ACEOF |
5775 |
if ac_fn_c_try_link "$LINENO"; then : < |