1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.71 for gvpe 3.1. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 |
# Inc. |
8 |
# |
9 |
# |
10 |
# This configure script is free software; the Free Software Foundation |
11 |
# gives unlimited permission to copy, distribute and modify it. |
12 |
## -------------------- ## |
13 |
## M4sh Initialization. ## |
14 |
## -------------------- ## |
15 |
|
16 |
# Be more Bourne compatible |
17 |
DUALCASE=1; export DUALCASE # for MKS sh |
18 |
as_nop=: |
19 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
20 |
then : |
21 |
emulate sh |
22 |
NULLCMD=: |
23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 |
# is contrary to our usage. Disable this feature. |
25 |
alias -g '${1+"$@"}'='"$@"' |
26 |
setopt NO_GLOB_SUBST |
27 |
else $as_nop |
28 |
case `(set -o) 2>/dev/null` in #( |
29 |
*posix*) : |
30 |
set -o posix ;; #( |
31 |
*) : |
32 |
;; |
33 |
esac |
34 |
fi |
35 |
|
36 |
|
37 |
|
38 |
# Reset variables that may have inherited troublesome values from |
39 |
# the environment. |
40 |
|
41 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
42 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
43 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
44 |
# Quoting is to prevent editors from complaining about space-tab. |
45 |
as_nl=' |
46 |
' |
47 |
export as_nl |
48 |
IFS=" "" $as_nl" |
49 |
|
50 |
PS1='$ ' |
51 |
PS2='> ' |
52 |
PS4='+ ' |
53 |
|
54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
55 |
LC_ALL=C |
56 |
export LC_ALL |
57 |
LANGUAGE=C |
58 |
export LANGUAGE |
59 |
|
60 |
# We cannot yet rely on "unset" to work, but we need these variables |
61 |
# to be unset--not just set to an empty or harmless value--now, to |
62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
63 |
# also avoids known problems related to "unset" and subshell syntax |
64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
66 |
do eval test \${$as_var+y} \ |
67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
68 |
done |
69 |
|
70 |
# Ensure that fds 0, 1, and 2 are open. |
71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
74 |
|
75 |
# The user is always right. |
76 |
if ${PATH_SEPARATOR+false} :; then |
77 |
PATH_SEPARATOR=: |
78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 |
PATH_SEPARATOR=';' |
81 |
} |
82 |
fi |
83 |
|
84 |
|
85 |
# Find who we are. Look in the path if we contain no directory separator. |
86 |
as_myself= |
87 |
case $0 in #(( |
88 |
*[\\/]* ) as_myself=$0 ;; |
89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
90 |
for as_dir in $PATH |
91 |
do |
92 |
IFS=$as_save_IFS |
93 |
case $as_dir in #((( |
94 |
'') as_dir=./ ;; |
95 |
*/) ;; |
96 |
*) as_dir=$as_dir/ ;; |
97 |
esac |
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 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
|
115 |
# Use a proper internal environment variable to ensure we don't fall |
116 |
# into an infinite loop, continuously re-executing ourselves. |
117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
118 |
_as_can_reexec=no; export _as_can_reexec; |
119 |
# We cannot yet assume a decent shell, so we have to provide a |
120 |
# neutralization value for shells without unset; and this also |
121 |
# works around shells that cannot unset nonexistent variables. |
122 |
# Preserve -v and -x to the replacement shell. |
123 |
BASH_ENV=/dev/null |
124 |
ENV=/dev/null |
125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
126 |
case $- in # (((( |
127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
128 |
*v* ) as_opts=-v ;; |
129 |
*x* ) as_opts=-x ;; |
130 |
* ) as_opts= ;; |
131 |
esac |
132 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
133 |
# Admittedly, this is quite paranoid, since all the known shells bail |
134 |
# out after a failed `exec'. |
135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 |
exit 255 |
137 |
fi |
138 |
# We don't want this to propagate to other subprocesses. |
139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
140 |
if test "x$CONFIG_SHELL" = x; then |
141 |
as_bourne_compatible="as_nop=: |
142 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
143 |
then : |
144 |
emulate sh |
145 |
NULLCMD=: |
146 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
147 |
# is contrary to our usage. Disable this feature. |
148 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
149 |
setopt NO_GLOB_SUBST |
150 |
else \$as_nop |
151 |
case \`(set -o) 2>/dev/null\` in #( |
152 |
*posix*) : |
153 |
set -o posix ;; #( |
154 |
*) : |
155 |
;; |
156 |
esac |
157 |
fi |
158 |
" |
159 |
as_required="as_fn_return () { (exit \$1); } |
160 |
as_fn_success () { as_fn_return 0; } |
161 |
as_fn_failure () { as_fn_return 1; } |
162 |
as_fn_ret_success () { return 0; } |
163 |
as_fn_ret_failure () { return 1; } |
164 |
|
165 |
exitcode=0 |
166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 |
then : |
172 |
|
173 |
else \$as_nop |
174 |
exitcode=1; echo positional parameters were not saved. |
175 |
fi |
176 |
test x\$exitcode = x0 || exit 1 |
177 |
blah=\$(echo \$(echo blah)) |
178 |
test x\"\$blah\" = xblah || exit 1 |
179 |
test -x / || exit 1" |
180 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
181 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
182 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
183 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
184 |
test \$(( 1 + 1 )) = 2 || exit 1" |
185 |
if (eval "$as_required") 2>/dev/null |
186 |
then : |
187 |
as_have_required=yes |
188 |
else $as_nop |
189 |
as_have_required=no |
190 |
fi |
191 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
192 |
then : |
193 |
|
194 |
else $as_nop |
195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 |
as_found=false |
197 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
198 |
do |
199 |
IFS=$as_save_IFS |
200 |
case $as_dir in #((( |
201 |
'') as_dir=./ ;; |
202 |
*/) ;; |
203 |
*) as_dir=$as_dir/ ;; |
204 |
esac |
205 |
as_found=: |
206 |
case $as_dir in #( |
207 |
/*) |
208 |
for as_base in sh bash ksh sh5; do |
209 |
# Try only shells that exist, to save several forks. |
210 |
as_shell=$as_dir$as_base |
211 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
212 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
213 |
then : |
214 |
CONFIG_SHELL=$as_shell as_have_required=yes |
215 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
216 |
then : |
217 |
break 2 |
218 |
fi |
219 |
fi |
220 |
done;; |
221 |
esac |
222 |
as_found=false |
223 |
done |
224 |
IFS=$as_save_IFS |
225 |
if $as_found |
226 |
then : |
227 |
|
228 |
else $as_nop |
229 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
230 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
231 |
then : |
232 |
CONFIG_SHELL=$SHELL as_have_required=yes |
233 |
fi |
234 |
fi |
235 |
|
236 |
|
237 |
if test "x$CONFIG_SHELL" != x |
238 |
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 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 |
exit 255 |
258 |
fi |
259 |
|
260 |
if test x$as_have_required = xno |
261 |
then : |
262 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
263 |
printf "%s\n" "$0: the shells that I found on your system." |
264 |
if test ${ZSH_VERSION+y} ; then |
265 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
266 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
267 |
else |
268 |
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
269 |
$0: including any error possibly output before this |
270 |
$0: message. Then install a modern shell, or manually run |
271 |
$0: the script under such a shell if you do have one." |
272 |
fi |
273 |
exit 1 |
274 |
fi |
275 |
fi |
276 |
fi |
277 |
SHELL=${CONFIG_SHELL-/bin/sh} |
278 |
export SHELL |
279 |
# Unset more variables known to interfere with behavior of common tools. |
280 |
CLICOLOR_FORCE= GREP_OPTIONS= |
281 |
unset CLICOLOR_FORCE GREP_OPTIONS |
282 |
|
283 |
## --------------------- ## |
284 |
## M4sh Shell Functions. ## |
285 |
## --------------------- ## |
286 |
# as_fn_unset VAR |
287 |
# --------------- |
288 |
# Portably unset VAR. |
289 |
as_fn_unset () |
290 |
{ |
291 |
{ eval $1=; unset $1;} |
292 |
} |
293 |
as_unset=as_fn_unset |
294 |
|
295 |
|
296 |
# as_fn_set_status STATUS |
297 |
# ----------------------- |
298 |
# Set $? to STATUS, without forking. |
299 |
as_fn_set_status () |
300 |
{ |
301 |
return $1 |
302 |
} # as_fn_set_status |
303 |
|
304 |
# as_fn_exit STATUS |
305 |
# ----------------- |
306 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
307 |
as_fn_exit () |
308 |
{ |
309 |
set +e |
310 |
as_fn_set_status $1 |
311 |
exit $1 |
312 |
} # as_fn_exit |
313 |
# as_fn_nop |
314 |
# --------- |
315 |
# Do nothing but, unlike ":", preserve the value of $?. |
316 |
as_fn_nop () |
317 |
{ |
318 |
return $? |
319 |
} |
320 |
as_nop=as_fn_nop |
321 |
|
322 |
# as_fn_mkdir_p |
323 |
# ------------- |
324 |
# Create "$as_dir" as a directory, including parents if necessary. |
325 |
as_fn_mkdir_p () |
326 |
{ |
327 |
|
328 |
case $as_dir in #( |
329 |
-*) as_dir=./$as_dir;; |
330 |
esac |
331 |
test -d "$as_dir" || eval $as_mkdir_p || { |
332 |
as_dirs= |
333 |
while :; do |
334 |
case $as_dir in #( |
335 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
336 |
*) as_qdir=$as_dir;; |
337 |
esac |
338 |
as_dirs="'$as_qdir' $as_dirs" |
339 |
as_dir=`$as_dirname -- "$as_dir" || |
340 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
341 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
342 |
X"$as_dir" : 'X\(//\)$' \| \ |
343 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
344 |
printf "%s\n" X"$as_dir" | |
345 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 |
s//\1/ |
347 |
q |
348 |
} |
349 |
/^X\(\/\/\)[^/].*/{ |
350 |
s//\1/ |
351 |
q |
352 |
} |
353 |
/^X\(\/\/\)$/{ |
354 |
s//\1/ |
355 |
q |
356 |
} |
357 |
/^X\(\/\).*/{ |
358 |
s//\1/ |
359 |
q |
360 |
} |
361 |
s/.*/./; q'` |
362 |
test -d "$as_dir" && break |
363 |
done |
364 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
365 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
366 |
|
367 |
|
368 |
} # as_fn_mkdir_p |
369 |
|
370 |
# as_fn_executable_p FILE |
371 |
# ----------------------- |
372 |
# Test if FILE is an executable regular file. |
373 |
as_fn_executable_p () |
374 |
{ |
375 |
test -f "$1" && test -x "$1" |
376 |
} # as_fn_executable_p |
377 |
# as_fn_append VAR VALUE |
378 |
# ---------------------- |
379 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
380 |
# advantage of any shell optimizations that allow amortized linear growth over |
381 |
# repeated appends, instead of the typical quadratic growth present in naive |
382 |
# implementations. |
383 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
384 |
then : |
385 |
eval 'as_fn_append () |
386 |
{ |
387 |
eval $1+=\$2 |
388 |
}' |
389 |
else $as_nop |
390 |
as_fn_append () |
391 |
{ |
392 |
eval $1=\$$1\$2 |
393 |
} |
394 |
fi # as_fn_append |
395 |
|
396 |
# as_fn_arith ARG... |
397 |
# ------------------ |
398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
400 |
# must be portable across $(()) and expr. |
401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
402 |
then : |
403 |
eval 'as_fn_arith () |
404 |
{ |
405 |
as_val=$(( $* )) |
406 |
}' |
407 |
else $as_nop |
408 |
as_fn_arith () |
409 |
{ |
410 |
as_val=`expr "$@" || test $? -eq 1` |
411 |
} |
412 |
fi # as_fn_arith |
413 |
|
414 |
# as_fn_nop |
415 |
# --------- |
416 |
# Do nothing but, unlike ":", preserve the value of $?. |
417 |
as_fn_nop () |
418 |
{ |
419 |
return $? |
420 |
} |
421 |
as_nop=as_fn_nop |
422 |
|
423 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
424 |
# ---------------------------------------- |
425 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
426 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
427 |
# script with STATUS, using 1 if that was 0. |
428 |
as_fn_error () |
429 |
{ |
430 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
431 |
if test "$4"; then |
432 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
433 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
434 |
fi |
435 |
printf "%s\n" "$as_me: error: $2" >&2 |
436 |
as_fn_exit $as_status |
437 |
} # as_fn_error |
438 |
|
439 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
440 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
441 |
as_expr=expr |
442 |
else |
443 |
as_expr=false |
444 |
fi |
445 |
|
446 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
447 |
as_basename=basename |
448 |
else |
449 |
as_basename=false |
450 |
fi |
451 |
|
452 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
453 |
as_dirname=dirname |
454 |
else |
455 |
as_dirname=false |
456 |
fi |
457 |
|
458 |
as_me=`$as_basename -- "$0" || |
459 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
460 |
X"$0" : 'X\(//\)$' \| \ |
461 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
462 |
printf "%s\n" X/"$0" | |
463 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
464 |
s//\1/ |
465 |
q |
466 |
} |
467 |
/^X\/\(\/\/\)$/{ |
468 |
s//\1/ |
469 |
q |
470 |
} |
471 |
/^X\/\(\/\).*/{ |
472 |
s//\1/ |
473 |
q |
474 |
} |
475 |
s/.*/./; q'` |
476 |
|
477 |
# Avoid depending upon Character Ranges. |
478 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
479 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
480 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
481 |
as_cr_digits='0123456789' |
482 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
483 |
|
484 |
|
485 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
486 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
487 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
488 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
489 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
490 |
sed -n ' |
491 |
p |
492 |
/[$]LINENO/= |
493 |
' <$as_myself | |
494 |
sed ' |
495 |
s/[$]LINENO.*/&-/ |
496 |
t lineno |
497 |
b |
498 |
:lineno |
499 |
N |
500 |
:loop |
501 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
502 |
t loop |
503 |
s/-\n.*// |
504 |
' >$as_me.lineno && |
505 |
chmod +x "$as_me.lineno" || |
506 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
507 |
|
508 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
509 |
# already done that, so ensure we don't try to do so again and fall |
510 |
# in an infinite loop. This has already happened in practice. |
511 |
_as_can_reexec=no; export _as_can_reexec |
512 |
# Don't try to exec as it changes $[0], causing all sort of problems |
513 |
# (the dirname of $[0] is not the place where we might find the |
514 |
# original and so on. Autoconf is especially sensitive to this). |
515 |
. "./$as_me.lineno" |
516 |
# Exit status is that of the last command. |
517 |
exit |
518 |
} |
519 |
|
520 |
|
521 |
# Determine whether it's possible to make 'echo' print without a newline. |
522 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
523 |
# for compatibility with existing Makefiles. |
524 |
ECHO_C= ECHO_N= ECHO_T= |
525 |
case `echo -n x` in #((((( |
526 |
-n*) |
527 |
case `echo 'xy\c'` in |
528 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
529 |
xy) ECHO_C='\c';; |
530 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
531 |
ECHO_T=' ';; |
532 |
esac;; |
533 |
*) |
534 |
ECHO_N='-n';; |
535 |
esac |
536 |
|
537 |
# For backward compatibility with old third-party macros, we provide |
538 |
# the shell variables $as_echo and $as_echo_n. New code should use |
539 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
540 |
as_echo='printf %s\n' |
541 |
as_echo_n='printf %s' |
542 |
|
543 |
|
544 |
rm -f conf$$ conf$$.exe conf$$.file |
545 |
if test -d conf$$.dir; then |
546 |
rm -f conf$$.dir/conf$$.file |
547 |
else |
548 |
rm -f conf$$.dir |
549 |
mkdir conf$$.dir 2>/dev/null |
550 |
fi |
551 |
if (echo >conf$$.file) 2>/dev/null; then |
552 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
553 |
as_ln_s='ln -s' |
554 |
# ... but there are two gotchas: |
555 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
556 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
557 |
# In both cases, we have to default to `cp -pR'. |
558 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
559 |
as_ln_s='cp -pR' |
560 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
561 |
as_ln_s=ln |
562 |
else |
563 |
as_ln_s='cp -pR' |
564 |
fi |
565 |
else |
566 |
as_ln_s='cp -pR' |
567 |
fi |
568 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
569 |
rmdir conf$$.dir 2>/dev/null |
570 |
|
571 |
if mkdir -p . 2>/dev/null; then |
572 |
as_mkdir_p='mkdir -p "$as_dir"' |
573 |
else |
574 |
test -d ./-p && rmdir ./-p |
575 |
as_mkdir_p=false |
576 |
fi |
577 |
|
578 |
as_test_x='test -x' |
579 |
as_executable_p=as_fn_executable_p |
580 |
|
581 |
# Sed expression to map a string onto a valid CPP name. |
582 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
583 |
|
584 |
# Sed expression to map a string onto a valid variable name. |
585 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
586 |
|
587 |
|
588 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
589 |
exec 6>&1 |
590 |
|
591 |
# Name of the host. |
592 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
593 |
# so uname gets run too. |
594 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
595 |
|
596 |
# |
597 |
# Initializations. |
598 |
# |
599 |
ac_default_prefix=/usr/local |
600 |
ac_clean_files= |
601 |
ac_config_libobj_dir=. |
602 |
LIBOBJS= |
603 |
cross_compiling=no |
604 |
subdirs= |
605 |
MFLAGS= |
606 |
MAKEFLAGS= |
607 |
|
608 |
# Identity of this package. |
609 |
PACKAGE_NAME='gvpe' |
610 |
PACKAGE_TARNAME='gvpe' |
611 |
PACKAGE_VERSION='3.1' |
612 |
PACKAGE_STRING='gvpe 3.1' |
613 |
PACKAGE_BUGREPORT='' |
614 |
PACKAGE_URL='' |
615 |
|
616 |
ac_unique_file="src/gvpe.C" |
617 |
# Factoring default headers for most tests. |
618 |
ac_includes_default="\ |
619 |
#include <stddef.h> |
620 |
#ifdef HAVE_STDIO_H |
621 |
# include <stdio.h> |
622 |
#endif |
623 |
#ifdef HAVE_STDLIB_H |
624 |
# include <stdlib.h> |
625 |
#endif |
626 |
#ifdef HAVE_STRING_H |
627 |
# include <string.h> |
628 |
#endif |
629 |
#ifdef HAVE_INTTYPES_H |
630 |
# include <inttypes.h> |
631 |
#endif |
632 |
#ifdef HAVE_STDINT_H |
633 |
# include <stdint.h> |
634 |
#endif |
635 |
#ifdef HAVE_STRINGS_H |
636 |
# include <strings.h> |
637 |
#endif |
638 |
#ifdef HAVE_SYS_TYPES_H |
639 |
# include <sys/types.h> |
640 |
#endif |
641 |
#ifdef HAVE_SYS_STAT_H |
642 |
# include <sys/stat.h> |
643 |
#endif |
644 |
#ifdef HAVE_UNISTD_H |
645 |
# include <unistd.h> |
646 |
#endif" |
647 |
|
648 |
ac_header_cxx_list= |
649 |
ac_subst_vars='am__EXEEXT_FALSE |
650 |
am__EXEEXT_TRUE |
651 |
LTLIBOBJS |
652 |
LIBOBJS |
653 |
AM_CPPFLAGS |
654 |
ROHC_FALSE |
655 |
ROHC_TRUE |
656 |
LDFLAGS_DAEMON |
657 |
LIBCRYPTO_LIBS |
658 |
LIBCRYPTO_CFLAGS |
659 |
PKG_CONFIG_LIBDIR |
660 |
PKG_CONFIG_PATH |
661 |
PKG_CONFIG |
662 |
HAVE_TUNTAP |
663 |
LINUX_IF_TUN_H |
664 |
ALLOCA |
665 |
IFSUBTYPE |
666 |
IFTYPE |
667 |
RANLIB |
668 |
LN_S |
669 |
EGREP |
670 |
GREP |
671 |
am__fastdepCXX_FALSE |
672 |
am__fastdepCXX_TRUE |
673 |
CXXDEPMODE |
674 |
ac_ct_CXX |
675 |
CXXFLAGS |
676 |
CXX |
677 |
CPP |
678 |
POSUB |
679 |
LTLIBINTL |
680 |
LIBINTL |
681 |
INTLLIBS |
682 |
LTLIBICONV |
683 |
LIBICONV |
684 |
USE_NLS |
685 |
am__fastdepCC_FALSE |
686 |
am__fastdepCC_TRUE |
687 |
CCDEPMODE |
688 |
am__nodep |
689 |
AMDEPBACKSLASH |
690 |
AMDEP_FALSE |
691 |
AMDEP_TRUE |
692 |
am__include |
693 |
DEPDIR |
694 |
OBJEXT |
695 |
EXEEXT |
696 |
ac_ct_CC |
697 |
CPPFLAGS |
698 |
LDFLAGS |
699 |
CFLAGS |
700 |
CC |
701 |
MSGMERGE |
702 |
XGETTEXT |
703 |
GMSGFMT |
704 |
MSGFMT |
705 |
MKINSTALLDIRS |
706 |
MAINT |
707 |
MAINTAINER_MODE_FALSE |
708 |
MAINTAINER_MODE_TRUE |
709 |
AM_BACKSLASH |
710 |
AM_DEFAULT_VERBOSITY |
711 |
AM_DEFAULT_V |
712 |
AM_V |
713 |
am__untar |
714 |
am__tar |
715 |
AMTAR |
716 |
am__leading_dot |
717 |
SET_MAKE |
718 |
AWK |
719 |
mkdir_p |
720 |
MKDIR_P |
721 |
INSTALL_STRIP_PROGRAM |
722 |
STRIP |
723 |
install_sh |
724 |
MAKEINFO |
725 |
AUTOHEADER |
726 |
AUTOMAKE |
727 |
AUTOCONF |
728 |
ACLOCAL |
729 |
VERSION |
730 |
PACKAGE |
731 |
CYGPATH_W |
732 |
am__isrc |
733 |
INSTALL_DATA |
734 |
INSTALL_SCRIPT |
735 |
INSTALL_PROGRAM |
736 |
target_os |
737 |
target_vendor |
738 |
target_cpu |
739 |
target |
740 |
host_os |
741 |
host_vendor |
742 |
host_cpu |
743 |
host |
744 |
build_os |
745 |
build_vendor |
746 |
build_cpu |
747 |
build |
748 |
target_alias |
749 |
host_alias |
750 |
build_alias |
751 |
LIBS |
752 |
ECHO_T |
753 |
ECHO_N |
754 |
ECHO_C |
755 |
DEFS |
756 |
mandir |
757 |
localedir |
758 |
libdir |
759 |
psdir |
760 |
pdfdir |
761 |
dvidir |
762 |
htmldir |
763 |
infodir |
764 |
docdir |
765 |
oldincludedir |
766 |
includedir |
767 |
runstatedir |
768 |
localstatedir |
769 |
sharedstatedir |
770 |
sysconfdir |
771 |
datadir |
772 |
datarootdir |
773 |
libexecdir |
774 |
sbindir |
775 |
bindir |
776 |
program_transform_name |
777 |
prefix |
778 |
exec_prefix |
779 |
PACKAGE_URL |
780 |
PACKAGE_BUGREPORT |
781 |
PACKAGE_STRING |
782 |
PACKAGE_VERSION |
783 |
PACKAGE_TARNAME |
784 |
PACKAGE_NAME |
785 |
PATH_SEPARATOR |
786 |
SHELL |
787 |
am__quote' |
788 |
ac_subst_files='' |
789 |
ac_user_opts=' |
790 |
enable_option_checking |
791 |
enable_silent_rules |
792 |
enable_maintainer_mode |
793 |
enable_dependency_tracking |
794 |
with_gnu_ld |
795 |
enable_rpath |
796 |
with_libiconv_prefix |
797 |
enable_nls |
798 |
with_libintl_prefix |
799 |
enable_iftype |
800 |
with_kernel |
801 |
enable_threads |
802 |
enable_static_daemon |
803 |
enable_icmp |
804 |
enable_tcp |
805 |
enable_http_proxy |
806 |
enable_dns |
807 |
enable_rsa_length |
808 |
enable_hmac_length |
809 |
enable_max_mtu |
810 |
enable_compression |
811 |
enable_cipher |
812 |
enable_hmac_digest |
813 |
enable_auth_digest |
814 |
' |
815 |
ac_precious_vars='build_alias |
816 |
host_alias |
817 |
target_alias |
818 |
CC |
819 |
CFLAGS |
820 |
LDFLAGS |
821 |
LIBS |
822 |
CPPFLAGS |
823 |
CPP |
824 |
CXX |
825 |
CXXFLAGS |
826 |
CCC |
827 |
PKG_CONFIG |
828 |
PKG_CONFIG_PATH |
829 |
PKG_CONFIG_LIBDIR |
830 |
LIBCRYPTO_CFLAGS |
831 |
LIBCRYPTO_LIBS' |
832 |
|
833 |
|
834 |
# Initialize some variables set by options. |
835 |
ac_init_help= |
836 |
ac_init_version=false |
837 |
ac_unrecognized_opts= |
838 |
ac_unrecognized_sep= |
839 |
# The variables have the same names as the options, with |
840 |
# dashes changed to underlines. |
841 |
cache_file=/dev/null |
842 |
exec_prefix=NONE |
843 |
no_create= |
844 |
no_recursion= |
845 |
prefix=NONE |
846 |
program_prefix=NONE |
847 |
program_suffix=NONE |
848 |
program_transform_name=s,x,x, |
849 |
silent= |
850 |
site= |
851 |
srcdir= |
852 |
verbose= |
853 |
x_includes=NONE |
854 |
x_libraries=NONE |
855 |
|
856 |
# Installation directory options. |
857 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
858 |
# and all the variables that are supposed to be based on exec_prefix |
859 |
# by default will actually change. |
860 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
861 |
# (The list follows the same order as the GNU Coding Standards.) |
862 |
bindir='${exec_prefix}/bin' |
863 |
sbindir='${exec_prefix}/sbin' |
864 |
libexecdir='${exec_prefix}/libexec' |
865 |
datarootdir='${prefix}/share' |
866 |
datadir='${datarootdir}' |
867 |
sysconfdir='${prefix}/etc' |
868 |
sharedstatedir='${prefix}/com' |
869 |
localstatedir='${prefix}/var' |
870 |
runstatedir='${localstatedir}/run' |
871 |
includedir='${prefix}/include' |
872 |
oldincludedir='/usr/include' |
873 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
874 |
infodir='${datarootdir}/info' |
875 |
htmldir='${docdir}' |
876 |
dvidir='${docdir}' |
877 |
pdfdir='${docdir}' |
878 |
psdir='${docdir}' |
879 |
libdir='${exec_prefix}/lib' |
880 |
localedir='${datarootdir}/locale' |
881 |
mandir='${datarootdir}/man' |
882 |
|
883 |
ac_prev= |
884 |
ac_dashdash= |
885 |
for ac_option |
886 |
do |
887 |
# If the previous option needs an argument, assign it. |
888 |
if test -n "$ac_prev"; then |
889 |
eval $ac_prev=\$ac_option |
890 |
ac_prev= |
891 |
continue |
892 |
fi |
893 |
|
894 |
case $ac_option in |
895 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
896 |
*=) ac_optarg= ;; |
897 |
*) ac_optarg=yes ;; |
898 |
esac |
899 |
|
900 |
case $ac_dashdash$ac_option in |
901 |
--) |
902 |
ac_dashdash=yes ;; |
903 |
|
904 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
905 |
ac_prev=bindir ;; |
906 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
907 |
bindir=$ac_optarg ;; |
908 |
|
909 |
-build | --build | --buil | --bui | --bu) |
910 |
ac_prev=build_alias ;; |
911 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
912 |
build_alias=$ac_optarg ;; |
913 |
|
914 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
915 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
916 |
ac_prev=cache_file ;; |
917 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
918 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
919 |
cache_file=$ac_optarg ;; |
920 |
|
921 |
--config-cache | -C) |
922 |
cache_file=config.cache ;; |
923 |
|
924 |
-datadir | --datadir | --datadi | --datad) |
925 |
ac_prev=datadir ;; |
926 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
927 |
datadir=$ac_optarg ;; |
928 |
|
929 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
930 |
| --dataroo | --dataro | --datar) |
931 |
ac_prev=datarootdir ;; |
932 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
933 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
934 |
datarootdir=$ac_optarg ;; |
935 |
|
936 |
-disable-* | --disable-*) |
937 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
938 |
# Reject names that are not valid shell variable names. |
939 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
940 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
941 |
ac_useropt_orig=$ac_useropt |
942 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
943 |
case $ac_user_opts in |
944 |
*" |
945 |
"enable_$ac_useropt" |
946 |
"*) ;; |
947 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
948 |
ac_unrecognized_sep=', ';; |
949 |
esac |
950 |
eval enable_$ac_useropt=no ;; |
951 |
|
952 |
-docdir | --docdir | --docdi | --doc | --do) |
953 |
ac_prev=docdir ;; |
954 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
955 |
docdir=$ac_optarg ;; |
956 |
|
957 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
958 |
ac_prev=dvidir ;; |
959 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
960 |
dvidir=$ac_optarg ;; |
961 |
|
962 |
-enable-* | --enable-*) |
963 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
964 |
# Reject names that are not valid shell variable names. |
965 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
966 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
967 |
ac_useropt_orig=$ac_useropt |
968 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
969 |
case $ac_user_opts in |
970 |
*" |
971 |
"enable_$ac_useropt" |
972 |
"*) ;; |
973 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
974 |
ac_unrecognized_sep=', ';; |
975 |
esac |
976 |
eval enable_$ac_useropt=\$ac_optarg ;; |
977 |
|
978 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
979 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
980 |
| --exec | --exe | --ex) |
981 |
ac_prev=exec_prefix ;; |
982 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
983 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
984 |
| --exec=* | --exe=* | --ex=*) |
985 |
exec_prefix=$ac_optarg ;; |
986 |
|
987 |
-gas | --gas | --ga | --g) |
988 |
# Obsolete; use --with-gas. |
989 |
with_gas=yes ;; |
990 |
|
991 |
-help | --help | --hel | --he | -h) |
992 |
ac_init_help=long ;; |
993 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
994 |
ac_init_help=recursive ;; |
995 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
996 |
ac_init_help=short ;; |
997 |
|
998 |
-host | --host | --hos | --ho) |
999 |
ac_prev=host_alias ;; |
1000 |
-host=* | --host=* | --hos=* | --ho=*) |
1001 |
host_alias=$ac_optarg ;; |
1002 |
|
1003 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1004 |
ac_prev=htmldir ;; |
1005 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1006 |
| --ht=*) |
1007 |
htmldir=$ac_optarg ;; |
1008 |
|
1009 |
-includedir | --includedir | --includedi | --included | --include \ |
1010 |
| --includ | --inclu | --incl | --inc) |
1011 |
ac_prev=includedir ;; |
1012 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1013 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
1014 |
includedir=$ac_optarg ;; |
1015 |
|
1016 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
1017 |
ac_prev=infodir ;; |
1018 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1019 |
infodir=$ac_optarg ;; |
1020 |
|
1021 |
-libdir | --libdir | --libdi | --libd) |
1022 |
ac_prev=libdir ;; |
1023 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
1024 |
libdir=$ac_optarg ;; |
1025 |
|
1026 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1027 |
| --libexe | --libex | --libe) |
1028 |
ac_prev=libexecdir ;; |
1029 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1030 |
| --libexe=* | --libex=* | --libe=*) |
1031 |
libexecdir=$ac_optarg ;; |
1032 |
|
1033 |
-localedir | --localedir | --localedi | --localed | --locale) |
1034 |
ac_prev=localedir ;; |
1035 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1036 |
localedir=$ac_optarg ;; |
1037 |
|
1038 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1039 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1040 |
ac_prev=localstatedir ;; |
1041 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1042 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1043 |
localstatedir=$ac_optarg ;; |
1044 |
|
1045 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1046 |
ac_prev=mandir ;; |
1047 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1048 |
mandir=$ac_optarg ;; |
1049 |
|
1050 |
-nfp | --nfp | --nf) |
1051 |
# Obsolete; use --without-fp. |
1052 |
with_fp=no ;; |
1053 |
|
1054 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1055 |
| --no-cr | --no-c | -n) |
1056 |
no_create=yes ;; |
1057 |
|
1058 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1059 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1060 |
no_recursion=yes ;; |
1061 |
|
1062 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1063 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1064 |
| --oldin | --oldi | --old | --ol | --o) |
1065 |
ac_prev=oldincludedir ;; |
1066 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1067 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1068 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1069 |
oldincludedir=$ac_optarg ;; |
1070 |
|
1071 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1072 |
ac_prev=prefix ;; |
1073 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1074 |
prefix=$ac_optarg ;; |
1075 |
|
1076 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1077 |
| --program-pre | --program-pr | --program-p) |
1078 |
ac_prev=program_prefix ;; |
1079 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1080 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1081 |
program_prefix=$ac_optarg ;; |
1082 |
|
1083 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1084 |
| --program-suf | --program-su | --program-s) |
1085 |
ac_prev=program_suffix ;; |
1086 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1087 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1088 |
program_suffix=$ac_optarg ;; |
1089 |
|
1090 |
-program-transform-name | --program-transform-name \ |
1091 |
| --program-transform-nam | --program-transform-na \ |
1092 |
| --program-transform-n | --program-transform- \ |
1093 |
| --program-transform | --program-transfor \ |
1094 |
| --program-transfo | --program-transf \ |
1095 |
| --program-trans | --program-tran \ |
1096 |
| --progr-tra | --program-tr | --program-t) |
1097 |
ac_prev=program_transform_name ;; |
1098 |
-program-transform-name=* | --program-transform-name=* \ |
1099 |
| --program-transform-nam=* | --program-transform-na=* \ |
1100 |
| --program-transform-n=* | --program-transform-=* \ |
1101 |
| --program-transform=* | --program-transfor=* \ |
1102 |
| --program-transfo=* | --program-transf=* \ |
1103 |
| --program-trans=* | --program-tran=* \ |
1104 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1105 |
program_transform_name=$ac_optarg ;; |
1106 |
|
1107 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1108 |
ac_prev=pdfdir ;; |
1109 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1110 |
pdfdir=$ac_optarg ;; |
1111 |
|
1112 |
-psdir | --psdir | --psdi | --psd | --ps) |
1113 |
ac_prev=psdir ;; |
1114 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1115 |
psdir=$ac_optarg ;; |
1116 |
|
1117 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1118 |
| -silent | --silent | --silen | --sile | --sil) |
1119 |
silent=yes ;; |
1120 |
|
1121 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
1122 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
1123 |
| --run | --ru | --r) |
1124 |
ac_prev=runstatedir ;; |
1125 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
1126 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
1127 |
| --run=* | --ru=* | --r=*) |
1128 |
runstatedir=$ac_optarg ;; |
1129 |
|
1130 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1131 |
ac_prev=sbindir ;; |
1132 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1133 |
| --sbi=* | --sb=*) |
1134 |
sbindir=$ac_optarg ;; |
1135 |
|
1136 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1137 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1138 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1139 |
| --sha | --sh) |
1140 |
ac_prev=sharedstatedir ;; |
1141 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1142 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1143 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1144 |
| --sha=* | --sh=*) |
1145 |
sharedstatedir=$ac_optarg ;; |
1146 |
|
1147 |
-site | --site | --sit) |
1148 |
ac_prev=site ;; |
1149 |
-site=* | --site=* | --sit=*) |
1150 |
site=$ac_optarg ;; |
1151 |
|
1152 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1153 |
ac_prev=srcdir ;; |
1154 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1155 |
srcdir=$ac_optarg ;; |
1156 |
|
1157 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1158 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1159 |
ac_prev=sysconfdir ;; |
1160 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1161 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1162 |
sysconfdir=$ac_optarg ;; |
1163 |
|
1164 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1165 |
ac_prev=target_alias ;; |
1166 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1167 |
target_alias=$ac_optarg ;; |
1168 |
|
1169 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1170 |
verbose=yes ;; |
1171 |
|
1172 |
-version | --version | --versio | --versi | --vers | -V) |
1173 |
ac_init_version=: ;; |
1174 |
|
1175 |
-with-* | --with-*) |
1176 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1177 |
# Reject names that are not valid shell variable names. |
1178 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1179 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1180 |
ac_useropt_orig=$ac_useropt |
1181 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1182 |
case $ac_user_opts in |
1183 |
*" |
1184 |
"with_$ac_useropt" |
1185 |
"*) ;; |
1186 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1187 |
ac_unrecognized_sep=', ';; |
1188 |
esac |
1189 |
eval with_$ac_useropt=\$ac_optarg ;; |
1190 |
|
1191 |
-without-* | --without-*) |
1192 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1193 |
# Reject names that are not valid shell variable names. |
1194 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1195 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1196 |
ac_useropt_orig=$ac_useropt |
1197 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1198 |
case $ac_user_opts in |
1199 |
*" |
1200 |
"with_$ac_useropt" |
1201 |
"*) ;; |
1202 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1203 |
ac_unrecognized_sep=', ';; |
1204 |
esac |
1205 |
eval with_$ac_useropt=no ;; |
1206 |
|
1207 |
--x) |
1208 |
# Obsolete; use --with-x. |
1209 |
with_x=yes ;; |
1210 |
|
1211 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1212 |
| --x-incl | --x-inc | --x-in | --x-i) |
1213 |
ac_prev=x_includes ;; |
1214 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1215 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1216 |
x_includes=$ac_optarg ;; |
1217 |
|
1218 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1219 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1220 |
ac_prev=x_libraries ;; |
1221 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1222 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1223 |
x_libraries=$ac_optarg ;; |
1224 |
|
1225 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1226 |
Try \`$0 --help' for more information" |
1227 |
;; |
1228 |
|
1229 |
*=*) |
1230 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1231 |
# Reject names that are not valid shell variable names. |
1232 |
case $ac_envvar in #( |
1233 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1234 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1235 |
esac |
1236 |
eval $ac_envvar=\$ac_optarg |
1237 |
export $ac_envvar ;; |
1238 |
|
1239 |
*) |
1240 |
# FIXME: should be removed in autoconf 3.0. |
1241 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1242 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1243 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1244 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1245 |
;; |
1246 |
|
1247 |
esac |
1248 |
done |
1249 |
|
1250 |
if test -n "$ac_prev"; then |
1251 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1252 |
as_fn_error $? "missing argument to $ac_option" |
1253 |
fi |
1254 |
|
1255 |
if test -n "$ac_unrecognized_opts"; then |
1256 |
case $enable_option_checking in |
1257 |
no) ;; |
1258 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1259 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1260 |
esac |
1261 |
fi |
1262 |
|
1263 |
# Check all directory arguments for consistency. |
1264 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1265 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1266 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1267 |
libdir localedir mandir runstatedir |
1268 |
do |
1269 |
eval ac_val=\$$ac_var |
1270 |
# Remove trailing slashes. |
1271 |
case $ac_val in |
1272 |
*/ ) |
1273 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1274 |
eval $ac_var=\$ac_val;; |
1275 |
esac |
1276 |
# Be sure to have absolute directory names. |
1277 |
case $ac_val in |
1278 |
[\\/$]* | ?:[\\/]* ) continue;; |
1279 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1280 |
esac |
1281 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1282 |
done |
1283 |
|
1284 |
# There might be people who depend on the old broken behavior: `$host' |
1285 |
# used to hold the argument of --host etc. |
1286 |
# FIXME: To remove some day. |
1287 |
build=$build_alias |
1288 |
host=$host_alias |
1289 |
target=$target_alias |
1290 |
|
1291 |
# FIXME: To remove some day. |
1292 |
if test "x$host_alias" != x; then |
1293 |
if test "x$build_alias" = x; then |
1294 |
cross_compiling=maybe |
1295 |
elif test "x$build_alias" != "x$host_alias"; then |
1296 |
cross_compiling=yes |
1297 |
fi |
1298 |
fi |
1299 |
|
1300 |
ac_tool_prefix= |
1301 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1302 |
|
1303 |
test "$silent" = yes && exec 6>/dev/null |
1304 |
|
1305 |
|
1306 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1307 |
ac_ls_di=`ls -di .` && |
1308 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1309 |
as_fn_error $? "working directory cannot be determined" |
1310 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1311 |
as_fn_error $? "pwd does not report name of working directory" |
1312 |
|
1313 |
|
1314 |
# Find the source files, if location was not specified. |
1315 |
if test -z "$srcdir"; then |
1316 |
ac_srcdir_defaulted=yes |
1317 |
# Try the directory containing this script, then the parent directory. |
1318 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1319 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1320 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1321 |
X"$as_myself" : 'X\(//\)$' \| \ |
1322 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1323 |
printf "%s\n" X"$as_myself" | |
1324 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1325 |
s//\1/ |
1326 |
q |
1327 |
} |
1328 |
/^X\(\/\/\)[^/].*/{ |
1329 |
s//\1/ |
1330 |
q |
1331 |
} |
1332 |
/^X\(\/\/\)$/{ |
1333 |
s//\1/ |
1334 |
q |
1335 |
} |
1336 |
/^X\(\/\).*/{ |
1337 |
s//\1/ |
1338 |
q |
1339 |
} |
1340 |
s/.*/./; q'` |
1341 |
srcdir=$ac_confdir |
1342 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1343 |
srcdir=.. |
1344 |
fi |
1345 |
else |
1346 |
ac_srcdir_defaulted=no |
1347 |
fi |
1348 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1349 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1350 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1351 |
fi |
1352 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1353 |
ac_abs_confdir=`( |
1354 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1355 |
pwd)` |
1356 |
# When building in place, set srcdir=. |
1357 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1358 |
srcdir=. |
1359 |
fi |
1360 |
# Remove unnecessary trailing slashes from srcdir. |
1361 |
# Double slashes in file names in object file debugging info |
1362 |
# mess up M-x gdb in Emacs. |
1363 |
case $srcdir in |
1364 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1365 |
esac |
1366 |
for ac_var in $ac_precious_vars; do |
1367 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1368 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1369 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1370 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1371 |
done |
1372 |
|
1373 |
# |
1374 |
# Report the --help message. |
1375 |
# |
1376 |
if test "$ac_init_help" = "long"; then |
1377 |
# Omit some internal or obsolete options to make the list less imposing. |
1378 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1379 |
cat <<_ACEOF |
1380 |
\`configure' configures gvpe 3.1 to adapt to many kinds of systems. |
1381 |
|
1382 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1383 |
|
1384 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1385 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1386 |
|
1387 |
Defaults for the options are specified in brackets. |
1388 |
|
1389 |
Configuration: |
1390 |
-h, --help display this help and exit |
1391 |
--help=short display options specific to this package |
1392 |
--help=recursive display the short help of all the included packages |
1393 |
-V, --version display version information and exit |
1394 |
-q, --quiet, --silent do not print \`checking ...' messages |
1395 |
--cache-file=FILE cache test results in FILE [disabled] |
1396 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1397 |
-n, --no-create do not create output files |
1398 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1399 |
|
1400 |
Installation directories: |
1401 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1402 |
[$ac_default_prefix] |
1403 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1404 |
[PREFIX] |
1405 |
|
1406 |
By default, \`make install' will install all the files in |
1407 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1408 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1409 |
for instance \`--prefix=\$HOME'. |
1410 |
|
1411 |
For better control, use the options below. |
1412 |
|
1413 |
Fine tuning of the installation directories: |
1414 |
--bindir=DIR user executables [EPREFIX/bin] |
1415 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1416 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1417 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1418 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1419 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1420 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1421 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1422 |
--includedir=DIR C header files [PREFIX/include] |
1423 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1424 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1425 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1426 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1427 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1428 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1429 |
--docdir=DIR documentation root [DATAROOTDIR/doc/gvpe] |
1430 |
--htmldir=DIR html documentation [DOCDIR] |
1431 |
--dvidir=DIR dvi documentation [DOCDIR] |
1432 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1433 |
--psdir=DIR ps documentation [DOCDIR] |
1434 |
_ACEOF |
1435 |
|
1436 |
cat <<\_ACEOF |
1437 |
|
1438 |
Program names: |
1439 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1440 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1441 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1442 |
|
1443 |
System types: |
1444 |
--build=BUILD configure for building on BUILD [guessed] |
1445 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1446 |
--target=TARGET configure for building compilers for TARGET [HOST] |
1447 |
_ACEOF |
1448 |
fi |
1449 |
|
1450 |
if test -n "$ac_init_help"; then |
1451 |
case $ac_init_help in |
1452 |
short | recursive ) echo "Configuration of gvpe 3.1:";; |
1453 |
esac |
1454 |
cat <<\_ACEOF |
1455 |
|
1456 |
Optional Features: |
1457 |
--disable-option-checking ignore unrecognized --enable/--with options |
1458 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1459 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1460 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1461 |
--disable-silent-rules verbose build output (undo: "make V=0") |
1462 |
--enable-maintainer-mode |
1463 |
enable make rules and dependencies not useful (and |
1464 |
sometimes confusing) to the casual installer |
1465 |
--enable-dependency-tracking |
1466 |
do not reject slow dependency extractors |
1467 |
--disable-dependency-tracking |
1468 |
speeds up one-time build |
1469 |
--disable-rpath do not hardcode runtime library paths |
1470 |
--disable-nls do not use Native Language Support |
1471 |
--enable-iftype=TYPE/SUBTYPE |
1472 |
Use kernel/net device interface TYPE/SUBTYPE. |
1473 |
Working combinations are (see doc/gvpe.osdep.5.pod): |
1474 |
"native/linux" "tincd/linux" "tincd/netbsd" |
1475 |
"tincd/freebsd" "tincd/openbsd" "native/darwin" |
1476 |
"tincd/darwin" "native/cygwin"; Untested |
1477 |
combinations are: "tincd/bsd" "tincd/solaris" |
1478 |
"tincd/mingw" "tincd/raw_socket" "tincd/uml_socket"; |
1479 |
Broken combinations are: "tincd/cygwin"; The default |
1480 |
is to autodetect. |
1481 |
--enable-threads try to use threads for long-running asynchronous |
1482 |
operations (default enabled). |
1483 |
--enable-static-daemon enable statically linked daemon. |
1484 |
--disable-icmp enable icmp protocol support (default enabled). |
1485 |
--disable-tcp enable tcp protocol support (default enabled). |
1486 |
--disable-http-proxy enable http proxy connect support (default enabled). |
1487 |
--enable-dns enable dns tunnel protocol support (default |
1488 |
disabled). |
1489 |
--enable-rsa-length=BITS |
1490 |
use BITS rsa keys (default 3072). Allowed values are |
1491 |
2048-10240. |
1492 |
--enable-hmac-length=BYTES |
1493 |
use a hmac of length BYTES bytes (default 12). |
1494 |
Allowed values are 4, 8, 12, 16. |
1495 |
--enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500). |
1496 |
Use 9100 for jumbogram support. |
1497 |
--disable-compression Disable compression support. |
1498 |
--enable-cipher=CIPHER Select the symmetric cipher (default "aes-128"). |
1499 |
Must be one of "aes-128" (rijndael), "aes-192", or |
1500 |
"aes-256". |
1501 |
--enable-hmac-digest=HMAC |
1502 |
Select the HMAC digest algorithm to use (default |
1503 |
"sha1"). Must be one of "sha512", "sha256", "sha1", |
1504 |
"ripemd160", "whirlpool". |
1505 |
--enable-auth-digest=DIGEST |
1506 |
Select the hmac algorithm to use (default "sha512"). |
1507 |
Must be one of "sha512", "sha256", "whirlpool". |
1508 |
|
1509 |
Optional Packages: |
1510 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1511 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1512 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
1513 |
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
1514 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
1515 |
--with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1516 |
--without-libintl-prefix don't search for libintl in includedir and libdir |
1517 |
--with-kernel=dir give the directory with kernel sources |
1518 |
(default: /usr/src/linux) |
1519 |
|
1520 |
Some influential environment variables: |
1521 |
CC C compiler command |
1522 |
CFLAGS C compiler flags |
1523 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1524 |
nonstandard directory <lib dir> |
1525 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1526 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1527 |
you have headers in a nonstandard directory <include dir> |
1528 |
CPP C preprocessor |
1529 |
CXX C++ compiler command |
1530 |
CXXFLAGS C++ compiler flags |
1531 |
PKG_CONFIG path to pkg-config utility |
1532 |
PKG_CONFIG_PATH |
1533 |
directories to add to pkg-config's search path |
1534 |
PKG_CONFIG_LIBDIR |
1535 |
path overriding pkg-config's built-in search path |
1536 |
LIBCRYPTO_CFLAGS |
1537 |
C compiler flags for LIBCRYPTO, overriding pkg-config |
1538 |
LIBCRYPTO_LIBS |
1539 |
linker flags for LIBCRYPTO, overriding pkg-config |
1540 |
|
1541 |
Use these variables to override the choices made by `configure' or to help |
1542 |
it to find libraries and programs with nonstandard names/locations. |
1543 |
|
1544 |
Report bugs to the package provider. |
1545 |
_ACEOF |
1546 |
ac_status=$? |
1547 |
fi |
1548 |
|
1549 |
if test "$ac_init_help" = "recursive"; then |
1550 |
# If there are subdirs, report their specific --help. |
1551 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1552 |
test -d "$ac_dir" || |
1553 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1554 |
continue |
1555 |
ac_builddir=. |
1556 |
|
1557 |
case "$ac_dir" in |
1558 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1559 |
*) |
1560 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1561 |
# A ".." for each directory in $ac_dir_suffix. |
1562 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1563 |
case $ac_top_builddir_sub in |
1564 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1565 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1566 |
esac ;; |
1567 |
esac |
1568 |
ac_abs_top_builddir=$ac_pwd |
1569 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1570 |
# for backward compatibility: |
1571 |
ac_top_builddir=$ac_top_build_prefix |
1572 |
|
1573 |
case $srcdir in |
1574 |
.) # We are building in place. |
1575 |
ac_srcdir=. |
1576 |
ac_top_srcdir=$ac_top_builddir_sub |
1577 |
ac_abs_top_srcdir=$ac_pwd ;; |
1578 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1579 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1580 |
ac_top_srcdir=$srcdir |
1581 |
ac_abs_top_srcdir=$srcdir ;; |
1582 |
*) # Relative name. |
1583 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1584 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1585 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1586 |
esac |
1587 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1588 |
|
1589 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1590 |
# Check for configure.gnu first; this name is used for a wrapper for |
1591 |
# Metaconfig's "Configure" on case-insensitive file systems. |
1592 |
if test -f "$ac_srcdir/configure.gnu"; then |
1593 |
echo && |
1594 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1595 |
elif test -f "$ac_srcdir/configure"; then |
1596 |
echo && |
1597 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1598 |
else |
1599 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1600 |
fi || ac_status=$? |
1601 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1602 |
done |
1603 |
fi |
1604 |
|
1605 |
test -n "$ac_init_help" && exit $ac_status |
1606 |
if $ac_init_version; then |
1607 |
cat <<\_ACEOF |
1608 |
gvpe configure 3.1 |
1609 |
generated by GNU Autoconf 2.71 |
1610 |
|
1611 |
Copyright (C) 2021 Free Software Foundation, Inc. |
1612 |
This configure script is free software; the Free Software Foundation |
1613 |
gives unlimited permission to copy, distribute and modify it. |
1614 |
_ACEOF |
1615 |
exit |
1616 |
fi |
1617 |
|
1618 |
## ------------------------ ## |
1619 |
## Autoconf initialization. ## |
1620 |
## ------------------------ ## |
1621 |
|
1622 |
# ac_fn_c_try_compile LINENO |
1623 |
# -------------------------- |
1624 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1625 |
ac_fn_c_try_compile () |
1626 |
{ |
1627 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1628 |
rm -f conftest.$ac_objext conftest.beam |
1629 |
if { { ac_try="$ac_compile" |
1630 |
case "(($ac_try" in |
1631 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1632 |
*) ac_try_echo=$ac_try;; |
1633 |
esac |
1634 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1635 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1636 |
(eval "$ac_compile") 2>conftest.err |
1637 |
ac_status=$? |
1638 |
if test -s conftest.err; then |
1639 |
grep -v '^ *+' conftest.err >conftest.er1 |
1640 |
cat conftest.er1 >&5 |
1641 |
mv -f conftest.er1 conftest.err |
1642 |
fi |
1643 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1644 |
test $ac_status = 0; } && { |
1645 |
test -z "$ac_c_werror_flag" || |
1646 |
test ! -s conftest.err |
1647 |
} && test -s conftest.$ac_objext |
1648 |
then : |
1649 |
ac_retval=0 |
1650 |
else $as_nop |
1651 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1652 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1653 |
|
1654 |
ac_retval=1 |
1655 |
fi |
1656 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1657 |
as_fn_set_status $ac_retval |
1658 |
|
1659 |
} # ac_fn_c_try_compile |
1660 |
|
1661 |
# ac_fn_c_try_link LINENO |
1662 |
# ----------------------- |
1663 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1664 |
ac_fn_c_try_link () |
1665 |
{ |
1666 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1667 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1668 |
if { { ac_try="$ac_link" |
1669 |
case "(($ac_try" in |
1670 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1671 |
*) ac_try_echo=$ac_try;; |
1672 |
esac |
1673 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1674 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1675 |
(eval "$ac_link") 2>conftest.err |
1676 |
ac_status=$? |
1677 |
if test -s conftest.err; then |
1678 |
grep -v '^ *+' conftest.err >conftest.er1 |
1679 |
cat conftest.er1 >&5 |
1680 |
mv -f conftest.er1 conftest.err |
1681 |
fi |
1682 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1683 |
test $ac_status = 0; } && { |
1684 |
test -z "$ac_c_werror_flag" || |
1685 |
test ! -s conftest.err |
1686 |
} && test -s conftest$ac_exeext && { |
1687 |
test "$cross_compiling" = yes || |
1688 |
test -x conftest$ac_exeext |
1689 |
} |
1690 |
then : |
1691 |
ac_retval=0 |
1692 |
else $as_nop |
1693 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1694 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1695 |
|
1696 |
ac_retval=1 |
1697 |
fi |
1698 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1699 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1700 |
# interfere with the next link command; also delete a directory that is |
1701 |
# left behind by Apple's compiler. We do this before executing the actions. |
1702 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1703 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1704 |
as_fn_set_status $ac_retval |
1705 |
|
1706 |
} # ac_fn_c_try_link |
1707 |
|
1708 |
# ac_fn_c_try_cpp LINENO |
1709 |
# ---------------------- |
1710 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1711 |
ac_fn_c_try_cpp () |
1712 |
{ |
1713 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1714 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1715 |
case "(($ac_try" in |
1716 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1717 |
*) ac_try_echo=$ac_try;; |
1718 |
esac |
1719 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1720 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1721 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1722 |
ac_status=$? |
1723 |
if test -s conftest.err; then |
1724 |
grep -v '^ *+' conftest.err >conftest.er1 |
1725 |
cat conftest.er1 >&5 |
1726 |
mv -f conftest.er1 conftest.err |
1727 |
fi |
1728 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1729 |
test $ac_status = 0; } > conftest.i && { |
1730 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1731 |
test ! -s conftest.err |
1732 |
} |
1733 |
then : |
1734 |
ac_retval=0 |
1735 |
else $as_nop |
1736 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1737 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1738 |
|
1739 |
ac_retval=1 |
1740 |
fi |
1741 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1742 |
as_fn_set_status $ac_retval |
1743 |
|
1744 |
} # ac_fn_c_try_cpp |
1745 |
|
1746 |
# ac_fn_cxx_try_compile LINENO |
1747 |
# ---------------------------- |
1748 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1749 |
ac_fn_cxx_try_compile () |
1750 |
{ |
1751 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1752 |
rm -f conftest.$ac_objext conftest.beam |
1753 |
if { { ac_try="$ac_compile" |
1754 |
case "(($ac_try" in |
1755 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1756 |
*) ac_try_echo=$ac_try;; |
1757 |
esac |
1758 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1759 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1760 |
(eval "$ac_compile") 2>conftest.err |
1761 |
ac_status=$? |
1762 |
if test -s conftest.err; then |
1763 |
grep -v '^ *+' conftest.err >conftest.er1 |
1764 |
cat conftest.er1 >&5 |
1765 |
mv -f conftest.er1 conftest.err |
1766 |
fi |
1767 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1768 |
test $ac_status = 0; } && { |
1769 |
test -z "$ac_cxx_werror_flag" || |
1770 |
test ! -s conftest.err |
1771 |
} && test -s conftest.$ac_objext |
1772 |
then : |
1773 |
ac_retval=0 |
1774 |
else $as_nop |
1775 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1776 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1777 |
|
1778 |
ac_retval=1 |
1779 |
fi |
1780 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1781 |
as_fn_set_status $ac_retval |
1782 |
|
1783 |
} # ac_fn_cxx_try_compile |
1784 |
|
1785 |
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
1786 |
# --------------------------------------------------------- |
1787 |
# Tests whether HEADER exists and can be compiled using the include files in |
1788 |
# INCLUDES, setting the cache variable VAR accordingly. |
1789 |
ac_fn_cxx_check_header_compile () |
1790 |
{ |
1791 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1792 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1793 |
printf %s "checking for $2... " >&6; } |
1794 |
if eval test \${$3+y} |
1795 |
then : |
1796 |
printf %s "(cached) " >&6 |
1797 |
else $as_nop |
1798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1799 |
/* end confdefs.h. */ |
1800 |
$4 |
1801 |
#include <$2> |
1802 |
_ACEOF |
1803 |
if ac_fn_cxx_try_compile "$LINENO" |
1804 |
then : |
1805 |
eval "$3=yes" |
1806 |
else $as_nop |
1807 |
eval "$3=no" |
1808 |
fi |
1809 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1810 |
fi |
1811 |
eval ac_res=\$$3 |
1812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1813 |
printf "%s\n" "$ac_res" >&6; } |
1814 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1815 |
|
1816 |
} # ac_fn_cxx_check_header_compile |
1817 |
|
1818 |
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
1819 |
# --------------------------------------------- |
1820 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1821 |
# variable VAR accordingly. |
1822 |
ac_fn_cxx_check_type () |
1823 |
{ |
1824 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1826 |
printf %s "checking for $2... " >&6; } |
1827 |
if eval test \${$3+y} |
1828 |
then : |
1829 |
printf %s "(cached) " >&6 |
1830 |
else $as_nop |
1831 |
eval "$3=no" |
1832 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1833 |
/* end confdefs.h. */ |
1834 |
$4 |
1835 |
int |
1836 |
main (void) |
1837 |
{ |
1838 |
if (sizeof ($2)) |
1839 |
return 0; |
1840 |
; |
1841 |
return 0; |
1842 |
} |
1843 |
_ACEOF |
1844 |
if ac_fn_cxx_try_compile "$LINENO" |
1845 |
then : |
1846 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1847 |
/* end confdefs.h. */ |
1848 |
$4 |
1849 |
int |
1850 |
main (void) |
1851 |
{ |
1852 |
if (sizeof (($2))) |
1853 |
return 0; |
1854 |
; |
1855 |
return 0; |
1856 |
} |
1857 |
_ACEOF |
1858 |
if ac_fn_cxx_try_compile "$LINENO" |
1859 |
then : |
1860 |
|
1861 |
else $as_nop |
1862 |
eval "$3=yes" |
1863 |
fi |
1864 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1865 |
fi |
1866 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1867 |
fi |
1868 |
eval ac_res=\$$3 |
1869 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1870 |
printf "%s\n" "$ac_res" >&6; } |
1871 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1872 |
|
1873 |
} # ac_fn_cxx_check_type |
1874 |
|
1875 |
# ac_fn_c_check_func LINENO FUNC VAR |
1876 |
# ---------------------------------- |
1877 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1878 |
ac_fn_c_check_func () |
1879 |
{ |
1880 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1881 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1882 |
printf %s "checking for $2... " >&6; } |
1883 |
if eval test \${$3+y} |
1884 |
then : |
1885 |
printf %s "(cached) " >&6 |
1886 |
else $as_nop |
1887 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1888 |
/* end confdefs.h. */ |
1889 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1890 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1891 |
#define $2 innocuous_$2 |
1892 |
|
1893 |
/* System header to define __stub macros and hopefully few prototypes, |
1894 |
which can conflict with char $2 (); below. */ |
1895 |
|
1896 |
#include <limits.h> |
1897 |
#undef $2 |
1898 |
|
1899 |
/* Override any GCC internal prototype to avoid an error. |
1900 |
Use char because int might match the return type of a GCC |
1901 |
builtin and then its argument prototype would still apply. */ |
1902 |
#ifdef __cplusplus |
1903 |
extern "C" |
1904 |
#endif |
1905 |
char $2 (); |
1906 |
/* The GNU C library defines this for functions which it implements |
1907 |
to always fail with ENOSYS. Some functions are actually named |
1908 |
something starting with __ and the normal name is an alias. */ |
1909 |
#if defined __stub_$2 || defined __stub___$2 |
1910 |
choke me |
1911 |
#endif |
1912 |
|
1913 |
int |
1914 |
main (void) |
1915 |
{ |
1916 |
return $2 (); |
1917 |
; |
1918 |
return 0; |
1919 |
} |
1920 |
_ACEOF |
1921 |
if ac_fn_c_try_link "$LINENO" |
1922 |
then : |
1923 |
eval "$3=yes" |
1924 |
else $as_nop |
1925 |
eval "$3=no" |
1926 |
fi |
1927 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1928 |
conftest$ac_exeext conftest.$ac_ext |
1929 |
fi |
1930 |
eval ac_res=\$$3 |
1931 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1932 |
printf "%s\n" "$ac_res" >&6; } |
1933 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1934 |
|
1935 |
} # ac_fn_c_check_func |
1936 |
|
1937 |
# ac_fn_c_try_run LINENO |
1938 |
# ---------------------- |
1939 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
1940 |
# executables *can* be run. |
1941 |
ac_fn_c_try_run () |
1942 |
{ |
1943 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1944 |
if { { ac_try="$ac_link" |
1945 |
case "(($ac_try" in |
1946 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1947 |
*) ac_try_echo=$ac_try;; |
1948 |
esac |
1949 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1950 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1951 |
(eval "$ac_link") 2>&5 |
1952 |
ac_status=$? |
1953 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1954 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1955 |
{ { case "(($ac_try" in |
1956 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1957 |
*) ac_try_echo=$ac_try;; |
1958 |
esac |
1959 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1960 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1961 |
(eval "$ac_try") 2>&5 |
1962 |
ac_status=$? |
1963 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1964 |
test $ac_status = 0; }; } |
1965 |
then : |
1966 |
ac_retval=0 |
1967 |
else $as_nop |
1968 |
printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
1969 |
printf "%s\n" "$as_me: failed program was:" >&5 |
1970 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1971 |
|
1972 |
ac_retval=$ac_status |
1973 |
fi |
1974 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1975 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1976 |
as_fn_set_status $ac_retval |
1977 |
|
1978 |
} # ac_fn_c_try_run |
1979 |
|
1980 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1981 |
# ------------------------------------------------------- |
1982 |
# Tests whether HEADER exists and can be compiled using the include files in |
1983 |
# INCLUDES, setting the cache variable VAR accordingly. |
1984 |
ac_fn_c_check_header_compile () |
1985 |
{ |
1986 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1988 |
printf %s "checking for $2... " >&6; } |
1989 |
if eval test \${$3+y} |
1990 |
then : |
1991 |
printf %s "(cached) " >&6 |
1992 |
else $as_nop |
1993 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1994 |
/* end confdefs.h. */ |
1995 |
$4 |
1996 |
#include <$2> |
1997 |
_ACEOF |
1998 |
if ac_fn_c_try_compile "$LINENO" |
1999 |
then : |
2000 |
eval "$3=yes" |
2001 |
else $as_nop |
2002 |
eval "$3=no" |
2003 |
fi |
2004 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2005 |
fi |
2006 |
eval ac_res=\$$3 |
2007 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2008 |
printf "%s\n" "$ac_res" >&6; } |
2009 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2010 |
|
2011 |
} # ac_fn_c_check_header_compile |
2012 |
|
2013 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2014 |
# ------------------------------------------- |
2015 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
2016 |
# variable VAR accordingly. |
2017 |
ac_fn_c_check_type () |
2018 |
{ |
2019 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2020 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2021 |
printf %s "checking for $2... " >&6; } |
2022 |
if eval test \${$3+y} |
2023 |
then : |
2024 |
printf %s "(cached) " >&6 |
2025 |
else $as_nop |
2026 |
eval "$3=no" |
2027 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2028 |
/* end confdefs.h. */ |
2029 |
$4 |
2030 |
int |
2031 |
main (void) |
2032 |
{ |
2033 |
if (sizeof ($2)) |
2034 |
return 0; |
2035 |
; |
2036 |
return 0; |
2037 |
} |
2038 |
_ACEOF |
2039 |
if ac_fn_c_try_compile "$LINENO" |
2040 |
then : |
2041 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2042 |
/* end confdefs.h. */ |
2043 |
$4 |
2044 |
int |
2045 |
main (void) |
2046 |
{ |
2047 |
if (sizeof (($2))) |
2048 |
return 0; |
2049 |
; |
2050 |
return 0; |
2051 |
} |
2052 |
_ACEOF |
2053 |
if ac_fn_c_try_compile "$LINENO" |
2054 |
then : |
2055 |
|
2056 |
else $as_nop |
2057 |
eval "$3=yes" |
2058 |
fi |
2059 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2060 |
fi |
2061 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2062 |
fi |
2063 |
eval ac_res=\$$3 |
2064 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2065 |
printf "%s\n" "$ac_res" >&6; } |
2066 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2067 |
|
2068 |
} # ac_fn_c_check_type |
2069 |
|
2070 |
# ac_fn_cxx_try_link LINENO |
2071 |
# ------------------------- |
2072 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
2073 |
ac_fn_cxx_try_link () |
2074 |
{ |
2075 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2076 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
2077 |
if { { ac_try="$ac_link" |
2078 |
case "(($ac_try" in |
2079 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2080 |
*) ac_try_echo=$ac_try;; |
2081 |
esac |
2082 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2083 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2084 |
(eval "$ac_link") 2>conftest.err |
2085 |
ac_status=$? |
2086 |
if test -s conftest.err; then |
2087 |
grep -v '^ *+' conftest.err >conftest.er1 |
2088 |
cat conftest.er1 >&5 |
2089 |
mv -f conftest.er1 conftest.err |
2090 |
fi |
2091 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2092 |
test $ac_status = 0; } && { |
2093 |
test -z "$ac_cxx_werror_flag" || |
2094 |
test ! -s conftest.err |
2095 |
} && test -s conftest$ac_exeext && { |
2096 |
test "$cross_compiling" = yes || |
2097 |
test -x conftest$ac_exeext |
2098 |
} |
2099 |
then : |
2100 |
ac_retval=0 |
2101 |
else $as_nop |
2102 |
printf "%s\n" "$as_me: failed program was:" >&5 |
2103 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2104 |
|
2105 |
ac_retval=1 |
2106 |
fi |
2107 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2108 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
2109 |
# interfere with the next link command; also delete a directory that is |
2110 |
# left behind by Apple's compiler. We do this before executing the actions. |
2111 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2112 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2113 |
as_fn_set_status $ac_retval |
2114 |
|
2115 |
} # ac_fn_cxx_try_link |
2116 |
ac_configure_args_raw= |
2117 |
for ac_arg |
2118 |
do |
2119 |
case $ac_arg in |
2120 |
*\'*) |
2121 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2122 |
esac |
2123 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
2124 |
done |
2125 |
|
2126 |
case $ac_configure_args_raw in |
2127 |
*$as_nl*) |
2128 |
ac_safe_unquote= ;; |
2129 |
*) |
2130 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
2131 |
ac_unsafe_a="$ac_unsafe_z#~" |
2132 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
2133 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
2134 |
esac |
2135 |
|
2136 |
cat >config.log <<_ACEOF |
2137 |
This file contains any messages produced by compilers while |
2138 |
running configure, to aid debugging if configure makes a mistake. |
2139 |
|
2140 |
It was created by gvpe $as_me 3.1, which was |
2141 |
generated by GNU Autoconf 2.71. Invocation command line was |
2142 |
|
2143 |
$ $0$ac_configure_args_raw |
2144 |
|
2145 |
_ACEOF |
2146 |
exec 5>>config.log |
2147 |
{ |
2148 |
cat <<_ASUNAME |
2149 |
## --------- ## |
2150 |
## Platform. ## |
2151 |
## --------- ## |
2152 |
|
2153 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2154 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2155 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2156 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2157 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2158 |
|
2159 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2160 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2161 |
|
2162 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2163 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2164 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2165 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2166 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2167 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2168 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2169 |
|
2170 |
_ASUNAME |
2171 |
|
2172 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2173 |
for as_dir in $PATH |
2174 |
do |
2175 |
IFS=$as_save_IFS |
2176 |
case $as_dir in #((( |
2177 |
'') as_dir=./ ;; |
2178 |
*/) ;; |
2179 |
*) as_dir=$as_dir/ ;; |
2180 |
esac |
2181 |
printf "%s\n" "PATH: $as_dir" |
2182 |
done |
2183 |
IFS=$as_save_IFS |
2184 |
|
2185 |
} >&5 |
2186 |
|
2187 |
cat >&5 <<_ACEOF |
2188 |
|
2189 |
|
2190 |
## ----------- ## |
2191 |
## Core tests. ## |
2192 |
## ----------- ## |
2193 |
|
2194 |
_ACEOF |
2195 |
|
2196 |
|
2197 |
# Keep a trace of the command line. |
2198 |
# Strip out --no-create and --no-recursion so they do not pile up. |
2199 |
# Strip out --silent because we don't want to record it for future runs. |
2200 |
# Also quote any args containing shell meta-characters. |
2201 |
# Make two passes to allow for proper duplicate-argument suppression. |
2202 |
ac_configure_args= |
2203 |
ac_configure_args0= |
2204 |
ac_configure_args1= |
2205 |
ac_must_keep_next=false |
2206 |
for ac_pass in 1 2 |
2207 |
do |
2208 |
for ac_arg |
2209 |
do |
2210 |
case $ac_arg in |
2211 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2212 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2213 |
| -silent | --silent | --silen | --sile | --sil) |
2214 |
continue ;; |
2215 |
*\'*) |
2216 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2217 |
esac |
2218 |
case $ac_pass in |
2219 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2220 |
2) |
2221 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
2222 |
if test $ac_must_keep_next = true; then |
2223 |
ac_must_keep_next=false # Got value, back to normal. |
2224 |
else |
2225 |
case $ac_arg in |
2226 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2227 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2228 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2229 |
| -with-* | --with-* | -without-* | --without-* | --x) |
2230 |
case "$ac_configure_args0 " in |
2231 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2232 |
esac |
2233 |
;; |
2234 |
-* ) ac_must_keep_next=true ;; |
2235 |
esac |
2236 |
fi |
2237 |
as_fn_append ac_configure_args " '$ac_arg'" |
2238 |
;; |
2239 |
esac |
2240 |
done |
2241 |
done |
2242 |
{ ac_configure_args0=; unset ac_configure_args0;} |
2243 |
{ ac_configure_args1=; unset ac_configure_args1;} |
2244 |
|
2245 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2246 |
# config.log. We remove comments because anyway the quotes in there |
2247 |
# would cause problems or look ugly. |
2248 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2249 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2250 |
trap 'exit_status=$? |
2251 |
# Sanitize IFS. |
2252 |
IFS=" "" $as_nl" |
2253 |
# Save into config.log some information that might help in debugging. |
2254 |
{ |
2255 |
echo |
2256 |
|
2257 |
printf "%s\n" "## ---------------- ## |
2258 |
## Cache variables. ## |
2259 |
## ---------------- ##" |
2260 |
echo |
2261 |
# The following way of writing the cache mishandles newlines in values, |
2262 |
( |
2263 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2264 |
eval ac_val=\$$ac_var |
2265 |
case $ac_val in #( |
2266 |
*${as_nl}*) |
2267 |
case $ac_var in #( |
2268 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2269 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2270 |
esac |
2271 |
case $ac_var in #( |
2272 |
_ | IFS | as_nl) ;; #( |
2273 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2274 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2275 |
esac ;; |
2276 |
esac |
2277 |
done |
2278 |
(set) 2>&1 | |
2279 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2280 |
*${as_nl}ac_space=\ *) |
2281 |
sed -n \ |
2282 |
"s/'\''/'\''\\\\'\'''\''/g; |
2283 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2284 |
;; #( |
2285 |
*) |
2286 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2287 |
;; |
2288 |
esac | |
2289 |
sort |
2290 |
) |
2291 |
echo |
2292 |
|
2293 |
printf "%s\n" "## ----------------- ## |
2294 |
## Output variables. ## |
2295 |
## ----------------- ##" |
2296 |
echo |
2297 |
for ac_var in $ac_subst_vars |
2298 |
do |
2299 |
eval ac_val=\$$ac_var |
2300 |
case $ac_val in |
2301 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2302 |
esac |
2303 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
2304 |
done | sort |
2305 |
echo |
2306 |
|
2307 |
if test -n "$ac_subst_files"; then |
2308 |
printf "%s\n" "## ------------------- ## |
2309 |
## File substitutions. ## |
2310 |
## ------------------- ##" |
2311 |
echo |
2312 |
for ac_var in $ac_subst_files |
2313 |
do |
2314 |
eval ac_val=\$$ac_var |
2315 |
case $ac_val in |
2316 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2317 |
esac |
2318 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
2319 |
done | sort |
2320 |
echo |
2321 |
fi |
2322 |
|
2323 |
if test -s confdefs.h; then |
2324 |
printf "%s\n" "## ----------- ## |
2325 |
## confdefs.h. ## |
2326 |
## ----------- ##" |
2327 |
echo |
2328 |
cat confdefs.h |
2329 |
echo |
2330 |
fi |
2331 |
test "$ac_signal" != 0 && |
2332 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
2333 |
printf "%s\n" "$as_me: exit $exit_status" |
2334 |
} >&5 |
2335 |
rm -f core *.core core.conftest.* && |
2336 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2337 |
exit $exit_status |
2338 |
' 0 |
2339 |
for ac_signal in 1 2 13 15; do |
2340 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2341 |
done |
2342 |
ac_signal=0 |
2343 |
|
2344 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2345 |
rm -f -r conftest* confdefs.h |
2346 |
|
2347 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
2348 |
|
2349 |
# Predefined preprocessor variables. |
2350 |
|
2351 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
2352 |
|
2353 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
2354 |
|
2355 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
2356 |
|
2357 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
2358 |
|
2359 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
2360 |
|
2361 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
2362 |
|
2363 |
|
2364 |
# Let the site file select an alternate cache file if it wants to. |
2365 |
# Prefer an explicitly selected file to automatically selected ones. |
2366 |
if test -n "$CONFIG_SITE"; then |
2367 |
ac_site_files="$CONFIG_SITE" |
2368 |
elif test "x$prefix" != xNONE; then |
2369 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
2370 |
else |
2371 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
2372 |
fi |
2373 |
|
2374 |
for ac_site_file in $ac_site_files |
2375 |
do |
2376 |
case $ac_site_file in #( |
2377 |
*/*) : |
2378 |
;; #( |
2379 |
*) : |
2380 |
ac_site_file=./$ac_site_file ;; |
2381 |
esac |
2382 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
2383 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2384 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
2385 |
sed 's/^/| /' "$ac_site_file" >&5 |
2386 |
. "$ac_site_file" \ |
2387 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2388 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2389 |
as_fn_error $? "failed to load site script $ac_site_file |
2390 |
See \`config.log' for more details" "$LINENO" 5; } |
2391 |
fi |
2392 |
done |
2393 |
|
2394 |
if test -r "$cache_file"; then |
2395 |
# Some versions of bash will fail to source /dev/null (special files |
2396 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2397 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2398 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2399 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
2400 |
case $cache_file in |
2401 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2402 |
*) . "./$cache_file";; |
2403 |
esac |
2404 |
fi |
2405 |
else |
2406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2407 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
2408 |
>$cache_file |
2409 |
fi |
2410 |
|
2411 |
# Test code for whether the C compiler supports C89 (global declarations) |
2412 |
ac_c_conftest_c89_globals=' |
2413 |
/* Does the compiler advertise C89 conformance? |
2414 |
Do not test the value of __STDC__, because some compilers set it to 0 |
2415 |
while being otherwise adequately conformant. */ |
2416 |
#if !defined __STDC__ |
2417 |
# error "Compiler does not advertise C89 conformance" |
2418 |
#endif |
2419 |
|
2420 |
#include <stddef.h> |
2421 |
#include <stdarg.h> |
2422 |
struct stat; |
2423 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
2424 |
struct buf { int x; }; |
2425 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
2426 |
static char *e (p, i) |
2427 |
char **p; |
2428 |
int i; |
2429 |
{ |
2430 |
return p[i]; |
2431 |
} |
2432 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2433 |
{ |
2434 |
char *s; |
2435 |
va_list v; |
2436 |
va_start (v,p); |
2437 |
s = g (p, va_arg (v,int)); |
2438 |
va_end (v); |
2439 |
return s; |
2440 |
} |
2441 |
|
2442 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2443 |
function prototypes and stuff, but not \xHH hex character constants. |
2444 |
These do not provoke an error unfortunately, instead are silently treated |
2445 |
as an "x". The following induces an error, until -std is added to get |
2446 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
2447 |
array size at least. It is necessary to write \x00 == 0 to get something |
2448 |
that is true only with -std. */ |
2449 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
2450 |
|
2451 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2452 |
inside strings and character constants. */ |
2453 |
#define FOO(x) '\''x'\'' |
2454 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
2455 |
|
2456 |
int test (int i, double x); |
2457 |
struct s1 {int (*f) (int a);}; |
2458 |
struct s2 {int (*f) (double a);}; |
2459 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
2460 |
int, int);' |
2461 |
|
2462 |
# Test code for whether the C compiler supports C89 (body of main). |
2463 |
ac_c_conftest_c89_main=' |
2464 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
2465 |
' |
2466 |
|
2467 |
# Test code for whether the C compiler supports C99 (global declarations) |
2468 |
ac_c_conftest_c99_globals=' |
2469 |
// Does the compiler advertise C99 conformance? |
2470 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
2471 |
# error "Compiler does not advertise C99 conformance" |
2472 |
#endif |
2473 |
|
2474 |
#include <stdbool.h> |
2475 |
extern int puts (const char *); |
2476 |
extern int printf (const char *, ...); |
2477 |
extern int dprintf (int, const char *, ...); |
2478 |
extern void *malloc (size_t); |
2479 |
|
2480 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
2481 |
// dprintf is used instead of fprintf to avoid needing to declare |
2482 |
// FILE and stderr. |
2483 |
#define debug(...) dprintf (2, __VA_ARGS__) |
2484 |
#define showlist(...) puts (#__VA_ARGS__) |
2485 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
2486 |
static void |
2487 |
test_varargs_macros (void) |
2488 |
{ |
2489 |
int x = 1234; |
2490 |
int y = 5678; |
2491 |
debug ("Flag"); |
2492 |
debug ("X = %d\n", x); |
2493 |
showlist (The first, second, and third items.); |
2494 |
report (x>y, "x is %d but y is %d", x, y); |
2495 |
} |
2496 |
|
2497 |
// Check long long types. |
2498 |
#define BIG64 18446744073709551615ull |
2499 |
#define BIG32 4294967295ul |
2500 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
2501 |
#if !BIG_OK |
2502 |
#error "your preprocessor is broken" |
2503 |
#endif |
2504 |
#if BIG_OK |
2505 |
#else |
2506 |
#error "your preprocessor is broken" |
2507 |
#endif |
2508 |
static long long int bignum = -9223372036854775807LL; |
2509 |
static unsigned long long int ubignum = BIG64; |
2510 |
|
2511 |
struct incomplete_array |
2512 |
{ |
2513 |
int datasize; |
2514 |
double data[]; |
2515 |
}; |
2516 |
|
2517 |
struct named_init { |
2518 |
int number; |
2519 |
const wchar_t *name; |
2520 |
double average; |
2521 |
}; |
2522 |
|
2523 |
typedef const char *ccp; |
2524 |
|
2525 |
static inline int |
2526 |
test_restrict (ccp restrict text) |
2527 |
{ |
2528 |
// See if C++-style comments work. |
2529 |
// Iterate through items via the restricted pointer. |
2530 |
// Also check for declarations in for loops. |
2531 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
2532 |
continue; |
2533 |
return 0; |
2534 |
} |
2535 |
|
2536 |
// Check varargs and va_copy. |
2537 |
static bool |
2538 |
test_varargs (const char *format, ...) |
2539 |
{ |
2540 |
va_list args; |
2541 |
va_start (args, format); |
2542 |
va_list args_copy; |
2543 |
va_copy (args_copy, args); |
2544 |
|
2545 |
const char *str = ""; |
2546 |
int number = 0; |
2547 |
float fnumber = 0; |
2548 |
|
2549 |
while (*format) |
2550 |
{ |
2551 |
switch (*format++) |
2552 |
{ |
2553 |
case '\''s'\'': // string |
2554 |
str = va_arg (args_copy, const char *); |
2555 |
break; |
2556 |
case '\''d'\'': // int |
2557 |
number = va_arg (args_copy, int); |
2558 |
break; |
2559 |
case '\''f'\'': // float |
2560 |
fnumber = va_arg (args_copy, double); |
2561 |
break; |
2562 |
default: |
2563 |
break; |
2564 |
} |
2565 |
} |
2566 |
va_end (args_copy); |
2567 |
va_end (args); |
2568 |
|
2569 |
return *str && number && fnumber; |
2570 |
} |
2571 |
' |
2572 |
|
2573 |
# Test code for whether the C compiler supports C99 (body of main). |
2574 |
ac_c_conftest_c99_main=' |
2575 |
// Check bool. |
2576 |
_Bool success = false; |
2577 |
success |= (argc != 0); |
2578 |
|
2579 |
// Check restrict. |
2580 |
if (test_restrict ("String literal") == 0) |
2581 |
success = true; |
2582 |
char *restrict newvar = "Another string"; |
2583 |
|
2584 |
// Check varargs. |
2585 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
2586 |
test_varargs_macros (); |
2587 |
|
2588 |
// Check flexible array members. |
2589 |
struct incomplete_array *ia = |
2590 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
2591 |
ia->datasize = 10; |
2592 |
for (int i = 0; i < ia->datasize; ++i) |
2593 |
ia->data[i] = i * 1.234; |
2594 |
|
2595 |
// Check named initializers. |
2596 |
struct named_init ni = { |
2597 |
.number = 34, |
2598 |
.name = L"Test wide string", |
2599 |
.average = 543.34343, |
2600 |
}; |
2601 |
|
2602 |
ni.number = 58; |
2603 |
|
2604 |
int dynamic_array[ni.number]; |
2605 |
dynamic_array[0] = argv[0][0]; |
2606 |
dynamic_array[ni.number - 1] = 543; |
2607 |
|
2608 |
// work around unused variable warnings |
2609 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
2610 |
|| dynamic_array[ni.number - 1] != 543); |
2611 |
' |
2612 |
|
2613 |
# Test code for whether the C compiler supports C11 (global declarations) |
2614 |
ac_c_conftest_c11_globals=' |
2615 |
// Does the compiler advertise C11 conformance? |
2616 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
2617 |
# error "Compiler does not advertise C11 conformance" |
2618 |
#endif |
2619 |
|
2620 |
// Check _Alignas. |
2621 |
char _Alignas (double) aligned_as_double; |
2622 |
char _Alignas (0) no_special_alignment; |
2623 |
extern char aligned_as_int; |
2624 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
2625 |
|
2626 |
// Check _Alignof. |
2627 |
enum |
2628 |
{ |
2629 |
int_alignment = _Alignof (int), |
2630 |
int_array_alignment = _Alignof (int[100]), |
2631 |
char_alignment = _Alignof (char) |
2632 |
}; |
2633 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
2634 |
|
2635 |
// Check _Noreturn. |
2636 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
2637 |
|
2638 |
// Check _Static_assert. |
2639 |
struct test_static_assert |
2640 |
{ |
2641 |
int x; |
2642 |
_Static_assert (sizeof (int) <= sizeof (long int), |
2643 |
"_Static_assert does not work in struct"); |
2644 |
long int y; |
2645 |
}; |
2646 |
|
2647 |
// Check UTF-8 literals. |
2648 |
#define u8 syntax error! |
2649 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
2650 |
|
2651 |
// Check duplicate typedefs. |
2652 |
typedef long *long_ptr; |
2653 |
typedef long int *long_ptr; |
2654 |
typedef long_ptr long_ptr; |
2655 |
|
2656 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
2657 |
struct anonymous |
2658 |
{ |
2659 |
union { |
2660 |
struct { int i; int j; }; |
2661 |
struct { int k; long int l; } w; |
2662 |
}; |
2663 |
int m; |
2664 |
} v1; |
2665 |
' |
2666 |
|
2667 |
# Test code for whether the C compiler supports C11 (body of main). |
2668 |
ac_c_conftest_c11_main=' |
2669 |
_Static_assert ((offsetof (struct anonymous, i) |
2670 |
== offsetof (struct anonymous, w.k)), |
2671 |
"Anonymous union alignment botch"); |
2672 |
v1.i = 2; |
2673 |
v1.w.k = 5; |
2674 |
ok |= v1.i != 5; |
2675 |
' |
2676 |
|
2677 |
# Test code for whether the C compiler supports C11 (complete). |
2678 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
2679 |
${ac_c_conftest_c99_globals} |
2680 |
${ac_c_conftest_c11_globals} |
2681 |
|
2682 |
int |
2683 |
main (int argc, char **argv) |
2684 |
{ |
2685 |
int ok = 0; |
2686 |
${ac_c_conftest_c89_main} |
2687 |
${ac_c_conftest_c99_main} |
2688 |
${ac_c_conftest_c11_main} |
2689 |
return ok; |
2690 |
} |
2691 |
" |
2692 |
|
2693 |
# Test code for whether the C compiler supports C99 (complete). |
2694 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
2695 |
${ac_c_conftest_c99_globals} |
2696 |
|
2697 |
int |
2698 |
main (int argc, char **argv) |
2699 |
{ |
2700 |
int ok = 0; |
2701 |
${ac_c_conftest_c89_main} |
2702 |
${ac_c_conftest_c99_main} |
2703 |
return ok; |
2704 |
} |
2705 |
" |
2706 |
|
2707 |
# Test code for whether the C compiler supports C89 (complete). |
2708 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
2709 |
|
2710 |
int |
2711 |
main (int argc, char **argv) |
2712 |
{ |
2713 |
int ok = 0; |
2714 |
${ac_c_conftest_c89_main} |
2715 |
return ok; |
2716 |
} |
2717 |
" |
2718 |
|
2719 |
# Test code for whether the C++ compiler supports C++98 (global declarations) |
2720 |
ac_cxx_conftest_cxx98_globals=' |
2721 |
// Does the compiler advertise C++98 conformance? |
2722 |
#if !defined __cplusplus || __cplusplus < 199711L |
2723 |
# error "Compiler does not advertise C++98 conformance" |
2724 |
#endif |
2725 |
|
2726 |
// These inclusions are to reject old compilers that |
2727 |
// lack the unsuffixed header files. |
2728 |
#include <cstdlib> |
2729 |
#include <exception> |
2730 |
|
2731 |
// <cassert> and <cstring> are *not* freestanding headers in C++98. |
2732 |
extern void assert (int); |
2733 |
namespace std { |
2734 |
extern int strcmp (const char *, const char *); |
2735 |
} |
2736 |
|
2737 |
// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
2738 |
using std::exception; |
2739 |
using std::strcmp; |
2740 |
|
2741 |
namespace { |
2742 |
|
2743 |
void test_exception_syntax() |
2744 |
{ |
2745 |
try { |
2746 |
throw "test"; |
2747 |
} catch (const char *s) { |
2748 |
// Extra parentheses suppress a warning when building autoconf itself, |
2749 |
// due to lint rules shared with more typical C programs. |
2750 |
assert (!(strcmp) (s, "test")); |
2751 |
} |
2752 |
} |
2753 |
|
2754 |
template <typename T> struct test_template |
2755 |
{ |
2756 |
T const val; |
2757 |
explicit test_template(T t) : val(t) {} |
2758 |
template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
2759 |
}; |
2760 |
|
2761 |
} // anonymous namespace |
2762 |
' |
2763 |
|
2764 |
# Test code for whether the C++ compiler supports C++98 (body of main) |
2765 |
ac_cxx_conftest_cxx98_main=' |
2766 |
assert (argc); |
2767 |
assert (! argv[0]); |
2768 |
{ |
2769 |
test_exception_syntax (); |
2770 |
test_template<double> tt (2.0); |
2771 |
assert (tt.add (4) == 6.0); |
2772 |
assert (true && !false); |
2773 |
} |
2774 |
' |
2775 |
|
2776 |
# Test code for whether the C++ compiler supports C++11 (global declarations) |
2777 |
ac_cxx_conftest_cxx11_globals=' |
2778 |
// Does the compiler advertise C++ 2011 conformance? |
2779 |
#if !defined __cplusplus || __cplusplus < 201103L |
2780 |
# error "Compiler does not advertise C++11 conformance" |
2781 |
#endif |
2782 |
|
2783 |
namespace cxx11test |
2784 |
{ |
2785 |
constexpr int get_val() { return 20; } |
2786 |
|
2787 |
struct testinit |
2788 |
{ |
2789 |
int i; |
2790 |
double d; |
2791 |
}; |
2792 |
|
2793 |
class delegate |
2794 |
{ |
2795 |
public: |
2796 |
delegate(int n) : n(n) {} |
2797 |
delegate(): delegate(2354) {} |
2798 |
|
2799 |
virtual int getval() { return this->n; }; |
2800 |
protected: |
2801 |
int n; |
2802 |
}; |
2803 |
|
2804 |
class overridden : public delegate |
2805 |
{ |
2806 |
public: |
2807 |
overridden(int n): delegate(n) {} |
2808 |
virtual int getval() override final { return this->n * 2; } |
2809 |
}; |
2810 |
|
2811 |
class nocopy |
2812 |
{ |
2813 |
public: |
2814 |
nocopy(int i): i(i) {} |
2815 |
nocopy() = default; |
2816 |
nocopy(const nocopy&) = delete; |
2817 |
nocopy & operator=(const nocopy&) = delete; |
2818 |
private: |
2819 |
int i; |
2820 |
}; |
2821 |
|
2822 |
// for testing lambda expressions |
2823 |
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
2824 |
{ |
2825 |
return f(v); |
2826 |
} |
2827 |
|
2828 |
// for testing variadic templates and trailing return types |
2829 |
template <typename V> auto sum(V first) -> V |
2830 |
{ |
2831 |
return first; |
2832 |
} |
2833 |
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
2834 |
{ |
2835 |
return first + sum(rest...); |
2836 |
} |
2837 |
} |
2838 |
' |
2839 |
|
2840 |
# Test code for whether the C++ compiler supports C++11 (body of main) |
2841 |
ac_cxx_conftest_cxx11_main=' |
2842 |
{ |
2843 |
// Test auto and decltype |
2844 |
auto a1 = 6538; |
2845 |
auto a2 = 48573953.4; |
2846 |
auto a3 = "String literal"; |
2847 |
|
2848 |
int total = 0; |
2849 |
for (auto i = a3; *i; ++i) { total += *i; } |
2850 |
|
2851 |
decltype(a2) a4 = 34895.034; |
2852 |
} |
2853 |
{ |
2854 |
// Test constexpr |
2855 |
short sa[cxx11test::get_val()] = { 0 }; |
2856 |
} |
2857 |
{ |
2858 |
// Test initializer lists |
2859 |
cxx11test::testinit il = { 4323, 435234.23544 }; |
2860 |
} |
2861 |
{ |
2862 |
// Test range-based for |
2863 |
int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
2864 |
14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
2865 |
for (auto &x : array) { x += 23; } |
2866 |
} |
2867 |
{ |
2868 |
// Test lambda expressions |
2869 |
using cxx11test::eval; |
2870 |
assert (eval ([](int x) { return x*2; }, 21) == 42); |
2871 |
double d = 2.0; |
2872 |
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
2873 |
assert (d == 5.0); |
2874 |
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
2875 |
assert (d == 5.0); |
2876 |
} |
2877 |
{ |
2878 |
// Test use of variadic templates |
2879 |
using cxx11test::sum; |
2880 |
auto a = sum(1); |
2881 |
auto b = sum(1, 2); |
2882 |
auto c = sum(1.0, 2.0, 3.0); |
2883 |
} |
2884 |
{ |
2885 |
// Test constructor delegation |
2886 |
cxx11test::delegate d1; |
2887 |
cxx11test::delegate d2(); |
2888 |
cxx11test::delegate d3(45); |
2889 |
} |
2890 |
{ |
2891 |
// Test override and final |
2892 |
cxx11test::overridden o1(55464); |
2893 |
} |
2894 |
{ |
2895 |
// Test nullptr |
2896 |
char *c = nullptr; |
2897 |
} |
2898 |
{ |
2899 |
// Test template brackets |
2900 |
test_template<::test_template<int>> v(test_template<int>(12)); |
2901 |
} |
2902 |
{ |
2903 |
// Unicode literals |
2904 |
char const *utf8 = u8"UTF-8 string \u2500"; |
2905 |
char16_t const *utf16 = u"UTF-8 string \u2500"; |
2906 |
char32_t const *utf32 = U"UTF-32 string \u2500"; |
2907 |
} |
2908 |
' |
2909 |
|
2910 |
# Test code for whether the C compiler supports C++11 (complete). |
2911 |
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
2912 |
${ac_cxx_conftest_cxx11_globals} |
2913 |
|
2914 |
int |
2915 |
main (int argc, char **argv) |
2916 |
{ |
2917 |
int ok = 0; |
2918 |
${ac_cxx_conftest_cxx98_main} |
2919 |
${ac_cxx_conftest_cxx11_main} |
2920 |
return ok; |
2921 |
} |
2922 |
" |
2923 |
|
2924 |
# Test code for whether the C compiler supports C++98 (complete). |
2925 |
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
2926 |
int |
2927 |
main (int argc, char **argv) |
2928 |
{ |
2929 |
int ok = 0; |
2930 |
${ac_cxx_conftest_cxx98_main} |
2931 |
return ok; |
2932 |
} |
2933 |
" |
2934 |
|
2935 |
as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H" |
2936 |
as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
2937 |
as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H" |
2938 |
as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
2939 |
as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H" |
2940 |
as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H" |
2941 |
as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
2942 |
as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
2943 |
as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H" |
2944 |
as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
2945 |
|
2946 |
# Auxiliary files required by this configure script. |
2947 |
ac_aux_files="compile missing install-sh config.guess config.sub" |
2948 |
|
2949 |
# Locations in which to look for auxiliary files. |
2950 |
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
2951 |
|
2952 |
# Search for a directory containing all of the required auxiliary files, |
2953 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
2954 |
# If we don't find one directory that contains all the files we need, |
2955 |
# we report the set of missing files from the *first* directory in |
2956 |
# $ac_aux_dir_candidates and give up. |
2957 |
ac_missing_aux_files="" |
2958 |
ac_first_candidate=: |
2959 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
2960 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2961 |
as_found=false |
2962 |
for as_dir in $ac_aux_dir_candidates |
2963 |
do |
2964 |
IFS=$as_save_IFS |
2965 |
case $as_dir in #((( |
2966 |
'') as_dir=./ ;; |
2967 |
*/) ;; |
2968 |
*) as_dir=$as_dir/ ;; |
2969 |
esac |
2970 |
as_found=: |
2971 |
|
2972 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
2973 |
ac_aux_dir_found=yes |
2974 |
ac_install_sh= |
2975 |
for ac_aux in $ac_aux_files |
2976 |
do |
2977 |
# As a special case, if "install-sh" is required, that requirement |
2978 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
2979 |
# and $ac_install_sh is set appropriately for whichever one is found. |
2980 |
if test x"$ac_aux" = x"install-sh" |
2981 |
then |
2982 |
if test -f "${as_dir}install-sh"; then |
2983 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
2984 |
ac_install_sh="${as_dir}install-sh -c" |
2985 |
elif test -f "${as_dir}install.sh"; then |
2986 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
2987 |
ac_install_sh="${as_dir}install.sh -c" |
2988 |
elif test -f "${as_dir}shtool"; then |
2989 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
2990 |
ac_install_sh="${as_dir}shtool install -c" |
2991 |
else |
2992 |
ac_aux_dir_found=no |
2993 |
if $ac_first_candidate; then |
2994 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
2995 |
else |
2996 |
break |
2997 |
fi |
2998 |
fi |
2999 |
else |
3000 |
if test -f "${as_dir}${ac_aux}"; then |
3001 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
3002 |
else |
3003 |
ac_aux_dir_found=no |
3004 |
if $ac_first_candidate; then |
3005 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
3006 |
else |
3007 |
break |
3008 |
fi |
3009 |
fi |
3010 |
fi |
3011 |
done |
3012 |
if test "$ac_aux_dir_found" = yes; then |
3013 |
ac_aux_dir="$as_dir" |
3014 |
break |
3015 |
fi |
3016 |
ac_first_candidate=false |
3017 |
|
3018 |
as_found=false |
3019 |
done |
3020 |
IFS=$as_save_IFS |
3021 |
if $as_found |
3022 |
then : |
3023 |
|
3024 |
else $as_nop |
3025 |
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
3026 |
fi |
3027 |
|
3028 |
|
3029 |
# These three variables are undocumented and unsupported, |
3030 |
# and are intended to be withdrawn in a future Autoconf release. |
3031 |
# They can cause serious problems if a builder's source tree is in a directory |
3032 |
# whose full name contains unusual characters. |
3033 |
if test -f "${ac_aux_dir}config.guess"; then |
3034 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
3035 |
fi |
3036 |
if test -f "${ac_aux_dir}config.sub"; then |
3037 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
3038 |
fi |
3039 |
if test -f "$ac_aux_dir/configure"; then |
3040 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
3041 |
fi |
3042 |
|
3043 |
# Check that the precious variables saved in the cache have kept the same |
3044 |
# value. |
3045 |
ac_cache_corrupted=false |
3046 |
for ac_var in $ac_precious_vars; do |
3047 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
3048 |
eval ac_new_set=\$ac_env_${ac_var}_set |
3049 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3050 |
eval ac_new_val=\$ac_env_${ac_var}_value |
3051 |
case $ac_old_set,$ac_new_set in |
3052 |
set,) |
3053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3054 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3055 |
ac_cache_corrupted=: ;; |
3056 |
,set) |
3057 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
3058 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3059 |
ac_cache_corrupted=: ;; |
3060 |
,);; |
3061 |
*) |
3062 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
3063 |
# differences in whitespace do not lead to failure. |
3064 |
ac_old_val_w=`echo x $ac_old_val` |
3065 |
ac_new_val_w=`echo x $ac_new_val` |
3066 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
3067 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
3068 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3069 |
ac_cache_corrupted=: |
3070 |
else |
3071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
3072 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
3073 |
eval $ac_var=\$ac_old_val |
3074 |
fi |
3075 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
3076 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
3077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
3078 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
3079 |
fi;; |
3080 |
esac |
3081 |
# Pass precious variables to config.status. |
3082 |
if test "$ac_new_set" = set; then |
3083 |
case $ac_new_val in |
3084 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3085 |
*) ac_arg=$ac_var=$ac_new_val ;; |
3086 |
esac |
3087 |
case " $ac_configure_args " in |
3088 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
3089 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3090 |
esac |
3091 |
fi |
3092 |
done |
3093 |
if $ac_cache_corrupted; then |
3094 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3095 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
3097 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
3098 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
3099 |
and start over" "$LINENO" 5 |
3100 |
fi |
3101 |
## -------------------- ## |
3102 |
## Main body of script. ## |
3103 |
## -------------------- ## |
3104 |
|
3105 |
ac_ext=c |
3106 |
ac_cpp='$CPP $CPPFLAGS' |
3107 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3108 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3109 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3110 |
|
3111 |
|
3112 |
|
3113 |
|
3114 |
|
3115 |
|
3116 |
# Make sure we can run config.sub. |
3117 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
3118 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
3119 |
|
3120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3121 |
printf %s "checking build system type... " >&6; } |
3122 |
if test ${ac_cv_build+y} |
3123 |
then : |
3124 |
printf %s "(cached) " >&6 |
3125 |
else $as_nop |
3126 |
ac_build_alias=$build_alias |
3127 |
test "x$ac_build_alias" = x && |
3128 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
3129 |
test "x$ac_build_alias" = x && |
3130 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3131 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
3132 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
3133 |
|
3134 |
fi |
3135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3136 |
printf "%s\n" "$ac_cv_build" >&6; } |
3137 |
case $ac_cv_build in |
3138 |
*-*-*) ;; |
3139 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3140 |
esac |
3141 |
build=$ac_cv_build |
3142 |
ac_save_IFS=$IFS; IFS='-' |
3143 |
set x $ac_cv_build |
3144 |
shift |
3145 |
build_cpu=$1 |
3146 |
build_vendor=$2 |
3147 |
shift; shift |
3148 |
# Remember, the first character of IFS is used to create $*, |
3149 |
# except with old shells: |
3150 |
build_os=$* |
3151 |
IFS=$ac_save_IFS |
3152 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3153 |
|
3154 |
|
3155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3156 |
printf %s "checking host system type... " >&6; } |
3157 |
if test ${ac_cv_host+y} |
3158 |
then : |
3159 |
printf %s "(cached) " >&6 |
3160 |
else $as_nop |
3161 |
if test "x$host_alias" = x; then |
3162 |
ac_cv_host=$ac_cv_build |
3163 |
else |
3164 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
3165 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
3166 |
fi |
3167 |
|
3168 |
fi |
3169 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3170 |
printf "%s\n" "$ac_cv_host" >&6; } |
3171 |
case $ac_cv_host in |
3172 |
*-*-*) ;; |
3173 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3174 |
esac |
3175 |
host=$ac_cv_host |
3176 |
ac_save_IFS=$IFS; IFS='-' |
3177 |
set x $ac_cv_host |
3178 |
shift |
3179 |
host_cpu=$1 |
3180 |
host_vendor=$2 |
3181 |
shift; shift |
3182 |
# Remember, the first character of IFS is used to create $*, |
3183 |
# except with old shells: |
3184 |
host_os=$* |
3185 |
IFS=$ac_save_IFS |
3186 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3187 |
|
3188 |
|
3189 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3190 |
printf %s "checking target system type... " >&6; } |
3191 |
if test ${ac_cv_target+y} |
3192 |
then : |
3193 |
printf %s "(cached) " >&6 |
3194 |
else $as_nop |
3195 |
if test "x$target_alias" = x; then |
3196 |
ac_cv_target=$ac_cv_host |
3197 |
else |
3198 |
ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || |
3199 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 |
3200 |
fi |
3201 |
|
3202 |
fi |
3203 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3204 |
printf "%s\n" "$ac_cv_target" >&6; } |
3205 |
case $ac_cv_target in |
3206 |
*-*-*) ;; |
3207 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
3208 |
esac |
3209 |
target=$ac_cv_target |
3210 |
ac_save_IFS=$IFS; IFS='-' |
3211 |
set x $ac_cv_target |
3212 |
shift |
3213 |
target_cpu=$1 |
3214 |
target_vendor=$2 |
3215 |
shift; shift |
3216 |
# Remember, the first character of IFS is used to create $*, |
3217 |
# except with old shells: |
3218 |
target_os=$* |
3219 |
IFS=$ac_save_IFS |
3220 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
3221 |
|
3222 |
|
3223 |
# The aliases save the names the user supplied, while $host etc. |
3224 |
# will get canonicalized. |
3225 |
test -n "$target_alias" && |
3226 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
3227 |
NONENONEs,x,x, && |
3228 |
program_prefix=${target_alias}- |
3229 |
am__api_version='1.16' |
3230 |
|
3231 |
|
3232 |
# Find a good install program. We prefer a C program (faster), |
3233 |
# so one script is as good as another. But avoid the broken or |
3234 |
# incompatible versions: |
3235 |
# SysV /etc/install, /usr/sbin/install |
3236 |
# SunOS /usr/etc/install |
3237 |
# IRIX /sbin/install |
3238 |
# AIX /bin/install |
3239 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
3240 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3241 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3242 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3243 |
# OS/2's system install, which has a completely different semantic |
3244 |
# ./install, which can be erroneously created by make from ./install.sh. |
3245 |
# Reject install programs that cannot install multiple files. |
3246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3247 |
printf %s "checking for a BSD-compatible install... " >&6; } |
3248 |
if test -z "$INSTALL"; then |
3249 |
if test ${ac_cv_path_install+y} |
3250 |
then : |
3251 |
printf %s "(cached) " >&6 |
3252 |
else $as_nop |
3253 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3254 |
for as_dir in $PATH |
3255 |
do |
3256 |
IFS=$as_save_IFS |
3257 |
case $as_dir in #((( |
3258 |
'') as_dir=./ ;; |
3259 |
*/) ;; |
3260 |
*) as_dir=$as_dir/ ;; |
3261 |
esac |
3262 |
# Account for fact that we put trailing slashes in our PATH walk. |
3263 |
case $as_dir in #(( |
3264 |
./ | /[cC]/* | \ |
3265 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3266 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
3267 |
/usr/ucb/* ) ;; |
3268 |
*) |
3269 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
3270 |
# Don't use installbsd from OSF since it installs stuff as root |
3271 |
# by default. |
3272 |
for ac_prog in ginstall scoinst install; do |
3273 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3274 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
3275 |
if test $ac_prog = install && |
3276 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3277 |
# AIX install. It has an incompatible calling convention. |
3278 |
: |
3279 |
elif test $ac_prog = install && |
3280 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3281 |
# program-specific install script used by HP pwplus--don't use. |
3282 |
: |
3283 |
else |
3284 |
rm -rf conftest.one conftest.two conftest.dir |
3285 |
echo one > conftest.one |
3286 |
echo two > conftest.two |
3287 |
mkdir conftest.dir |
3288 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
3289 |
test -s conftest.one && test -s conftest.two && |
3290 |
test -s conftest.dir/conftest.one && |
3291 |
test -s conftest.dir/conftest.two |
3292 |
then |
3293 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
3294 |
break 3 |
3295 |
fi |
3296 |
fi |
3297 |
fi |
3298 |
done |
3299 |
done |
3300 |
;; |
3301 |
esac |
3302 |
|
3303 |
done |
3304 |
IFS=$as_save_IFS |
3305 |
|
3306 |
rm -rf conftest.one conftest.two conftest.dir |
3307 |
|
3308 |
fi |
3309 |
if test ${ac_cv_path_install+y}; then |
3310 |
INSTALL=$ac_cv_path_install |
3311 |
else |
3312 |
# As a last resort, use the slow shell script. Don't cache a |
3313 |
# value for INSTALL within a source directory, because that will |
3314 |
# break other packages using the cache if that directory is |
3315 |
# removed, or if the value is a relative name. |
3316 |
INSTALL=$ac_install_sh |
3317 |
fi |
3318 |
fi |
3319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3320 |
printf "%s\n" "$INSTALL" >&6; } |
3321 |
|
3322 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3323 |
# It thinks the first close brace ends the variable substitution. |
3324 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3325 |
|
3326 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3327 |
|
3328 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3329 |
|
3330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3331 |
printf %s "checking whether build environment is sane... " >&6; } |
3332 |
# Reject unsafe characters in $srcdir or the absolute working directory |
3333 |
# name. Accept space and tab only in the latter. |
3334 |
am_lf=' |
3335 |
' |
3336 |
case `pwd` in |
3337 |
*[\\\"\#\$\&\'\`$am_lf]*) |
3338 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
3339 |
esac |
3340 |
case $srcdir in |
3341 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
3342 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
3343 |
esac |
3344 |
|
3345 |
# Do 'set' in a subshell so we don't clobber the current shell's |
3346 |
# arguments. Must try -L first in case configure is actually a |
3347 |
# symlink; some systems play weird games with the mod time of symlinks |
3348 |
# (eg FreeBSD returns the mod time of the symlink's containing |
3349 |
# directory). |
3350 |
if ( |
3351 |
am_has_slept=no |
3352 |
for am_try in 1 2; do |
3353 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
3354 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
3355 |
if test "$*" = "X"; then |
3356 |
# -L didn't work. |
3357 |
set X `ls -t "$srcdir/configure" conftest.file` |
3358 |
fi |
3359 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
3360 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
3361 |
|
3362 |
# If neither matched, then we have a broken ls. This can happen |
3363 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
3364 |
# broken ls alias from the environment. This has actually |
3365 |
# happened. Such a system could not be considered "sane". |
3366 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
3367 |
alias in your environment" "$LINENO" 5 |
3368 |
fi |
3369 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
3370 |
break |
3371 |
fi |
3372 |
# Just in case. |
3373 |
sleep 1 |
3374 |
am_has_slept=yes |
3375 |
done |
3376 |
test "$2" = conftest.file |
3377 |
) |
3378 |
then |
3379 |
# Ok. |
3380 |
: |
3381 |
else |
3382 |
as_fn_error $? "newly created file is older than distributed files! |
3383 |
Check your system clock" "$LINENO" 5 |
3384 |
fi |
3385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3386 |
printf "%s\n" "yes" >&6; } |
3387 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
3388 |
# generated files are strictly newer. |
3389 |
am_sleep_pid= |
3390 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
3391 |
( sleep 1 ) & |
3392 |
am_sleep_pid=$! |
3393 |
fi |
3394 |
|
3395 |
rm -f conftest.file |
3396 |
|
3397 |
test "$program_prefix" != NONE && |
3398 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
3399 |
# Use a double $ so make ignores it. |
3400 |
test "$program_suffix" != NONE && |
3401 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3402 |
# Double any \ or $. |
3403 |
# By default was `s,x,x', remove it if useless. |
3404 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3405 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
3406 |
|
3407 |
|
3408 |
# Expand $ac_aux_dir to an absolute path. |
3409 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
3410 |
|
3411 |
|
3412 |
if test x"${MISSING+set}" != xset; then |
3413 |
MISSING="\${SHELL} '$am_aux_dir/missing'" |
3414 |
fi |
3415 |
# Use eval to expand $SHELL |
3416 |
if eval "$MISSING --is-lightweight"; then |
3417 |
am_missing_run="$MISSING " |
3418 |
else |
3419 |
am_missing_run= |
3420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3421 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
3422 |
fi |
3423 |
|
3424 |
if test x"${install_sh+set}" != xset; then |
3425 |
case $am_aux_dir in |
3426 |
*\ * | *\ *) |
3427 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
3428 |
*) |
3429 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
3430 |
esac |
3431 |
fi |
3432 |
|
3433 |
# Installed binaries are usually stripped using 'strip' when the user |
3434 |
# run "make install-strip". However 'strip' might not be the right |
3435 |
# tool to use in cross-compilation environments, therefore Automake |
3436 |
# will honor the 'STRIP' environment variable to overrule this program. |
3437 |
if test "$cross_compiling" != no; then |
3438 |
if test -n "$ac_tool_prefix"; then |
3439 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
3440 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
3441 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3442 |
printf %s "checking for $ac_word... " >&6; } |
3443 |
if test ${ac_cv_prog_STRIP+y} |
3444 |
then : |
3445 |
printf %s "(cached) " >&6 |
3446 |
else $as_nop |
3447 |
if test -n "$STRIP"; then |
3448 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
3449 |
else |
3450 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3451 |
for as_dir in $PATH |
3452 |
do |
3453 |
IFS=$as_save_IFS |
3454 |
case $as_dir in #((( |
3455 |
'') as_dir=./ ;; |
3456 |
*/) ;; |
3457 |
*) as_dir=$as_dir/ ;; |
3458 |
esac |
3459 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3460 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3461 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3462 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3463 |
break 2 |
3464 |
fi |
3465 |
done |
3466 |
done |
3467 |
IFS=$as_save_IFS |
3468 |
|
3469 |
fi |
3470 |
fi |
3471 |
STRIP=$ac_cv_prog_STRIP |
3472 |
if test -n "$STRIP"; then |
3473 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
3474 |
printf "%s\n" "$STRIP" >&6; } |
3475 |
else |
3476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3477 |
printf "%s\n" "no" >&6; } |
3478 |
fi |
3479 |
|
3480 |
|
3481 |
fi |
3482 |
if test -z "$ac_cv_prog_STRIP"; then |
3483 |
ac_ct_STRIP=$STRIP |
3484 |
# Extract the first word of "strip", so it can be a program name with args. |
3485 |
set dummy strip; ac_word=$2 |
3486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3487 |
printf %s "checking for $ac_word... " >&6; } |
3488 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
3489 |
then : |
3490 |
printf %s "(cached) " >&6 |
3491 |
else $as_nop |
3492 |
if test -n "$ac_ct_STRIP"; then |
3493 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
3494 |
else |
3495 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3496 |
for as_dir in $PATH |
3497 |
do |
3498 |
IFS=$as_save_IFS |
3499 |
case $as_dir in #((( |
3500 |
'') as_dir=./ ;; |
3501 |
*/) ;; |
3502 |
*) as_dir=$as_dir/ ;; |
3503 |
esac |
3504 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3505 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3506 |
ac_cv_prog_ac_ct_STRIP="strip" |
3507 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3508 |
break 2 |
3509 |
fi |
3510 |
done |
3511 |
done |
3512 |
IFS=$as_save_IFS |
3513 |
|
3514 |
fi |
3515 |
fi |
3516 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3517 |
if test -n "$ac_ct_STRIP"; then |
3518 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3519 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
3520 |
else |
3521 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3522 |
printf "%s\n" "no" >&6; } |
3523 |
fi |
3524 |
|
3525 |
if test "x$ac_ct_STRIP" = x; then |
3526 |
STRIP=":" |
3527 |
else |
3528 |
case $cross_compiling:$ac_tool_warned in |
3529 |
yes:) |
3530 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3531 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3532 |
ac_tool_warned=yes ;; |
3533 |
esac |
3534 |
STRIP=$ac_ct_STRIP |
3535 |
fi |
3536 |
else |
3537 |
STRIP="$ac_cv_prog_STRIP" |
3538 |
fi |
3539 |
|
3540 |
fi |
3541 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
3542 |
|
3543 |
|
3544 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
3545 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
3546 |
if test -z "$MKDIR_P"; then |
3547 |
if test ${ac_cv_path_mkdir+y} |
3548 |
then : |
3549 |
printf %s "(cached) " >&6 |
3550 |
else $as_nop |
3551 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3552 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
3553 |
do |
3554 |
IFS=$as_save_IFS |
3555 |
case $as_dir in #((( |
3556 |
'') as_dir=./ ;; |
3557 |
*/) ;; |
3558 |
*) as_dir=$as_dir/ ;; |
3559 |
esac |
3560 |
for ac_prog in mkdir gmkdir; do |
3561 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3562 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
3563 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3564 |
'mkdir ('*'coreutils) '* | \ |
3565 |
'BusyBox '* | \ |
3566 |
'mkdir (fileutils) '4.1*) |
3567 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
3568 |
break 3;; |
3569 |
esac |
3570 |
done |
3571 |
done |
3572 |
done |
3573 |
IFS=$as_save_IFS |
3574 |
|
3575 |
fi |
3576 |
|
3577 |
test -d ./--version && rmdir ./--version |
3578 |
if test ${ac_cv_path_mkdir+y}; then |
3579 |
MKDIR_P="$ac_cv_path_mkdir -p" |
3580 |
else |
3581 |
# As a last resort, use the slow shell script. Don't cache a |
3582 |
# value for MKDIR_P within a source directory, because that will |
3583 |
# break other packages using the cache if that directory is |
3584 |
# removed, or if the value is a relative name. |
3585 |
MKDIR_P="$ac_install_sh -d" |
3586 |
fi |
3587 |
fi |
3588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3589 |
printf "%s\n" "$MKDIR_P" >&6; } |
3590 |
|
3591 |
for ac_prog in gawk mawk nawk awk |
3592 |
do |
3593 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3594 |
set dummy $ac_prog; ac_word=$2 |
3595 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3596 |
printf %s "checking for $ac_word... " >&6; } |
3597 |
if test ${ac_cv_prog_AWK+y} |
3598 |
then : |
3599 |
printf %s "(cached) " >&6 |
3600 |
else $as_nop |
3601 |
if test -n "$AWK"; then |
3602 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
3603 |
else |
3604 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3605 |
for as_dir in $PATH |
3606 |
do |
3607 |
IFS=$as_save_IFS |
3608 |
case $as_dir in #((( |
3609 |
'') as_dir=./ ;; |
3610 |
*/) ;; |
3611 |
*) as_dir=$as_dir/ ;; |
3612 |
esac |
3613 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3614 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3615 |
ac_cv_prog_AWK="$ac_prog" |
3616 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3617 |
break 2 |
3618 |
fi |
3619 |
done |
3620 |
done |
3621 |
IFS=$as_save_IFS |
3622 |
|
3623 |
fi |
3624 |
fi |
3625 |
AWK=$ac_cv_prog_AWK |
3626 |
if test -n "$AWK"; then |
3627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3628 |
printf "%s\n" "$AWK" >&6; } |
3629 |
else |
3630 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3631 |
printf "%s\n" "no" >&6; } |
3632 |
fi |
3633 |
|
3634 |
|
3635 |
test -n "$AWK" && break |
3636 |
done |
3637 |
|
3638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3639 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3640 |
set x ${MAKE-make} |
3641 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3642 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
3643 |
then : |
3644 |
printf %s "(cached) " >&6 |
3645 |
else $as_nop |
3646 |
cat >conftest.make <<\_ACEOF |
3647 |
SHELL = /bin/sh |
3648 |
all: |
3649 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
3650 |
_ACEOF |
3651 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
3652 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3653 |
*@@@%%%=?*=@@@%%%*) |
3654 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
3655 |
*) |
3656 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
3657 |
esac |
3658 |
rm -f conftest.make |
3659 |
fi |
3660 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3661 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3662 |
printf "%s\n" "yes" >&6; } |
3663 |
SET_MAKE= |
3664 |
else |
3665 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3666 |
printf "%s\n" "no" >&6; } |
3667 |
SET_MAKE="MAKE=${MAKE-make}" |
3668 |
fi |
3669 |
|
3670 |
rm -rf .tst 2>/dev/null |
3671 |
mkdir .tst 2>/dev/null |
3672 |
if test -d .tst; then |
3673 |
am__leading_dot=. |
3674 |
else |
3675 |
am__leading_dot=_ |
3676 |
fi |
3677 |
rmdir .tst 2>/dev/null |
3678 |
|
3679 |
# Check whether --enable-silent-rules was given. |
3680 |
if test ${enable_silent_rules+y} |
3681 |
then : |
3682 |
enableval=$enable_silent_rules; |
3683 |
fi |
3684 |
|
3685 |
case $enable_silent_rules in # ((( |
3686 |
yes) AM_DEFAULT_VERBOSITY=0;; |
3687 |
no) AM_DEFAULT_VERBOSITY=1;; |
3688 |
*) AM_DEFAULT_VERBOSITY=1;; |
3689 |
esac |
3690 |
am_make=${MAKE-make} |
3691 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
3692 |
printf %s "checking whether $am_make supports nested variables... " >&6; } |
3693 |
if test ${am_cv_make_support_nested_variables+y} |
3694 |
then : |
3695 |
printf %s "(cached) " >&6 |
3696 |
else $as_nop |
3697 |
if printf "%s\n" 'TRUE=$(BAR$(V)) |
3698 |
BAR0=false |
3699 |
BAR1=true |
3700 |
V=1 |
3701 |
am__doit: |
3702 |
@$(TRUE) |
3703 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
3704 |
am_cv_make_support_nested_variables=yes |
3705 |
else |
3706 |
am_cv_make_support_nested_variables=no |
3707 |
fi |
3708 |
fi |
3709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
3710 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
3711 |
if test $am_cv_make_support_nested_variables = yes; then |
3712 |
AM_V='$(V)' |
3713 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
3714 |
else |
3715 |
AM_V=$AM_DEFAULT_VERBOSITY |
3716 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
3717 |
fi |
3718 |
AM_BACKSLASH='\' |
3719 |
|
3720 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3721 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
3722 |
# is not polluted with repeated "-I." |
3723 |
am__isrc=' -I$(srcdir)' |
3724 |
# test to see if srcdir already configured |
3725 |
if test -f $srcdir/config.status; then |
3726 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
3727 |
fi |
3728 |
fi |
3729 |
|
3730 |
# test whether we have cygpath |
3731 |
if test -z "$CYGPATH_W"; then |
3732 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
3733 |
CYGPATH_W='cygpath -w' |
3734 |
else |
3735 |
CYGPATH_W=echo |
3736 |
fi |
3737 |
fi |
3738 |
|
3739 |
|
3740 |
# Define the identity of the package. |
3741 |
PACKAGE='gvpe' |
3742 |
VERSION='3.1' |
3743 |
|
3744 |
|
3745 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
3746 |
|
3747 |
|
3748 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
3749 |
|
3750 |
# Some tools Automake needs. |
3751 |
|
3752 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
3753 |
|
3754 |
|
3755 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
3756 |
|
3757 |
|
3758 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
3759 |
|
3760 |
|
3761 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3762 |
|
3763 |
|
3764 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3765 |
|
3766 |
# For better backward compatibility. To be removed once Automake 1.9.x |
3767 |
# dies out for good. For more background, see: |
3768 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3769 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
3770 |
mkdir_p='$(MKDIR_P)' |
3771 |
|
3772 |
# We need awk for the "check" target (and possibly the TAP driver). The |
3773 |
# system "awk" is bad on some platforms. |
3774 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
3775 |
# in the wild :-( We should find a proper way to deprecate it ... |
3776 |
AMTAR='$${TAR-tar}' |
3777 |
|
3778 |
|
3779 |
# We'll loop over all known methods to create a tar archive until one works. |
3780 |
_am_tools='gnutar pax cpio none' |
3781 |
|
3782 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3783 |
|
3784 |
|
3785 |
|
3786 |
|
3787 |
|
3788 |
|
3789 |
# POSIX will say in a future version that running "rm -f" with no argument |
3790 |
# is OK; and we want to be able to make that assumption in our Makefile |
3791 |
# recipes. So use an aggressive probe to check that the usage we want is |
3792 |
# actually supported "in the wild" to an acceptable degree. |
3793 |
# See automake bug#10828. |
3794 |
# To make any issue more visible, cause the running configure to be aborted |
3795 |
# by default if the 'rm' program in use doesn't match our expectations; the |
3796 |
# user can still override this though. |
3797 |
if rm -f && rm -fr && rm -rf; then : OK; else |
3798 |
cat >&2 <<'END' |
3799 |
Oops! |
3800 |
|
3801 |
Your 'rm' program seems unable to run without file operands specified |
3802 |
on the command line, even when the '-f' option is present. This is contrary |
3803 |
to the behaviour of most rm programs out there, and not conforming with |
3804 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
3805 |
|
3806 |
Please tell bug-automake@gnu.org about your system, including the value |
3807 |
of your $PATH and any error possibly output before this message. This |
3808 |
can help us improve future automake versions. |
3809 |
|
3810 |
END |
3811 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
3812 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
3813 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
3814 |
echo >&2 |
3815 |
else |
3816 |
cat >&2 <<'END' |
3817 |
Aborting the configuration process, to ensure you take notice of the issue. |
3818 |
|
3819 |
You can download and install GNU coreutils to get an 'rm' implementation |
3820 |
that behaves properly: <https://www.gnu.org/software/coreutils/>. |
3821 |
|
3822 |
If you want to complete the configuration process using your problematic |
3823 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
3824 |
to "yes", and re-run configure. |
3825 |
|
3826 |
END |
3827 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
3828 |
fi |
3829 |
fi |
3830 |
|
3831 |
ac_config_headers="$ac_config_headers config.h" |
3832 |
|
3833 |
|
3834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3835 |
printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
3836 |
# Check whether --enable-maintainer-mode was given. |
3837 |
if test ${enable_maintainer_mode+y} |
3838 |
then : |
3839 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
3840 |
else $as_nop |
3841 |
USE_MAINTAINER_MODE=no |
3842 |
fi |
3843 |
|
3844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3845 |
printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
3846 |
if test $USE_MAINTAINER_MODE = yes; then |
3847 |
MAINTAINER_MODE_TRUE= |
3848 |
MAINTAINER_MODE_FALSE='#' |
3849 |
else |
3850 |
MAINTAINER_MODE_TRUE='#' |
3851 |
MAINTAINER_MODE_FALSE= |
3852 |
fi |
3853 |
|
3854 |
MAINT=$MAINTAINER_MODE_TRUE |
3855 |
|
3856 |
|
3857 |
|
3858 |
|
3859 |
|
3860 |
|
3861 |
|
3862 |
|
3863 |
MKINSTALLDIRS= |
3864 |
if test -n "$ac_aux_dir"; then |
3865 |
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
3866 |
fi |
3867 |
if test -z "$MKINSTALLDIRS"; then |
3868 |
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
3869 |
fi |
3870 |
|
3871 |
|
3872 |
|
3873 |
|
3874 |
|
3875 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
3876 |
set dummy msgfmt; ac_word=$2 |
3877 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3878 |
printf %s "checking for $ac_word... " >&6; } |
3879 |
if test ${ac_cv_path_MSGFMT+y} |
3880 |
then : |
3881 |
printf %s "(cached) " >&6 |
3882 |
else $as_nop |
3883 |
case "$MSGFMT" in |
3884 |
/*) |
3885 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
3886 |
;; |
3887 |
*) |
3888 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
3889 |
for ac_dir in $PATH; do |
3890 |
test -z "$ac_dir" && ac_dir=. |
3891 |
if test -f $ac_dir/$ac_word; then |
3892 |
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
3893 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3894 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
3895 |
break |
3896 |
fi |
3897 |
fi |
3898 |
done |
3899 |
IFS="$ac_save_ifs" |
3900 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
3901 |
;; |
3902 |
esac |
3903 |
fi |
3904 |
MSGFMT="$ac_cv_path_MSGFMT" |
3905 |
if test "$MSGFMT" != ":"; then |
3906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
3907 |
printf "%s\n" "$MSGFMT" >&6; } |
3908 |
else |
3909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3910 |
printf "%s\n" "no" >&6; } |
3911 |
fi |
3912 |
|
3913 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
3914 |
set dummy gmsgfmt; ac_word=$2 |
3915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3916 |
printf %s "checking for $ac_word... " >&6; } |
3917 |
if test ${ac_cv_path_GMSGFMT+y} |
3918 |
then : |
3919 |
printf %s "(cached) " >&6 |
3920 |
else $as_nop |
3921 |
case $GMSGFMT in |
3922 |
[\\/]* | ?:[\\/]*) |
3923 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
3924 |
;; |
3925 |
*) |
3926 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3927 |
for as_dir in $PATH |
3928 |
do |
3929 |
IFS=$as_save_IFS |
3930 |
case $as_dir in #((( |
3931 |
'') as_dir=./ ;; |
3932 |
*/) ;; |
3933 |
*) as_dir=$as_dir/ ;; |
3934 |
esac |
3935 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3936 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3937 |
ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" |
3938 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3939 |
break 2 |
3940 |
fi |
3941 |
done |
3942 |
done |
3943 |
IFS=$as_save_IFS |
3944 |
|
3945 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
3946 |
;; |
3947 |
esac |
3948 |
fi |
3949 |
GMSGFMT=$ac_cv_path_GMSGFMT |
3950 |
if test -n "$GMSGFMT"; then |
3951 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
3952 |
printf "%s\n" "$GMSGFMT" >&6; } |
3953 |
else |
3954 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3955 |
printf "%s\n" "no" >&6; } |
3956 |
fi |
3957 |
|
3958 |
|
3959 |
|
3960 |
# Extract the first word of "xgettext", so it can be a program name with args. |
3961 |
set dummy xgettext; ac_word=$2 |
3962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3963 |
printf %s "checking for $ac_word... " >&6; } |
3964 |
if test ${ac_cv_path_XGETTEXT+y} |
3965 |
then : |
3966 |
printf %s "(cached) " >&6 |
3967 |
else $as_nop |
3968 |
case "$XGETTEXT" in |
3969 |
/*) |
3970 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
3971 |
;; |
3972 |
*) |
3973 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
3974 |
for ac_dir in $PATH; do |
3975 |
test -z "$ac_dir" && ac_dir=. |
3976 |
if test -f $ac_dir/$ac_word; then |
3977 |
if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
3978 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3979 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
3980 |
break |
3981 |
fi |
3982 |
fi |
3983 |
done |
3984 |
IFS="$ac_save_ifs" |
3985 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
3986 |
;; |
3987 |
esac |
3988 |
fi |
3989 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
3990 |
if test "$XGETTEXT" != ":"; then |
3991 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
3992 |
printf "%s\n" "$XGETTEXT" >&6; } |
3993 |
else |
3994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3995 |
printf "%s\n" "no" >&6; } |
3996 |
fi |
3997 |
|
3998 |
rm -f messages.po |
3999 |
|
4000 |
# Extract the first word of "msgmerge", so it can be a program name with args. |
4001 |
set dummy msgmerge; ac_word=$2 |
4002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4003 |
printf %s "checking for $ac_word... " >&6; } |
4004 |
if test ${ac_cv_path_MSGMERGE+y} |
4005 |
then : |
4006 |
printf %s "(cached) " >&6 |
4007 |
else $as_nop |
4008 |
case "$MSGMERGE" in |
4009 |
/*) |
4010 |
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
4011 |
;; |
4012 |
*) |
4013 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
4014 |
for ac_dir in $PATH; do |
4015 |
test -z "$ac_dir" && ac_dir=. |
4016 |
if test -f $ac_dir/$ac_word; then |
4017 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
4018 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
4019 |
break |
4020 |
fi |
4021 |
fi |
4022 |
done |
4023 |
IFS="$ac_save_ifs" |
4024 |
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
4025 |
;; |
4026 |
esac |
4027 |
fi |
4028 |
MSGMERGE="$ac_cv_path_MSGMERGE" |
4029 |
if test "$MSGMERGE" != ":"; then |
4030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
4031 |
printf "%s\n" "$MSGMERGE" >&6; } |
4032 |
else |
4033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4034 |
printf "%s\n" "no" >&6; } |
4035 |
fi |
4036 |
|
4037 |
|
4038 |
if test "$GMSGFMT" != ":"; then |
4039 |
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
4040 |
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
4041 |
: ; |
4042 |
else |
4043 |
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
4044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
4045 |
printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
4046 |
GMSGFMT=":" |
4047 |
fi |
4048 |
fi |
4049 |
|
4050 |
if test "$XGETTEXT" != ":"; then |
4051 |
if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
4052 |
(if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
4053 |
: ; |
4054 |
else |
4055 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
4056 |
printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; } |
4057 |
XGETTEXT=":" |
4058 |
fi |
4059 |
rm -f messages.po |
4060 |
fi |
4061 |
|
4062 |
ac_config_commands="$ac_config_commands default-1" |
4063 |
|
4064 |
|
4065 |
|
4066 |
if test "X$prefix" = "XNONE"; then |
4067 |
acl_final_prefix="$ac_default_prefix" |
4068 |
else |
4069 |
acl_final_prefix="$prefix" |
4070 |
fi |
4071 |
if test "X$exec_prefix" = "XNONE"; then |
4072 |
acl_final_exec_prefix='${prefix}' |
4073 |
else |
4074 |
acl_final_exec_prefix="$exec_prefix" |
4075 |
fi |
4076 |
acl_save_prefix="$prefix" |
4077 |
prefix="$acl_final_prefix" |
4078 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
4079 |
prefix="$acl_save_prefix" |
4080 |
|
4081 |
|
4082 |
|
4083 |
|
4084 |
|
4085 |
|
4086 |
|
4087 |
|
4088 |
|
4089 |
|
4090 |
DEPDIR="${am__leading_dot}deps" |
4091 |
|
4092 |
ac_config_commands="$ac_config_commands depfiles" |
4093 |
|
4094 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
4095 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
4096 |
cat > confinc.mk << 'END' |
4097 |
am__doit: |
4098 |
@echo this is the am__doit target >confinc.out |
4099 |
.PHONY: am__doit |
4100 |
END |
4101 |
am__include="#" |
4102 |
am__quote= |
4103 |
# BSD make does it like this. |
4104 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
4105 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
4106 |
echo 'include confinc.mk # ignored' > confmf.GNU |
4107 |
_am_result=no |
4108 |
for s in GNU BSD; do |
4109 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
4110 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
4111 |
ac_status=$? |
4112 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4113 |
(exit $ac_status); } |
4114 |
case $?:`cat confinc.out 2>/dev/null` in #( |
4115 |
'0:this is the am__doit target') : |
4116 |
case $s in #( |
4117 |
BSD) : |
4118 |
am__include='.include' am__quote='"' ;; #( |
4119 |
*) : |
4120 |
am__include='include' am__quote='' ;; |
4121 |
esac ;; #( |
4122 |
*) : |
4123 |
;; |
4124 |
esac |
4125 |
if test "$am__include" != "#"; then |
4126 |
_am_result="yes ($s style)" |
4127 |
break |
4128 |
fi |
4129 |
done |
4130 |
rm -f confinc.* confmf.* |
4131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
4132 |
printf "%s\n" "${_am_result}" >&6; } |
4133 |
|
4134 |
# Check whether --enable-dependency-tracking was given. |
4135 |
if test ${enable_dependency_tracking+y} |
4136 |
then : |
4137 |
enableval=$enable_dependency_tracking; |
4138 |
fi |
4139 |
|
4140 |
if test "x$enable_dependency_tracking" != xno; then |
4141 |
am_depcomp="$ac_aux_dir/depcomp" |
4142 |
AMDEPBACKSLASH='\' |
4143 |
am__nodep='_no' |
4144 |
fi |
4145 |
if test "x$enable_dependency_tracking" != xno; then |
4146 |
AMDEP_TRUE= |
4147 |
AMDEP_FALSE='#' |
4148 |
else |
4149 |
AMDEP_TRUE='#' |
4150 |
AMDEP_FALSE= |
4151 |
fi |
4152 |
|
4153 |
|
4154 |
ac_ext=c |
4155 |
ac_cpp='$CPP $CPPFLAGS' |
4156 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4157 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4158 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4159 |
if test -n "$ac_tool_prefix"; then |
4160 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
4161 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
4162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4163 |
printf %s "checking for $ac_word... " >&6; } |
4164 |
if test ${ac_cv_prog_CC+y} |
4165 |
then : |
4166 |
printf %s "(cached) " >&6 |
4167 |
else $as_nop |
4168 |
if test -n "$CC"; then |
4169 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4170 |
else |
4171 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4172 |
for as_dir in $PATH |
4173 |
do |
4174 |
IFS=$as_save_IFS |
4175 |
case $as_dir in #((( |
4176 |
'') as_dir=./ ;; |
4177 |
*/) ;; |
4178 |
*) as_dir=$as_dir/ ;; |
4179 |
esac |
4180 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4181 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4182 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4183 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4184 |
break 2 |
4185 |
fi |
4186 |
done |
4187 |
done |
4188 |
IFS=$as_save_IFS |
4189 |
|
4190 |
fi |
4191 |
fi |
4192 |
CC=$ac_cv_prog_CC |
4193 |
if test -n "$CC"; then |
4194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4195 |
printf "%s\n" "$CC" >&6; } |
4196 |
else |
4197 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4198 |
printf "%s\n" "no" >&6; } |
4199 |
fi |
4200 |
|
4201 |
|
4202 |
fi |
4203 |
if test -z "$ac_cv_prog_CC"; then |
4204 |
ac_ct_CC=$CC |
4205 |
# Extract the first word of "gcc", so it can be a program name with args. |
4206 |
set dummy gcc; ac_word=$2 |
4207 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4208 |
printf %s "checking for $ac_word... " >&6; } |
4209 |
if test ${ac_cv_prog_ac_ct_CC+y} |
4210 |
then : |
4211 |
printf %s "(cached) " >&6 |
4212 |
else $as_nop |
4213 |
if test -n "$ac_ct_CC"; then |
4214 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4215 |
else |
4216 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4217 |
for as_dir in $PATH |
4218 |
do |
4219 |
IFS=$as_save_IFS |
4220 |
case $as_dir in #((( |
4221 |
'') as_dir=./ ;; |
4222 |
*/) ;; |
4223 |
*) as_dir=$as_dir/ ;; |
4224 |
esac |
4225 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4226 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4227 |
ac_cv_prog_ac_ct_CC="gcc" |
4228 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4229 |
break 2 |
4230 |
fi |
4231 |
done |
4232 |
done |
4233 |
IFS=$as_save_IFS |
4234 |
|
4235 |
fi |
4236 |
fi |
4237 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4238 |
if test -n "$ac_ct_CC"; then |
4239 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4240 |
printf "%s\n" "$ac_ct_CC" >&6; } |
4241 |
else |
4242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4243 |
printf "%s\n" "no" >&6; } |
4244 |
fi |
4245 |
|
4246 |
if test "x$ac_ct_CC" = x; then |
4247 |
CC="" |
4248 |
else |
4249 |
case $cross_compiling:$ac_tool_warned in |
4250 |
yes:) |
4251 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4252 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4253 |
ac_tool_warned=yes ;; |
4254 |
esac |
4255 |
CC=$ac_ct_CC |
4256 |
fi |
4257 |
else |
4258 |
CC="$ac_cv_prog_CC" |
4259 |
fi |
4260 |
|
4261 |
if test -z "$CC"; then |
4262 |
if test -n "$ac_tool_prefix"; then |
4263 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
4264 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4266 |
printf %s "checking for $ac_word... " >&6; } |
4267 |
if test ${ac_cv_prog_CC+y} |
4268 |
then : |
4269 |
printf %s "(cached) " >&6 |
4270 |
else $as_nop |
4271 |
if test -n "$CC"; then |
4272 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4273 |
else |
4274 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4275 |
for as_dir in $PATH |
4276 |
do |
4277 |
IFS=$as_save_IFS |
4278 |
case $as_dir in #((( |
4279 |
'') as_dir=./ ;; |
4280 |
*/) ;; |
4281 |
*) as_dir=$as_dir/ ;; |
4282 |
esac |
4283 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4284 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4285 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
4286 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4287 |
break 2 |
4288 |
fi |
4289 |
done |
4290 |
done |
4291 |
IFS=$as_save_IFS |
4292 |
|
4293 |
fi |
4294 |
fi |
4295 |
CC=$ac_cv_prog_CC |
4296 |
if test -n "$CC"; then |
4297 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4298 |
printf "%s\n" "$CC" >&6; } |
4299 |
else |
4300 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4301 |
printf "%s\n" "no" >&6; } |
4302 |
fi |
4303 |
|
4304 |
|
4305 |
fi |
4306 |
fi |
4307 |
if test -z "$CC"; then |
4308 |
# Extract the first word of "cc", so it can be a program name with args. |
4309 |
set dummy cc; ac_word=$2 |
4310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4311 |
printf %s "checking for $ac_word... " >&6; } |
4312 |
if test ${ac_cv_prog_CC+y} |
4313 |
then : |
4314 |
printf %s "(cached) " >&6 |
4315 |
else $as_nop |
4316 |
if test -n "$CC"; then |
4317 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4318 |
else |
4319 |
ac_prog_rejected=no |
4320 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4321 |
for as_dir in $PATH |
4322 |
do |
4323 |
IFS=$as_save_IFS |
4324 |
case $as_dir in #((( |
4325 |
'') as_dir=./ ;; |
4326 |
*/) ;; |
4327 |
*) as_dir=$as_dir/ ;; |
4328 |
esac |
4329 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4330 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4331 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4332 |
ac_prog_rejected=yes |
4333 |
continue |
4334 |
fi |
4335 |
ac_cv_prog_CC="cc" |
4336 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4337 |
break 2 |
4338 |
fi |
4339 |
done |
4340 |
done |
4341 |
IFS=$as_save_IFS |
4342 |
|
4343 |
if test $ac_prog_rejected = yes; then |
4344 |
# We found a bogon in the path, so make sure we never use it. |
4345 |
set dummy $ac_cv_prog_CC |
4346 |
shift |
4347 |
if test $# != 0; then |
4348 |
# We chose a different compiler from the bogus one. |
4349 |
# However, it has the same basename, so the bogon will be chosen |
4350 |
# first if we set CC to just the basename; use the full file name. |
4351 |
shift |
4352 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
4353 |
fi |
4354 |
fi |
4355 |
fi |
4356 |
fi |
4357 |
CC=$ac_cv_prog_CC |
4358 |
if test -n "$CC"; then |
4359 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4360 |
printf "%s\n" "$CC" >&6; } |
4361 |
else |
4362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4363 |
printf "%s\n" "no" >&6; } |
4364 |
fi |
4365 |
|
4366 |
|
4367 |
fi |
4368 |
if test -z "$CC"; then |
4369 |
if test -n "$ac_tool_prefix"; then |
4370 |
for ac_prog in cl.exe |
4371 |
do |
4372 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4373 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4375 |
printf %s "checking for $ac_word... " >&6; } |
4376 |
if test ${ac_cv_prog_CC+y} |
4377 |
then : |
4378 |
printf %s "(cached) " >&6 |
4379 |
else $as_nop |
4380 |
if test -n "$CC"; then |
4381 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4382 |
else |
4383 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4384 |
for as_dir in $PATH |
4385 |
do |
4386 |
IFS=$as_save_IFS |
4387 |
case $as_dir in #((( |
4388 |
'') as_dir=./ ;; |
4389 |
*/) ;; |
4390 |
*) as_dir=$as_dir/ ;; |
4391 |
esac |
4392 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4393 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4394 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4395 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4396 |
break 2 |
4397 |
fi |
4398 |
done |
4399 |
done |
4400 |
IFS=$as_save_IFS |
4401 |
|
4402 |
fi |
4403 |
fi |
4404 |
CC=$ac_cv_prog_CC |
4405 |
if test -n "$CC"; then |
4406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4407 |
printf "%s\n" "$CC" >&6; } |
4408 |
else |
4409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4410 |
printf "%s\n" "no" >&6; } |
4411 |
fi |
4412 |
|
4413 |
|
4414 |
test -n "$CC" && break |
4415 |
done |
4416 |
fi |
4417 |
if test -z "$CC"; then |
4418 |
ac_ct_CC=$CC |
4419 |
for ac_prog in cl.exe |
4420 |
do |
4421 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4422 |
set dummy $ac_prog; ac_word=$2 |
4423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4424 |
printf %s "checking for $ac_word... " >&6; } |
4425 |
if test ${ac_cv_prog_ac_ct_CC+y} |
4426 |
then : |
4427 |
printf %s "(cached) " >&6 |
4428 |
else $as_nop |
4429 |
if test -n "$ac_ct_CC"; then |
4430 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4431 |
else |
4432 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4433 |
for as_dir in $PATH |
4434 |
do |
4435 |
IFS=$as_save_IFS |
4436 |
case $as_dir in #((( |
4437 |
'') as_dir=./ ;; |
4438 |
*/) ;; |
4439 |
*) as_dir=$as_dir/ ;; |
4440 |
esac |
4441 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4442 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4443 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
4444 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4445 |
break 2 |
4446 |
fi |
4447 |
done |
4448 |
done |
4449 |
IFS=$as_save_IFS |
4450 |
|
4451 |
fi |
4452 |
fi |
4453 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4454 |
if test -n "$ac_ct_CC"; then |
4455 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4456 |
printf "%s\n" "$ac_ct_CC" >&6; } |
4457 |
else |
4458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4459 |
printf "%s\n" "no" >&6; } |
4460 |
fi |
4461 |
|
4462 |
|
4463 |
test -n "$ac_ct_CC" && break |
4464 |
done |
4465 |
|
4466 |
if test "x$ac_ct_CC" = x; then |
4467 |
CC="" |
4468 |
else |
4469 |
case $cross_compiling:$ac_tool_warned in |
4470 |
yes:) |
4471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4472 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4473 |
ac_tool_warned=yes ;; |
4474 |
esac |
4475 |
CC=$ac_ct_CC |
4476 |
fi |
4477 |
fi |
4478 |
|
4479 |
fi |
4480 |
if test -z "$CC"; then |
4481 |
if test -n "$ac_tool_prefix"; then |
4482 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
4483 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
4484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4485 |
printf %s "checking for $ac_word... " >&6; } |
4486 |
if test ${ac_cv_prog_CC+y} |
4487 |
then : |
4488 |
printf %s "(cached) " >&6 |
4489 |
else $as_nop |
4490 |
if test -n "$CC"; then |
4491 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4492 |
else |
4493 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4494 |
for as_dir in $PATH |
4495 |
do |
4496 |
IFS=$as_save_IFS |
4497 |
case $as_dir in #((( |
4498 |
'') as_dir=./ ;; |
4499 |
*/) ;; |
4500 |
*) as_dir=$as_dir/ ;; |
4501 |
esac |
4502 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4503 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4504 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
4505 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4506 |
break 2 |
4507 |
fi |
4508 |
done |
4509 |
done |
4510 |
IFS=$as_save_IFS |
4511 |
|
4512 |
fi |
4513 |
fi |
4514 |
CC=$ac_cv_prog_CC |
4515 |
if test -n "$CC"; then |
4516 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4517 |
printf "%s\n" "$CC" >&6; } |
4518 |
else |
4519 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4520 |
printf "%s\n" "no" >&6; } |
4521 |
fi |
4522 |
|
4523 |
|
4524 |
fi |
4525 |
if test -z "$ac_cv_prog_CC"; then |
4526 |
ac_ct_CC=$CC |
4527 |
# Extract the first word of "clang", so it can be a program name with args. |
4528 |
set dummy clang; ac_word=$2 |
4529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4530 |
printf %s "checking for $ac_word... " >&6; } |
4531 |
if test ${ac_cv_prog_ac_ct_CC+y} |
4532 |
then : |
4533 |
printf %s "(cached) " >&6 |
4534 |
else $as_nop |
4535 |
if test -n "$ac_ct_CC"; then |
4536 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4537 |
else |
4538 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4539 |
for as_dir in $PATH |
4540 |
do |
4541 |
IFS=$as_save_IFS |
4542 |
case $as_dir in #((( |
4543 |
'') as_dir=./ ;; |
4544 |
*/) ;; |
4545 |
*) as_dir=$as_dir/ ;; |
4546 |
esac |
4547 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4548 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4549 |
ac_cv_prog_ac_ct_CC="clang" |
4550 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4551 |
break 2 |
4552 |
fi |
4553 |
done |
4554 |
done |
4555 |
IFS=$as_save_IFS |
4556 |
|
4557 |
fi |
4558 |
fi |
4559 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4560 |
if test -n "$ac_ct_CC"; then |
4561 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4562 |
printf "%s\n" "$ac_ct_CC" >&6; } |
4563 |
else |
4564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4565 |
printf "%s\n" "no" >&6; } |
4566 |
fi |
4567 |
|
4568 |
if test "x$ac_ct_CC" = x; then |
4569 |
CC="" |
4570 |
else |
4571 |
case $cross_compiling:$ac_tool_warned in |
4572 |
yes:) |
4573 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4574 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4575 |
ac_tool_warned=yes ;; |
4576 |
esac |
4577 |
CC=$ac_ct_CC |
4578 |
fi |
4579 |
else |
4580 |
CC="$ac_cv_prog_CC" |
4581 |
fi |
4582 |
|
4583 |
fi |
4584 |
|
4585 |
|
4586 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4587 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4588 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
4589 |
See \`config.log' for more details" "$LINENO" 5; } |
4590 |
|
4591 |
# Provide some information about the compiler. |
4592 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4593 |
set X $ac_compile |
4594 |
ac_compiler=$2 |
4595 |
for ac_option in --version -v -V -qversion -version; do |
4596 |
{ { ac_try="$ac_compiler $ac_option >&5" |
4597 |
case "(($ac_try" in |
4598 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4599 |
*) ac_try_echo=$ac_try;; |
4600 |
esac |
4601 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4602 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4603 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4604 |
ac_status=$? |
4605 |
if test -s conftest.err; then |
4606 |
sed '10a\ |
4607 |
... rest of stderr output deleted ... |
4608 |
10q' conftest.err >conftest.er1 |
4609 |
cat conftest.er1 >&5 |
4610 |
fi |
4611 |
rm -f conftest.er1 conftest.err |
4612 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4613 |
test $ac_status = 0; } |
4614 |
done |
4615 |
|
4616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4617 |
/* end confdefs.h. */ |
4618 |
|
4619 |
int |
4620 |
main (void) |
4621 |
{ |
4622 |
|
4623 |
; |
4624 |
return 0; |
4625 |
} |
4626 |
_ACEOF |
4627 |
ac_clean_files_save=$ac_clean_files |
4628 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
4629 |
# Try to create an executable without -o first, disregard a.out. |
4630 |
# It will help us diagnose broken compilers, and finding out an intuition |
4631 |
# of exeext. |
4632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4633 |
printf %s "checking whether the C compiler works... " >&6; } |
4634 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4635 |
|
4636 |
# The possible output files: |
4637 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
4638 |
|
4639 |
ac_rmfiles= |
4640 |
for ac_file in $ac_files |
4641 |
do |
4642 |
case $ac_file in |
4643 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4644 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
4645 |
esac |
4646 |
done |
4647 |
rm -f $ac_rmfiles |
4648 |
|
4649 |
if { { ac_try="$ac_link_default" |
4650 |
case "(($ac_try" in |
4651 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4652 |
*) ac_try_echo=$ac_try;; |
4653 |
esac |
4654 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4655 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4656 |
(eval "$ac_link_default") 2>&5 |
4657 |
ac_status=$? |
4658 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4659 |
test $ac_status = 0; } |
4660 |
then : |
4661 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
4662 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
4663 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
4664 |
# so that the user can short-circuit this test for compilers unknown to |
4665 |
# Autoconf. |
4666 |
for ac_file in $ac_files '' |
4667 |
do |
4668 |
test -f "$ac_file" || continue |
4669 |
case $ac_file in |
4670 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4671 |
;; |
4672 |
[ab].out ) |
4673 |
# We found the default executable, but exeext='' is most |
4674 |
# certainly right. |
4675 |
break;; |
4676 |
*.* ) |
4677 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
4678 |
then :; else |
4679 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4680 |
fi |
4681 |
# We set ac_cv_exeext here because the later test for it is not |
4682 |
# safe: cross compilers may not add the suffix if given an `-o' |
4683 |
# argument, so we may need to know it at that point already. |
4684 |
# Even if this section looks crufty: it has the advantage of |
4685 |
# actually working. |
4686 |
break;; |
4687 |
* ) |
4688 |
break;; |
4689 |
esac |
4690 |
done |
4691 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
4692 |
|
4693 |
else $as_nop |
4694 |
ac_file='' |
4695 |
fi |
4696 |
if test -z "$ac_file" |
4697 |
then : |
4698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4699 |
printf "%s\n" "no" >&6; } |
4700 |
printf "%s\n" "$as_me: failed program was:" >&5 |
4701 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4702 |
|
4703 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4704 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4705 |
as_fn_error 77 "C compiler cannot create executables |
4706 |
See \`config.log' for more details" "$LINENO" 5; } |
4707 |
else $as_nop |
4708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4709 |
printf "%s\n" "yes" >&6; } |
4710 |
fi |
4711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4712 |
printf %s "checking for C compiler default output file name... " >&6; } |
4713 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4714 |
printf "%s\n" "$ac_file" >&6; } |
4715 |
ac_exeext=$ac_cv_exeext |
4716 |
|
4717 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4718 |
ac_clean_files=$ac_clean_files_save |
4719 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4720 |
printf %s "checking for suffix of executables... " >&6; } |
4721 |
if { { ac_try="$ac_link" |
4722 |
case "(($ac_try" in |
4723 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4724 |
*) ac_try_echo=$ac_try;; |
4725 |
esac |
4726 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4727 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4728 |
(eval "$ac_link") 2>&5 |
4729 |
ac_status=$? |
4730 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4731 |
test $ac_status = 0; } |
4732 |
then : |
4733 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
4734 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
4735 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
4736 |
# `rm'. |
4737 |
for ac_file in conftest.exe conftest conftest.*; do |
4738 |
test -f "$ac_file" || continue |
4739 |
case $ac_file in |
4740 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4741 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4742 |
break;; |
4743 |
* ) break;; |
4744 |
esac |
4745 |
done |
4746 |
else $as_nop |
4747 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4748 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4749 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4750 |
See \`config.log' for more details" "$LINENO" 5; } |
4751 |
fi |
4752 |
rm -f conftest conftest$ac_cv_exeext |
4753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4754 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
4755 |
|
4756 |
rm -f conftest.$ac_ext |
4757 |
EXEEXT=$ac_cv_exeext |
4758 |
ac_exeext=$EXEEXT |
4759 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4760 |
/* end confdefs.h. */ |
4761 |
#include <stdio.h> |
4762 |
int |
4763 |
main (void) |
4764 |
{ |
4765 |
FILE *f = fopen ("conftest.out", "w"); |
4766 |
return ferror (f) || fclose (f) != 0; |
4767 |
|
4768 |
; |
4769 |
return 0; |
4770 |
} |
4771 |
_ACEOF |
4772 |
ac_clean_files="$ac_clean_files conftest.out" |
4773 |
# Check that the compiler produces executables we can run. If not, either |
4774 |
# the compiler is broken, or we cross compile. |
4775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4776 |
printf %s "checking whether we are cross compiling... " >&6; } |
4777 |
if test "$cross_compiling" != yes; then |
4778 |
{ { ac_try="$ac_link" |
4779 |
case "(($ac_try" in |
4780 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4781 |
*) ac_try_echo=$ac_try;; |
4782 |
esac |
4783 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4784 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4785 |
(eval "$ac_link") 2>&5 |
4786 |
ac_status=$? |
4787 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4788 |
test $ac_status = 0; } |
4789 |
if { ac_try='./conftest$ac_cv_exeext' |
4790 |
{ { case "(($ac_try" in |
4791 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4792 |
*) ac_try_echo=$ac_try;; |
4793 |
esac |
4794 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4795 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4796 |
(eval "$ac_try") 2>&5 |
4797 |
ac_status=$? |
4798 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4799 |
test $ac_status = 0; }; }; then |
4800 |
cross_compiling=no |
4801 |
else |
4802 |
if test "$cross_compiling" = maybe; then |
4803 |
cross_compiling=yes |
4804 |
else |
4805 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4806 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4807 |
as_fn_error 77 "cannot run C compiled programs. |
4808 |
If you meant to cross compile, use \`--host'. |
4809 |
See \`config.log' for more details" "$LINENO" 5; } |
4810 |
fi |
4811 |
fi |
4812 |
fi |
4813 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4814 |
printf "%s\n" "$cross_compiling" >&6; } |
4815 |
|
4816 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
4817 |
ac_clean_files=$ac_clean_files_save |
4818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4819 |
printf %s "checking for suffix of object files... " >&6; } |
4820 |
if test ${ac_cv_objext+y} |
4821 |
then : |
4822 |
printf %s "(cached) " >&6 |
4823 |
else $as_nop |
4824 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4825 |
/* end confdefs.h. */ |
4826 |
|
4827 |
int |
4828 |
main (void) |
4829 |
{ |
4830 |
|
4831 |
; |
4832 |
return 0; |
4833 |
} |
4834 |
_ACEOF |
4835 |
rm -f conftest.o conftest.obj |
4836 |
if { { ac_try="$ac_compile" |
4837 |
case "(($ac_try" in |
4838 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4839 |
*) ac_try_echo=$ac_try;; |
4840 |
esac |
4841 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4842 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4843 |
(eval "$ac_compile") 2>&5 |
4844 |
ac_status=$? |
4845 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4846 |
test $ac_status = 0; } |
4847 |
then : |
4848 |
for ac_file in conftest.o conftest.obj conftest.*; do |
4849 |
test -f "$ac_file" || continue; |
4850 |
case $ac_file in |
4851 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4852 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4853 |
break;; |
4854 |
esac |
4855 |
done |
4856 |
else $as_nop |
4857 |
printf "%s\n" "$as_me: failed program was:" >&5 |
4858 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4859 |
|
4860 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4861 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4862 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
4863 |
See \`config.log' for more details" "$LINENO" 5; } |
4864 |
fi |
4865 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4866 |
fi |
4867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4868 |
printf "%s\n" "$ac_cv_objext" >&6; } |
4869 |
OBJEXT=$ac_cv_objext |
4870 |
ac_objext=$OBJEXT |
4871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4872 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
4873 |
if test ${ac_cv_c_compiler_gnu+y} |
4874 |
then : |
4875 |
printf %s "(cached) " >&6 |
4876 |
else $as_nop |
4877 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4878 |
/* end confdefs.h. */ |
4879 |
|
4880 |
int |
4881 |
main (void) |
4882 |
{ |
4883 |
#ifndef __GNUC__ |
4884 |
choke me |
4885 |
#endif |
4886 |
|
4887 |
; |
4888 |
return 0; |
4889 |
} |
4890 |
_ACEOF |
4891 |
if ac_fn_c_try_compile "$LINENO" |
4892 |
then : |
4893 |
ac_compiler_gnu=yes |
4894 |
else $as_nop |
4895 |
ac_compiler_gnu=no |
4896 |
fi |
4897 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4898 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4899 |
|
4900 |
fi |
4901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4902 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
4903 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4904 |
|
4905 |
if test $ac_compiler_gnu = yes; then |
4906 |
GCC=yes |
4907 |
else |
4908 |
GCC= |
4909 |
fi |
4910 |
ac_test_CFLAGS=${CFLAGS+y} |
4911 |
ac_save_CFLAGS=$CFLAGS |
4912 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4913 |
printf %s "checking whether $CC accepts -g... " >&6; } |
4914 |
if test ${ac_cv_prog_cc_g+y} |
4915 |
then : |
4916 |
printf %s "(cached) " >&6 |
4917 |
else $as_nop |
4918 |
ac_save_c_werror_flag=$ac_c_werror_flag |
4919 |
ac_c_werror_flag=yes |
4920 |
ac_cv_prog_cc_g=no |
4921 |
CFLAGS="-g" |
4922 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4923 |
/* end confdefs.h. */ |
4924 |
|
4925 |
int |
4926 |
main (void) |
4927 |
{ |
4928 |
|
4929 |
; |
4930 |
return 0; |
4931 |
} |
4932 |
_ACEOF |
4933 |
if ac_fn_c_try_compile "$LINENO" |
4934 |
then : |
4935 |
ac_cv_prog_cc_g=yes |
4936 |
else $as_nop |
4937 |
CFLAGS="" |
4938 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4939 |
/* end confdefs.h. */ |
4940 |
|
4941 |
int |
4942 |
main (void) |
4943 |
{ |
4944 |
|
4945 |
; |
4946 |
return 0; |
4947 |
} |
4948 |
_ACEOF |
4949 |
if ac_fn_c_try_compile "$LINENO" |
4950 |
then : |
4951 |
|
4952 |
else $as_nop |
4953 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4954 |
CFLAGS="-g" |
4955 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4956 |
/* end confdefs.h. */ |
4957 |
|
4958 |
int |
4959 |
main (void) |
4960 |
{ |
4961 |
|
4962 |
; |
4963 |
return 0; |
4964 |
} |
4965 |
_ACEOF |
4966 |
if ac_fn_c_try_compile "$LINENO" |
4967 |
then : |
4968 |
ac_cv_prog_cc_g=yes |
4969 |
fi |
4970 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4971 |
fi |
4972 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4973 |
fi |
4974 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4975 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4976 |
fi |
4977 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4978 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
4979 |
if test $ac_test_CFLAGS; then |
4980 |
CFLAGS=$ac_save_CFLAGS |
4981 |
elif test $ac_cv_prog_cc_g = yes; then |
4982 |
if test "$GCC" = yes; then |
4983 |
CFLAGS="-g -O2" |
4984 |
else |
4985 |
CFLAGS="-g" |
4986 |
fi |
4987 |
else |
4988 |
if test "$GCC" = yes; then |
4989 |
CFLAGS="-O2" |
4990 |
else |
4991 |
CFLAGS= |
4992 |
fi |
4993 |
fi |
4994 |
ac_prog_cc_stdc=no |
4995 |
if test x$ac_prog_cc_stdc = xno |
4996 |
then : |
4997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
4998 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
4999 |
if test ${ac_cv_prog_cc_c11+y} |
5000 |
then : |
5001 |
printf %s "(cached) " >&6 |
5002 |
else $as_nop |
5003 |
ac_cv_prog_cc_c11=no |
5004 |
ac_save_CC=$CC |
5005 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5006 |
/* end confdefs.h. */ |
5007 |
$ac_c_conftest_c11_program |
5008 |
_ACEOF |
5009 |
for ac_arg in '' -std=gnu11 |
5010 |
do |
5011 |
CC="$ac_save_CC $ac_arg" |
5012 |
if ac_fn_c_try_compile "$LINENO" |
5013 |
then : |
5014 |
ac_cv_prog_cc_c11=$ac_arg |
5015 |
fi |
5016 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
5017 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
5018 |
done |
5019 |
rm -f conftest.$ac_ext |
5020 |
CC=$ac_save_CC |
5021 |
fi |
5022 |
|
5023 |
if test "x$ac_cv_prog_cc_c11" = xno |
5024 |
then : |
5025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
5026 |
printf "%s\n" "unsupported" >&6; } |
5027 |
else $as_nop |
5028 |
if test "x$ac_cv_prog_cc_c11" = x |
5029 |
then : |
5030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
5031 |
printf "%s\n" "none needed" >&6; } |
5032 |
else $as_nop |
5033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
5034 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
5035 |
CC="$CC $ac_cv_prog_cc_c11" |
5036 |
fi |
5037 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
5038 |
ac_prog_cc_stdc=c11 |
5039 |
fi |
5040 |
fi |
5041 |
if test x$ac_prog_cc_stdc = xno |
5042 |
then : |
5043 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
5044 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
5045 |
if test ${ac_cv_prog_cc_c99+y} |
5046 |
then : |
5047 |
printf %s "(cached) " >&6 |
5048 |
else $as_nop |
5049 |
ac_cv_prog_cc_c99=no |
5050 |
ac_save_CC=$CC |
5051 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5052 |
/* end confdefs.h. */ |
5053 |
$ac_c_conftest_c99_program |
5054 |
_ACEOF |
5055 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
5056 |
do |
5057 |
CC="$ac_save_CC $ac_arg" |
5058 |
if ac_fn_c_try_compile "$LINENO" |
5059 |
then : |
5060 |
ac_cv_prog_cc_c99=$ac_arg |
5061 |
fi |
5062 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
5063 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
5064 |
done |
5065 |
rm -f conftest.$ac_ext |
5066 |
CC=$ac_save_CC |
5067 |
fi |
5068 |
|
5069 |
if test "x$ac_cv_prog_cc_c99" = xno |
5070 |
then : |
5071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
5072 |
printf "%s\n" "unsupported" >&6; } |
5073 |
else $as_nop |
5074 |
if test "x$ac_cv_prog_cc_c99" = x |
5075 |
then : |
5076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
5077 |
printf "%s\n" "none needed" >&6; } |
5078 |
else $as_nop |
5079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
5080 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
5081 |
CC="$CC $ac_cv_prog_cc_c99" |
5082 |
fi |
5083 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
5084 |
ac_prog_cc_stdc=c99 |
5085 |
fi |
5086 |
fi |
5087 |
if test x$ac_prog_cc_stdc = xno |
5088 |
then : |
5089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
5090 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
5091 |
if test ${ac_cv_prog_cc_c89+y} |
5092 |
then : |
5093 |
printf %s "(cached) " >&6 |
5094 |
else $as_nop |
5095 |
ac_cv_prog_cc_c89=no |
5096 |
ac_save_CC=$CC |
5097 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5098 |
/* end confdefs.h. */ |
5099 |
$ac_c_conftest_c89_program |
5100 |
_ACEOF |
5101 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
5102 |
do |
5103 |
CC="$ac_save_CC $ac_arg" |
5104 |
if ac_fn_c_try_compile "$LINENO" |
5105 |
then : |
5106 |
ac_cv_prog_cc_c89=$ac_arg |
5107 |
fi |
5108 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
5109 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
5110 |
done |
5111 |
rm -f conftest.$ac_ext |
5112 |
CC=$ac_save_CC |
5113 |
fi |
5114 |
|
5115 |
if test "x$ac_cv_prog_cc_c89" = xno |
5116 |
then : |
5117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
5118 |
printf "%s\n" "unsupported" >&6; } |
5119 |
else $as_nop |
5120 |
if test "x$ac_cv_prog_cc_c89" = x |
5121 |
then : |
5122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
5123 |
printf "%s\n" "none needed" >&6; } |
5124 |
else $as_nop |
5125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
5126 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
5127 |
CC="$CC $ac_cv_prog_cc_c89" |
5128 |
fi |
5129 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
5130 |
ac_prog_cc_stdc=c89 |
5131 |
fi |
5132 |
fi |
5133 |
|
5134 |
ac_ext=c |
5135 |
ac_cpp='$CPP $CPPFLAGS' |
5136 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5137 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5138 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5139 |
|
5140 |
|
5141 |
ac_ext=c |
5142 |
ac_cpp='$CPP $CPPFLAGS' |
5143 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5144 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5145 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5146 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
5147 |
printf %s "checking whether $CC understands -c and -o together... " >&6; } |
5148 |
if test ${am_cv_prog_cc_c_o+y} |
5149 |
then : |
5150 |
printf %s "(cached) " >&6 |
5151 |
else $as_nop |
5152 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5153 |
/* end confdefs.h. */ |
5154 |
|
5155 |
int |
5156 |
main (void) |
5157 |
{ |
5158 |
|
5159 |
; |
5160 |
return 0; |
5161 |
} |
5162 |
_ACEOF |
5163 |
# Make sure it works both with $CC and with simple cc. |
5164 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
5165 |
# compilers refuse to overwrite an existing .o file with -o, |
5166 |
# though they will create one. |
5167 |
am_cv_prog_cc_c_o=yes |
5168 |
for am_i in 1 2; do |
5169 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
5170 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
5171 |
ac_status=$? |
5172 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5173 |
(exit $ac_status); } \ |
5174 |
&& test -f conftest2.$ac_objext; then |
5175 |
: OK |
5176 |
else |
5177 |
am_cv_prog_cc_c_o=no |
5178 |
break |
5179 |
fi |
5180 |
done |
5181 |
rm -f core conftest* |
5182 |
unset am_i |
5183 |
fi |
5184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
5185 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
5186 |
if test "$am_cv_prog_cc_c_o" != yes; then |
5187 |
# Losing compiler, so override with the script. |
5188 |
# FIXME: It is wrong to rewrite CC. |
5189 |
# But if we don't then we get into trouble of one sort or another. |
5190 |
# A longer-term fix would be to have automake use am__CC in this case, |
5191 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
5192 |
CC="$am_aux_dir/compile $CC" |
5193 |
fi |
5194 |
ac_ext=c |
5195 |
ac_cpp='$CPP $CPPFLAGS' |
5196 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5197 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5198 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5199 |
|
5200 |
|
5201 |
depcc="$CC" am_compiler_list= |
5202 |
|
5203 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5204 |
printf %s "checking dependency style of $depcc... " >&6; } |
5205 |
if test ${am_cv_CC_dependencies_compiler_type+y} |
5206 |
then : |
5207 |
printf %s "(cached) " >&6 |
5208 |
else $as_nop |
5209 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5210 |
# We make a subdir and do the tests there. Otherwise we can end up |
5211 |
# making bogus files that we don't know about and never remove. For |
5212 |
# instance it was reported that on HP-UX the gcc test will end up |
5213 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
5214 |
# in D". |
5215 |
rm -rf conftest.dir |
5216 |
mkdir conftest.dir |
5217 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
5218 |
# using a relative directory. |
5219 |
cp "$am_depcomp" conftest.dir |
5220 |
cd conftest.dir |
5221 |
# We will build objects and dependencies in a subdirectory because |
5222 |
# it helps to detect inapplicable dependency modes. For instance |
5223 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
5224 |
# side effect of compilation, but ICC will put the dependencies in |
5225 |
# the current directory while Tru64 will put them in the object |
5226 |
# directory. |
5227 |
mkdir sub |
5228 |
|
5229 |
am_cv_CC_dependencies_compiler_type=none |
5230 |
if test "$am_compiler_list" = ""; then |
5231 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5232 |
fi |
5233 |
am__universal=false |
5234 |
case " $depcc " in #( |
5235 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
5236 |
esac |
5237 |
|
5238 |
for depmode in $am_compiler_list; do |
5239 |
# Setup a source with many dependencies, because some compilers |
5240 |
# like to wrap large dependency lists on column 80 (with \), and |
5241 |
# we should not choose a depcomp mode which is confused by this. |
5242 |
# |
5243 |
# We need to recreate these files for each test, as the compiler may |
5244 |
# overwrite some of them when testing with obscure command lines. |
5245 |
# This happens at least with the AIX C compiler. |
5246 |
: > sub/conftest.c |
5247 |
for i in 1 2 3 4 5 6; do |
5248 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5249 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5250 |
# Solaris 10 /bin/sh. |
5251 |
echo '/* dummy */' > sub/conftst$i.h |
5252 |
done |
5253 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5254 |
|
5255 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
5256 |
# mode. It turns out that the SunPro C++ compiler does not properly |
5257 |
# handle '-M -o', and we need to detect this. Also, some Intel |
5258 |
# versions had trouble with output in subdirs. |
5259 |
am__obj=sub/conftest.${OBJEXT-o} |
5260 |
am__minus_obj="-o $am__obj" |
5261 |
case $depmode in |
5262 |
gcc) |
5263 |
# This depmode causes a compiler race in universal mode. |
5264 |
test "$am__universal" = false || continue |
5265 |
;; |
5266 |
nosideeffect) |
5267 |
# After this tag, mechanisms are not by side-effect, so they'll |
5268 |
# only be used when explicitly requested. |
5269 |
if test "x$enable_dependency_tracking" = xyes; then |
5270 |
continue |
5271 |
else |
5272 |
break |
5273 |
fi |
5274 |
;; |
5275 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
5276 |
# This compiler won't grok '-c -o', but also, the minuso test has |
5277 |
# not run yet. These depmodes are late enough in the game, and |
5278 |
# so weak that their functioning should not be impacted. |
5279 |
am__obj=conftest.${OBJEXT-o} |
5280 |
am__minus_obj= |
5281 |
;; |
5282 |
none) break ;; |
5283 |
esac |
5284 |
if depmode=$depmode \ |
5285 |
source=sub/conftest.c object=$am__obj \ |
5286 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5287 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
5288 |
>/dev/null 2>conftest.err && |
5289 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
5290 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5291 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
5292 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5293 |
# icc doesn't choke on unknown options, it will just issue warnings |
5294 |
# or remarks (even with -Werror). So we grep stderr for any message |
5295 |
# that says an option was ignored or not supported. |
5296 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
5297 |
# icc: Command line warning: ignoring option '-M'; no argument required |
5298 |
# The diagnosis changed in icc 8.0: |
5299 |
# icc: Command line remark: option '-MP' not supported |
5300 |
if (grep 'ignoring option' conftest.err || |
5301 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5302 |
am_cv_CC_dependencies_compiler_type=$depmode |
5303 |
break |
5304 |
fi |
5305 |
fi |
5306 |
done |
5307 |
|
5308 |
cd .. |
5309 |
rm -rf conftest.dir |
5310 |
else |
5311 |
am_cv_CC_dependencies_compiler_type=none |
5312 |
fi |
5313 |
|
5314 |
fi |
5315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5316 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
5317 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5318 |
|
5319 |
if |
5320 |
test "x$enable_dependency_tracking" != xno \ |
5321 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
5322 |
am__fastdepCC_TRUE= |
5323 |
am__fastdepCC_FALSE='#' |
5324 |
else |
5325 |
am__fastdepCC_TRUE='#' |
5326 |
am__fastdepCC_FALSE= |
5327 |
fi |
5328 |
|
5329 |
|
5330 |
|
5331 |
# Check whether --with-gnu-ld was given. |
5332 |
if test ${with_gnu_ld+y} |
5333 |
then : |
5334 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
5335 |
else $as_nop |
5336 |
with_gnu_ld=no |
5337 |
fi |
5338 |
|
5339 |
ac_prog=ld |
5340 |
if test "$GCC" = yes; then |
5341 |
# Check if gcc -print-prog-name=ld gives a path. |
5342 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
5343 |
printf %s "checking for ld used by GCC... " >&6; } |
5344 |
case $host in |
5345 |
*-*-mingw*) |
5346 |
# gcc leaves a trailing carriage return which upsets mingw |
5347 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5348 |
*) |
5349 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
5350 |
esac |
5351 |
case $ac_prog in |
5352 |
# Accept absolute paths. |
5353 |
[\\/]* | [A-Za-z]:[\\/]*) |
5354 |
re_direlt='/[^/][^/]*/\.\./' |
5355 |
# Canonicalize the path of ld |
5356 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
5357 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
5358 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
5359 |
done |
5360 |
test -z "$LD" && LD="$ac_prog" |
5361 |
;; |
5362 |
"") |
5363 |
# If it fails, then pretend we aren't using GCC. |
5364 |
ac_prog=ld |
5365 |
;; |
5366 |
*) |
5367 |
# If it is relative, then search for the first ld in PATH. |
5368 |
with_gnu_ld=unknown |
5369 |
;; |
5370 |
esac |
5371 |
elif test "$with_gnu_ld" = yes; then |
5372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5373 |
printf %s "checking for GNU ld... " >&6; } |
5374 |
else |
5375 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5376 |
printf %s "checking for non-GNU ld... " >&6; } |
5377 |
fi |
5378 |
if test ${acl_cv_path_LD+y} |
5379 |
then : |
5380 |
printf %s "(cached) " >&6 |
5381 |
else $as_nop |
5382 |
if test -z "$LD"; then |
5383 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
5384 |
for ac_dir in $PATH; do |
5385 |
test -z "$ac_dir" && ac_dir=. |
5386 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
5387 |
acl_cv_path_LD="$ac_dir/$ac_prog" |
5388 |
# Check to see if the program is GNU ld. I'd rather use --version, |
5389 |
# but apparently some GNU ld's only accept -v. |
5390 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
5391 |
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
5392 |
test "$with_gnu_ld" != no && break |
5393 |
else |
5394 |
test "$with_gnu_ld" != yes && break |
5395 |
fi |
5396 |
fi |
5397 |
done |
5398 |
IFS="$ac_save_ifs" |
5399 |
else |
5400 |
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
5401 |
fi |
5402 |
fi |
5403 |
|
5404 |
LD="$acl_cv_path_LD" |
5405 |
if test -n "$LD"; then |
5406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5407 |
printf "%s\n" "$LD" >&6; } |
5408 |
else |
5409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5410 |
printf "%s\n" "no" >&6; } |
5411 |
fi |
5412 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5414 |
printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
5415 |
if test ${acl_cv_prog_gnu_ld+y} |
5416 |
then : |
5417 |
printf %s "(cached) " >&6 |
5418 |
else $as_nop |
5419 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
5420 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
5421 |
acl_cv_prog_gnu_ld=yes |
5422 |
else |
5423 |
acl_cv_prog_gnu_ld=no |
5424 |
fi |
5425 |
fi |
5426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
5427 |
printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } |
5428 |
with_gnu_ld=$acl_cv_prog_gnu_ld |
5429 |
|
5430 |
|
5431 |
|
5432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
5433 |
printf %s "checking for shared library run path origin... " >&6; } |
5434 |
if test ${acl_cv_rpath+y} |
5435 |
then : |
5436 |
printf %s "(cached) " >&6 |
5437 |
else $as_nop |
5438 |
|
5439 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
5440 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
5441 |
. ./conftest.sh |
5442 |
rm -f ./conftest.sh |
5443 |
acl_cv_rpath=done |
5444 |
|
5445 |
fi |
5446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
5447 |
printf "%s\n" "$acl_cv_rpath" >&6; } |
5448 |
wl="$acl_cv_wl" |
5449 |
libext="$acl_cv_libext" |
5450 |
shlibext="$acl_cv_shlibext" |
5451 |
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
5452 |
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
5453 |
hardcode_direct="$acl_cv_hardcode_direct" |
5454 |
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
5455 |
sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
5456 |
sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
5457 |
# Check whether --enable-rpath was given. |
5458 |
if test ${enable_rpath+y} |
5459 |
then : |
5460 |
enableval=$enable_rpath; : |
5461 |
else $as_nop |
5462 |
enable_rpath=yes |
5463 |
fi |
5464 |
|
5465 |
|
5466 |
|
5467 |
|
5468 |
|
5469 |
|
5470 |
|
5471 |
|
5472 |
use_additional=yes |
5473 |
|
5474 |
acl_save_prefix="$prefix" |
5475 |
prefix="$acl_final_prefix" |
5476 |
acl_save_exec_prefix="$exec_prefix" |
5477 |
exec_prefix="$acl_final_exec_prefix" |
5478 |
|
5479 |
eval additional_includedir=\"$includedir\" |
5480 |
eval additional_libdir=\"$libdir\" |
5481 |
|
5482 |
exec_prefix="$acl_save_exec_prefix" |
5483 |
prefix="$acl_save_prefix" |
5484 |
|
5485 |
|
5486 |
# Check whether --with-libiconv-prefix was given. |
5487 |
if test ${with_libiconv_prefix+y} |
5488 |
then : |
5489 |
withval=$with_libiconv_prefix; |
5490 |
if test "X$withval" = "Xno"; then |
5491 |
use_additional=no |
5492 |
else |
5493 |
if test "X$withval" = "X"; then |
5494 |
|
5495 |
acl_save_prefix="$prefix" |
5496 |
prefix="$acl_final_prefix" |
5497 |
acl_save_exec_prefix="$exec_prefix" |
5498 |
exec_prefix="$acl_final_exec_prefix" |
5499 |
|
5500 |
eval additional_includedir=\"$includedir\" |
5501 |
eval additional_libdir=\"$libdir\" |
5502 |
|
5503 |
exec_prefix="$acl_save_exec_prefix" |
5504 |
prefix="$acl_save_prefix" |
5505 |
|
5506 |
else |
5507 |
additional_includedir="$withval/include" |
5508 |
additional_libdir="$withval/lib" |
5509 |
fi |
5510 |
fi |
5511 |
|
5512 |
fi |
5513 |
|
5514 |
LIBICONV= |
5515 |
LTLIBICONV= |
5516 |
INCICONV= |
5517 |
rpathdirs= |
5518 |
ltrpathdirs= |
5519 |
names_already_handled= |
5520 |
names_next_round='iconv ' |
5521 |
while test -n "$names_next_round"; do |
5522 |
names_this_round="$names_next_round" |
5523 |
names_next_round= |
5524 |
for name in $names_this_round; do |
5525 |
already_handled= |
5526 |
for n in $names_already_handled; do |
5527 |
if test "$n" = "$name"; then |
5528 |
already_handled=yes |
5529 |
break |
5530 |
fi |
5531 |
done |
5532 |
if test -z "$already_handled"; then |
5533 |
names_already_handled="$names_already_handled $name" |
5534 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
5535 |
eval value=\"\$HAVE_LIB$uppername\" |
5536 |
if test -n "$value"; then |
5537 |
if test "$value" = yes; then |
5538 |
eval value=\"\$LIB$uppername\" |
5539 |
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
5540 |
eval value=\"\$LTLIB$uppername\" |
5541 |
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
5542 |
else |
5543 |
: |
5544 |
fi |
5545 |
else |
5546 |
found_dir= |
5547 |
found_la= |
5548 |
found_so= |
5549 |
found_a= |
5550 |
if test $use_additional = yes; then |
5551 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
5552 |
found_dir="$additional_libdir" |
5553 |
found_so="$additional_libdir/lib$name.$shlibext" |
5554 |
if test -f "$additional_libdir/lib$name.la"; then |
5555 |
found_la="$additional_libdir/lib$name.la" |
5556 |
fi |
5557 |
else |
5558 |
if test -f "$additional_libdir/lib$name.$libext"; then |
5559 |
found_dir="$additional_libdir" |
5560 |
found_a="$additional_libdir/lib$name.$libext" |
5561 |
if test -f "$additional_libdir/lib$name.la"; then |
5562 |
found_la="$additional_libdir/lib$name.la" |
5563 |
fi |
5564 |
fi |
5565 |
fi |
5566 |
fi |
5567 |
if test "X$found_dir" = "X"; then |
5568 |
for x in $LDFLAGS $LTLIBICONV; do |
5569 |
|
5570 |
acl_save_prefix="$prefix" |
5571 |
prefix="$acl_final_prefix" |
5572 |
acl_save_exec_prefix="$exec_prefix" |
5573 |
exec_prefix="$acl_final_exec_prefix" |
5574 |
eval x=\"$x\" |
5575 |
exec_prefix="$acl_save_exec_prefix" |
5576 |
prefix="$acl_save_prefix" |
5577 |
|
5578 |
case "$x" in |
5579 |
-L*) |
5580 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
5581 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
5582 |
found_dir="$dir" |
5583 |
found_so="$dir/lib$name.$shlibext" |
5584 |
if test -f "$dir/lib$name.la"; then |
5585 |
found_la="$dir/lib$name.la" |
5586 |
fi |
5587 |
else |
5588 |
if test -f "$dir/lib$name.$libext"; then |
5589 |
found_dir="$dir" |
5590 |
found_a="$dir/lib$name.$libext" |
5591 |
if test -f "$dir/lib$name.la"; then |
5592 |
found_la="$dir/lib$name.la" |
5593 |
fi |
5594 |
fi |
5595 |
fi |
5596 |
;; |
5597 |
esac |
5598 |
if test "X$found_dir" != "X"; then |
5599 |
break |
5600 |
fi |
5601 |
done |
5602 |
fi |
5603 |
if test "X$found_dir" != "X"; then |
5604 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
5605 |
if test "X$found_so" != "X"; then |
5606 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
5607 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
5608 |
else |
5609 |
haveit= |
5610 |
for x in $ltrpathdirs; do |
5611 |
if test "X$x" = "X$found_dir"; then |
5612 |
haveit=yes |
5613 |
break |
5614 |
fi |
5615 |
done |
5616 |
if test -z "$haveit"; then |
5617 |
ltrpathdirs="$ltrpathdirs $found_dir" |
5618 |
fi |
5619 |
if test "$hardcode_direct" = yes; then |
5620 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
5621 |
else |
5622 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
5623 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
5624 |
haveit= |
5625 |
for x in $rpathdirs; do |
5626 |
if test "X$x" = "X$found_dir"; then |
5627 |
haveit=yes |
5628 |
break |
5629 |
fi |
5630 |
done |
5631 |
if test -z "$haveit"; then |
5632 |
rpathdirs="$rpathdirs $found_dir" |
5633 |
fi |
5634 |
else |
5635 |
haveit= |
5636 |
for x in $LDFLAGS $LIBICONV; do |
5637 |
|
5638 |
acl_save_prefix="$prefix" |
5639 |
prefix="$acl_final_prefix" |
5640 |
acl_save_exec_prefix="$exec_prefix" |
5641 |
exec_prefix="$acl_final_exec_prefix" |
5642 |
eval x=\"$x\" |
5643 |
exec_prefix="$acl_save_exec_prefix" |
5644 |
prefix="$acl_save_prefix" |
5645 |
|
5646 |
if test "X$x" = "X-L$found_dir"; then |
5647 |
haveit=yes |
5648 |
break |
5649 |
fi |
5650 |
done |
5651 |
if test -z "$haveit"; then |
5652 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
5653 |
fi |
5654 |
if test "$hardcode_minus_L" != no; then |
5655 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
5656 |
else |
5657 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
5658 |
fi |
5659 |
fi |
5660 |
fi |
5661 |
fi |
5662 |
else |
5663 |
if test "X$found_a" != "X"; then |
5664 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
5665 |
else |
5666 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
5667 |
fi |
5668 |
fi |
5669 |
additional_includedir= |
5670 |
case "$found_dir" in |
5671 |
*/lib | */lib/) |
5672 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
5673 |
additional_includedir="$basedir/include" |
5674 |
;; |
5675 |
esac |
5676 |
if test "X$additional_includedir" != "X"; then |
5677 |
if test "X$additional_includedir" != "X/usr/include"; then |
5678 |
haveit= |
5679 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
5680 |
if test -n "$GCC"; then |
5681 |
case $host_os in |
5682 |
linux*) haveit=yes;; |
5683 |
esac |
5684 |
fi |
5685 |
fi |
5686 |
if test -z "$haveit"; then |
5687 |
for x in $CPPFLAGS $INCICONV; do |
5688 |
|
5689 |
acl_save_prefix="$prefix" |
5690 |
prefix="$acl_final_prefix" |
5691 |
acl_save_exec_prefix="$exec_prefix" |
5692 |
exec_prefix="$acl_final_exec_prefix" |
5693 |
eval x=\"$x\" |
5694 |
exec_prefix="$acl_save_exec_prefix" |
5695 |
prefix="$acl_save_prefix" |
5696 |
|
5697 |
if test "X$x" = "X-I$additional_includedir"; then |
5698 |
haveit=yes |
5699 |
break |
5700 |
fi |
5701 |
done |
5702 |
if test -z "$haveit"; then |
5703 |
if test -d "$additional_includedir"; then |
5704 |
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
5705 |
fi |
5706 |
fi |
5707 |
fi |
5708 |
fi |
5709 |
fi |
5710 |
if test -n "$found_la"; then |
5711 |
save_libdir="$libdir" |
5712 |
case "$found_la" in |
5713 |
*/* | *\\*) . "$found_la" ;; |
5714 |
*) . "./$found_la" ;; |
5715 |
esac |
5716 |
libdir="$save_libdir" |
5717 |
for dep in $dependency_libs; do |
5718 |
case "$dep" in |
5719 |
-L*) |
5720 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
5721 |
if test "X$additional_libdir" != "X/usr/lib"; then |
5722 |
haveit= |
5723 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
5724 |
if test -n "$GCC"; then |
5725 |
case $host_os in |
5726 |
linux*) haveit=yes;; |
5727 |
esac |
5728 |
fi |
5729 |
fi |
5730 |
if test -z "$haveit"; then |
5731 |
haveit= |
5732 |
for x in $LDFLAGS $LIBICONV; do |
5733 |
|
5734 |
acl_save_prefix="$prefix" |
5735 |
prefix="$acl_final_prefix" |
5736 |
acl_save_exec_prefix="$exec_prefix" |
5737 |
exec_prefix="$acl_final_exec_prefix" |
5738 |
eval x=\"$x\" |
5739 |
exec_prefix="$acl_save_exec_prefix" |
5740 |
prefix="$acl_save_prefix" |
5741 |
|
5742 |
if test "X$x" = "X-L$additional_libdir"; then |
5743 |
haveit=yes |
5744 |
break |
5745 |
fi |
5746 |
done |
5747 |
if test -z "$haveit"; then |
5748 |
if test -d "$additional_libdir"; then |
5749 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
5750 |
fi |
5751 |
fi |
5752 |
haveit= |
5753 |
for x in $LDFLAGS $LTLIBICONV; do |
5754 |
|
5755 |
acl_save_prefix="$prefix" |
5756 |
prefix="$acl_final_prefix" |
5757 |
acl_save_exec_prefix="$exec_prefix" |
5758 |
exec_prefix="$acl_final_exec_prefix" |
5759 |
eval x=\"$x\" |
5760 |
exec_prefix="$acl_save_exec_prefix" |
5761 |
prefix="$acl_save_prefix" |
5762 |
|
5763 |
if test "X$x" = "X-L$additional_libdir"; then |
5764 |
haveit=yes |
5765 |
break |
5766 |
fi |
5767 |
done |
5768 |
if test -z "$haveit"; then |
5769 |
if test -d "$additional_libdir"; then |
5770 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
5771 |
fi |
5772 |
fi |
5773 |
fi |
5774 |
fi |
5775 |
;; |
5776 |
-R*) |
5777 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
5778 |
if test "$enable_rpath" != no; then |
5779 |
haveit= |
5780 |
for x in $rpathdirs; do |
5781 |
if test "X$x" = "X$dir"; then |
5782 |
haveit=yes |
5783 |
break |
5784 |
fi |
5785 |
done |
5786 |
if test -z "$haveit"; then |
5787 |
rpathdirs="$rpathdirs $dir" |
5788 |
fi |
5789 |
haveit= |
5790 |
for x in $ltrpathdirs; do |
5791 |
if test "X$x" = "X$dir"; then |
5792 |
haveit=yes |
5793 |
break |
5794 |
fi |
5795 |
done |
5796 |
if test -z "$haveit"; then |
5797 |
ltrpathdirs="$ltrpathdirs $dir" |
5798 |
fi |
5799 |
fi |
5800 |
;; |
5801 |
-l*) |
5802 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
5803 |
;; |
5804 |
*.la) |
5805 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
5806 |
;; |
5807 |
*) |
5808 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
5809 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
5810 |
;; |
5811 |
esac |
5812 |
done |
5813 |
fi |
5814 |
else |
5815 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
5816 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
5817 |
fi |
5818 |
fi |
5819 |
fi |
5820 |
done |
5821 |
done |
5822 |
if test "X$rpathdirs" != "X"; then |
5823 |
if test -n "$hardcode_libdir_separator"; then |
5824 |
alldirs= |
5825 |
for found_dir in $rpathdirs; do |
5826 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
5827 |
done |
5828 |
acl_save_libdir="$libdir" |
5829 |
libdir="$alldirs" |
5830 |
eval flag=\"$hardcode_libdir_flag_spec\" |
5831 |
libdir="$acl_save_libdir" |
5832 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
5833 |
else |
5834 |
for found_dir in $rpathdirs; do |
5835 |
acl_save_libdir="$libdir" |
5836 |
libdir="$found_dir" |
5837 |
eval flag=\"$hardcode_libdir_flag_spec\" |
5838 |
libdir="$acl_save_libdir" |
5839 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
5840 |
done |
5841 |
fi |
5842 |
fi |
5843 |
if test "X$ltrpathdirs" != "X"; then |
5844 |
for found_dir in $ltrpathdirs; do |
5845 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
5846 |
done |
5847 |
fi |
5848 |
|
5849 |
|
5850 |
|
5851 |
|
5852 |
|
5853 |
|
5854 |
|
5855 |
|
5856 |
|
5857 |
|
5858 |
|
5859 |
|
5860 |
|
5861 |
|
5862 |
|
5863 |
|
5864 |
|
5865 |
|
5866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5867 |
printf %s "checking whether NLS is requested... " >&6; } |
5868 |
# Check whether --enable-nls was given. |
5869 |
if test ${enable_nls+y} |
5870 |
then : |
5871 |
enableval=$enable_nls; USE_NLS=$enableval |
5872 |
else $as_nop |
5873 |
USE_NLS=yes |
5874 |
fi |
5875 |
|
5876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5877 |
printf "%s\n" "$USE_NLS" >&6; } |
5878 |
|
5879 |
|
5880 |
|
5881 |
LIBINTL= |
5882 |
LTLIBINTL= |
5883 |
POSUB= |
5884 |
|
5885 |
if test "$USE_NLS" = "yes"; then |
5886 |
gt_use_preinstalled_gnugettext=no |
5887 |
|
5888 |
|
5889 |
|
5890 |
|
5891 |
|
5892 |
|
5893 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
5894 |
printf %s "checking for GNU gettext in libc... " >&6; } |
5895 |
if test ${gt_cv_func_gnugettext1_libc+y} |
5896 |
then : |
5897 |
printf %s "(cached) " >&6 |
5898 |
else $as_nop |
5899 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5900 |
/* end confdefs.h. */ |
5901 |
#include <libintl.h> |
5902 |
extern int _nl_msg_cat_cntr; |
5903 |
extern int *_nl_domain_bindings; |
5904 |
int |
5905 |
main (void) |
5906 |
{ |
5907 |
bindtextdomain ("", ""); |
5908 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
5909 |
; |
5910 |
return 0; |
5911 |
} |
5912 |
_ACEOF |
5913 |
if ac_fn_c_try_link "$LINENO" |
5914 |
then : |
5915 |
gt_cv_func_gnugettext1_libc=yes |
5916 |
else $as_nop |
5917 |
gt_cv_func_gnugettext1_libc=no |
5918 |
fi |
5919 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5920 |
conftest$ac_exeext conftest.$ac_ext |
5921 |
fi |
5922 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
5923 |
printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; } |
5924 |
|
5925 |
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
5926 |
|
5927 |
|
5928 |
|
5929 |
|
5930 |
|
5931 |
am_save_CPPFLAGS="$CPPFLAGS" |
5932 |
|
5933 |
for element in $INCICONV; do |
5934 |
haveit= |
5935 |
for x in $CPPFLAGS; do |
5936 |
|
5937 |
acl_save_prefix="$prefix" |
5938 |
prefix="$acl_final_prefix" |
5939 |
acl_save_exec_prefix="$exec_prefix" |
5940 |
exec_prefix="$acl_final_exec_prefix" |
5941 |
eval x=\"$x\" |
5942 |
exec_prefix="$acl_save_exec_prefix" |
5943 |
prefix="$acl_save_prefix" |
5944 |
|
5945 |
if test "X$x" = "X$element"; then |
5946 |
haveit=yes |
5947 |
break |
5948 |
fi |
5949 |
done |
5950 |
if test -z "$haveit"; then |
5951 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5952 |
fi |
5953 |
done |
5954 |
|
5955 |
|
5956 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
5957 |
printf %s "checking for iconv... " >&6; } |
5958 |
if test ${am_cv_func_iconv+y} |
5959 |
then : |
5960 |
printf %s "(cached) " >&6 |
5961 |
else $as_nop |
5962 |
|
5963 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
5964 |
am_cv_lib_iconv=no |
5965 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5966 |
/* end confdefs.h. */ |
5967 |
#include <stdlib.h> |
5968 |
#include <iconv.h> |
5969 |
int |
5970 |
main (void) |
5971 |
{ |
5972 |
iconv_t cd = iconv_open("",""); |
5973 |
iconv(cd,NULL,NULL,NULL,NULL); |
5974 |
iconv_close(cd); |
5975 |
; |
5976 |
return 0; |
5977 |
} |
5978 |
_ACEOF |
5979 |
if ac_fn_c_try_link "$LINENO" |
5980 |
then : |
5981 |
am_cv_func_iconv=yes |
5982 |
fi |
5983 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5984 |
conftest$ac_exeext conftest.$ac_ext |
5985 |
if test "$am_cv_func_iconv" != yes; then |
5986 |
am_save_LIBS="$LIBS" |
5987 |
LIBS="$LIBS $LIBICONV" |
5988 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5989 |
/* end confdefs.h. */ |
5990 |
#include <stdlib.h> |
5991 |
#include <iconv.h> |
5992 |
int |
5993 |
main (void) |
5994 |
{ |
5995 |
iconv_t cd = iconv_open("",""); |
5996 |
iconv(cd,NULL,NULL,NULL,NULL); |
5997 |
iconv_close(cd); |
5998 |
; |
5999 |
return 0; |
6000 |
} |
6001 |
_ACEOF |
6002 |
if ac_fn_c_try_link "$LINENO" |
6003 |
then : |
6004 |
am_cv_lib_iconv=yes |
6005 |
am_cv_func_iconv=yes |
6006 |
fi |
6007 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6008 |
conftest$ac_exeext conftest.$ac_ext |
6009 |
LIBS="$am_save_LIBS" |
6010 |
fi |
6011 |
|
6012 |
fi |
6013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
6014 |
printf "%s\n" "$am_cv_func_iconv" >&6; } |
6015 |
if test "$am_cv_func_iconv" = yes; then |
6016 |
|
6017 |
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
6018 |
|
6019 |
fi |
6020 |
if test "$am_cv_lib_iconv" = yes; then |
6021 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
6022 |
printf %s "checking how to link with libiconv... " >&6; } |
6023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
6024 |
printf "%s\n" "$LIBICONV" >&6; } |
6025 |
else |
6026 |
CPPFLAGS="$am_save_CPPFLAGS" |
6027 |
LIBICONV= |
6028 |
LTLIBICONV= |
6029 |
fi |
6030 |
|
6031 |
|
6032 |
|
6033 |
|
6034 |
|
6035 |
|
6036 |
use_additional=yes |
6037 |
|
6038 |
acl_save_prefix="$prefix" |
6039 |
prefix="$acl_final_prefix" |
6040 |
acl_save_exec_prefix="$exec_prefix" |
6041 |
exec_prefix="$acl_final_exec_prefix" |
6042 |
|
6043 |
eval additional_includedir=\"$includedir\" |
6044 |
eval additional_libdir=\"$libdir\" |
6045 |
|
6046 |
exec_prefix="$acl_save_exec_prefix" |
6047 |
prefix="$acl_save_prefix" |
6048 |
|
6049 |
|
6050 |
# Check whether --with-libintl-prefix was given. |
6051 |
if test ${with_libintl_prefix+y} |
6052 |
then : |
6053 |
withval=$with_libintl_prefix; |
6054 |
if test "X$withval" = "Xno"; then |
6055 |
use_additional=no |
6056 |
else |
6057 |
if test "X$withval" = "X"; then |
6058 |
|
6059 |
acl_save_prefix="$prefix" |
6060 |
prefix="$acl_final_prefix" |
6061 |
acl_save_exec_prefix="$exec_prefix" |
6062 |
exec_prefix="$acl_final_exec_prefix" |
6063 |
|
6064 |
eval additional_includedir=\"$includedir\" |
6065 |
eval additional_libdir=\"$libdir\" |
6066 |
|
6067 |
exec_prefix="$acl_save_exec_prefix" |
6068 |
prefix="$acl_save_prefix" |
6069 |
|
6070 |
else |
6071 |
additional_includedir="$withval/include" |
6072 |
additional_libdir="$withval/lib" |
6073 |
fi |
6074 |
fi |
6075 |
|
6076 |
fi |
6077 |
|
6078 |
LIBINTL= |
6079 |
LTLIBINTL= |
6080 |
INCINTL= |
6081 |
rpathdirs= |
6082 |
ltrpathdirs= |
6083 |
names_already_handled= |
6084 |
names_next_round='intl ' |
6085 |
while test -n "$names_next_round"; do |
6086 |
names_this_round="$names_next_round" |
6087 |
names_next_round= |
6088 |
for name in $names_this_round; do |
6089 |
already_handled= |
6090 |
for n in $names_already_handled; do |
6091 |
if test "$n" = "$name"; then |
6092 |
already_handled=yes |
6093 |
break |
6094 |
fi |
6095 |
done |
6096 |
if test -z "$already_handled"; then |
6097 |
names_already_handled="$names_already_handled $name" |
6098 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
6099 |
eval value=\"\$HAVE_LIB$uppername\" |
6100 |
if test -n "$value"; then |
6101 |
if test "$value" = yes; then |
6102 |
eval value=\"\$LIB$uppername\" |
6103 |
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
6104 |
eval value=\"\$LTLIB$uppername\" |
6105 |
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
6106 |
else |
6107 |
: |
6108 |
fi |
6109 |
else |
6110 |
found_dir= |
6111 |
found_la= |
6112 |
found_so= |
6113 |
found_a= |
6114 |
if test $use_additional = yes; then |
6115 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
6116 |
found_dir="$additional_libdir" |
6117 |
found_so="$additional_libdir/lib$name.$shlibext" |
6118 |
if test -f "$additional_libdir/lib$name.la"; then |
6119 |
found_la="$additional_libdir/lib$name.la" |
6120 |
fi |
6121 |
else |
6122 |
if test -f "$additional_libdir/lib$name.$libext"; then |
6123 |
found_dir="$additional_libdir" |
6124 |
found_a="$additional_libdir/lib$name.$libext" |
6125 |
if test -f "$additional_libdir/lib$name.la"; then |
6126 |
found_la="$additional_libdir/lib$name.la" |
6127 |
fi |
6128 |
fi |
6129 |
fi |
6130 |
fi |
6131 |
if test "X$found_dir" = "X"; then |
6132 |
for x in $LDFLAGS $LTLIBINTL; do |
6133 |
|
6134 |
acl_save_prefix="$prefix" |
6135 |
prefix="$acl_final_prefix" |
6136 |
acl_save_exec_prefix="$exec_prefix" |
6137 |
exec_prefix="$acl_final_exec_prefix" |
6138 |
eval x=\"$x\" |
6139 |
exec_prefix="$acl_save_exec_prefix" |
6140 |
prefix="$acl_save_prefix" |
6141 |
|
6142 |
case "$x" in |
6143 |
-L*) |
6144 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
6145 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
6146 |
found_dir="$dir" |
6147 |
found_so="$dir/lib$name.$shlibext" |
6148 |
if test -f "$dir/lib$name.la"; then |
6149 |
found_la="$dir/lib$name.la" |
6150 |
fi |
6151 |
else |
6152 |
if test -f "$dir/lib$name.$libext"; then |
6153 |
found_dir="$dir" |
6154 |
found_a="$dir/lib$name.$libext" |
6155 |
if test -f "$dir/lib$name.la"; then |
6156 |
found_la="$dir/lib$name.la" |
6157 |
fi |
6158 |
fi |
6159 |
fi |
6160 |
;; |
6161 |
esac |
6162 |
if test "X$found_dir" != "X"; then |
6163 |
break |
6164 |
fi |
6165 |
done |
6166 |
fi |
6167 |
if test "X$found_dir" != "X"; then |
6168 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
6169 |
if test "X$found_so" != "X"; then |
6170 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
6171 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
6172 |
else |
6173 |
haveit= |
6174 |
for x in $ltrpathdirs; do |
6175 |
if test "X$x" = "X$found_dir"; then |
6176 |
haveit=yes |
6177 |
break |
6178 |
fi |
6179 |
done |
6180 |
if test -z "$haveit"; then |
6181 |
ltrpathdirs="$ltrpathdirs $found_dir" |
6182 |
fi |
6183 |
if test "$hardcode_direct" = yes; then |
6184 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
6185 |
else |
6186 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
6187 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
6188 |
haveit= |
6189 |
for x in $rpathdirs; do |
6190 |
if test "X$x" = "X$found_dir"; then |
6191 |
haveit=yes |
6192 |
break |
6193 |
fi |
6194 |
done |
6195 |
if test -z "$haveit"; then |
6196 |
rpathdirs="$rpathdirs $found_dir" |
6197 |
fi |
6198 |
else |
6199 |
haveit= |
6200 |
for x in $LDFLAGS $LIBINTL; do |
6201 |
|
6202 |
acl_save_prefix="$prefix" |
6203 |
prefix="$acl_final_prefix" |
6204 |
acl_save_exec_prefix="$exec_prefix" |
6205 |
exec_prefix="$acl_final_exec_prefix" |
6206 |
eval x=\"$x\" |
6207 |
exec_prefix="$acl_save_exec_prefix" |
6208 |
prefix="$acl_save_prefix" |
6209 |
|
6210 |
if test "X$x" = "X-L$found_dir"; then |
6211 |
haveit=yes |
6212 |
break |
6213 |
fi |
6214 |
done |
6215 |
if test -z "$haveit"; then |
6216 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
6217 |
fi |
6218 |
if test "$hardcode_minus_L" != no; then |
6219 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
6220 |
else |
6221 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
6222 |
fi |
6223 |
fi |
6224 |
fi |
6225 |
fi |
6226 |
else |
6227 |
if test "X$found_a" != "X"; then |
6228 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
6229 |
else |
6230 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
6231 |
fi |
6232 |
fi |
6233 |
additional_includedir= |
6234 |
case "$found_dir" in |
6235 |
*/lib | */lib/) |
6236 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
6237 |
additional_includedir="$basedir/include" |
6238 |
;; |
6239 |
esac |
6240 |
if test "X$additional_includedir" != "X"; then |
6241 |
if test "X$additional_includedir" != "X/usr/include"; then |
6242 |
haveit= |
6243 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
6244 |
if test -n "$GCC"; then |
6245 |
case $host_os in |
6246 |
linux*) haveit=yes;; |
6247 |
esac |
6248 |
fi |
6249 |
fi |
6250 |
if test -z "$haveit"; then |
6251 |
for x in $CPPFLAGS $INCINTL; do |
6252 |
|
6253 |
acl_save_prefix="$prefix" |
6254 |
prefix="$acl_final_prefix" |
6255 |
acl_save_exec_prefix="$exec_prefix" |
6256 |
exec_prefix="$acl_final_exec_prefix" |
6257 |
eval x=\"$x\" |
6258 |
exec_prefix="$acl_save_exec_prefix" |
6259 |
prefix="$acl_save_prefix" |
6260 |
|
6261 |
if test "X$x" = "X-I$additional_includedir"; then |
6262 |
haveit=yes |
6263 |
break |
6264 |
fi |
6265 |
done |
6266 |
if test -z "$haveit"; then |
6267 |
if test -d "$additional_includedir"; then |
6268 |
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
6269 |
fi |
6270 |
fi |
6271 |
fi |
6272 |
fi |
6273 |
fi |
6274 |
if test -n "$found_la"; then |
6275 |
save_libdir="$libdir" |
6276 |
case "$found_la" in |
6277 |
*/* | *\\*) . "$found_la" ;; |
6278 |
*) . "./$found_la" ;; |
6279 |
esac |
6280 |
libdir="$save_libdir" |
6281 |
for dep in $dependency_libs; do |
6282 |
case "$dep" in |
6283 |
-L*) |
6284 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
6285 |
if test "X$additional_libdir" != "X/usr/lib"; then |
6286 |
haveit= |
6287 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
6288 |
if test -n "$GCC"; then |
6289 |
case $host_os in |
6290 |
linux*) haveit=yes;; |
6291 |
esac |
6292 |
fi |
6293 |
fi |
6294 |
if test -z "$haveit"; then |
6295 |
haveit= |
6296 |
for x in $LDFLAGS $LIBINTL; do |
6297 |
|
6298 |
acl_save_prefix="$prefix" |
6299 |
prefix="$acl_final_prefix" |
6300 |
acl_save_exec_prefix="$exec_prefix" |
6301 |
exec_prefix="$acl_final_exec_prefix" |
6302 |
eval x=\"$x\" |
6303 |
exec_prefix="$acl_save_exec_prefix" |
6304 |
prefix="$acl_save_prefix" |
6305 |
|
6306 |
if test "X$x" = "X-L$additional_libdir"; then |
6307 |
haveit=yes |
6308 |
break |
6309 |
fi |
6310 |
done |
6311 |
if test -z "$haveit"; then |
6312 |
if test -d "$additional_libdir"; then |
6313 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
6314 |
fi |
6315 |
fi |
6316 |
haveit= |
6317 |
for x in $LDFLAGS $LTLIBINTL; do |
6318 |
|
6319 |
acl_save_prefix="$prefix" |
6320 |
prefix="$acl_final_prefix" |
6321 |
acl_save_exec_prefix="$exec_prefix" |
6322 |
exec_prefix="$acl_final_exec_prefix" |
6323 |
eval x=\"$x\" |
6324 |
exec_prefix="$acl_save_exec_prefix" |
6325 |
prefix="$acl_save_prefix" |
6326 |
|
6327 |
if test "X$x" = "X-L$additional_libdir"; then |
6328 |
haveit=yes |
6329 |
break |
6330 |
fi |
6331 |
done |
6332 |
if test -z "$haveit"; then |
6333 |
if test -d "$additional_libdir"; then |
6334 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
6335 |
fi |
6336 |
fi |
6337 |
fi |
6338 |
fi |
6339 |
;; |
6340 |
-R*) |
6341 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
6342 |
if test "$enable_rpath" != no; then |
6343 |
haveit= |
6344 |
for x in $rpathdirs; do |
6345 |
if test "X$x" = "X$dir"; then |
6346 |
haveit=yes |
6347 |
break |
6348 |
fi |
6349 |
done |
6350 |
if test -z "$haveit"; then |
6351 |
rpathdirs="$rpathdirs $dir" |
6352 |
fi |
6353 |
haveit= |
6354 |
for x in $ltrpathdirs; do |
6355 |
if test "X$x" = "X$dir"; then |
6356 |
haveit=yes |
6357 |
break |
6358 |
fi |
6359 |
done |
6360 |
if test -z "$haveit"; then |
6361 |
ltrpathdirs="$ltrpathdirs $dir" |
6362 |
fi |
6363 |
fi |
6364 |
;; |
6365 |
-l*) |
6366 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
6367 |
;; |
6368 |
*.la) |
6369 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
6370 |
;; |
6371 |
*) |
6372 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
6373 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
6374 |
;; |
6375 |
esac |
6376 |
done |
6377 |
fi |
6378 |
else |
6379 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
6380 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
6381 |
fi |
6382 |
fi |
6383 |
fi |
6384 |
done |
6385 |
done |
6386 |
if test "X$rpathdirs" != "X"; then |
6387 |
if test -n "$hardcode_libdir_separator"; then |
6388 |
alldirs= |
6389 |
for found_dir in $rpathdirs; do |
6390 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
6391 |
done |
6392 |
acl_save_libdir="$libdir" |
6393 |
libdir="$alldirs" |
6394 |
eval flag=\"$hardcode_libdir_flag_spec\" |
6395 |
libdir="$acl_save_libdir" |
6396 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
6397 |
else |
6398 |
for found_dir in $rpathdirs; do |
6399 |
acl_save_libdir="$libdir" |
6400 |
libdir="$found_dir" |
6401 |
eval flag=\"$hardcode_libdir_flag_spec\" |
6402 |
libdir="$acl_save_libdir" |
6403 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
6404 |
done |
6405 |
fi |
6406 |
fi |
6407 |
if test "X$ltrpathdirs" != "X"; then |
6408 |
for found_dir in $ltrpathdirs; do |
6409 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
6410 |
done |
6411 |
fi |
6412 |
|
6413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
6414 |
printf %s "checking for GNU gettext in libintl... " >&6; } |
6415 |
if test ${gt_cv_func_gnugettext1_libintl+y} |
6416 |
then : |
6417 |
printf %s "(cached) " >&6 |
6418 |
else $as_nop |
6419 |
gt_save_CPPFLAGS="$CPPFLAGS" |
6420 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
6421 |
gt_save_LIBS="$LIBS" |
6422 |
LIBS="$LIBS $LIBINTL" |
6423 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6424 |
/* end confdefs.h. */ |
6425 |
#include <libintl.h> |
6426 |
extern int _nl_msg_cat_cntr; |
6427 |
extern |
6428 |
#ifdef __cplusplus |
6429 |
"C" |
6430 |
#endif |
6431 |
const char *_nl_expand_alias (); |
6432 |
int |
6433 |
main (void) |
6434 |
{ |
6435 |
bindtextdomain ("", ""); |
6436 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
6437 |
; |
6438 |
return 0; |
6439 |
} |
6440 |
_ACEOF |
6441 |
if ac_fn_c_try_link "$LINENO" |
6442 |
then : |
6443 |
gt_cv_func_gnugettext1_libintl=yes |
6444 |
else $as_nop |
6445 |
gt_cv_func_gnugettext1_libintl=no |
6446 |
fi |
6447 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6448 |
conftest$ac_exeext conftest.$ac_ext |
6449 |
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
6450 |
LIBS="$LIBS $LIBICONV" |
6451 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6452 |
/* end confdefs.h. */ |
6453 |
#include <libintl.h> |
6454 |
extern int _nl_msg_cat_cntr; |
6455 |
extern |
6456 |
#ifdef __cplusplus |
6457 |
"C" |
6458 |
#endif |
6459 |
const char *_nl_expand_alias (); |
6460 |
int |
6461 |
main (void) |
6462 |
{ |
6463 |
bindtextdomain ("", ""); |
6464 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
6465 |
; |
6466 |
return 0; |
6467 |
} |
6468 |
_ACEOF |
6469 |
if ac_fn_c_try_link "$LINENO" |
6470 |
then : |
6471 |
LIBINTL="$LIBINTL $LIBICONV" |
6472 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
6473 |
gt_cv_func_gnugettext1_libintl=yes |
6474 |
|
6475 |
fi |
6476 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6477 |
conftest$ac_exeext conftest.$ac_ext |
6478 |
fi |
6479 |
CPPFLAGS="$gt_save_CPPFLAGS" |
6480 |
LIBS="$gt_save_LIBS" |
6481 |
fi |
6482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
6483 |
printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; } |
6484 |
fi |
6485 |
|
6486 |
if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
6487 |
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
6488 |
&& test "$PACKAGE" != gettext; }; then |
6489 |
gt_use_preinstalled_gnugettext=yes |
6490 |
else |
6491 |
LIBINTL= |
6492 |
LTLIBINTL= |
6493 |
INCINTL= |
6494 |
fi |
6495 |
|
6496 |
|
6497 |
|
6498 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
6499 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
6500 |
|
6501 |
printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
6502 |
|
6503 |
else |
6504 |
USE_NLS=no |
6505 |
fi |
6506 |
fi |
6507 |
|
6508 |
if test "$USE_NLS" = "yes"; then |
6509 |
|
6510 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
6511 |
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
6512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
6513 |
printf %s "checking how to link with libintl... " >&6; } |
6514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
6515 |
printf "%s\n" "$LIBINTL" >&6; } |
6516 |
|
6517 |
for element in $INCINTL; do |
6518 |
haveit= |
6519 |
for x in $CPPFLAGS; do |
6520 |
|
6521 |
acl_save_prefix="$prefix" |
6522 |
prefix="$acl_final_prefix" |
6523 |
acl_save_exec_prefix="$exec_prefix" |
6524 |
exec_prefix="$acl_final_exec_prefix" |
6525 |
eval x=\"$x\" |
6526 |
exec_prefix="$acl_save_exec_prefix" |
6527 |
prefix="$acl_save_prefix" |
6528 |
|
6529 |
if test "X$x" = "X$element"; then |
6530 |
haveit=yes |
6531 |
break |
6532 |
fi |
6533 |
done |
6534 |
if test -z "$haveit"; then |
6535 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
6536 |
fi |
6537 |
done |
6538 |
|
6539 |
fi |
6540 |
|
6541 |
|
6542 |
printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
6543 |
|
6544 |
|
6545 |
printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
6546 |
|
6547 |
fi |
6548 |
|
6549 |
POSUB=po |
6550 |
fi |
6551 |
|
6552 |
|
6553 |
|
6554 |
INTLLIBS="$LIBINTL" |
6555 |
|
6556 |
|
6557 |
|
6558 |
|
6559 |
|
6560 |
|
6561 |
|
6562 |
|
6563 |
# Enable GNU extensions. |
6564 |
# Define this here, not in acconfig's @TOP@ section, since definitions |
6565 |
# in the latter don't make it into the configure-time tests. |
6566 |
|
6567 |
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
6568 |
|
6569 |
|
6570 |
# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
6571 |
|
6572 |
ALL_LINGUAS="" |
6573 |
|
6574 |
ac_ext=c |
6575 |
ac_cpp='$CPP $CPPFLAGS' |
6576 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6577 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6578 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
6580 |
printf %s "checking how to run the C preprocessor... " >&6; } |
6581 |
# On Suns, sometimes $CPP names a directory. |
6582 |
if test -n "$CPP" && test -d "$CPP"; then |
6583 |
CPP= |
6584 |
fi |
6585 |
if test -z "$CPP"; then |
6586 |
if test ${ac_cv_prog_CPP+y} |
6587 |
then : |
6588 |
printf %s "(cached) " >&6 |
6589 |
else $as_nop |
6590 |
# Double quotes because $CC needs to be expanded |
6591 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
6592 |
do |
6593 |
ac_preproc_ok=false |
6594 |
for ac_c_preproc_warn_flag in '' yes |
6595 |
do |
6596 |
# Use a header file that comes with gcc, so configuring glibc |
6597 |
# with a fresh cross-compiler works. |
6598 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
6599 |
# not just through cpp. "Syntax error" is here to catch this case. |
6600 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6601 |
/* end confdefs.h. */ |
6602 |
#include <limits.h> |
6603 |
Syntax error |
6604 |
_ACEOF |
6605 |
if ac_fn_c_try_cpp "$LINENO" |
6606 |
then : |
6607 |
|
6608 |
else $as_nop |
6609 |
# Broken: fails on valid input. |
6610 |
continue |
6611 |
fi |
6612 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6613 |
|
6614 |
# OK, works on sane cases. Now check whether nonexistent headers |
6615 |
# can be detected and how. |
6616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6617 |
/* end confdefs.h. */ |
6618 |
#include <ac_nonexistent.h> |
6619 |
_ACEOF |
6620 |
if ac_fn_c_try_cpp "$LINENO" |
6621 |
then : |
6622 |
# Broken: success on invalid input. |
6623 |
continue |
6624 |
else $as_nop |
6625 |
# Passes both tests. |
6626 |
ac_preproc_ok=: |
6627 |
break |
6628 |
fi |
6629 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6630 |
|
6631 |
done |
6632 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6633 |
rm -f conftest.i conftest.err conftest.$ac_ext |
6634 |
if $ac_preproc_ok |
6635 |
then : |
6636 |
break |
6637 |
fi |
6638 |
|
6639 |
done |
6640 |
ac_cv_prog_CPP=$CPP |
6641 |
|
6642 |
fi |
6643 |
CPP=$ac_cv_prog_CPP |
6644 |
else |
6645 |
ac_cv_prog_CPP=$CPP |
6646 |
fi |
6647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
6648 |
printf "%s\n" "$CPP" >&6; } |
6649 |
ac_preproc_ok=false |
6650 |
for ac_c_preproc_warn_flag in '' yes |
6651 |
do |
6652 |
# Use a header file that comes with gcc, so configuring glibc |
6653 |
# with a fresh cross-compiler works. |
6654 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
6655 |
# not just through cpp. "Syntax error" is here to catch this case. |
6656 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6657 |
/* end confdefs.h. */ |
6658 |
#include <limits.h> |
6659 |
Syntax error |
6660 |
_ACEOF |
6661 |
if ac_fn_c_try_cpp "$LINENO" |
6662 |
then : |
6663 |
|
6664 |
else $as_nop |
6665 |
# Broken: fails on valid input. |
6666 |
continue |
6667 |
fi |
6668 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6669 |
|
6670 |
# OK, works on sane cases. Now check whether nonexistent headers |
6671 |
# can be detected and how. |
6672 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6673 |
/* end confdefs.h. */ |
6674 |
#include <ac_nonexistent.h> |
6675 |
_ACEOF |
6676 |
if ac_fn_c_try_cpp "$LINENO" |
6677 |
then : |
6678 |
# Broken: success on invalid input. |
6679 |
continue |
6680 |
else $as_nop |
6681 |
# Passes both tests. |
6682 |
ac_preproc_ok=: |
6683 |
break |
6684 |
fi |
6685 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6686 |
|
6687 |
done |
6688 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6689 |
rm -f conftest.i conftest.err conftest.$ac_ext |
6690 |
if $ac_preproc_ok |
6691 |
then : |
6692 |
|
6693 |
else $as_nop |
6694 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6695 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
6696 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
6697 |
See \`config.log' for more details" "$LINENO" 5; } |
6698 |
fi |
6699 |
|
6700 |
ac_ext=c |
6701 |
ac_cpp='$CPP $CPPFLAGS' |
6702 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6703 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6704 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6705 |
|
6706 |
|
6707 |
|
6708 |
|
6709 |
|
6710 |
|
6711 |
|
6712 |
ac_ext=cpp |
6713 |
ac_cpp='$CXXCPP $CPPFLAGS' |
6714 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6715 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6716 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6717 |
if test -z "$CXX"; then |
6718 |
if test -n "$CCC"; then |
6719 |
CXX=$CCC |
6720 |
else |
6721 |
if test -n "$ac_tool_prefix"; then |
6722 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
6723 |
do |
6724 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6725 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
6726 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6727 |
printf %s "checking for $ac_word... " >&6; } |
6728 |
if test ${ac_cv_prog_CXX+y} |
6729 |
then : |
6730 |
printf %s "(cached) " >&6 |
6731 |
else $as_nop |
6732 |
if test -n "$CXX"; then |
6733 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
6734 |
else |
6735 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6736 |
for as_dir in $PATH |
6737 |
do |
6738 |
IFS=$as_save_IFS |
6739 |
case $as_dir in #((( |
6740 |
'') as_dir=./ ;; |
6741 |
*/) ;; |
6742 |
*) as_dir=$as_dir/ ;; |
6743 |
esac |
6744 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6745 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6746 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
6747 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
6748 |
break 2 |
6749 |
fi |
6750 |
done |
6751 |
done |
6752 |
IFS=$as_save_IFS |
6753 |
|
6754 |
fi |
6755 |
fi |
6756 |
CXX=$ac_cv_prog_CXX |
6757 |
if test -n "$CXX"; then |
6758 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
6759 |
printf "%s\n" "$CXX" >&6; } |
6760 |
else |
6761 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6762 |
printf "%s\n" "no" >&6; } |
6763 |
fi |
6764 |
|
6765 |
|
6766 |
test -n "$CXX" && break |
6767 |
done |
6768 |
fi |
6769 |
if test -z "$CXX"; then |
6770 |
ac_ct_CXX=$CXX |
6771 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
6772 |
do |
6773 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6774 |
set dummy $ac_prog; ac_word=$2 |
6775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6776 |
printf %s "checking for $ac_word... " >&6; } |
6777 |
if test ${ac_cv_prog_ac_ct_CXX+y} |
6778 |
then : |
6779 |
printf %s "(cached) " >&6 |
6780 |
else $as_nop |
6781 |
if test -n "$ac_ct_CXX"; then |
6782 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
6783 |
else |
6784 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6785 |
for as_dir in $PATH |
6786 |
do |
6787 |
IFS=$as_save_IFS |
6788 |
case $as_dir in #((( |
6789 |
'') as_dir=./ ;; |
6790 |
*/) ;; |
6791 |
*) as_dir=$as_dir/ ;; |
6792 |
esac |
6793 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6794 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6795 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
6796 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
6797 |
break 2 |
6798 |
fi |
6799 |
done |
6800 |
done |
6801 |
IFS=$as_save_IFS |
6802 |
|
6803 |
fi |
6804 |
fi |
6805 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
6806 |
if test -n "$ac_ct_CXX"; then |
6807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
6808 |
printf "%s\n" "$ac_ct_CXX" >&6; } |
6809 |
else |
6810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6811 |
printf "%s\n" "no" >&6; } |
6812 |
fi |
6813 |
|
6814 |
|
6815 |
test -n "$ac_ct_CXX" && break |
6816 |
done |
6817 |
|
6818 |
if test "x$ac_ct_CXX" = x; then |
6819 |
CXX="g++" |
6820 |
else |
6821 |
case $cross_compiling:$ac_tool_warned in |
6822 |
yes:) |
6823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6824 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6825 |
ac_tool_warned=yes ;; |
6826 |
esac |
6827 |
CXX=$ac_ct_CXX |
6828 |
fi |
6829 |
fi |
6830 |
|
6831 |
fi |
6832 |
fi |
6833 |
# Provide some information about the compiler. |
6834 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
6835 |
set X $ac_compile |
6836 |
ac_compiler=$2 |
6837 |
for ac_option in --version -v -V -qversion; do |
6838 |
{ { ac_try="$ac_compiler $ac_option >&5" |
6839 |
case "(($ac_try" in |
6840 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6841 |
*) ac_try_echo=$ac_try;; |
6842 |
esac |
6843 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6844 |
printf "%s\n" "$ac_try_echo"; } >&5 |
6845 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
6846 |
ac_status=$? |
6847 |
if test -s conftest.err; then |
6848 |
sed '10a\ |
6849 |
... rest of stderr output deleted ... |
6850 |
10q' conftest.err >conftest.er1 |
6851 |
cat conftest.er1 >&5 |
6852 |
fi |
6853 |
rm -f conftest.er1 conftest.err |
6854 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6855 |
test $ac_status = 0; } |
6856 |
done |
6857 |
|
6858 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
6859 |
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
6860 |
if test ${ac_cv_cxx_compiler_gnu+y} |
6861 |
then : |
6862 |
printf %s "(cached) " >&6 |
6863 |
else $as_nop |
6864 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6865 |
/* end confdefs.h. */ |
6866 |
|
6867 |
int |
6868 |
main (void) |
6869 |
{ |
6870 |
#ifndef __GNUC__ |
6871 |
choke me |
6872 |
#endif |
6873 |
|
6874 |
; |
6875 |
return 0; |
6876 |
} |
6877 |
_ACEOF |
6878 |
if ac_fn_cxx_try_compile "$LINENO" |
6879 |
then : |
6880 |
ac_compiler_gnu=yes |
6881 |
else $as_nop |
6882 |
ac_compiler_gnu=no |
6883 |
fi |
6884 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
6885 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6886 |
|
6887 |
fi |
6888 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
6889 |
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
6890 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6891 |
|
6892 |
if test $ac_compiler_gnu = yes; then |
6893 |
GXX=yes |
6894 |
else |
6895 |
GXX= |
6896 |
fi |
6897 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
6898 |
ac_save_CXXFLAGS=$CXXFLAGS |
6899 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
6900 |
printf %s "checking whether $CXX accepts -g... " >&6; } |
6901 |
if test ${ac_cv_prog_cxx_g+y} |
6902 |
then : |
6903 |
printf %s "(cached) " >&6 |
6904 |
else $as_nop |
6905 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
6906 |
ac_cxx_werror_flag=yes |
6907 |
ac_cv_prog_cxx_g=no |
6908 |
CXXFLAGS="-g" |
6909 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6910 |
/* end confdefs.h. */ |
6911 |
|
6912 |
int |
6913 |
main (void) |
6914 |
{ |
6915 |
|
6916 |
; |
6917 |
return 0; |
6918 |
} |
6919 |
_ACEOF |
6920 |
if ac_fn_cxx_try_compile "$LINENO" |
6921 |
then : |
6922 |
ac_cv_prog_cxx_g=yes |
6923 |
else $as_nop |
6924 |
CXXFLAGS="" |
6925 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6926 |
/* end confdefs.h. */ |
6927 |
|
6928 |
int |
6929 |
main (void) |
6930 |
{ |
6931 |
|
6932 |
; |
6933 |
return 0; |
6934 |
} |
6935 |
_ACEOF |
6936 |
if ac_fn_cxx_try_compile "$LINENO" |
6937 |
then : |
6938 |
|
6939 |
else $as_nop |
6940 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
6941 |
CXXFLAGS="-g" |
6942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6943 |
/* end confdefs.h. */ |
6944 |
|
6945 |
int |
6946 |
main (void) |
6947 |
{ |
6948 |
|
6949 |
; |
6950 |
return 0; |
6951 |
} |
6952 |
_ACEOF |
6953 |
if ac_fn_cxx_try_compile "$LINENO" |
6954 |
then : |
6955 |
ac_cv_prog_cxx_g=yes |
6956 |
fi |
6957 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
6958 |
fi |
6959 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
6960 |
fi |
6961 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
6962 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
6963 |
fi |
6964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
6965 |
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
6966 |
if test $ac_test_CXXFLAGS; then |
6967 |
CXXFLAGS=$ac_save_CXXFLAGS |
6968 |
elif test $ac_cv_prog_cxx_g = yes; then |
6969 |
if test "$GXX" = yes; then |
6970 |
CXXFLAGS="-g -O2" |
6971 |
else |
6972 |
CXXFLAGS="-g" |
6973 |
fi |
6974 |
else |
6975 |
if test "$GXX" = yes; then |
6976 |
CXXFLAGS="-O2" |
6977 |
else |
6978 |
CXXFLAGS= |
6979 |
fi |
6980 |
fi |
6981 |
ac_prog_cxx_stdcxx=no |
6982 |
if test x$ac_prog_cxx_stdcxx = xno |
6983 |
then : |
6984 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
6985 |
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
6986 |
if test ${ac_cv_prog_cxx_11+y} |
6987 |
then : |
6988 |
printf %s "(cached) " >&6 |
6989 |
else $as_nop |
6990 |
ac_cv_prog_cxx_11=no |
6991 |
ac_save_CXX=$CXX |
6992 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6993 |
/* end confdefs.h. */ |
6994 |
$ac_cxx_conftest_cxx11_program |
6995 |
_ACEOF |
6996 |
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
6997 |
do |
6998 |
CXX="$ac_save_CXX $ac_arg" |
6999 |
if ac_fn_cxx_try_compile "$LINENO" |
7000 |
then : |
7001 |
ac_cv_prog_cxx_cxx11=$ac_arg |
7002 |
fi |
7003 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
7004 |
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
7005 |
done |
7006 |
rm -f conftest.$ac_ext |
7007 |
CXX=$ac_save_CXX |
7008 |
fi |
7009 |
|
7010 |
if test "x$ac_cv_prog_cxx_cxx11" = xno |
7011 |
then : |
7012 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
7013 |
printf "%s\n" "unsupported" >&6; } |
7014 |
else $as_nop |
7015 |
if test "x$ac_cv_prog_cxx_cxx11" = x |
7016 |
then : |
7017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
7018 |
printf "%s\n" "none needed" >&6; } |
7019 |
else $as_nop |
7020 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
7021 |
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
7022 |
CXX="$CXX $ac_cv_prog_cxx_cxx11" |
7023 |
fi |
7024 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
7025 |
ac_prog_cxx_stdcxx=cxx11 |
7026 |
fi |
7027 |
fi |
7028 |
if test x$ac_prog_cxx_stdcxx = xno |
7029 |
then : |
7030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
7031 |
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
7032 |
if test ${ac_cv_prog_cxx_98+y} |
7033 |
then : |
7034 |
printf %s "(cached) " >&6 |
7035 |
else $as_nop |
7036 |
ac_cv_prog_cxx_98=no |
7037 |
ac_save_CXX=$CXX |
7038 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7039 |
/* end confdefs.h. */ |
7040 |
$ac_cxx_conftest_cxx98_program |
7041 |
_ACEOF |
7042 |
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
7043 |
do |
7044 |
CXX="$ac_save_CXX $ac_arg" |
7045 |
if ac_fn_cxx_try_compile "$LINENO" |
7046 |
then : |
7047 |
ac_cv_prog_cxx_cxx98=$ac_arg |
7048 |
fi |
7049 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
7050 |
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
7051 |
done |
7052 |
rm -f conftest.$ac_ext |
7053 |
CXX=$ac_save_CXX |
7054 |
fi |
7055 |
|
7056 |
if test "x$ac_cv_prog_cxx_cxx98" = xno |
7057 |
then : |
7058 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
7059 |
printf "%s\n" "unsupported" >&6; } |
7060 |
else $as_nop |
7061 |
if test "x$ac_cv_prog_cxx_cxx98" = x |
7062 |
then : |
7063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
7064 |
printf "%s\n" "none needed" >&6; } |
7065 |
else $as_nop |
7066 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
7067 |
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
7068 |
CXX="$CXX $ac_cv_prog_cxx_cxx98" |
7069 |
fi |
7070 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
7071 |
ac_prog_cxx_stdcxx=cxx98 |
7072 |
fi |
7073 |
fi |
7074 |
|
7075 |
ac_ext=c |
7076 |
ac_cpp='$CPP $CPPFLAGS' |
7077 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7078 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7079 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7080 |
|
7081 |
depcc="$CXX" am_compiler_list= |
7082 |
|
7083 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
7084 |
printf %s "checking dependency style of $depcc... " >&6; } |
7085 |
if test ${am_cv_CXX_dependencies_compiler_type+y} |
7086 |
then : |
7087 |
printf %s "(cached) " >&6 |
7088 |
else $as_nop |
7089 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
7090 |
# We make a subdir and do the tests there. Otherwise we can end up |
7091 |
# making bogus files that we don't know about and never remove. For |
7092 |
# instance it was reported that on HP-UX the gcc test will end up |
7093 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
7094 |
# in D". |
7095 |
rm -rf conftest.dir |
7096 |
mkdir conftest.dir |
7097 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
7098 |
# using a relative directory. |
7099 |
cp "$am_depcomp" conftest.dir |
7100 |
cd conftest.dir |
7101 |
# We will build objects and dependencies in a subdirectory because |
7102 |
# it helps to detect inapplicable dependency modes. For instance |
7103 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
7104 |
# side effect of compilation, but ICC will put the dependencies in |
7105 |
# the current directory while Tru64 will put them in the object |
7106 |
# directory. |
7107 |
mkdir sub |
7108 |
|
7109 |
am_cv_CXX_dependencies_compiler_type=none |
7110 |
if test "$am_compiler_list" = ""; then |
7111 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
7112 |
fi |
7113 |
am__universal=false |
7114 |
case " $depcc " in #( |
7115 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
7116 |
esac |
7117 |
|
7118 |
for depmode in $am_compiler_list; do |
7119 |
# Setup a source with many dependencies, because some compilers |
7120 |
# like to wrap large dependency lists on column 80 (with \), and |
7121 |
# we should not choose a depcomp mode which is confused by this. |
7122 |
# |
7123 |
# We need to recreate these files for each test, as the compiler may |
7124 |
# overwrite some of them when testing with obscure command lines. |
7125 |
# This happens at least with the AIX C compiler. |
7126 |
: > sub/conftest.c |
7127 |
for i in 1 2 3 4 5 6; do |
7128 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
7129 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
7130 |
# Solaris 10 /bin/sh. |
7131 |
echo '/* dummy */' > sub/conftst$i.h |
7132 |
done |
7133 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
7134 |
|
7135 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
7136 |
# mode. It turns out that the SunPro C++ compiler does not properly |
7137 |
# handle '-M -o', and we need to detect this. Also, some Intel |
7138 |
# versions had trouble with output in subdirs. |
7139 |
am__obj=sub/conftest.${OBJEXT-o} |
7140 |
am__minus_obj="-o $am__obj" |
7141 |
case $depmode in |
7142 |
gcc) |
7143 |
# This depmode causes a compiler race in universal mode. |
7144 |
test "$am__universal" = false || continue |
7145 |
;; |
7146 |
nosideeffect) |
7147 |
# After this tag, mechanisms are not by side-effect, so they'll |
7148 |
# only be used when explicitly requested. |
7149 |
if test "x$enable_dependency_tracking" = xyes; then |
7150 |
continue |
7151 |
else |
7152 |
break |
7153 |
fi |
7154 |
;; |
7155 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
7156 |
# This compiler won't grok '-c -o', but also, the minuso test has |
7157 |
# not run yet. These depmodes are late enough in the game, and |
7158 |
# so weak that their functioning should not be impacted. |
7159 |
am__obj=conftest.${OBJEXT-o} |
7160 |
am__minus_obj= |
7161 |
;; |
7162 |
none) break ;; |
7163 |
esac |
7164 |
if depmode=$depmode \ |
7165 |
source=sub/conftest.c object=$am__obj \ |
7166 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
7167 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
7168 |
>/dev/null 2>conftest.err && |
7169 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
7170 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
7171 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
7172 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
7173 |
# icc doesn't choke on unknown options, it will just issue warnings |
7174 |
# or remarks (even with -Werror). So we grep stderr for any message |
7175 |
# that says an option was ignored or not supported. |
7176 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
7177 |
# icc: Command line warning: ignoring option '-M'; no argument required |
7178 |
# The diagnosis changed in icc 8.0: |
7179 |
# icc: Command line remark: option '-MP' not supported |
7180 |
if (grep 'ignoring option' conftest.err || |
7181 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
7182 |
am_cv_CXX_dependencies_compiler_type=$depmode |
7183 |
break |
7184 |
fi |
7185 |
fi |
7186 |
done |
7187 |
|
7188 |
cd .. |
7189 |
rm -rf conftest.dir |
7190 |
else |
7191 |
am_cv_CXX_dependencies_compiler_type=none |
7192 |
fi |
7193 |
|
7194 |
fi |
7195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
7196 |
printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } |
7197 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
7198 |
|
7199 |
if |
7200 |
test "x$enable_dependency_tracking" != xno \ |
7201 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
7202 |
am__fastdepCXX_TRUE= |
7203 |
am__fastdepCXX_FALSE='#' |
7204 |
else |
7205 |
am__fastdepCXX_TRUE='#' |
7206 |
am__fastdepCXX_FALSE= |
7207 |
fi |
7208 |
|
7209 |
|
7210 |
|
7211 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
7212 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
7213 |
if test ${ac_cv_path_GREP+y} |
7214 |
then : |
7215 |
printf %s "(cached) " >&6 |
7216 |
else $as_nop |
7217 |
if test -z "$GREP"; then |
7218 |
ac_path_GREP_found=false |
7219 |
# Loop through the user's path and test for each of PROGNAME-LIST |
7220 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7221 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7222 |
do |
7223 |
IFS=$as_save_IFS |
7224 |
case $as_dir in #((( |
7225 |
'') as_dir=./ ;; |
7226 |
*/) ;; |
7227 |
*) as_dir=$as_dir/ ;; |
7228 |
esac |
7229 |
for ac_prog in grep ggrep |
7230 |
do |
7231 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7232 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
7233 |
as_fn_executable_p "$ac_path_GREP" || continue |
7234 |
# Check for GNU ac_path_GREP and select it if it is found. |
7235 |
# Check for GNU $ac_path_GREP |
7236 |
case `"$ac_path_GREP" --version 2>&1` in |
7237 |
*GNU*) |
7238 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
7239 |
*) |
7240 |
ac_count=0 |
7241 |
printf %s 0123456789 >"conftest.in" |
7242 |
while : |
7243 |
do |
7244 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
7245 |
mv "conftest.tmp" "conftest.in" |
7246 |
cp "conftest.in" "conftest.nl" |
7247 |
printf "%s\n" 'GREP' >> "conftest.nl" |
7248 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
7249 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7250 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
7251 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
7252 |
# Best one so far, save it but keep looking for a better one |
7253 |
ac_cv_path_GREP="$ac_path_GREP" |
7254 |
ac_path_GREP_max=$ac_count |
7255 |
fi |
7256 |
# 10*(2^10) chars as input seems more than enough |
7257 |
test $ac_count -gt 10 && break |
7258 |
done |
7259 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7260 |
esac |
7261 |
|
7262 |
$ac_path_GREP_found && break 3 |
7263 |
done |
7264 |
done |
7265 |
done |
7266 |
IFS=$as_save_IFS |
7267 |
if test -z "$ac_cv_path_GREP"; then |
7268 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7269 |
fi |
7270 |
else |
7271 |
ac_cv_path_GREP=$GREP |
7272 |
fi |
7273 |
|
7274 |
fi |
7275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
7276 |
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
7277 |
GREP="$ac_cv_path_GREP" |
7278 |
|
7279 |
|
7280 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
7281 |
printf %s "checking for egrep... " >&6; } |
7282 |
if test ${ac_cv_path_EGREP+y} |
7283 |
then : |
7284 |
printf %s "(cached) " >&6 |
7285 |
else $as_nop |
7286 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
7287 |
then ac_cv_path_EGREP="$GREP -E" |
7288 |
else |
7289 |
if test -z "$EGREP"; then |
7290 |
ac_path_EGREP_found=false |
7291 |
# Loop through the user's path and test for each of PROGNAME-LIST |
7292 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7293 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7294 |
do |
7295 |
IFS=$as_save_IFS |
7296 |
case $as_dir in #((( |
7297 |
'') as_dir=./ ;; |
7298 |
*/) ;; |
7299 |
*) as_dir=$as_dir/ ;; |
7300 |
esac |
7301 |
for ac_prog in egrep |
7302 |
do |
7303 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7304 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
7305 |
as_fn_executable_p "$ac_path_EGREP" || continue |
7306 |
# Check for GNU ac_path_EGREP and select it if it is found. |
7307 |
# Check for GNU $ac_path_EGREP |
7308 |
case `"$ac_path_EGREP" --version 2>&1` in |
7309 |
*GNU*) |
7310 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
7311 |
*) |
7312 |
ac_count=0 |
7313 |
printf %s 0123456789 >"conftest.in" |
7314 |
while : |
7315 |
do |
7316 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
7317 |
mv "conftest.tmp" "conftest.in" |
7318 |
cp "conftest.in" "conftest.nl" |
7319 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
7320 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
7321 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7322 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
7323 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
7324 |
# Best one so far, save it but keep looking for a better one |
7325 |
ac_cv_path_EGREP="$ac_path_EGREP" |
7326 |
ac_path_EGREP_max=$ac_count |
7327 |
fi |
7328 |
# 10*(2^10) chars as input seems more than enough |
7329 |
test $ac_count -gt 10 && break |
7330 |
done |
7331 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7332 |
esac |
7333 |
|
7334 |
$ac_path_EGREP_found && break 3 |
7335 |
done |
7336 |
done |
7337 |
done |
7338 |
IFS=$as_save_IFS |
7339 |
if test -z "$ac_cv_path_EGREP"; then |
7340 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7341 |
fi |
7342 |
else |
7343 |
ac_cv_path_EGREP=$EGREP |
7344 |
fi |
7345 |
|
7346 |
fi |
7347 |
fi |
7348 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
7349 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
7350 |
EGREP="$ac_cv_path_EGREP" |
7351 |
|
7352 |
|
7353 |
if test $ac_cv_c_compiler_gnu = yes; then |
7354 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
7355 |
printf %s "checking whether $CC needs -traditional... " >&6; } |
7356 |
if test ${ac_cv_prog_gcc_traditional+y} |
7357 |
then : |
7358 |
printf %s "(cached) " >&6 |
7359 |
else $as_nop |
7360 |
ac_pattern="Autoconf.*'x'" |
7361 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7362 |
/* end confdefs.h. */ |
7363 |
#include <sgtty.h> |
7364 |
Autoconf TIOCGETP |
7365 |
_ACEOF |
7366 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7367 |
$EGREP "$ac_pattern" >/dev/null 2>&1 |
7368 |
then : |
7369 |
ac_cv_prog_gcc_traditional=yes |
7370 |
else $as_nop |
7371 |
ac_cv_prog_gcc_traditional=no |
7372 |
fi |
7373 |
rm -rf conftest* |
7374 |
|
7375 |
|
7376 |
if test $ac_cv_prog_gcc_traditional = no; then |
7377 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7378 |
/* end confdefs.h. */ |
7379 |
#include <termio.h> |
7380 |
Autoconf TCGETA |
7381 |
_ACEOF |
7382 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7383 |
$EGREP "$ac_pattern" >/dev/null 2>&1 |
7384 |
then : |
7385 |
ac_cv_prog_gcc_traditional=yes |
7386 |
fi |
7387 |
rm -rf conftest* |
7388 |
|
7389 |
fi |
7390 |
fi |
7391 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
7392 |
printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } |
7393 |
if test $ac_cv_prog_gcc_traditional = yes; then |
7394 |
CC="$CC -traditional" |
7395 |
fi |
7396 |
fi |
7397 |
|
7398 |
for ac_prog in gawk mawk nawk awk |
7399 |
do |
7400 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
7401 |
set dummy $ac_prog; ac_word=$2 |
7402 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7403 |
printf %s "checking for $ac_word... " >&6; } |
7404 |
if test ${ac_cv_prog_AWK+y} |
7405 |
then : |
7406 |
printf %s "(cached) " >&6 |
7407 |
else $as_nop |
7408 |
if test -n "$AWK"; then |
7409 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
7410 |
else |
7411 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7412 |
for as_dir in $PATH |
7413 |
do |
7414 |
IFS=$as_save_IFS |
7415 |
case $as_dir in #((( |
7416 |
'') as_dir=./ ;; |
7417 |
*/) ;; |
7418 |
*) as_dir=$as_dir/ ;; |
7419 |
esac |
7420 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7421 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
7422 |
ac_cv_prog_AWK="$ac_prog" |
7423 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
7424 |
break 2 |
7425 |
fi |
7426 |
done |
7427 |
done |
7428 |
IFS=$as_save_IFS |
7429 |
|
7430 |
fi |
7431 |
fi |
7432 |
AWK=$ac_cv_prog_AWK |
7433 |
if test -n "$AWK"; then |
7434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
7435 |
printf "%s\n" "$AWK" >&6; } |
7436 |
else |
7437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7438 |
printf "%s\n" "no" >&6; } |
7439 |
fi |
7440 |
|
7441 |
|
7442 |
test -n "$AWK" && break |
7443 |
done |
7444 |
|
7445 |
|
7446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7447 |
printf %s "checking whether ln -s works... " >&6; } |
7448 |
LN_S=$as_ln_s |
7449 |
if test "$LN_S" = "ln -s"; then |
7450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7451 |
printf "%s\n" "yes" >&6; } |
7452 |
else |
7453 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7454 |
printf "%s\n" "no, using $LN_S" >&6; } |
7455 |
fi |
7456 |
|
7457 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7458 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
7459 |
set x ${MAKE-make} |
7460 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
7461 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
7462 |
then : |
7463 |
printf %s "(cached) " >&6 |
7464 |
else $as_nop |
7465 |
cat >conftest.make <<\_ACEOF |
7466 |
SHELL = /bin/sh |
7467 |
all: |
7468 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
7469 |
_ACEOF |
7470 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7471 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
7472 |
*@@@%%%=?*=@@@%%%*) |
7473 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
7474 |
*) |
7475 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
7476 |
esac |
7477 |
rm -f conftest.make |
7478 |
fi |
7479 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
7480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7481 |
printf "%s\n" "yes" >&6; } |
7482 |
SET_MAKE= |
7483 |
else |
7484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7485 |
printf "%s\n" "no" >&6; } |
7486 |
SET_MAKE="MAKE=${MAKE-make}" |
7487 |
fi |
7488 |
|
7489 |
if test -n "$ac_tool_prefix"; then |
7490 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
7491 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
7492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7493 |
printf %s "checking for $ac_word... " >&6; } |
7494 |
if test ${ac_cv_prog_RANLIB+y} |
7495 |
then : |
7496 |
printf %s "(cached) " >&6 |
7497 |
else $as_nop |
7498 |
if test -n "$RANLIB"; then |
7499 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
7500 |
else |
7501 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7502 |
for as_dir in $PATH |
7503 |
do |
7504 |
IFS=$as_save_IFS |
7505 |
case $as_dir in #((( |
7506 |
'') as_dir=./ ;; |
7507 |
*/) ;; |
7508 |
*) as_dir=$as_dir/ ;; |
7509 |
esac |
7510 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7511 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
7512 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7513 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
7514 |
break 2 |
7515 |
fi |
7516 |
done |
7517 |
done |
7518 |
IFS=$as_save_IFS |
7519 |
|
7520 |
fi |
7521 |
fi |
7522 |
RANLIB=$ac_cv_prog_RANLIB |
7523 |
if test -n "$RANLIB"; then |
7524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7525 |
printf "%s\n" "$RANLIB" >&6; } |
7526 |
else |
7527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7528 |
printf "%s\n" "no" >&6; } |
7529 |
fi |
7530 |
|
7531 |
|
7532 |
fi |
7533 |
if test -z "$ac_cv_prog_RANLIB"; then |
7534 |
ac_ct_RANLIB=$RANLIB |
7535 |
# Extract the first word of "ranlib", so it can be a program name with args. |
7536 |
set dummy ranlib; ac_word=$2 |
7537 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7538 |
printf %s "checking for $ac_word... " >&6; } |
7539 |
if test ${ac_cv_prog_ac_ct_RANLIB+y} |
7540 |
then : |
7541 |
printf %s "(cached) " >&6 |
7542 |
else $as_nop |
7543 |
if test -n "$ac_ct_RANLIB"; then |
7544 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
7545 |
else |
7546 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7547 |
for as_dir in $PATH |
7548 |
do |
7549 |
IFS=$as_save_IFS |
7550 |
case $as_dir in #((( |
7551 |
'') as_dir=./ ;; |
7552 |
*/) ;; |
7553 |
*) as_dir=$as_dir/ ;; |
7554 |
esac |
7555 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7556 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
7557 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
7558 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
7559 |
break 2 |
7560 |
fi |
7561 |
done |
7562 |
done |
7563 |
IFS=$as_save_IFS |
7564 |
|
7565 |
fi |
7566 |
fi |
7567 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7568 |
if test -n "$ac_ct_RANLIB"; then |
7569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7570 |
printf "%s\n" "$ac_ct_RANLIB" >&6; } |
7571 |
else |
7572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7573 |
printf "%s\n" "no" >&6; } |
7574 |
fi |
7575 |
|
7576 |
if test "x$ac_ct_RANLIB" = x; then |
7577 |
RANLIB=":" |
7578 |
else |
7579 |
case $cross_compiling:$ac_tool_warned in |
7580 |
yes:) |
7581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7582 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7583 |
ac_tool_warned=yes ;; |
7584 |
esac |
7585 |
RANLIB=$ac_ct_RANLIB |
7586 |
fi |
7587 |
else |
7588 |
RANLIB="$ac_cv_prog_RANLIB" |
7589 |
fi |
7590 |
|
7591 |
|
7592 |
# Check whether --enable-iftype was given. |
7593 |
if test ${enable_iftype+y} |
7594 |
then : |
7595 |
enableval=$enable_iftype; |
7596 |
IFTYPE=`echo $enableval | sed s%/.*%%` |
7597 |
IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
7598 |
|
7599 |
|
7600 |
fi |
7601 |
|
7602 |
|
7603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5 |
7604 |
printf %s "checking for kernel networking interface type... " >&6; } |
7605 |
|
7606 |
if test "x$IFTYPE" = "x"; then |
7607 |
case $target_os in |
7608 |
*linux*) |
7609 |
IFTYPE=native |
7610 |
IFSUBTYPE=linux |
7611 |
|
7612 |
printf "%s\n" "#define HAVE_LINUX 1" >>confdefs.h |
7613 |
|
7614 |
;; |
7615 |
*freebsd*) |
7616 |
IFTYPE=tincd |
7617 |
IFSUBTYPE=freebsd |
7618 |
|
7619 |
printf "%s\n" "#define HAVE_FREEBSD 1" >>confdefs.h |
7620 |
|
7621 |
;; |
7622 |
*darwin*) |
7623 |
IFTYPE=native |
7624 |
IFSUBTYPE=darwin |
7625 |
|
7626 |
printf "%s\n" "#define HAVE_DARWIN 1" >>confdefs.h |
7627 |
|
7628 |
;; |
7629 |
*solaris*) |
7630 |
IFTYPE=tincd |
7631 |
IFSUBTYPE=solaris |
7632 |
|
7633 |
printf "%s\n" "#define HAVE_SOLARIS 1" >>confdefs.h |
7634 |
|
7635 |
;; |
7636 |
*openbsd*) |
7637 |
IFTYPE=tincd |
7638 |
IFSUBTYPE=openbsd |
7639 |
|
7640 |
printf "%s\n" "#define HAVE_OPENBSD 1" >>confdefs.h |
7641 |
|
7642 |
;; |
7643 |
*netbsd*) |
7644 |
IFTYPE=tincd |
7645 |
IFSUBTYPE=netbsd |
7646 |
|
7647 |
printf "%s\n" "#define HAVE_NETBSD 1" >>confdefs.h |
7648 |
|
7649 |
;; |
7650 |
*cygwin*) |
7651 |
IFTYPE=native |
7652 |
IFSUBTYPE=cygwin |
7653 |
|
7654 |
printf "%s\n" "#define HAVE_CYGWIN 1" >>confdefs.h |
7655 |
|
7656 |
;; |
7657 |
*) |
7658 |
as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5 |
7659 |
;; |
7660 |
esac |
7661 |
fi |
7662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5 |
7663 |
printf "%s\n" "$IFTYPE/$IFSUBTYPE" >&6; } |
7664 |
IFTYPE=$IFTYPE |
7665 |
|
7666 |
IFSUBTYPE=$IFSUBTYPE |
7667 |
|
7668 |
|
7669 |
printf "%s\n" "#define IFTYPE \"$IFTYPE\"" >>confdefs.h |
7670 |
|
7671 |
|
7672 |
printf "%s\n" "#define IFSUBTYPE \"$IFSUBTYPE\"" >>confdefs.h |
7673 |
|
7674 |
|
7675 |
cat >confcache <<\_ACEOF |
7676 |
# This file is a shell script that caches the results of configure |
7677 |
# tests run on this system so they can be shared between configure |
7678 |
# scripts and configure runs, see configure's option --config-cache. |
7679 |
# It is not useful on other systems. If it contains results you don't |
7680 |
# want to keep, you may remove or edit it. |
7681 |
# |
7682 |
# config.status only pays attention to the cache file if you give it |
7683 |
# the --recheck option to rerun configure. |
7684 |
# |
7685 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
7686 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
7687 |
# following values. |
7688 |
|
7689 |
_ACEOF |
7690 |
|
7691 |
# The following way of writing the cache mishandles newlines in values, |
7692 |
# but we know of no workaround that is simple, portable, and efficient. |
7693 |
# So, we kill variables containing newlines. |
7694 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
7695 |
# and sets the high bit in the cache file unless we assign to the vars. |
7696 |
( |
7697 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
7698 |
eval ac_val=\$$ac_var |
7699 |
case $ac_val in #( |
7700 |
*${as_nl}*) |
7701 |
case $ac_var in #( |
7702 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7703 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7704 |
esac |
7705 |
case $ac_var in #( |
7706 |
_ | IFS | as_nl) ;; #( |
7707 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7708 |
*) { eval $ac_var=; unset $ac_var;} ;; |
7709 |
esac ;; |
7710 |
esac |
7711 |
done |
7712 |
|
7713 |
(set) 2>&1 | |
7714 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7715 |
*${as_nl}ac_space=\ *) |
7716 |
# `set' does not quote correctly, so add quotes: double-quote |
7717 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
7718 |
sed -n \ |
7719 |
"s/'/'\\\\''/g; |
7720 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7721 |
;; #( |
7722 |
*) |
7723 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7724 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
7725 |
;; |
7726 |
esac | |
7727 |
sort |
7728 |
) | |
7729 |
sed ' |
7730 |
/^ac_cv_env_/b end |
7731 |
t clear |
7732 |
:clear |
7733 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
7734 |
t end |
7735 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7736 |
:end' >>confcache |
7737 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7738 |
if test -w "$cache_file"; then |
7739 |
if test "x$cache_file" != "x/dev/null"; then |
7740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7741 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
7742 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
7743 |
cat confcache >"$cache_file" |
7744 |
else |
7745 |
case $cache_file in #( |
7746 |
*/* | ?:*) |
7747 |
mv -f confcache "$cache_file"$$ && |
7748 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
7749 |
*) |
7750 |
mv -f confcache "$cache_file" ;; |
7751 |
esac |
7752 |
fi |
7753 |
fi |
7754 |
else |
7755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7756 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
7757 |
fi |
7758 |
fi |
7759 |
rm -f confcache |
7760 |
|
7761 |
|
7762 |
ac_ext=cpp |
7763 |
ac_cpp='$CXXCPP $CPPFLAGS' |
7764 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7765 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7766 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
7767 |
|
7768 |
|
7769 |
ac_header= ac_cache= |
7770 |
for ac_item in $ac_header_cxx_list |
7771 |
do |
7772 |
if test $ac_cache; then |
7773 |
ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
7774 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
7775 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
7776 |
fi |
7777 |
ac_header= ac_cache= |
7778 |
elif test $ac_header; then |
7779 |
ac_cache=$ac_item |
7780 |
else |
7781 |
ac_header=$ac_item |
7782 |
fi |
7783 |
done |
7784 |
|
7785 |
|
7786 |
|
7787 |
|
7788 |
|
7789 |
|
7790 |
|
7791 |
|
7792 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
7793 |
then : |
7794 |
|
7795 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
7796 |
|
7797 |
fi |
7798 |
ac_fn_cxx_check_header_compile "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" |
7799 |
if test "x$ac_cv_header_tr1_unordered_map" = xyes |
7800 |
then : |
7801 |
printf "%s\n" "#define HAVE_TR1_UNORDERED_MAP 1" >>confdefs.h |
7802 |
|
7803 |
fi |
7804 |
ac_fn_cxx_check_header_compile "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default" |
7805 |
if test "x$ac_cv_header_ext_hash_map" = xyes |
7806 |
then : |
7807 |
printf "%s\n" "#define HAVE_EXT_HASH_MAP 1" >>confdefs.h |
7808 |
|
7809 |
fi |
7810 |
ac_fn_cxx_check_header_compile "$LINENO" "clocale" "ac_cv_header_clocale" "$ac_includes_default" |
7811 |
if test "x$ac_cv_header_clocale" = xyes |
7812 |
then : |
7813 |
printf "%s\n" "#define HAVE_CLOCALE 1" >>confdefs.h |
7814 |
|
7815 |
fi |
7816 |
|
7817 |
|
7818 |
ac_fn_cxx_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
7819 |
if test "x$ac_cv_header_fcntl_h" = xyes |
7820 |
then : |
7821 |
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
7822 |
|
7823 |
fi |
7824 |
ac_fn_cxx_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
7825 |
if test "x$ac_cv_header_inttypes_h" = xyes |
7826 |
then : |
7827 |
printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
7828 |
|
7829 |
fi |
7830 |
ac_fn_cxx_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
7831 |
if test "x$ac_cv_header_limits_h" = xyes |
7832 |
then : |
7833 |
printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
7834 |
|
7835 |
fi |
7836 |
ac_fn_cxx_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
7837 |
if test "x$ac_cv_header_malloc_h" = xyes |
7838 |
then : |
7839 |
printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h |
7840 |
|
7841 |
fi |
7842 |
ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
7843 |
if test "x$ac_cv_header_stdint_h" = xyes |
7844 |
then : |
7845 |
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
7846 |
|
7847 |
fi |
7848 |
ac_fn_cxx_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
7849 |
if test "x$ac_cv_header_strings_h" = xyes |
7850 |
then : |
7851 |
printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h |
7852 |
|
7853 |
fi |
7854 |
ac_fn_cxx_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" |
7855 |
if test "x$ac_cv_header_syslog_h" = xyes |
7856 |
then : |
7857 |
printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h |
7858 |
|
7859 |
fi |
7860 |
ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
7861 |
if test "x$ac_cv_header_unistd_h" = xyes |
7862 |
then : |
7863 |
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
7864 |
|
7865 |
fi |
7866 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
7867 |
if test "x$ac_cv_header_sys_file_h" = xyes |
7868 |
then : |
7869 |
printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h |
7870 |
|
7871 |
fi |
7872 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
7873 |
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
7874 |
then : |
7875 |
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
7876 |
|
7877 |
fi |
7878 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
7879 |
if test "x$ac_cv_header_sys_param_h" = xyes |
7880 |
then : |
7881 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
7882 |
|
7883 |
fi |
7884 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
7885 |
if test "x$ac_cv_header_sys_time_h" = xyes |
7886 |
then : |
7887 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
7888 |
|
7889 |
fi |
7890 |
ac_fn_cxx_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
7891 |
if test "x$ac_cv_header_netinet_in_systm_h" = xyes |
7892 |
then : |
7893 |
printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h |
7894 |
|
7895 |
fi |
7896 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/cygwin.h" "ac_cv_header_sys_cygwin_h" "$ac_includes_default" |
7897 |
if test "x$ac_cv_header_sys_cygwin_h" = xyes |
7898 |
then : |
7899 |
printf "%s\n" "#define HAVE_SYS_CYGWIN_H 1" >>confdefs.h |
7900 |
|
7901 |
fi |
7902 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
7903 |
if test "x$ac_cv_header_sys_mman_h" = xyes |
7904 |
then : |
7905 |
printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
7906 |
|
7907 |
fi |
7908 |
ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
7909 |
if test "x$ac_cv_header_netinet_in_h" = xyes |
7910 |
then : |
7911 |
printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h |
7912 |
|
7913 |
fi |
7914 |
|
7915 |
ac_fn_cxx_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " |
7916 |
#include <sys/types.h> |
7917 |
#include <sys/socket.h> |
7918 |
#ifdef HAVE_NETINET_IN_H |
7919 |
# include <netinet/in.h> |
7920 |
#endif |
7921 |
#ifdef HAVE_ARPA_INET_H |
7922 |
# include <arpa/inet.h> |
7923 |
#endif |
7924 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
7925 |
# include <netinet/in_systm.h> |
7926 |
#endif |
7927 |
|
7928 |
" |
7929 |
if test "x$ac_cv_header_arpa_inet_h" = xyes |
7930 |
then : |
7931 |
printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h |
7932 |
|
7933 |
fi |
7934 |
ac_fn_cxx_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" " |
7935 |
#include <sys/types.h> |
7936 |
#include <sys/socket.h> |
7937 |
#ifdef HAVE_NETINET_IN_H |
7938 |
# include <netinet/in.h> |
7939 |
#endif |
7940 |
#ifdef HAVE_ARPA_INET_H |
7941 |
# include <arpa/inet.h> |
7942 |
#endif |
7943 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
7944 |
# include <netinet/in_systm.h> |
7945 |
#endif |
7946 |
|
7947 |
" |
7948 |
if test "x$ac_cv_header_net_ethernet_h" = xyes |
7949 |
then : |
7950 |
printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h |
7951 |
|
7952 |
fi |
7953 |
ac_fn_cxx_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
7954 |
#include <sys/types.h> |
7955 |
#include <sys/socket.h> |
7956 |
#ifdef HAVE_NETINET_IN_H |
7957 |
# include <netinet/in.h> |
7958 |
#endif |
7959 |
#ifdef HAVE_ARPA_INET_H |
7960 |
# include <arpa/inet.h> |
7961 |
#endif |
7962 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
7963 |
# include <netinet/in_systm.h> |
7964 |
#endif |
7965 |
|
7966 |
" |
7967 |
if test "x$ac_cv_header_net_if_h" = xyes |
7968 |
then : |
7969 |
printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h |
7970 |
|
7971 |
fi |
7972 |
ac_fn_cxx_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" " |
7973 |
#include <sys/types.h> |
7974 |
#include <sys/socket.h> |
7975 |
#ifdef HAVE_NETINET_IN_H |
7976 |
# include <netinet/in.h> |
7977 |
#endif |
7978 |
#ifdef HAVE_ARPA_INET_H |
7979 |
# include <arpa/inet.h> |
7980 |
#endif |
7981 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
7982 |
# include <netinet/in_systm.h> |
7983 |
#endif |
7984 |
|
7985 |
" |
7986 |
if test "x$ac_cv_header_netinet_ip_h" = xyes |
7987 |
then : |
7988 |
printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h |
7989 |
|
7990 |
fi |
7991 |
ac_fn_cxx_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" " |
7992 |
#include <sys/types.h> |
7993 |
#include <sys/socket.h> |
7994 |
#ifdef HAVE_NETINET_IN_H |
7995 |
# include <netinet/in.h> |
7996 |
#endif |
7997 |
#ifdef HAVE_ARPA_INET_H |
7998 |
# include <arpa/inet.h> |
7999 |
#endif |
8000 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
8001 |
# include <netinet/in_systm.h> |
8002 |
#endif |
8003 |
|
8004 |
" |
8005 |
if test "x$ac_cv_header_netinet_tcp_h" = xyes |
8006 |
then : |
8007 |
printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h |
8008 |
|
8009 |
fi |
8010 |
ac_fn_cxx_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" " |
8011 |
#include <sys/types.h> |
8012 |
#include <sys/socket.h> |
8013 |
#ifdef HAVE_NETINET_IN_H |
8014 |
# include <netinet/in.h> |
8015 |
#endif |
8016 |
#ifdef HAVE_ARPA_INET_H |
8017 |
# include <arpa/inet.h> |
8018 |
#endif |
8019 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
8020 |
# include <netinet/in_systm.h> |
8021 |
#endif |
8022 |
|
8023 |
" |
8024 |
if test "x$ac_cv_header_netinet_in_systm_h" = xyes |
8025 |
then : |
8026 |
printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h |
8027 |
|
8028 |
fi |
8029 |
|
8030 |
|
8031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8032 |
printf %s "checking for an ANSI C-conforming const... " >&6; } |
8033 |
if test ${ac_cv_c_const+y} |
8034 |
then : |
8035 |
printf %s "(cached) " >&6 |
8036 |
else $as_nop |
8037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8038 |
/* end confdefs.h. */ |
8039 |
|
8040 |
int |
8041 |
main (void) |
8042 |
{ |
8043 |
|
8044 |
#ifndef __cplusplus |
8045 |
/* Ultrix mips cc rejects this sort of thing. */ |
8046 |
typedef int charset[2]; |
8047 |
const charset cs = { 0, 0 }; |
8048 |
/* SunOS 4.1.1 cc rejects this. */ |
8049 |
char const *const *pcpcc; |
8050 |
char **ppc; |
8051 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
8052 |
struct point {int x, y;}; |
8053 |
static struct point const zero = {0,0}; |
8054 |
/* IBM XL C 1.02.0.0 rejects this. |
8055 |
It does not let you subtract one const X* pointer from another in |
8056 |
an arm of an if-expression whose if-part is not a constant |
8057 |
expression */ |
8058 |
const char *g = "string"; |
8059 |
pcpcc = &g + (g ? g-g : 0); |
8060 |
/* HPUX 7.0 cc rejects these. */ |
8061 |
++pcpcc; |
8062 |
ppc = (char**) pcpcc; |
8063 |
pcpcc = (char const *const *) ppc; |
8064 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
8065 |
char tx; |
8066 |
char *t = &tx; |
8067 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
8068 |
|
8069 |
*t++ = 0; |
8070 |
if (s) return 0; |
8071 |
} |
8072 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8073 |
int x[] = {25, 17}; |
8074 |
const int *foo = &x[0]; |
8075 |
++foo; |
8076 |
} |
8077 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8078 |
typedef const int *iptr; |
8079 |
iptr p = 0; |
8080 |
++p; |
8081 |
} |
8082 |
{ /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
8083 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8084 |
struct s { int j; const int *ap[3]; } bx; |
8085 |
struct s *b = &bx; b->j = 5; |
8086 |
} |
8087 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8088 |
const int foo = 10; |
8089 |
if (!foo) return 0; |
8090 |
} |
8091 |
return !cs[0] && !zero.x; |
8092 |
#endif |
8093 |
|
8094 |
; |
8095 |
return 0; |
8096 |
} |
8097 |
_ACEOF |
8098 |
if ac_fn_cxx_try_compile "$LINENO" |
8099 |
then : |
8100 |
ac_cv_c_const=yes |
8101 |
else $as_nop |
8102 |
ac_cv_c_const=no |
8103 |
fi |
8104 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8105 |
fi |
8106 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8107 |
printf "%s\n" "$ac_cv_c_const" >&6; } |
8108 |
if test $ac_cv_c_const = no; then |
8109 |
|
8110 |
printf "%s\n" "#define const /**/" >>confdefs.h |
8111 |
|
8112 |
fi |
8113 |
|
8114 |
|
8115 |
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
8116 |
" |
8117 |
if test "x$ac_cv_type_pid_t" = xyes |
8118 |
then : |
8119 |
|
8120 |
else $as_nop |
8121 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8122 |
/* end confdefs.h. */ |
8123 |
|
8124 |
#if defined _WIN64 && !defined __CYGWIN__ |
8125 |
LLP64 |
8126 |
#endif |
8127 |
|
8128 |
int |
8129 |
main (void) |
8130 |
{ |
8131 |
|
8132 |
; |
8133 |
return 0; |
8134 |
} |
8135 |
|
8136 |
_ACEOF |
8137 |
if ac_fn_cxx_try_compile "$LINENO" |
8138 |
then : |
8139 |
ac_pid_type='int' |
8140 |
else $as_nop |
8141 |
ac_pid_type='__int64' |
8142 |
fi |
8143 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8144 |
|
8145 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
8146 |
|
8147 |
|
8148 |
fi |
8149 |
|
8150 |
|
8151 |
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
8152 |
if test "x$ac_cv_type_size_t" = xyes |
8153 |
then : |
8154 |
|
8155 |
else $as_nop |
8156 |
|
8157 |
printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
8158 |
|
8159 |
fi |
8160 |
|
8161 |
|
8162 |
|
8163 |
|
8164 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
8165 |
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
8166 |
if test ${ac_cv_struct_tm+y} |
8167 |
then : |
8168 |
printf %s "(cached) " >&6 |
8169 |
else $as_nop |
8170 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8171 |
/* end confdefs.h. */ |
8172 |
#include <sys/types.h> |
8173 |
#include <time.h> |
8174 |
|
8175 |
int |
8176 |
main (void) |
8177 |
{ |
8178 |
struct tm tm; |
8179 |
int *p = &tm.tm_sec; |
8180 |
return !p; |
8181 |
; |
8182 |
return 0; |
8183 |
} |
8184 |
_ACEOF |
8185 |
if ac_fn_cxx_try_compile "$LINENO" |
8186 |
then : |
8187 |
ac_cv_struct_tm=time.h |
8188 |
else $as_nop |
8189 |
ac_cv_struct_tm=sys/time.h |
8190 |
fi |
8191 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8192 |
fi |
8193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
8194 |
printf "%s\n" "$ac_cv_struct_tm" >&6; } |
8195 |
if test $ac_cv_struct_tm = sys/time.h; then |
8196 |
|
8197 |
printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
8198 |
|
8199 |
fi |
8200 |
|
8201 |
|
8202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
8203 |
printf %s "checking for socklen_t... " >&6; } |
8204 |
if test ${ac_cv_type_socklen_t+y} |
8205 |
then : |
8206 |
printf %s "(cached) " >&6 |
8207 |
else $as_nop |
8208 |
|
8209 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8210 |
/* end confdefs.h. */ |
8211 |
#include <sys/types.h> |
8212 |
#include <sys/socket.h> |
8213 |
int |
8214 |
main (void) |
8215 |
{ |
8216 |
socklen_t len = 42; return len; |
8217 |
; |
8218 |
return 0; |
8219 |
} |
8220 |
_ACEOF |
8221 |
if ac_fn_cxx_try_compile "$LINENO" |
8222 |
then : |
8223 |
ac_cv_type_socklen_t=yes |
8224 |
else $as_nop |
8225 |
ac_cv_type_socklen_t=no |
8226 |
fi |
8227 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8228 |
|
8229 |
fi |
8230 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 |
8231 |
printf "%s\n" "$ac_cv_type_socklen_t" >&6; } |
8232 |
if test $ac_cv_type_socklen_t = yes; then |
8233 |
|
8234 |
printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
8235 |
|
8236 |
fi |
8237 |
|
8238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
8239 |
printf %s "checking for struct addrinfo... " >&6; } |
8240 |
if test ${ac_cv_struct_addrinfo+y} |
8241 |
then : |
8242 |
printf %s "(cached) " >&6 |
8243 |
else $as_nop |
8244 |
|
8245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8246 |
/* end confdefs.h. */ |
8247 |
#include <sys/types.h> |
8248 |
#include <sys/socket.h> |
8249 |
#include <netdb.h> |
8250 |
int |
8251 |
main (void) |
8252 |
{ |
8253 |
struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family; |
8254 |
; |
8255 |
return 0; |
8256 |
} |
8257 |
_ACEOF |
8258 |
if ac_fn_cxx_try_compile "$LINENO" |
8259 |
then : |
8260 |
ac_cv_struct_addrinfo=yes |
8261 |
else $as_nop |
8262 |
ac_cv_struct_addrinfo=no |
8263 |
fi |
8264 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8265 |
|
8266 |
fi |
8267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
8268 |
printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } |
8269 |
if test $ac_cv_struct_addrinfo = yes; then |
8270 |
|
8271 |
printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
8272 |
|
8273 |
fi |
8274 |
|
8275 |
ac_ext=c |
8276 |
ac_cpp='$CPP $CPPFLAGS' |
8277 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8278 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8279 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8280 |
|
8281 |
|
8282 |
ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" |
8283 |
if test "x$ac_cv_func_asprintf" = xyes |
8284 |
then : |
8285 |
printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h |
8286 |
|
8287 |
fi |
8288 |
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
8289 |
if test "x$ac_cv_func_daemon" = xyes |
8290 |
then : |
8291 |
printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h |
8292 |
|
8293 |
fi |
8294 |
ac_fn_c_check_func "$LINENO" "get_current_dir_name" "ac_cv_func_get_current_dir_name" |
8295 |
if test "x$ac_cv_func_get_current_dir_name" = xyes |
8296 |
then : |
8297 |
printf "%s\n" "#define HAVE_GET_CURRENT_DIR_NAME 1" >>confdefs.h |
8298 |
|
8299 |
fi |
8300 |
ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
8301 |
if test "x$ac_cv_func_putenv" = xyes |
8302 |
then : |
8303 |
printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
8304 |
|
8305 |
fi |
8306 |
ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
8307 |
if test "x$ac_cv_func_select" = xyes |
8308 |
then : |
8309 |
printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
8310 |
|
8311 |
fi |
8312 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
8313 |
if test "x$ac_cv_func_strerror" = xyes |
8314 |
then : |
8315 |
printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
8316 |
|
8317 |
fi |
8318 |
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" |
8319 |
if test "x$ac_cv_func_strsignal" = xyes |
8320 |
then : |
8321 |
printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h |
8322 |
|
8323 |
fi |
8324 |
ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
8325 |
if test "x$ac_cv_func_strtol" = xyes |
8326 |
then : |
8327 |
printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h |
8328 |
|
8329 |
fi |
8330 |
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
8331 |
if test "x$ac_cv_func_unsetenv" = xyes |
8332 |
then : |
8333 |
printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
8334 |
|
8335 |
fi |
8336 |
ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" |
8337 |
if test "x$ac_cv_func_mlockall" = xyes |
8338 |
then : |
8339 |
printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h |
8340 |
|
8341 |
fi |
8342 |
|
8343 |
|
8344 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8345 |
# for constant arguments. Useless! |
8346 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
8347 |
printf %s "checking for working alloca.h... " >&6; } |
8348 |
if test ${ac_cv_working_alloca_h+y} |
8349 |
then : |
8350 |
printf %s "(cached) " >&6 |
8351 |
else $as_nop |
8352 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8353 |
/* end confdefs.h. */ |
8354 |
#include <alloca.h> |
8355 |
int |
8356 |
main (void) |
8357 |
{ |
8358 |
char *p = (char *) alloca (2 * sizeof (int)); |
8359 |
if (p) return 0; |
8360 |
; |
8361 |
return 0; |
8362 |
} |
8363 |
_ACEOF |
8364 |
if ac_fn_c_try_link "$LINENO" |
8365 |
then : |
8366 |
ac_cv_working_alloca_h=yes |
8367 |
else $as_nop |
8368 |
ac_cv_working_alloca_h=no |
8369 |
fi |
8370 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8371 |
conftest$ac_exeext conftest.$ac_ext |
8372 |
fi |
8373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
8374 |
printf "%s\n" "$ac_cv_working_alloca_h" >&6; } |
8375 |
if test $ac_cv_working_alloca_h = yes; then |
8376 |
|
8377 |
printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
8378 |
|
8379 |
fi |
8380 |
|
8381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
8382 |
printf %s "checking for alloca... " >&6; } |
8383 |
if test ${ac_cv_func_alloca_works+y} |
8384 |
then : |
8385 |
printf %s "(cached) " >&6 |
8386 |
else $as_nop |
8387 |
if test $ac_cv_working_alloca_h = yes; then |
8388 |
ac_cv_func_alloca_works=yes |
8389 |
else |
8390 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8391 |
/* end confdefs.h. */ |
8392 |
#include <stdlib.h> |
8393 |
#include <stddef.h> |
8394 |
#ifndef alloca |
8395 |
# ifdef __GNUC__ |
8396 |
# define alloca __builtin_alloca |
8397 |
# elif defined _MSC_VER |
8398 |
# include <malloc.h> |
8399 |
# define alloca _alloca |
8400 |
# else |
8401 |
# ifdef __cplusplus |
8402 |
extern "C" |
8403 |
# endif |
8404 |
void *alloca (size_t); |
8405 |
# endif |
8406 |
#endif |
8407 |
|
8408 |
int |
8409 |
main (void) |
8410 |
{ |
8411 |
char *p = (char *) alloca (1); |
8412 |
if (p) return 0; |
8413 |
; |
8414 |
return 0; |
8415 |
} |
8416 |
_ACEOF |
8417 |
if ac_fn_c_try_link "$LINENO" |
8418 |
then : |
8419 |
ac_cv_func_alloca_works=yes |
8420 |
else $as_nop |
8421 |
ac_cv_func_alloca_works=no |
8422 |
fi |
8423 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8424 |
conftest$ac_exeext conftest.$ac_ext |
8425 |
fi |
8426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
8427 |
printf "%s\n" "$ac_cv_func_alloca_works" >&6; } |
8428 |
fi |
8429 |
|
8430 |
if test $ac_cv_func_alloca_works = yes; then |
8431 |
|
8432 |
printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
8433 |
|
8434 |
else |
8435 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
8436 |
# that cause trouble. Some versions do not even contain alloca or |
8437 |
# contain a buggy version. If you still want to use their alloca, |
8438 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
8439 |
|
8440 |
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
8441 |
|
8442 |
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
8443 |
|
8444 |
|
8445 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
8446 |
printf %s "checking stack direction for C alloca... " >&6; } |
8447 |
if test ${ac_cv_c_stack_direction+y} |
8448 |
then : |
8449 |
printf %s "(cached) " >&6 |
8450 |
else $as_nop |
8451 |
if test "$cross_compiling" = yes |
8452 |
then : |
8453 |
ac_cv_c_stack_direction=0 |
8454 |
else $as_nop |
8455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8456 |
/* end confdefs.h. */ |
8457 |
$ac_includes_default |
8458 |
int |
8459 |
find_stack_direction (int *addr, int depth) |
8460 |
{ |
8461 |
int dir, dummy = 0; |
8462 |
if (! addr) |
8463 |
addr = &dummy; |
8464 |
*addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
8465 |
dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
8466 |
return dir + dummy; |
8467 |
} |
8468 |
|
8469 |
int |
8470 |
main (int argc, char **argv) |
8471 |
{ |
8472 |
return find_stack_direction (0, argc + !argv + 20) < 0; |
8473 |
} |
8474 |
_ACEOF |
8475 |
if ac_fn_c_try_run "$LINENO" |
8476 |
then : |
8477 |
ac_cv_c_stack_direction=1 |
8478 |
else $as_nop |
8479 |
ac_cv_c_stack_direction=-1 |
8480 |
fi |
8481 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8482 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
8483 |
fi |
8484 |
|
8485 |
fi |
8486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
8487 |
printf "%s\n" "$ac_cv_c_stack_direction" >&6; } |
8488 |
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h |
8489 |
|
8490 |
|
8491 |
fi |
8492 |
|
8493 |
|
8494 |
|
8495 |
ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
8496 |
if test "x$ac_cv_func_socket" = xyes |
8497 |
then : |
8498 |
|
8499 |
else $as_nop |
8500 |
|
8501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
8502 |
printf %s "checking for connect in -lsocket... " >&6; } |
8503 |
if test ${ac_cv_lib_socket_connect+y} |
8504 |
then : |
8505 |
printf %s "(cached) " >&6 |
8506 |
else $as_nop |
8507 |
ac_check_lib_save_LIBS=$LIBS |
8508 |
LIBS="-lsocket $LIBS" |
8509 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8510 |
/* end confdefs.h. */ |
8511 |
|
8512 |
/* Override any GCC internal prototype to avoid an error. |
8513 |
Use char because int might match the return type of a GCC |
8514 |
builtin and then its argument prototype would still apply. */ |
8515 |
char connect (); |
8516 |
int |
8517 |
main (void) |
8518 |
{ |
8519 |
return connect (); |
8520 |
; |
8521 |
return 0; |
8522 |
} |
8523 |
_ACEOF |
8524 |
if ac_fn_c_try_link "$LINENO" |
8525 |
then : |
8526 |
ac_cv_lib_socket_connect=yes |
8527 |
else $as_nop |
8528 |
ac_cv_lib_socket_connect=no |
8529 |
fi |
8530 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8531 |
conftest$ac_exeext conftest.$ac_ext |
8532 |
LIBS=$ac_check_lib_save_LIBS |
8533 |
fi |
8534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
8535 |
printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
8536 |
if test "x$ac_cv_lib_socket_connect" = xyes |
8537 |
then : |
8538 |
printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h |
8539 |
|
8540 |
LIBS="-lsocket $LIBS" |
8541 |
|
8542 |
fi |
8543 |
|
8544 |
|
8545 |
fi |
8546 |
|
8547 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
8548 |
if test "x$ac_cv_func_gethostbyname" = xyes |
8549 |
then : |
8550 |
|
8551 |
else $as_nop |
8552 |
|
8553 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
8554 |
printf %s "checking for gethostbyname in -lnsl... " >&6; } |
8555 |
if test ${ac_cv_lib_nsl_gethostbyname+y} |
8556 |
then : |
8557 |
printf %s "(cached) " >&6 |
8558 |
else $as_nop |
8559 |
ac_check_lib_save_LIBS=$LIBS |
8560 |
LIBS="-lnsl $LIBS" |
8561 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8562 |
/* end confdefs.h. */ |
8563 |
|
8564 |
/* Override any GCC internal prototype to avoid an error. |
8565 |
Use char because int might match the return type of a GCC |
8566 |
builtin and then its argument prototype would still apply. */ |
8567 |
char gethostbyname (); |
8568 |
int |
8569 |
main (void) |
8570 |
{ |
8571 |
return gethostbyname (); |
8572 |
; |
8573 |
return 0; |
8574 |
} |
8575 |
_ACEOF |
8576 |
if ac_fn_c_try_link "$LINENO" |
8577 |
then : |
8578 |
ac_cv_lib_nsl_gethostbyname=yes |
8579 |
else $as_nop |
8580 |
ac_cv_lib_nsl_gethostbyname=no |
8581 |
fi |
8582 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8583 |
conftest$ac_exeext conftest.$ac_ext |
8584 |
LIBS=$ac_check_lib_save_LIBS |
8585 |
fi |
8586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
8587 |
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
8588 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
8589 |
then : |
8590 |
printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h |
8591 |
|
8592 |
LIBS="-lnsl $LIBS" |
8593 |
|
8594 |
fi |
8595 |
|
8596 |
|
8597 |
fi |
8598 |
|
8599 |
|
8600 |
|
8601 |
ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
8602 |
if test "x$ac_cv_header_sys_inotify_h" = xyes |
8603 |
then : |
8604 |
printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h |
8605 |
|
8606 |
fi |
8607 |
ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
8608 |
if test "x$ac_cv_header_sys_epoll_h" = xyes |
8609 |
then : |
8610 |
printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
8611 |
|
8612 |
fi |
8613 |
ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
8614 |
if test "x$ac_cv_header_sys_event_h" = xyes |
8615 |
then : |
8616 |
printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
8617 |
|
8618 |
fi |
8619 |
ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" |
8620 |
if test "x$ac_cv_header_port_h" = xyes |
8621 |
then : |
8622 |
printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h |
8623 |
|
8624 |
fi |
8625 |
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
8626 |
if test "x$ac_cv_header_poll_h" = xyes |
8627 |
then : |
8628 |
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
8629 |
|
8630 |
fi |
8631 |
ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
8632 |
if test "x$ac_cv_header_sys_timerfd_h" = xyes |
8633 |
then : |
8634 |
printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h |
8635 |
|
8636 |
fi |
8637 |
|
8638 |
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
8639 |
if test "x$ac_cv_header_sys_select_h" = xyes |
8640 |
then : |
8641 |
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
8642 |
|
8643 |
fi |
8644 |
ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
8645 |
if test "x$ac_cv_header_sys_eventfd_h" = xyes |
8646 |
then : |
8647 |
printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
8648 |
|
8649 |
fi |
8650 |
ac_fn_c_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default" |
8651 |
if test "x$ac_cv_header_sys_signalfd_h" = xyes |
8652 |
then : |
8653 |
printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h |
8654 |
|
8655 |
fi |
8656 |
ac_fn_c_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default" |
8657 |
if test "x$ac_cv_header_linux_aio_abi_h" = xyes |
8658 |
then : |
8659 |
printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h |
8660 |
|
8661 |
fi |
8662 |
ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
8663 |
if test "x$ac_cv_header_linux_fs_h" = xyes |
8664 |
then : |
8665 |
printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
8666 |
|
8667 |
fi |
8668 |
|
8669 |
|
8670 |
ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" |
8671 |
if test "x$ac_cv_func_inotify_init" = xyes |
8672 |
then : |
8673 |
printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h |
8674 |
|
8675 |
fi |
8676 |
ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" |
8677 |
if test "x$ac_cv_func_epoll_ctl" = xyes |
8678 |
then : |
8679 |
printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h |
8680 |
|
8681 |
fi |
8682 |
ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" |
8683 |
if test "x$ac_cv_func_kqueue" = xyes |
8684 |
then : |
8685 |
printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
8686 |
|
8687 |
fi |
8688 |
ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" |
8689 |
if test "x$ac_cv_func_port_create" = xyes |
8690 |
then : |
8691 |
printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h |
8692 |
|
8693 |
fi |
8694 |
ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
8695 |
if test "x$ac_cv_func_poll" = xyes |
8696 |
then : |
8697 |
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
8698 |
|
8699 |
fi |
8700 |
ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
8701 |
if test "x$ac_cv_func_select" = xyes |
8702 |
then : |
8703 |
printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
8704 |
|
8705 |
fi |
8706 |
ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
8707 |
if test "x$ac_cv_func_eventfd" = xyes |
8708 |
then : |
8709 |
printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
8710 |
|
8711 |
fi |
8712 |
ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd" |
8713 |
if test "x$ac_cv_func_signalfd" = xyes |
8714 |
then : |
8715 |
printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h |
8716 |
|
8717 |
fi |
8718 |
|
8719 |
|
8720 |
|
8721 |
for ac_func in clock_gettime |
8722 |
do : |
8723 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
8724 |
if test "x$ac_cv_func_clock_gettime" = xyes |
8725 |
then : |
8726 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
8727 |
|
8728 |
else $as_nop |
8729 |
|
8730 |
if test $(uname) = Linux; then |
8731 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
8732 |
printf %s "checking for clock_gettime syscall... " >&6; } |
8733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8734 |
/* end confdefs.h. */ |
8735 |
#include <unistd.h> |
8736 |
#include <sys/syscall.h> |
8737 |
#include <time.h> |
8738 |
int |
8739 |
main (void) |
8740 |
{ |
8741 |
struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
8742 |
; |
8743 |
return 0; |
8744 |
} |
8745 |
_ACEOF |
8746 |
if ac_fn_c_try_link "$LINENO" |
8747 |
then : |
8748 |
ac_have_clock_syscall=1 |
8749 |
|
8750 |
printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
8751 |
|
8752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8753 |
printf "%s\n" "yes" >&6; } |
8754 |
else $as_nop |
8755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8756 |
printf "%s\n" "no" >&6; } |
8757 |
fi |
8758 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8759 |
conftest$ac_exeext conftest.$ac_ext |
8760 |
fi |
8761 |
if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
8762 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
8763 |
printf %s "checking for clock_gettime in -lrt... " >&6; } |
8764 |
if test ${ac_cv_lib_rt_clock_gettime+y} |
8765 |
then : |
8766 |
printf %s "(cached) " >&6 |
8767 |
else $as_nop |
8768 |
ac_check_lib_save_LIBS=$LIBS |
8769 |
LIBS="-lrt $LIBS" |
8770 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8771 |
/* end confdefs.h. */ |
8772 |
|
8773 |
/* Override any GCC internal prototype to avoid an error. |
8774 |
Use char because int might match the return type of a GCC |
8775 |
builtin and then its argument prototype would still apply. */ |
8776 |
char clock_gettime (); |
8777 |
int |
8778 |
main (void) |
8779 |
{ |
8780 |
return clock_gettime (); |
8781 |
; |
8782 |
return 0; |
8783 |
} |
8784 |
_ACEOF |
8785 |
if ac_fn_c_try_link "$LINENO" |
8786 |
then : |
8787 |
ac_cv_lib_rt_clock_gettime=yes |
8788 |
else $as_nop |
8789 |
ac_cv_lib_rt_clock_gettime=no |
8790 |
fi |
8791 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8792 |
conftest$ac_exeext conftest.$ac_ext |
8793 |
LIBS=$ac_check_lib_save_LIBS |
8794 |
fi |
8795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
8796 |
printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
8797 |
if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
8798 |
then : |
8799 |
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
8800 |
|
8801 |
LIBS="-lrt $LIBS" |
8802 |
|
8803 |
fi |
8804 |
|
8805 |
unset ac_cv_func_clock_gettime |
8806 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
8807 |
if test "x$ac_cv_func_clock_gettime" = xyes |
8808 |
then : |
8809 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
8810 |
|
8811 |
fi |
8812 |
|
8813 |
fi |
8814 |
|
8815 |
fi |
8816 |
|
8817 |
done |
8818 |
|
8819 |
|
8820 |
for ac_func in nanosleep |
8821 |
do : |
8822 |
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
8823 |
if test "x$ac_cv_func_nanosleep" = xyes |
8824 |
then : |
8825 |
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
8826 |
|
8827 |
else $as_nop |
8828 |
|
8829 |
if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
8830 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
8831 |
printf %s "checking for nanosleep in -lrt... " >&6; } |
8832 |
if test ${ac_cv_lib_rt_nanosleep+y} |
8833 |
then : |
8834 |
printf %s "(cached) " >&6 |
8835 |
else $as_nop |
8836 |
ac_check_lib_save_LIBS=$LIBS |
8837 |
LIBS="-lrt $LIBS" |
8838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8839 |
/* end confdefs.h. */ |
8840 |
|
8841 |
/* Override any GCC internal prototype to avoid an error. |
8842 |
Use char because int might match the return type of a GCC |
8843 |
builtin and then its argument prototype would still apply. */ |
8844 |
char nanosleep (); |
8845 |
int |
8846 |
main (void) |
8847 |
{ |
8848 |
return nanosleep (); |
8849 |
; |
8850 |
return 0; |
8851 |
} |
8852 |
_ACEOF |
8853 |
if ac_fn_c_try_link "$LINENO" |
8854 |
then : |
8855 |
ac_cv_lib_rt_nanosleep=yes |
8856 |
else $as_nop |
8857 |
ac_cv_lib_rt_nanosleep=no |
8858 |
fi |
8859 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8860 |
conftest$ac_exeext conftest.$ac_ext |
8861 |
LIBS=$ac_check_lib_save_LIBS |
8862 |
fi |
8863 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
8864 |
printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } |
8865 |
if test "x$ac_cv_lib_rt_nanosleep" = xyes |
8866 |
then : |
8867 |
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
8868 |
|
8869 |
LIBS="-lrt $LIBS" |
8870 |
|
8871 |
fi |
8872 |
|
8873 |
unset ac_cv_func_nanosleep |
8874 |
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
8875 |
if test "x$ac_cv_func_nanosleep" = xyes |
8876 |
then : |
8877 |
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
8878 |
|
8879 |
fi |
8880 |
|
8881 |
fi |
8882 |
|
8883 |
fi |
8884 |
|
8885 |
done |
8886 |
|
8887 |
ac_fn_c_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
8888 |
" |
8889 |
if test "x$ac_cv_type___kernel_rwf_t" = xyes |
8890 |
then : |
8891 |
|
8892 |
|
8893 |
printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
8894 |
|
8895 |
|
8896 |
fi |
8897 |
|
8898 |
|
8899 |
if test -z "$LIBEV_M4_AVOID_LIBM"; then |
8900 |
LIBM=m |
8901 |
fi |
8902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
8903 |
printf %s "checking for library containing floor... " >&6; } |
8904 |
if test ${ac_cv_search_floor+y} |
8905 |
then : |
8906 |
printf %s "(cached) " >&6 |
8907 |
else $as_nop |
8908 |
ac_func_search_save_LIBS=$LIBS |
8909 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8910 |
/* end confdefs.h. */ |
8911 |
|
8912 |
/* Override any GCC internal prototype to avoid an error. |
8913 |
Use char because int might match the return type of a GCC |
8914 |
builtin and then its argument prototype would still apply. */ |
8915 |
char floor (); |
8916 |
int |
8917 |
main (void) |
8918 |
{ |
8919 |
return floor (); |
8920 |
; |
8921 |
return 0; |
8922 |
} |
8923 |
_ACEOF |
8924 |
for ac_lib in '' $LIBM |
8925 |
do |
8926 |
if test -z "$ac_lib"; then |
8927 |
ac_res="none required" |
8928 |
else |
8929 |
ac_res=-l$ac_lib |
8930 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
8931 |
fi |
8932 |
if ac_fn_c_try_link "$LINENO" |
8933 |
then : |
8934 |
ac_cv_search_floor=$ac_res |
8935 |
fi |
8936 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8937 |
conftest$ac_exeext |
8938 |
if test ${ac_cv_search_floor+y} |
8939 |
then : |
8940 |
break |
8941 |
fi |
8942 |
done |
8943 |
if test ${ac_cv_search_floor+y} |
8944 |
then : |
8945 |
|
8946 |
else $as_nop |
8947 |
ac_cv_search_floor=no |
8948 |
fi |
8949 |
rm conftest.$ac_ext |
8950 |
LIBS=$ac_func_search_save_LIBS |
8951 |
fi |
8952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
8953 |
printf "%s\n" "$ac_cv_search_floor" >&6; } |
8954 |
ac_res=$ac_cv_search_floor |
8955 |
if test "$ac_res" != no |
8956 |
then : |
8957 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
8958 |
|
8959 |
printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
8960 |
|
8961 |
fi |
8962 |
|
8963 |
|
8964 |
|
8965 |
|
8966 |
ac_ext=cpp |
8967 |
ac_cpp='$CXXCPP $CPPFLAGS' |
8968 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8969 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8970 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
8971 |
|
8972 |
|
8973 |
|
8974 |
cat >confcache <<\_ACEOF |
8975 |
# This file is a shell script that caches the results of configure |
8976 |
# tests run on this system so they can be shared between configure |
8977 |
# scripts and configure runs, see configure's option --config-cache. |
8978 |
# It is not useful on other systems. If it contains results you don't |
8979 |
# want to keep, you may remove or edit it. |
8980 |
# |
8981 |
# config.status only pays attention to the cache file if you give it |
8982 |
# the --recheck option to rerun configure. |
8983 |
# |
8984 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
8985 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
8986 |
# following values. |
8987 |
|
8988 |
_ACEOF |
8989 |
|
8990 |
# The following way of writing the cache mishandles newlines in values, |
8991 |
# but we know of no workaround that is simple, portable, and efficient. |
8992 |
# So, we kill variables containing newlines. |
8993 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
8994 |
# and sets the high bit in the cache file unless we assign to the vars. |
8995 |
( |
8996 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
8997 |
eval ac_val=\$$ac_var |
8998 |
case $ac_val in #( |
8999 |
*${as_nl}*) |
9000 |
case $ac_var in #( |
9001 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9002 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
9003 |
esac |
9004 |
case $ac_var in #( |
9005 |
_ | IFS | as_nl) ;; #( |
9006 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9007 |
*) { eval $ac_var=; unset $ac_var;} ;; |
9008 |
esac ;; |
9009 |
esac |
9010 |
done |
9011 |
|
9012 |
(set) 2>&1 | |
9013 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9014 |
*${as_nl}ac_space=\ *) |
9015 |
# `set' does not quote correctly, so add quotes: double-quote |
9016 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
9017 |
sed -n \ |
9018 |
"s/'/'\\\\''/g; |
9019 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
9020 |
;; #( |
9021 |
*) |
9022 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
9023 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9024 |
;; |
9025 |
esac | |
9026 |
sort |
9027 |
) | |
9028 |
sed ' |
9029 |
/^ac_cv_env_/b end |
9030 |
t clear |
9031 |
:clear |
9032 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
9033 |
t end |
9034 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9035 |
:end' >>confcache |
9036 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
9037 |
if test -w "$cache_file"; then |
9038 |
if test "x$cache_file" != "x/dev/null"; then |
9039 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9040 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
9041 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
9042 |
cat confcache >"$cache_file" |
9043 |
else |
9044 |
case $cache_file in #( |
9045 |
*/* | ?:*) |
9046 |
mv -f confcache "$cache_file"$$ && |
9047 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
9048 |
*) |
9049 |
mv -f confcache "$cache_file" ;; |
9050 |
esac |
9051 |
fi |
9052 |
fi |
9053 |
else |
9054 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9055 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
9056 |
fi |
9057 |
fi |
9058 |
rm -f confcache |
9059 |
|
9060 |
|
9061 |
|
9062 |
# Check whether --with-kernel was given. |
9063 |
if test ${with_kernel+y} |
9064 |
then : |
9065 |
withval=$with_kernel; kerneldir="$withval" |
9066 |
else $as_nop |
9067 |
kerneldir="/usr/src/linux" |
9068 |
|
9069 |
fi |
9070 |
|
9071 |
|
9072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5 |
9073 |
printf %s "checking for linux/if_tun.h... " >&6; } |
9074 |
if test ${tinc_cv_linux_if_tun_h+y} |
9075 |
then : |
9076 |
printf %s "(cached) " >&6 |
9077 |
else $as_nop |
9078 |
|
9079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9080 |
/* end confdefs.h. */ |
9081 |
#include "$kerneldir/include/linux/if_tun.h" |
9082 |
int |
9083 |
main (void) |
9084 |
{ |
9085 |
int a = IFF_TAP; |
9086 |
; |
9087 |
return 0; |
9088 |
} |
9089 |
_ACEOF |
9090 |
if ac_fn_cxx_try_compile "$LINENO" |
9091 |
then : |
9092 |
if_tun_h="\"$kerneldir/include/linux/if_tun.h\"" |
9093 |
else $as_nop |
9094 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9095 |
/* end confdefs.h. */ |
9096 |
#include <linux/if_tun.h> |
9097 |
int |
9098 |
main (void) |
9099 |
{ |
9100 |
int a = IFF_TAP; |
9101 |
; |
9102 |
return 0; |
9103 |
} |
9104 |
_ACEOF |
9105 |
if ac_fn_cxx_try_compile "$LINENO" |
9106 |
then : |
9107 |
if_tun_h="default" |
9108 |
else $as_nop |
9109 |
if_tun_h="no" |
9110 |
|
9111 |
fi |
9112 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
9113 |
|
9114 |
fi |
9115 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
9116 |
|
9117 |
if test $if_tun_h = no; then |
9118 |
tinc_cv_linux_if_tun_h=none |
9119 |
else |
9120 |
tinc_cv_linux_if_tun_h="$if_tun_h" |
9121 |
fi |
9122 |
|
9123 |
fi |
9124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5 |
9125 |
printf "%s\n" "$tinc_cv_linux_if_tun_h" >&6; } |
9126 |
|
9127 |
if test $tinc_cv_linux_if_tun_h != none; then |
9128 |
|
9129 |
printf "%s\n" "#define HAVE_TUNTAP 1" >>confdefs.h |
9130 |
|
9131 |
if test $tinc_cv_linux_if_tun_h != default; then |
9132 |
|
9133 |
printf "%s\n" "#define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h" >>confdefs.h |
9134 |
|
9135 |
fi |
9136 |
fi |
9137 |
|
9138 |
|
9139 |
|
9140 |
|
9141 |
|
9142 |
|
9143 |
|
9144 |
|
9145 |
|
9146 |
|
9147 |
|
9148 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
9149 |
if test -n "$ac_tool_prefix"; then |
9150 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
9151 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
9152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9153 |
printf %s "checking for $ac_word... " >&6; } |
9154 |
if test ${ac_cv_path_PKG_CONFIG+y} |
9155 |
then : |
9156 |
printf %s "(cached) " >&6 |
9157 |
else $as_nop |
9158 |
case $PKG_CONFIG in |
9159 |
[\\/]* | ?:[\\/]*) |
9160 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
9161 |
;; |
9162 |
*) |
9163 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9164 |
for as_dir in $PATH |
9165 |
do |
9166 |
IFS=$as_save_IFS |
9167 |
case $as_dir in #((( |
9168 |
'') as_dir=./ ;; |
9169 |
*/) ;; |
9170 |
*) as_dir=$as_dir/ ;; |
9171 |
esac |
9172 |
for ac_exec_ext in '' $ac_executable_extensions; do |
9173 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9174 |
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
9175 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
9176 |
break 2 |
9177 |
fi |
9178 |
done |
9179 |
done |
9180 |
IFS=$as_save_IFS |
9181 |
|
9182 |
;; |
9183 |
esac |
9184 |
fi |
9185 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
9186 |
if test -n "$PKG_CONFIG"; then |
9187 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
9188 |
printf "%s\n" "$PKG_CONFIG" >&6; } |
9189 |
else |
9190 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9191 |
printf "%s\n" "no" >&6; } |
9192 |
fi |
9193 |
|
9194 |
|
9195 |
fi |
9196 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
9197 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
9198 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
9199 |
set dummy pkg-config; ac_word=$2 |
9200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9201 |
printf %s "checking for $ac_word... " >&6; } |
9202 |
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
9203 |
then : |
9204 |
printf %s "(cached) " >&6 |
9205 |
else $as_nop |
9206 |
case $ac_pt_PKG_CONFIG in |
9207 |
[\\/]* | ?:[\\/]*) |
9208 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
9209 |
;; |
9210 |
*) |
9211 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9212 |
for as_dir in $PATH |
9213 |
do |
9214 |
IFS=$as_save_IFS |
9215 |
case $as_dir in #((( |
9216 |
'') as_dir=./ ;; |
9217 |
*/) ;; |
9218 |
*) as_dir=$as_dir/ ;; |
9219 |
esac |
9220 |
for ac_exec_ext in '' $ac_executable_extensions; do |
9221 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9222 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
9223 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
9224 |
break 2 |
9225 |
fi |
9226 |
done |
9227 |
done |
9228 |
IFS=$as_save_IFS |
9229 |
|
9230 |
;; |
9231 |
esac |
9232 |
fi |
9233 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
9234 |
if test -n "$ac_pt_PKG_CONFIG"; then |
9235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
9236 |
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
9237 |
else |
9238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9239 |
printf "%s\n" "no" >&6; } |
9240 |
fi |
9241 |
|
9242 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
9243 |
PKG_CONFIG="" |
9244 |
else |
9245 |
case $cross_compiling:$ac_tool_warned in |
9246 |
yes:) |
9247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
9248 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
9249 |
ac_tool_warned=yes ;; |
9250 |
esac |
9251 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
9252 |
fi |
9253 |
else |
9254 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
9255 |
fi |
9256 |
|
9257 |
fi |
9258 |
if test -n "$PKG_CONFIG"; then |
9259 |
_pkg_min_version=0.9.0 |
9260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
9261 |
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
9262 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
9263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9264 |
printf "%s\n" "yes" >&6; } |
9265 |
else |
9266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9267 |
printf "%s\n" "no" >&6; } |
9268 |
PKG_CONFIG="" |
9269 |
fi |
9270 |
fi |
9271 |
|
9272 |
pkg_failed=no |
9273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1" >&5 |
9274 |
printf %s "checking for libcrypto >= 1... " >&6; } |
9275 |
|
9276 |
if test -n "$LIBCRYPTO_CFLAGS"; then |
9277 |
pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS" |
9278 |
elif test -n "$PKG_CONFIG"; then |
9279 |
if test -n "$PKG_CONFIG" && \ |
9280 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
9281 |
($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
9282 |
ac_status=$? |
9283 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9284 |
test $ac_status = 0; }; then |
9285 |
pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null` |
9286 |
test "x$?" != "x0" && pkg_failed=yes |
9287 |
else |
9288 |
pkg_failed=yes |
9289 |
fi |
9290 |
else |
9291 |
pkg_failed=untried |
9292 |
fi |
9293 |
if test -n "$LIBCRYPTO_LIBS"; then |
9294 |
pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS" |
9295 |
elif test -n "$PKG_CONFIG"; then |
9296 |
if test -n "$PKG_CONFIG" && \ |
9297 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
9298 |
($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
9299 |
ac_status=$? |
9300 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9301 |
test $ac_status = 0; }; then |
9302 |
pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null` |
9303 |
test "x$?" != "x0" && pkg_failed=yes |
9304 |
else |
9305 |
pkg_failed=yes |
9306 |
fi |
9307 |
else |
9308 |
pkg_failed=untried |
9309 |
fi |
9310 |
|
9311 |
|
9312 |
|
9313 |
if test $pkg_failed = yes; then |
9314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9315 |
printf "%s\n" "no" >&6; } |
9316 |
|
9317 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
9318 |
_pkg_short_errors_supported=yes |
9319 |
else |
9320 |
_pkg_short_errors_supported=no |
9321 |
fi |
9322 |
if test $_pkg_short_errors_supported = yes; then |
9323 |
LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
9324 |
else |
9325 |
LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
9326 |
fi |
9327 |
# Put the nasty error message in config.log where it belongs |
9328 |
echo "$LIBCRYPTO_PKG_ERRORS" >&5 |
9329 |
|
9330 |
as_fn_error $? "Package requirements (libcrypto >= 1) were not met: |
9331 |
|
9332 |
$LIBCRYPTO_PKG_ERRORS |
9333 |
|
9334 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
9335 |
installed software in a non-standard prefix. |
9336 |
|
9337 |
Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
9338 |
and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
9339 |
See the pkg-config man page for more details." "$LINENO" 5 |
9340 |
elif test $pkg_failed = untried; then |
9341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9342 |
printf "%s\n" "no" >&6; } |
9343 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9344 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
9345 |
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
9346 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
9347 |
path to pkg-config. |
9348 |
|
9349 |
Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
9350 |
and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
9351 |
See the pkg-config man page for more details. |
9352 |
|
9353 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
9354 |
See \`config.log' for more details" "$LINENO" 5; } |
9355 |
else |
9356 |
LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS |
9357 |
LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS |
9358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9359 |
printf "%s\n" "yes" >&6; } |
9360 |
|
9361 |
fi |
9362 |
|
9363 |
# Check whether --enable-threads was given. |
9364 |
if test ${enable_threads+y} |
9365 |
then : |
9366 |
enableval=$enable_threads; try_threads=$enableval |
9367 |
else $as_nop |
9368 |
try_threads=yes |
9369 |
|
9370 |
fi |
9371 |
|
9372 |
|
9373 |
if test "x$try_threads" = xyes; then |
9374 |
ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
9375 |
if test "x$ac_cv_header_pthread_h" = xyes |
9376 |
then : |
9377 |
|
9378 |
LIBS="$LIBS -lpthread" |
9379 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9380 |
/* end confdefs.h. */ |
9381 |
#include <pthread.h> |
9382 |
int |
9383 |
main (void) |
9384 |
{ |
9385 |
pthread_t id; pthread_create (&id, 0, 0, 0); |
9386 |
; |
9387 |
return 0; |
9388 |
} |
9389 |
_ACEOF |
9390 |
if ac_fn_cxx_try_compile "$LINENO" |
9391 |
then : |
9392 |
|
9393 |
printf "%s\n" "#define ENABLE_PTHREADS 1" >>confdefs.h |
9394 |
|
9395 |
|
9396 |
fi |
9397 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
9398 |
|
9399 |
fi |
9400 |
|
9401 |
fi |
9402 |
|
9403 |
# Check whether --enable-static-daemon was given. |
9404 |
if test ${enable_static_daemon+y} |
9405 |
then : |
9406 |
enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static |
9407 |
|
9408 |
fi |
9409 |
|
9410 |
|
9411 |
|
9412 |
|
9413 |
if test x$rohc = xtrue; then |
9414 |
ROHC_TRUE= |
9415 |
ROHC_FALSE='#' |
9416 |
else |
9417 |
ROHC_TRUE='#' |
9418 |
ROHC_FALSE= |
9419 |
fi |
9420 |
|
9421 |
|
9422 |
|
9423 |
ICMP=1 |
9424 |
# Check whether --enable-icmp was given. |
9425 |
if test ${enable_icmp+y} |
9426 |
then : |
9427 |
enableval=$enable_icmp; if test "x$enableval" = xno; then |
9428 |
ICMP=0 |
9429 |
fi |
9430 |
|
9431 |
fi |
9432 |
|
9433 |
if test "x$ICMP" = x1; then |
9434 |
|
9435 |
printf "%s\n" "#define ENABLE_ICMP 1" >>confdefs.h |
9436 |
|
9437 |
fi |
9438 |
|
9439 |
TCP=1 |
9440 |
# Check whether --enable-tcp was given. |
9441 |
if test ${enable_tcp+y} |
9442 |
then : |
9443 |
enableval=$enable_tcp; if test "x$enableval" = xno; then |
9444 |
TCP=0 |
9445 |
fi |
9446 |
|
9447 |
fi |
9448 |
|
9449 |
if test "x$TCP" = x1; then |
9450 |
|
9451 |
printf "%s\n" "#define ENABLE_TCP 1" >>confdefs.h |
9452 |
|
9453 |
fi |
9454 |
|
9455 |
HTTP=1 |
9456 |
# Check whether --enable-http-proxy was given. |
9457 |
if test ${enable_http_proxy+y} |
9458 |
then : |
9459 |
enableval=$enable_http_proxy; if test "x$enableval" = xno; then |
9460 |
HTTP=0 |
9461 |
fi |
9462 |
|
9463 |
fi |
9464 |
|
9465 |
if test "x$HTTP" = x1; then |
9466 |
|
9467 |
printf "%s\n" "#define ENABLE_HTTP_PROXY 1" >>confdefs.h |
9468 |
|
9469 |
fi |
9470 |
|
9471 |
# Check whether --enable-dns was given. |
9472 |
if test ${enable_dns+y} |
9473 |
then : |
9474 |
enableval=$enable_dns; |
9475 |
ac_fn_cxx_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" |
9476 |
if test "x$ac_cv_header_gmp_h" = xyes |
9477 |
then : |
9478 |
|
9479 |
else $as_nop |
9480 |
as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5 |
9481 |
fi |
9482 |
|
9483 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 |
9484 |
printf %s "checking for main in -lgmp... " >&6; } |
9485 |
if test ${ac_cv_lib_gmp_main+y} |
9486 |
then : |
9487 |
printf %s "(cached) " >&6 |
9488 |
else $as_nop |
9489 |
ac_check_lib_save_LIBS=$LIBS |
9490 |
LIBS="-lgmp $LIBS" |
9491 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9492 |
/* end confdefs.h. */ |
9493 |
|
9494 |
namespace conftest { |
9495 |
extern "C" int main (); |
9496 |
} |
9497 |
int |
9498 |
main (void) |
9499 |
{ |
9500 |
return conftest::main (); |
9501 |
; |
9502 |
return 0; |
9503 |
} |
9504 |
_ACEOF |
9505 |
if ac_fn_cxx_try_link "$LINENO" |
9506 |
then : |
9507 |
ac_cv_lib_gmp_main=yes |
9508 |
else $as_nop |
9509 |
ac_cv_lib_gmp_main=no |
9510 |
fi |
9511 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
9512 |
conftest$ac_exeext conftest.$ac_ext |
9513 |
LIBS=$ac_check_lib_save_LIBS |
9514 |
fi |
9515 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 |
9516 |
printf "%s\n" "$ac_cv_lib_gmp_main" >&6; } |
9517 |
if test "x$ac_cv_lib_gmp_main" = xyes |
9518 |
then : |
9519 |
printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h |
9520 |
|
9521 |
LIBS="-lgmp $LIBS" |
9522 |
|
9523 |
else $as_nop |
9524 |
as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5 |
9525 |
fi |
9526 |
|
9527 |
|
9528 |
|
9529 |
printf "%s\n" "#define ENABLE_DNS 1" >>confdefs.h |
9530 |
|
9531 |
|
9532 |
|
9533 |
fi |
9534 |
|
9535 |
|
9536 |
RSA=3072 |
9537 |
# Check whether --enable-rsa-length was given. |
9538 |
if test ${enable_rsa_length+y} |
9539 |
then : |
9540 |
enableval=$enable_rsa_length; RSA=$enableval |
9541 |
|
9542 |
fi |
9543 |
|
9544 |
|
9545 |
printf "%s\n" "#define RSABITS $RSA" >>confdefs.h |
9546 |
|
9547 |
|
9548 |
HMACSIZE=12 |
9549 |
# Check whether --enable-hmac-length was given. |
9550 |
if test ${enable_hmac_length+y} |
9551 |
then : |
9552 |
enableval=$enable_hmac_length; HMACSIZE=$enableval |
9553 |
|
9554 |
fi |
9555 |
|
9556 |
|
9557 |
printf "%s\n" "#define HMACLENGTH $HMACSIZE" >>confdefs.h |
9558 |
|
9559 |
|
9560 |
MTU=1500 |
9561 |
# Check whether --enable-max-mtu was given. |
9562 |
if test ${enable_max_mtu+y} |
9563 |
then : |
9564 |
enableval=$enable_max_mtu; MTU=$enableval |
9565 |
|
9566 |
fi |
9567 |
|
9568 |
|
9569 |
printf "%s\n" "#define MAX_MTU ($MTU + 14)" >>confdefs.h |
9570 |
|
9571 |
|
9572 |
COMPRESS=1 |
9573 |
# Check whether --enable-compression was given. |
9574 |
if test ${enable_compression+y} |
9575 |
then : |
9576 |
enableval=$enable_compression; if test "x$enableval" = xno; then |
9577 |
COMPRESS=0 |
9578 |
fi |
9579 |
|
9580 |
fi |
9581 |
|
9582 |
|
9583 |
printf "%s\n" "#define ENABLE_COMPRESSION $COMPRESS" >>confdefs.h |
9584 |
|
9585 |
|
9586 |
CIPHER=aes_128_ctr |
9587 |
# Check whether --enable-cipher was given. |
9588 |
if test ${enable_cipher+y} |
9589 |
then : |
9590 |
enableval=$enable_cipher; #if test "x$enableval" = xbf ; then CIPHER=bf_ctr ; fi |
9591 |
if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_ctr ; fi |
9592 |
if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_ctr ; fi |
9593 |
if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_ctr ; fi |
9594 |
#if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_ctr; fi |
9595 |
#if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_ctr; fi |
9596 |
|
9597 |
fi |
9598 |
|
9599 |
|
9600 |
printf "%s\n" "#define ENABLE_CIPHER EVP_${CIPHER}" >>confdefs.h |
9601 |
|
9602 |
|
9603 |
HMAC=sha1 |
9604 |
# Check whether --enable-hmac-digest was given. |
9605 |
if test ${enable_hmac_digest+y} |
9606 |
then : |
9607 |
enableval=$enable_hmac_digest; if test "x$enableval" = xwhirlpool; then HMAC=whirlpool; fi |
9608 |
if test "x$enableval" = xsha512 ; then HMAC=sha512 ; fi |
9609 |
if test "x$enableval" = xsha256 ; then HMAC=sha256 ; fi |
9610 |
if test "x$enableval" = xsha1 ; then HMAC=sha1 ; fi |
9611 |
if test "x$enableval" = xripemd160; then HMAC=ripemd160; fi |
9612 |
|
9613 |
fi |
9614 |
|
9615 |
|
9616 |
printf "%s\n" "#define ENABLE_HMAC EVP_${HMAC}" >>confdefs.h |
9617 |
|
9618 |
|
9619 |
AUTH=sha512 |
9620 |
# Check whether --enable-auth-digest was given. |
9621 |
if test ${enable_auth_digest+y} |
9622 |
then : |
9623 |
enableval=$enable_auth_digest; if test "x$enableval" = xwhirlpool; then AUTH=whirlpool; fi |
9624 |
if test "x$enableval" = xsha512 ; then AUTH=sha512 ; fi |
9625 |
if test "x$enableval" = xsha256 ; then AUTH=sha256 ; fi |
9626 |
|
9627 |
fi |
9628 |
|
9629 |
|
9630 |
printf "%s\n" "#define ENABLE_AUTH EVP_${AUTH}" >>confdefs.h |
9631 |
|
9632 |
|
9633 |
if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
9634 |
CXXFLAGS="$CXXFLAGS -fno-rtti" |
9635 |
fi |
9636 |
|
9637 |
#if $CXX -v --help 2>&1 | grep -q fexceptions; then |
9638 |
# CXXFLAGS="$CXXFLAGS -fno-exceptions" |
9639 |
#fi |
9640 |
|
9641 |
LIBS="$EXTRA_LIBS $LIBS" |
9642 |
|
9643 |
|
9644 |
|
9645 |
|
9646 |
ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |
9647 |
|
9648 |
cat >confcache <<\_ACEOF |
9649 |
# This file is a shell script that caches the results of configure |
9650 |
# tests run on this system so they can be shared between configure |
9651 |
# scripts and configure runs, see configure's option --config-cache. |
9652 |
# It is not useful on other systems. If it contains results you don't |
9653 |
# want to keep, you may remove or edit it. |
9654 |
# |
9655 |
# config.status only pays attention to the cache file if you give it |
9656 |
# the --recheck option to rerun configure. |
9657 |
# |
9658 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
9659 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
9660 |
# following values. |
9661 |
|
9662 |
_ACEOF |
9663 |
|
9664 |
# The following way of writing the cache mishandles newlines in values, |
9665 |
# but we know of no workaround that is simple, portable, and efficient. |
9666 |
# So, we kill variables containing newlines. |
9667 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
9668 |
# and sets the high bit in the cache file unless we assign to the vars. |
9669 |
( |
9670 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
9671 |
eval ac_val=\$$ac_var |
9672 |
case $ac_val in #( |
9673 |
*${as_nl}*) |
9674 |
case $ac_var in #( |
9675 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9676 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
9677 |
esac |
9678 |
case $ac_var in #( |
9679 |
_ | IFS | as_nl) ;; #( |
9680 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9681 |
*) { eval $ac_var=; unset $ac_var;} ;; |
9682 |
esac ;; |
9683 |
esac |
9684 |
done |
9685 |
|
9686 |
(set) 2>&1 | |
9687 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9688 |
*${as_nl}ac_space=\ *) |
9689 |
# `set' does not quote correctly, so add quotes: double-quote |
9690 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
9691 |
sed -n \ |
9692 |
"s/'/'\\\\''/g; |
9693 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
9694 |
;; #( |
9695 |
*) |
9696 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
9697 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9698 |
;; |
9699 |
esac | |
9700 |
sort |
9701 |
) | |
9702 |
sed ' |
9703 |
/^ac_cv_env_/b end |
9704 |
t clear |
9705 |
:clear |
9706 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
9707 |
t end |
9708 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9709 |
:end' >>confcache |
9710 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
9711 |
if test -w "$cache_file"; then |
9712 |
if test "x$cache_file" != "x/dev/null"; then |
9713 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9714 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
9715 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
9716 |
cat confcache >"$cache_file" |
9717 |
else |
9718 |
case $cache_file in #( |
9719 |
*/* | ?:*) |
9720 |
mv -f confcache "$cache_file"$$ && |
9721 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
9722 |
*) |
9723 |
mv -f confcache "$cache_file" ;; |
9724 |
esac |
9725 |
fi |
9726 |
fi |
9727 |
else |
9728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9729 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
9730 |
fi |
9731 |
fi |
9732 |
rm -f confcache |
9733 |
|
9734 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9735 |
# Let make expand exec_prefix. |
9736 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
9737 |
|
9738 |
DEFS=-DHAVE_CONFIG_H |
9739 |
|
9740 |
ac_libobjs= |
9741 |
ac_ltlibobjs= |
9742 |
U= |
9743 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9744 |
# 1. Remove the extension, and $U if already installed. |
9745 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
9746 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
9747 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9748 |
# will be set to the directory where LIBOBJS objects are built. |
9749 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9750 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
9751 |
done |
9752 |
LIBOBJS=$ac_libobjs |
9753 |
|
9754 |
LTLIBOBJS=$ac_ltlibobjs |
9755 |
|
9756 |
|
9757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
9758 |
printf %s "checking that generated files are newer than configure... " >&6; } |
9759 |
if test -n "$am_sleep_pid"; then |
9760 |
# Hide warnings about reused PIDs. |
9761 |
wait $am_sleep_pid 2>/dev/null |
9762 |
fi |
9763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
9764 |
printf "%s\n" "done" >&6; } |
9765 |
if test -n "$EXEEXT"; then |
9766 |
am__EXEEXT_TRUE= |
9767 |
am__EXEEXT_FALSE='#' |
9768 |
else |
9769 |
am__EXEEXT_TRUE='#' |
9770 |
am__EXEEXT_FALSE= |
9771 |
fi |
9772 |
|
9773 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
9774 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
9775 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9776 |
fi |
9777 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
9778 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
9779 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9780 |
fi |
9781 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
9782 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
9783 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9784 |
fi |
9785 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
9786 |
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
9787 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9788 |
fi |
9789 |
if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then |
9790 |
as_fn_error $? "conditional \"ROHC\" was never defined. |
9791 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9792 |
fi |
9793 |
|
9794 |
: "${CONFIG_STATUS=./config.status}" |
9795 |
ac_write_fail=0 |
9796 |
ac_clean_files_save=$ac_clean_files |
9797 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
9798 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
9799 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
9800 |
as_write_fail=0 |
9801 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
9802 |
#! $SHELL |
9803 |
# Generated by $as_me. |
9804 |
# Run this file to recreate the current configuration. |
9805 |
# Compiler output produced by configure, useful for debugging |
9806 |
# configure, is in config.log if it exists. |
9807 |
|
9808 |
debug=false |
9809 |
ac_cs_recheck=false |
9810 |
ac_cs_silent=false |
9811 |
|
9812 |
SHELL=\${CONFIG_SHELL-$SHELL} |
9813 |
export SHELL |
9814 |
_ASEOF |
9815 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
9816 |
## -------------------- ## |
9817 |
## M4sh Initialization. ## |
9818 |
## -------------------- ## |
9819 |
|
9820 |
# Be more Bourne compatible |
9821 |
DUALCASE=1; export DUALCASE # for MKS sh |
9822 |
as_nop=: |
9823 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
9824 |
then : |
9825 |
emulate sh |
9826 |
NULLCMD=: |
9827 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
9828 |
# is contrary to our usage. Disable this feature. |
9829 |
alias -g '${1+"$@"}'='"$@"' |
9830 |
setopt NO_GLOB_SUBST |
9831 |
else $as_nop |
9832 |
case `(set -o) 2>/dev/null` in #( |
9833 |
*posix*) : |
9834 |
set -o posix ;; #( |
9835 |
*) : |
9836 |
;; |
9837 |
esac |
9838 |
fi |
9839 |
|
9840 |
|
9841 |
|
9842 |
# Reset variables that may have inherited troublesome values from |
9843 |
# the environment. |
9844 |
|
9845 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
9846 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
9847 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
9848 |
# Quoting is to prevent editors from complaining about space-tab. |
9849 |
as_nl=' |
9850 |
' |
9851 |
export as_nl |
9852 |
IFS=" "" $as_nl" |
9853 |
|
9854 |
PS1='$ ' |
9855 |
PS2='> ' |
9856 |
PS4='+ ' |
9857 |
|
9858 |
# Ensure predictable behavior from utilities with locale-dependent output. |
9859 |
LC_ALL=C |
9860 |
export LC_ALL |
9861 |
LANGUAGE=C |
9862 |
export LANGUAGE |
9863 |
|
9864 |
# We cannot yet rely on "unset" to work, but we need these variables |
9865 |
# to be unset--not just set to an empty or harmless value--now, to |
9866 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
9867 |
# also avoids known problems related to "unset" and subshell syntax |
9868 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
9869 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
9870 |
do eval test \${$as_var+y} \ |
9871 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
9872 |
done |
9873 |
|
9874 |
# Ensure that fds 0, 1, and 2 are open. |
9875 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
9876 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
9877 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
9878 |
|
9879 |
# The user is always right. |
9880 |
if ${PATH_SEPARATOR+false} :; then |
9881 |
PATH_SEPARATOR=: |
9882 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
9883 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
9884 |
PATH_SEPARATOR=';' |
9885 |
} |
9886 |
fi |
9887 |
|
9888 |
|
9889 |
# Find who we are. Look in the path if we contain no directory separator. |
9890 |
as_myself= |
9891 |
case $0 in #(( |
9892 |
*[\\/]* ) as_myself=$0 ;; |
9893 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9894 |
for as_dir in $PATH |
9895 |
do |
9896 |
IFS=$as_save_IFS |
9897 |
case $as_dir in #((( |
9898 |
'') as_dir=./ ;; |
9899 |
*/) ;; |
9900 |
*) as_dir=$as_dir/ ;; |
9901 |
esac |
9902 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
9903 |
done |
9904 |
IFS=$as_save_IFS |
9905 |
|
9906 |
;; |
9907 |
esac |
9908 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
9909 |
# in which case we are not to be found in the path. |
9910 |
if test "x$as_myself" = x; then |
9911 |
as_myself=$0 |
9912 |
fi |
9913 |
if test ! -f "$as_myself"; then |
9914 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
9915 |
exit 1 |
9916 |
fi |
9917 |
|
9918 |
|
9919 |
|
9920 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
9921 |
# ---------------------------------------- |
9922 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9923 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
9924 |
# script with STATUS, using 1 if that was 0. |
9925 |
as_fn_error () |
9926 |
{ |
9927 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
9928 |
if test "$4"; then |
9929 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
9930 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
9931 |
fi |
9932 |
printf "%s\n" "$as_me: error: $2" >&2 |
9933 |
as_fn_exit $as_status |
9934 |
} # as_fn_error |
9935 |
|
9936 |
|
9937 |
|
9938 |
# as_fn_set_status STATUS |
9939 |
# ----------------------- |
9940 |
# Set $? to STATUS, without forking. |
9941 |
as_fn_set_status () |
9942 |
{ |
9943 |
return $1 |
9944 |
} # as_fn_set_status |
9945 |
|
9946 |
# as_fn_exit STATUS |
9947 |
# ----------------- |
9948 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
9949 |
as_fn_exit () |
9950 |
{ |
9951 |
set +e |
9952 |
as_fn_set_status $1 |
9953 |
exit $1 |
9954 |
} # as_fn_exit |
9955 |
|
9956 |
# as_fn_unset VAR |
9957 |
# --------------- |
9958 |
# Portably unset VAR. |
9959 |
as_fn_unset () |
9960 |
{ |
9961 |
{ eval $1=; unset $1;} |
9962 |
} |
9963 |
as_unset=as_fn_unset |
9964 |
|
9965 |
# as_fn_append VAR VALUE |
9966 |
# ---------------------- |
9967 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
9968 |
# advantage of any shell optimizations that allow amortized linear growth over |
9969 |
# repeated appends, instead of the typical quadratic growth present in naive |
9970 |
# implementations. |
9971 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
9972 |
then : |
9973 |
eval 'as_fn_append () |
9974 |
{ |
9975 |
eval $1+=\$2 |
9976 |
}' |
9977 |
else $as_nop |
9978 |
as_fn_append () |
9979 |
{ |
9980 |
eval $1=\$$1\$2 |
9981 |
} |
9982 |
fi # as_fn_append |
9983 |
|
9984 |
# as_fn_arith ARG... |
9985 |
# ------------------ |
9986 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
9987 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
9988 |
# must be portable across $(()) and expr. |
9989 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
9990 |
then : |
9991 |
eval 'as_fn_arith () |
9992 |
{ |
9993 |
as_val=$(( $* )) |
9994 |
}' |
9995 |
else $as_nop |
9996 |
as_fn_arith () |
9997 |
{ |
9998 |
as_val=`expr "$@" || test $? -eq 1` |
9999 |
} |
10000 |
fi # as_fn_arith |
10001 |
|
10002 |
|
10003 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
10004 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
10005 |
as_expr=expr |
10006 |
else |
10007 |
as_expr=false |
10008 |
fi |
10009 |
|
10010 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
10011 |
as_basename=basename |
10012 |
else |
10013 |
as_basename=false |
10014 |
fi |
10015 |
|
10016 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10017 |
as_dirname=dirname |
10018 |
else |
10019 |
as_dirname=false |
10020 |
fi |
10021 |
|
10022 |
as_me=`$as_basename -- "$0" || |
10023 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10024 |
X"$0" : 'X\(//\)$' \| \ |
10025 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
10026 |
printf "%s\n" X/"$0" | |
10027 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10028 |
s//\1/ |
10029 |
q |
10030 |
} |
10031 |
/^X\/\(\/\/\)$/{ |
10032 |
s//\1/ |
10033 |
q |
10034 |
} |
10035 |
/^X\/\(\/\).*/{ |
10036 |
s//\1/ |
10037 |
q |
10038 |
} |
10039 |
s/.*/./; q'` |
10040 |
|
10041 |
# Avoid depending upon Character Ranges. |
10042 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
10043 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
10044 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
10045 |
as_cr_digits='0123456789' |
10046 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
10047 |
|
10048 |
|
10049 |
# Determine whether it's possible to make 'echo' print without a newline. |
10050 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
10051 |
# for compatibility with existing Makefiles. |
10052 |
ECHO_C= ECHO_N= ECHO_T= |
10053 |
case `echo -n x` in #((((( |
10054 |
-n*) |
10055 |
case `echo 'xy\c'` in |
10056 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
10057 |
xy) ECHO_C='\c';; |
10058 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
10059 |
ECHO_T=' ';; |
10060 |
esac;; |
10061 |
*) |
10062 |
ECHO_N='-n';; |
10063 |
esac |
10064 |
|
10065 |
# For backward compatibility with old third-party macros, we provide |
10066 |
# the shell variables $as_echo and $as_echo_n. New code should use |
10067 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
10068 |
as_echo='printf %s\n' |
10069 |
as_echo_n='printf %s' |
10070 |
|
10071 |
rm -f conf$$ conf$$.exe conf$$.file |
10072 |
if test -d conf$$.dir; then |
10073 |
rm -f conf$$.dir/conf$$.file |
10074 |
else |
10075 |
rm -f conf$$.dir |
10076 |
mkdir conf$$.dir 2>/dev/null |
10077 |
fi |
10078 |
if (echo >conf$$.file) 2>/dev/null; then |
10079 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
10080 |
as_ln_s='ln -s' |
10081 |
# ... but there are two gotchas: |
10082 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
10083 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
10084 |
# In both cases, we have to default to `cp -pR'. |
10085 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
10086 |
as_ln_s='cp -pR' |
10087 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
10088 |
as_ln_s=ln |
10089 |
else |
10090 |
as_ln_s='cp -pR' |
10091 |
fi |
10092 |
else |
10093 |
as_ln_s='cp -pR' |
10094 |
fi |
10095 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10096 |
rmdir conf$$.dir 2>/dev/null |
10097 |
|
10098 |
|
10099 |
# as_fn_mkdir_p |
10100 |
# ------------- |
10101 |
# Create "$as_dir" as a directory, including parents if necessary. |
10102 |
as_fn_mkdir_p () |
10103 |
{ |
10104 |
|
10105 |
case $as_dir in #( |
10106 |
-*) as_dir=./$as_dir;; |
10107 |
esac |
10108 |
test -d "$as_dir" || eval $as_mkdir_p || { |
10109 |
as_dirs= |
10110 |
while :; do |
10111 |
case $as_dir in #( |
10112 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
10113 |
*) as_qdir=$as_dir;; |
10114 |
esac |
10115 |
as_dirs="'$as_qdir' $as_dirs" |
10116 |
as_dir=`$as_dirname -- "$as_dir" || |
10117 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10118 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
10119 |
X"$as_dir" : 'X\(//\)$' \| \ |
10120 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
10121 |
printf "%s\n" X"$as_dir" | |
10122 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10123 |
s//\1/ |
10124 |
q |
10125 |
} |
10126 |
/^X\(\/\/\)[^/].*/{ |
10127 |
s//\1/ |
10128 |
q |
10129 |
} |
10130 |
/^X\(\/\/\)$/{ |
10131 |
s//\1/ |
10132 |
q |
10133 |
} |
10134 |
/^X\(\/\).*/{ |
10135 |
s//\1/ |
10136 |
q |
10137 |
} |
10138 |
s/.*/./; q'` |
10139 |
test -d "$as_dir" && break |
10140 |
done |
10141 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
10142 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
10143 |
|
10144 |
|
10145 |
} # as_fn_mkdir_p |
10146 |
if mkdir -p . 2>/dev/null; then |
10147 |
as_mkdir_p='mkdir -p "$as_dir"' |
10148 |
else |
10149 |
test -d ./-p && rmdir ./-p |
10150 |
as_mkdir_p=false |
10151 |
fi |
10152 |
|
10153 |
|
10154 |
# as_fn_executable_p FILE |
10155 |
# ----------------------- |
10156 |
# Test if FILE is an executable regular file. |
10157 |
as_fn_executable_p () |
10158 |
{ |
10159 |
test -f "$1" && test -x "$1" |
10160 |
} # as_fn_executable_p |
10161 |
as_test_x='test -x' |
10162 |
as_executable_p=as_fn_executable_p |
10163 |
|
10164 |
# Sed expression to map a string onto a valid CPP name. |
10165 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
10166 |
|
10167 |
# Sed expression to map a string onto a valid variable name. |
10168 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
10169 |
|
10170 |
|
10171 |
exec 6>&1 |
10172 |
## ----------------------------------- ## |
10173 |
## Main body of $CONFIG_STATUS script. ## |
10174 |
## ----------------------------------- ## |
10175 |
_ASEOF |
10176 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
10177 |
|
10178 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10179 |
# Save the log message, to keep $0 and so on meaningful, and to |
10180 |
# report actual input values of CONFIG_FILES etc. instead of their |
10181 |
# values after options handling. |
10182 |
ac_log=" |
10183 |
This file was extended by gvpe $as_me 3.1, which was |
10184 |
generated by GNU Autoconf 2.71. Invocation command line was |
10185 |
|
10186 |
CONFIG_FILES = $CONFIG_FILES |
10187 |
CONFIG_HEADERS = $CONFIG_HEADERS |
10188 |
CONFIG_LINKS = $CONFIG_LINKS |
10189 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
10190 |
$ $0 $@ |
10191 |
|
10192 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10193 |
" |
10194 |
|
10195 |
_ACEOF |
10196 |
|
10197 |
case $ac_config_files in *" |
10198 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
10199 |
esac |
10200 |
|
10201 |
case $ac_config_headers in *" |
10202 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
10203 |
esac |
10204 |
|
10205 |
|
10206 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10207 |
# Files that config.status was made for. |
10208 |
config_files="$ac_config_files" |
10209 |
config_headers="$ac_config_headers" |
10210 |
config_commands="$ac_config_commands" |
10211 |
|
10212 |
_ACEOF |
10213 |
|
10214 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10215 |
ac_cs_usage="\ |
10216 |
\`$as_me' instantiates files and other configuration actions |
10217 |
from templates according to the current configuration. Unless the files |
10218 |
and actions are specified as TAGs, all are instantiated by default. |
10219 |
|
10220 |
Usage: $0 [OPTION]... [TAG]... |
10221 |
|
10222 |
-h, --help print this help, then exit |
10223 |
-V, --version print version number and configuration settings, then exit |
10224 |
--config print configuration, then exit |
10225 |
-q, --quiet, --silent |
10226 |
do not print progress messages |
10227 |
-d, --debug don't remove temporary files |
10228 |
--recheck update $as_me by reconfiguring in the same conditions |
10229 |
--file=FILE[:TEMPLATE] |
10230 |
instantiate the configuration file FILE |
10231 |
--header=FILE[:TEMPLATE] |
10232 |
instantiate the configuration header FILE |
10233 |
|
10234 |
Configuration files: |
10235 |
$config_files |
10236 |
|
10237 |
Configuration headers: |
10238 |
$config_headers |
10239 |
|
10240 |
Configuration commands: |
10241 |
$config_commands |
10242 |
|
10243 |
Report bugs to the package provider." |
10244 |
|
10245 |
_ACEOF |
10246 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
10247 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
10248 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10249 |
ac_cs_config='$ac_cs_config_escaped' |
10250 |
ac_cs_version="\\ |
10251 |
gvpe config.status 3.1 |
10252 |
configured by $0, generated by GNU Autoconf 2.71, |
10253 |
with options \\"\$ac_cs_config\\" |
10254 |
|
10255 |
Copyright (C) 2021 Free Software Foundation, Inc. |
10256 |
This config.status script is free software; the Free Software Foundation |
10257 |
gives unlimited permission to copy, distribute and modify it." |
10258 |
|
10259 |
ac_pwd='$ac_pwd' |
10260 |
srcdir='$srcdir' |
10261 |
INSTALL='$INSTALL' |
10262 |
MKDIR_P='$MKDIR_P' |
10263 |
AWK='$AWK' |
10264 |
test -n "\$AWK" || AWK=awk |
10265 |
_ACEOF |
10266 |
|
10267 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10268 |
# The default lists apply if the user does not specify any file. |
10269 |
ac_need_defaults=: |
10270 |
while test $# != 0 |
10271 |
do |
10272 |
case $1 in |
10273 |
--*=?*) |
10274 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10275 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
10276 |
ac_shift=: |
10277 |
;; |
10278 |
--*=) |
10279 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10280 |
ac_optarg= |
10281 |
ac_shift=: |
10282 |
;; |
10283 |
*) |
10284 |
ac_option=$1 |
10285 |
ac_optarg=$2 |
10286 |
ac_shift=shift |
10287 |
;; |
10288 |
esac |
10289 |
|
10290 |
case $ac_option in |
10291 |
# Handling of the options. |
10292 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10293 |
ac_cs_recheck=: ;; |
10294 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
10295 |
printf "%s\n" "$ac_cs_version"; exit ;; |
10296 |
--config | --confi | --conf | --con | --co | --c ) |
10297 |
printf "%s\n" "$ac_cs_config"; exit ;; |
10298 |
--debug | --debu | --deb | --de | --d | -d ) |
10299 |
debug=: ;; |
10300 |
--file | --fil | --fi | --f ) |
10301 |
$ac_shift |
10302 |
case $ac_optarg in |
10303 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
10304 |
'') as_fn_error $? "missing file argument" ;; |
10305 |
esac |
10306 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
10307 |
ac_need_defaults=false;; |
10308 |
--header | --heade | --head | --hea ) |
10309 |
$ac_shift |
10310 |
case $ac_optarg in |
10311 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
10312 |
esac |
10313 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
10314 |
ac_need_defaults=false;; |
10315 |
--he | --h) |
10316 |
# Conflict between --help and --header |
10317 |
as_fn_error $? "ambiguous option: \`$1' |
10318 |
Try \`$0 --help' for more information.";; |
10319 |
--help | --hel | -h ) |
10320 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
10321 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10322 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
10323 |
ac_cs_silent=: ;; |
10324 |
|
10325 |
# This is an error. |
10326 |
-*) as_fn_error $? "unrecognized option: \`$1' |
10327 |
Try \`$0 --help' for more information." ;; |
10328 |
|
10329 |
*) as_fn_append ac_config_targets " $1" |
10330 |
ac_need_defaults=false ;; |
10331 |
|
10332 |
esac |
10333 |
shift |
10334 |
done |
10335 |
|
10336 |
ac_configure_extra_args= |
10337 |
|
10338 |
if $ac_cs_silent; then |
10339 |
exec 6>/dev/null |
10340 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
10341 |
fi |
10342 |
|
10343 |
_ACEOF |
10344 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10345 |
if \$ac_cs_recheck; then |
10346 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10347 |
shift |
10348 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
10349 |
CONFIG_SHELL='$SHELL' |
10350 |
export CONFIG_SHELL |
10351 |
exec "\$@" |
10352 |
fi |
10353 |
|
10354 |
_ACEOF |
10355 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10356 |
exec 5>>config.log |
10357 |
{ |
10358 |
echo |
10359 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
10360 |
## Running $as_me. ## |
10361 |
_ASBOX |
10362 |
printf "%s\n" "$ac_log" |
10363 |
} >&5 |
10364 |
|
10365 |
_ACEOF |
10366 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10367 |
# |
10368 |
# INIT-COMMANDS |
10369 |
# |
10370 |
# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
10371 |
# POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
10372 |
# from automake. |
10373 |
eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
10374 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
10375 |
LINGUAS="${LINGUAS-%UNSET%}" |
10376 |
|
10377 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
10378 |
|
10379 |
_ACEOF |
10380 |
|
10381 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10382 |
|
10383 |
# Handling of arguments. |
10384 |
for ac_config_target in $ac_config_targets |
10385 |
do |
10386 |
case $ac_config_target in |
10387 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
10388 |
"default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
10389 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
10390 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
10391 |
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
10392 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
10393 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
10394 |
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
10395 |
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
10396 |
|
10397 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
10398 |
esac |
10399 |
done |
10400 |
|
10401 |
|
10402 |
# If the user did not use the arguments to specify the items to instantiate, |
10403 |
# then the envvar interface is used. Set only those that are not. |
10404 |
# We use the long form for the default assignment because of an extremely |
10405 |
# bizarre bug on SunOS 4.1.3. |
10406 |
if $ac_need_defaults; then |
10407 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
10408 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
10409 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
10410 |
fi |
10411 |
|
10412 |
# Have a temporary directory for convenience. Make it in the build tree |
10413 |
# simply because there is no reason against having it here, and in addition, |
10414 |
# creating and moving files from /tmp can sometimes cause problems. |
10415 |
# Hook for its removal unless debugging. |
10416 |
# Note that there is a small window in which the directory will not be cleaned: |
10417 |
# after its creation but before its name has been assigned to `$tmp'. |
10418 |
$debug || |
10419 |
{ |
10420 |
tmp= ac_tmp= |
10421 |
trap 'exit_status=$? |
10422 |
: "${ac_tmp:=$tmp}" |
10423 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
10424 |
' 0 |
10425 |
trap 'as_fn_exit 1' 1 2 13 15 |
10426 |
} |
10427 |
# Create a (secure) tmp directory for tmp files. |
10428 |
|
10429 |
{ |
10430 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
10431 |
test -d "$tmp" |
10432 |
} || |
10433 |
{ |
10434 |
tmp=./conf$$-$RANDOM |
10435 |
(umask 077 && mkdir "$tmp") |
10436 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10437 |
ac_tmp=$tmp |
10438 |
|
10439 |
# Set up the scripts for CONFIG_FILES section. |
10440 |
# No need to generate them if there are no CONFIG_FILES. |
10441 |
# This happens for instance with `./config.status config.h'. |
10442 |
if test -n "$CONFIG_FILES"; then |
10443 |
|
10444 |
|
10445 |
ac_cr=`echo X | tr X '\015'` |
10446 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
10447 |
# But we know of no other shell where ac_cr would be empty at this |
10448 |
# point, so we can use a bashism as a fallback. |
10449 |
if test "x$ac_cr" = x; then |
10450 |
eval ac_cr=\$\'\\r\' |
10451 |
fi |
10452 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
10453 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
10454 |
ac_cs_awk_cr='\\r' |
10455 |
else |
10456 |
ac_cs_awk_cr=$ac_cr |
10457 |
fi |
10458 |
|
10459 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
10460 |
_ACEOF |
10461 |
|
10462 |
|
10463 |
{ |
10464 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
10465 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
10466 |
echo "_ACEOF" |
10467 |
} >conf$$subs.sh || |
10468 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10469 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
10470 |
ac_delim='%!_!# ' |
10471 |
for ac_last_try in false false false false false :; do |
10472 |
. ./conf$$subs.sh || |
10473 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10474 |
|
10475 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
10476 |
if test $ac_delim_n = $ac_delim_num; then |
10477 |
break |
10478 |
elif $ac_last_try; then |
10479 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10480 |
else |
10481 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
10482 |
fi |
10483 |
done |
10484 |
rm -f conf$$subs.sh |
10485 |
|
10486 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10487 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
10488 |
_ACEOF |
10489 |
sed -n ' |
10490 |
h |
10491 |
s/^/S["/; s/!.*/"]=/ |
10492 |
p |
10493 |
g |
10494 |
s/^[^!]*!// |
10495 |
:repl |
10496 |
t repl |
10497 |
s/'"$ac_delim"'$// |
10498 |
t delim |
10499 |
:nl |
10500 |
h |
10501 |
s/\(.\{148\}\)..*/\1/ |
10502 |
t more1 |
10503 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
10504 |
p |
10505 |
n |
10506 |
b repl |
10507 |
:more1 |
10508 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
10509 |
p |
10510 |
g |
10511 |
s/.\{148\}// |
10512 |
t nl |
10513 |
:delim |
10514 |
h |
10515 |
s/\(.\{148\}\)..*/\1/ |
10516 |
t more2 |
10517 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
10518 |
p |
10519 |
b |
10520 |
:more2 |
10521 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
10522 |
p |
10523 |
g |
10524 |
s/.\{148\}// |
10525 |
t delim |
10526 |
' <conf$$subs.awk | sed ' |
10527 |
/^[^""]/{ |
10528 |
N |
10529 |
s/\n// |
10530 |
} |
10531 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
10532 |
rm -f conf$$subs.awk |
10533 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10534 |
_ACAWK |
10535 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
10536 |
for (key in S) S_is_set[key] = 1 |
10537 |
FS = "" |
10538 |
|
10539 |
} |
10540 |
{ |
10541 |
line = $ 0 |
10542 |
nfields = split(line, field, "@") |
10543 |
substed = 0 |
10544 |
len = length(field[1]) |
10545 |
for (i = 2; i < nfields; i++) { |
10546 |
key = field[i] |
10547 |
keylen = length(key) |
10548 |
if (S_is_set[key]) { |
10549 |
value = S[key] |
10550 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
10551 |
len += length(value) + length(field[++i]) |
10552 |
substed = 1 |
10553 |
} else |
10554 |
len += 1 + keylen |
10555 |
} |
10556 |
|
10557 |
print line |
10558 |
} |
10559 |
|
10560 |
_ACAWK |
10561 |
_ACEOF |
10562 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10563 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
10564 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
10565 |
else |
10566 |
cat |
10567 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10568 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
10569 |
_ACEOF |
10570 |
|
10571 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10572 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
10573 |
# trailing colons and then remove the whole line if VPATH becomes empty |
10574 |
# (actually we leave an empty line to preserve line numbers). |
10575 |
if test "x$srcdir" = x.; then |
10576 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10577 |
h |
10578 |
s/// |
10579 |
s/^/:/ |
10580 |
s/[ ]*$/:/ |
10581 |
s/:\$(srcdir):/:/g |
10582 |
s/:\${srcdir}:/:/g |
10583 |
s/:@srcdir@:/:/g |
10584 |
s/^:*// |
10585 |
s/:*$// |
10586 |
x |
10587 |
s/\(=[ ]*\).*/\1/ |
10588 |
G |
10589 |
s/\n// |
10590 |
s/^[^=]*=[ ]*$// |
10591 |
}' |
10592 |
fi |
10593 |
|
10594 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10595 |
fi # test -n "$CONFIG_FILES" |
10596 |
|
10597 |
# Set up the scripts for CONFIG_HEADERS section. |
10598 |
# No need to generate them if there are no CONFIG_HEADERS. |
10599 |
# This happens for instance with `./config.status Makefile'. |
10600 |
if test -n "$CONFIG_HEADERS"; then |
10601 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
10602 |
BEGIN { |
10603 |
_ACEOF |
10604 |
|
10605 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
10606 |
# here-document in config.status, that substitutes the proper values into |
10607 |
# config.h.in to produce config.h. |
10608 |
|
10609 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
10610 |
# handling of long lines. |
10611 |
ac_delim='%!_!# ' |
10612 |
for ac_last_try in false false :; do |
10613 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10614 |
if test -z "$ac_tt"; then |
10615 |
break |
10616 |
elif $ac_last_try; then |
10617 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
10618 |
else |
10619 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
10620 |
fi |
10621 |
done |
10622 |
|
10623 |
# For the awk script, D is an array of macro values keyed by name, |
10624 |
# likewise P contains macro parameters if any. Preserve backslash |
10625 |
# newline sequences. |
10626 |
|
10627 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
10628 |
sed -n ' |
10629 |
s/.\{148\}/&'"$ac_delim"'/g |
10630 |
t rset |
10631 |
:rset |
10632 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
10633 |
t def |
10634 |
d |
10635 |
:def |
10636 |
s/\\$// |
10637 |
t bsnl |
10638 |
s/["\\]/\\&/g |
10639 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
10640 |
D["\1"]=" \3"/p |
10641 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
10642 |
d |
10643 |
:bsnl |
10644 |
s/["\\]/\\&/g |
10645 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
10646 |
D["\1"]=" \3\\\\\\n"\\/p |
10647 |
t cont |
10648 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
10649 |
t cont |
10650 |
d |
10651 |
:cont |
10652 |
n |
10653 |
s/.\{148\}/&'"$ac_delim"'/g |
10654 |
t clear |
10655 |
:clear |
10656 |
s/\\$// |
10657 |
t bsnlc |
10658 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
10659 |
d |
10660 |
:bsnlc |
10661 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
10662 |
b cont |
10663 |
' <confdefs.h | sed ' |
10664 |
s/'"$ac_delim"'/"\\\ |
10665 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
10666 |
|
10667 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10668 |
for (key in D) D_is_set[key] = 1 |
10669 |
FS = "" |
10670 |
} |
10671 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
10672 |
line = \$ 0 |
10673 |
split(line, arg, " ") |
10674 |
if (arg[1] == "#") { |
10675 |
defundef = arg[2] |
10676 |
mac1 = arg[3] |
10677 |
} else { |
10678 |
defundef = substr(arg[1], 2) |
10679 |
mac1 = arg[2] |
10680 |
} |
10681 |
split(mac1, mac2, "(") #) |
10682 |
macro = mac2[1] |
10683 |
prefix = substr(line, 1, index(line, defundef) - 1) |
10684 |
if (D_is_set[macro]) { |
10685 |
# Preserve the white space surrounding the "#". |
10686 |
print prefix "define", macro P[macro] D[macro] |
10687 |
next |
10688 |
} else { |
10689 |
# Replace #undef with comments. This is necessary, for example, |
10690 |
# in the case of _POSIX_SOURCE, which is predefined and required |
10691 |
# on some systems where configure will not decide to define it. |
10692 |
if (defundef == "undef") { |
10693 |
print "/*", prefix defundef, macro, "*/" |
10694 |
next |
10695 |
} |
10696 |
} |
10697 |
} |
10698 |
{ print } |
10699 |
_ACAWK |
10700 |
_ACEOF |
10701 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10702 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
10703 |
fi # test -n "$CONFIG_HEADERS" |
10704 |
|
10705 |
|
10706 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
10707 |
shift |
10708 |
for ac_tag |
10709 |
do |
10710 |
case $ac_tag in |
10711 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
10712 |
esac |
10713 |
case $ac_mode$ac_tag in |
10714 |
:[FHL]*:*);; |
10715 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
10716 |
:[FH]-) ac_tag=-:-;; |
10717 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
10718 |
esac |
10719 |
ac_save_IFS=$IFS |
10720 |
IFS=: |
10721 |
set x $ac_tag |
10722 |
IFS=$ac_save_IFS |
10723 |
shift |
10724 |
ac_file=$1 |
10725 |
shift |
10726 |
|
10727 |
case $ac_mode in |
10728 |
:L) ac_source=$1;; |
10729 |
:[FH]) |
10730 |
ac_file_inputs= |
10731 |
for ac_f |
10732 |
do |
10733 |
case $ac_f in |
10734 |
-) ac_f="$ac_tmp/stdin";; |
10735 |
*) # Look for the file first in the build tree, then in the source tree |
10736 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
10737 |
# because $ac_f cannot contain `:'. |
10738 |
test -f "$ac_f" || |
10739 |
case $ac_f in |
10740 |
[\\/$]*) false;; |
10741 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
10742 |
esac || |
10743 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
10744 |
esac |
10745 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10746 |
as_fn_append ac_file_inputs " '$ac_f'" |
10747 |
done |
10748 |
|
10749 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
10750 |
# use $as_me), people would be surprised to read: |
10751 |
# /* config.h. Generated by config.status. */ |
10752 |
configure_input='Generated from '` |
10753 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
10754 |
`' by configure.' |
10755 |
if test x"$ac_file" != x-; then |
10756 |
configure_input="$ac_file. $configure_input" |
10757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10758 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
10759 |
fi |
10760 |
# Neutralize special characters interpreted by sed in replacement strings. |
10761 |
case $configure_input in #( |
10762 |
*\&* | *\|* | *\\* ) |
10763 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
10764 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
10765 |
*) ac_sed_conf_input=$configure_input;; |
10766 |
esac |
10767 |
|
10768 |
case $ac_tag in |
10769 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10770 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
10771 |
esac |
10772 |
;; |
10773 |
esac |
10774 |
|
10775 |
ac_dir=`$as_dirname -- "$ac_file" || |
10776 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10777 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
10778 |
X"$ac_file" : 'X\(//\)$' \| \ |
10779 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
10780 |
printf "%s\n" X"$ac_file" | |
10781 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10782 |
s//\1/ |
10783 |
q |
10784 |
} |
10785 |
/^X\(\/\/\)[^/].*/{ |
10786 |
s//\1/ |
10787 |
q |
10788 |
} |
10789 |
/^X\(\/\/\)$/{ |
10790 |
s//\1/ |
10791 |
q |
10792 |
} |
10793 |
/^X\(\/\).*/{ |
10794 |
s//\1/ |
10795 |
q |
10796 |
} |
10797 |
s/.*/./; q'` |
10798 |
as_dir="$ac_dir"; as_fn_mkdir_p |
10799 |
ac_builddir=. |
10800 |
|
10801 |
case "$ac_dir" in |
10802 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
10803 |
*) |
10804 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
10805 |
# A ".." for each directory in $ac_dir_suffix. |
10806 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
10807 |
case $ac_top_builddir_sub in |
10808 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
10809 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
10810 |
esac ;; |
10811 |
esac |
10812 |
ac_abs_top_builddir=$ac_pwd |
10813 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
10814 |
# for backward compatibility: |
10815 |
ac_top_builddir=$ac_top_build_prefix |
10816 |
|
10817 |
case $srcdir in |
10818 |
.) # We are building in place. |
10819 |
ac_srcdir=. |
10820 |
ac_top_srcdir=$ac_top_builddir_sub |
10821 |
ac_abs_top_srcdir=$ac_pwd ;; |
10822 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
10823 |
ac_srcdir=$srcdir$ac_dir_suffix; |
10824 |
ac_top_srcdir=$srcdir |
10825 |
ac_abs_top_srcdir=$srcdir ;; |
10826 |
*) # Relative name. |
10827 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
10828 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
10829 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
10830 |
esac |
10831 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
10832 |
|
10833 |
|
10834 |
case $ac_mode in |
10835 |
:F) |
10836 |
# |
10837 |
# CONFIG_FILE |
10838 |
# |
10839 |
|
10840 |
case $INSTALL in |
10841 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
10842 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
10843 |
esac |
10844 |
ac_MKDIR_P=$MKDIR_P |
10845 |
case $MKDIR_P in |
10846 |
[\\/$]* | ?:[\\/]* ) ;; |
10847 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
10848 |
esac |
10849 |
_ACEOF |
10850 |
|
10851 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10852 |
# If the template does not know about datarootdir, expand it. |
10853 |
# FIXME: This hack should be removed a few years after 2.60. |
10854 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
10855 |
ac_sed_dataroot=' |
10856 |
/datarootdir/ { |
10857 |
p |
10858 |
q |
10859 |
} |
10860 |
/@datadir@/p |
10861 |
/@docdir@/p |
10862 |
/@infodir@/p |
10863 |
/@localedir@/p |
10864 |
/@mandir@/p' |
10865 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
10866 |
*datarootdir*) ac_datarootdir_seen=yes;; |
10867 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
10868 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10869 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
10870 |
_ACEOF |
10871 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10872 |
ac_datarootdir_hack=' |
10873 |
s&@datadir@&$datadir&g |
10874 |
s&@docdir@&$docdir&g |
10875 |
s&@infodir@&$infodir&g |
10876 |
s&@localedir@&$localedir&g |
10877 |
s&@mandir@&$mandir&g |
10878 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
10879 |
esac |
10880 |
_ACEOF |
10881 |
|
10882 |
# Neutralize VPATH when `$srcdir' = `.'. |
10883 |
# Shell code in configure.ac might set extrasub. |
10884 |
# FIXME: do we really want to maintain this feature? |
10885 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10886 |
ac_sed_extra="$ac_vpsub |
10887 |
$extrasub |
10888 |
_ACEOF |
10889 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10890 |
:t |
10891 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
10892 |
s|@configure_input@|$ac_sed_conf_input|;t t |
10893 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
10894 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
10895 |
s&@srcdir@&$ac_srcdir&;t t |
10896 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
10897 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
10898 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
10899 |
s&@builddir@&$ac_builddir&;t t |
10900 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
10901 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
10902 |
s&@INSTALL@&$ac_INSTALL&;t t |
10903 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
10904 |
$ac_datarootdir_hack |
10905 |
" |
10906 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
10907 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10908 |
|
10909 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
10910 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
10911 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
10912 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
10913 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
10914 |
which seems to be undefined. Please make sure it is defined" >&5 |
10915 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
10916 |
which seems to be undefined. Please make sure it is defined" >&2;} |
10917 |
|
10918 |
rm -f "$ac_tmp/stdin" |
10919 |
case $ac_file in |
10920 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10921 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
10922 |
esac \ |
10923 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10924 |
;; |
10925 |
:H) |
10926 |
# |
10927 |
# CONFIG_HEADER |
10928 |
# |
10929 |
if test x"$ac_file" != x-; then |
10930 |
{ |
10931 |
printf "%s\n" "/* $configure_input */" >&1 \ |
10932 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10933 |
} >"$ac_tmp/config.h" \ |
10934 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10935 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
10936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
10937 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
10938 |
else |
10939 |
rm -f "$ac_file" |
10940 |
mv "$ac_tmp/config.h" "$ac_file" \ |
10941 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10942 |
fi |
10943 |
else |
10944 |
printf "%s\n" "/* $configure_input */" >&1 \ |
10945 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
10946 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
10947 |
fi |
10948 |
# Compute "$ac_file"'s index in $config_headers. |
10949 |
_am_arg="$ac_file" |
10950 |
_am_stamp_count=1 |
10951 |
for _am_header in $config_headers :; do |
10952 |
case $_am_header in |
10953 |
$_am_arg | $_am_arg:* ) |
10954 |
break ;; |
10955 |
* ) |
10956 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
10957 |
esac |
10958 |
done |
10959 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
10960 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10961 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
10962 |
X"$_am_arg" : 'X\(//\)$' \| \ |
10963 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
10964 |
printf "%s\n" X"$_am_arg" | |
10965 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10966 |
s//\1/ |
10967 |
q |
10968 |
} |
10969 |
/^X\(\/\/\)[^/].*/{ |
10970 |
s//\1/ |
10971 |
q |
10972 |
} |
10973 |
/^X\(\/\/\)$/{ |
10974 |
s//\1/ |
10975 |
q |
10976 |
} |
10977 |
/^X\(\/\).*/{ |
10978 |
s//\1/ |
10979 |
q |
10980 |
} |
10981 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
10982 |
;; |
10983 |
|
10984 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
10985 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
10986 |
;; |
10987 |
esac |
10988 |
|
10989 |
|
10990 |
case $ac_file$ac_mode in |
10991 |
"default-1":C) |
10992 |
for ac_file in $CONFIG_FILES; do |
10993 |
# Support "outfile[:infile[:infile...]]" |
10994 |
case "$ac_file" in |
10995 |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
10996 |
esac |
10997 |
# PO directories have a Makefile.in generated from Makefile.in.in. |
10998 |
case "$ac_file" in */Makefile.in) |
10999 |
# Adjust a relative srcdir. |
11000 |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
11001 |
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
11002 |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
11003 |
# In autoconf-2.13 it is called $ac_given_srcdir. |
11004 |
# In autoconf-2.50 it is called $srcdir. |
11005 |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
11006 |
case "$ac_given_srcdir" in |
11007 |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
11008 |
/*) top_srcdir="$ac_given_srcdir" ;; |
11009 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
11010 |
esac |
11011 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
11012 |
rm -f "$ac_dir/POTFILES" |
11013 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
11014 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
11015 |
# ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
11016 |
# on $ac_dir but don't depend on user-specified configuration |
11017 |
# parameters. |
11018 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
11019 |
# The LINGUAS file contains the set of available languages. |
11020 |
if test -n "$ALL_LINGUAS"; then |
11021 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
11022 |
fi |
11023 |
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
11024 |
# Hide the ALL_LINGUAS assigment from automake. |
11025 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
11026 |
fi |
11027 |
case "$ac_given_srcdir" in |
11028 |
.) srcdirpre= ;; |
11029 |
*) srcdirpre='$(srcdir)/' ;; |
11030 |
esac |
11031 |
POFILES= |
11032 |
GMOFILES= |
11033 |
UPDATEPOFILES= |
11034 |
DUMMYPOFILES= |
11035 |
for lang in $ALL_LINGUAS; do |
11036 |
POFILES="$POFILES $srcdirpre$lang.po" |
11037 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
11038 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
11039 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
11040 |
done |
11041 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
11042 |
# environment variable. |
11043 |
INST_LINGUAS= |
11044 |
if test -n "$ALL_LINGUAS"; then |
11045 |
for presentlang in $ALL_LINGUAS; do |
11046 |
useit=no |
11047 |
if test "%UNSET%" != "$LINGUAS"; then |
11048 |
desiredlanguages="$LINGUAS" |
11049 |
else |
11050 |
desiredlanguages="$ALL_LINGUAS" |
11051 |
fi |
11052 |
for desiredlang in $desiredlanguages; do |
11053 |
# Use the presentlang catalog if desiredlang is |
11054 |
# a. equal to presentlang, or |
11055 |
# b. a variant of presentlang (because in this case, |
11056 |
# presentlang can be used as a fallback for messages |
11057 |
# which are not translated in the desiredlang catalog). |
11058 |
case "$desiredlang" in |
11059 |
"$presentlang"*) useit=yes;; |
11060 |
esac |
11061 |
done |
11062 |
if test $useit = yes; then |
11063 |
INST_LINGUAS="$INST_LINGUAS $presentlang" |
11064 |
fi |
11065 |
done |
11066 |
fi |
11067 |
CATALOGS= |
11068 |
if test -n "$INST_LINGUAS"; then |
11069 |
for lang in $INST_LINGUAS; do |
11070 |
CATALOGS="$CATALOGS $lang.gmo" |
11071 |
done |
11072 |
fi |
11073 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
11074 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
11075 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
11076 |
if test -f "$f"; then |
11077 |
case "$f" in |
11078 |
*.orig | *.bak | *~) ;; |
11079 |
*) cat "$f" >> "$ac_dir/Makefile" ;; |
11080 |
esac |
11081 |
fi |
11082 |
done |
11083 |
fi |
11084 |
;; |
11085 |
esac |
11086 |
done ;; |
11087 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
11088 |
# Older Autoconf quotes --file arguments for eval, but not when files |
11089 |
# are listed without --file. Let's play safe and only enable the eval |
11090 |
# if we detect the quoting. |
11091 |
# TODO: see whether this extra hack can be removed once we start |
11092 |
# requiring Autoconf 2.70 or later. |
11093 |
case $CONFIG_FILES in #( |
11094 |
*\'*) : |
11095 |
eval set x "$CONFIG_FILES" ;; #( |
11096 |
*) : |
11097 |
set x $CONFIG_FILES ;; #( |
11098 |
*) : |
11099 |
;; |
11100 |
esac |
11101 |
shift |
11102 |
# Used to flag and report bootstrapping failures. |
11103 |
am_rc=0 |
11104 |
for am_mf |
11105 |
do |
11106 |
# Strip MF so we end up with the name of the file. |
11107 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
11108 |
# Check whether this is an Automake generated Makefile which includes |
11109 |
# dependency-tracking related rules and includes. |
11110 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
11111 |
# limit of 2048, but all sed's we know have understand at least 4000. |
11112 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
11113 |
|| continue |
11114 |
am_dirpart=`$as_dirname -- "$am_mf" || |
11115 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11116 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
11117 |
X"$am_mf" : 'X\(//\)$' \| \ |
11118 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
11119 |
printf "%s\n" X"$am_mf" | |
11120 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11121 |
s//\1/ |
11122 |
q |
11123 |
} |
11124 |
/^X\(\/\/\)[^/].*/{ |
11125 |
s//\1/ |
11126 |
q |
11127 |
} |
11128 |
/^X\(\/\/\)$/{ |
11129 |
s//\1/ |
11130 |
q |
11131 |
} |
11132 |
/^X\(\/\).*/{ |
11133 |
s//\1/ |
11134 |
q |
11135 |
} |
11136 |
s/.*/./; q'` |
11137 |
am_filepart=`$as_basename -- "$am_mf" || |
11138 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
11139 |
X"$am_mf" : 'X\(//\)$' \| \ |
11140 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
11141 |
printf "%s\n" X/"$am_mf" | |
11142 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11143 |
s//\1/ |
11144 |
q |
11145 |
} |
11146 |
/^X\/\(\/\/\)$/{ |
11147 |
s//\1/ |
11148 |
q |
11149 |
} |
11150 |
/^X\/\(\/\).*/{ |
11151 |
s//\1/ |
11152 |
q |
11153 |
} |
11154 |
s/.*/./; q'` |
11155 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
11156 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
11157 |
| $MAKE -f - am--depfiles" >&5 |
11158 |
(cd "$am_dirpart" \ |
11159 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
11160 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
11161 |
ac_status=$? |
11162 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11163 |
(exit $ac_status); } || am_rc=$? |
11164 |
done |
11165 |
if test $am_rc -ne 0; then |
11166 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11167 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
11168 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
11169 |
for automatic dependency tracking. If GNU make was not used, consider |
11170 |
re-running the configure script with MAKE=\"gmake\" (or whatever is |
11171 |
necessary). You can also try re-running configure with the |
11172 |
'--disable-dependency-tracking' option to at least be able to build |
11173 |
the package (albeit without support for automatic dependency tracking). |
11174 |
See \`config.log' for more details" "$LINENO" 5; } |
11175 |
fi |
11176 |
{ am_dirpart=; unset am_dirpart;} |
11177 |
{ am_filepart=; unset am_filepart;} |
11178 |
{ am_mf=; unset am_mf;} |
11179 |
{ am_rc=; unset am_rc;} |
11180 |
rm -f conftest-deps.mk |
11181 |
} |
11182 |
;; |
11183 |
|
11184 |
esac |
11185 |
done # for ac_tag |
11186 |
|
11187 |
|
11188 |
as_fn_exit 0 |
11189 |
_ACEOF |
11190 |
ac_clean_files=$ac_clean_files_save |
11191 |
|
11192 |
test $ac_write_fail = 0 || |
11193 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
11194 |
|
11195 |
|
11196 |
# configure is writing to config.log, and then calls config.status. |
11197 |
# config.status does its own redirection, appending to config.log. |
11198 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
11199 |
# by configure, so config.status won't be able to write to it; its |
11200 |
# output is simply discarded. So we exec the FD to /dev/null, |
11201 |
# effectively closing config.log, so it can be properly (re)opened and |
11202 |
# appended to by config.status. When coming back to configure, we |
11203 |
# need to make the FD available again. |
11204 |
if test "$no_create" != yes; then |
11205 |
ac_cs_success=: |
11206 |
ac_config_status_args= |
11207 |
test "$silent" = yes && |
11208 |
ac_config_status_args="$ac_config_status_args --quiet" |
11209 |
exec 5>/dev/null |
11210 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
11211 |
exec 5>>config.log |
11212 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
11213 |
# would make configure fail if this is the last instruction. |
11214 |
$ac_cs_success || as_fn_exit 1 |
11215 |
fi |
11216 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
11217 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
11218 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11219 |
fi |
11220 |
|
11221 |
|
11222 |
echo |
11223 |
echo "***" |
11224 |
echo "*** Configuration Summary" |
11225 |
echo "***" |
11226 |
echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE" |
11227 |
echo "*** RSA size: $RSA" |
11228 |
echo "*** Cipher used: $CIPHER" |
11229 |
echo "*** Digest used: $DIGEST" |
11230 |
echo "*** Authdigest: $AUTH" |
11231 |
echo "*** HMAC length: $HMAC" |
11232 |
echo "*** Max. MTU: $MTU" |
11233 |
|
11234 |
echo "***" |
11235 |
echo "*** Enable options:" |
11236 |
grep ENABLE_ config.h | sed -e 's/^/*** /' |
11237 |
|
11238 |
if test "$HMACSIZE" -lt 12; then |
11239 |
echo "***" |
11240 |
echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure" |
11241 |
fi |
11242 |
|
11243 |
echo "***" |
11244 |
echo |
11245 |
|
11246 |
if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then |
11247 |
cat <<EOF |
11248 |
[33m |
11249 |
*** |
11250 |
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
11251 |
*** |
11252 |
*** You seem to configure gvpe with OpenSSL 1.1 or newer. |
11253 |
*** While this probably compiles, please note that this is not only |
11254 |
*** unsupported, but also discouraged. |
11255 |
*** |
11256 |
*** It is recommended to use either OpenSSL 1.0, as long as that is still |
11257 |
*** supported, or LibreSSL (https://www.libressl.org/). |
11258 |
*** |
11259 |
*** This is not a political issue - while porting GVPE to the newer |
11260 |
*** OpenSSL 1.1 API, I encountered two incompatible API changes that were |
11261 |
*** not documented, were not caught while compiling but caused security |
11262 |
*** issues. When reported, the reaction of the OpenSSL developers was to |
11263 |
*** update the documentation. |
11264 |
*** |
11265 |
*** As a result, I lost all confidence in the ability and desire of |
11266 |
*** OpenSSL developers to create a safe API, and would highly recommend |
11267 |
*** switching to LibreSSL which explicitly avoids such braking changes. |
11268 |
*** |
11269 |
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
11270 |
*** |
11271 |
*** Again, do not use OpenSSL 1.1 and complain if stuff breaks. |
11272 |
*** You have been warned, but your choice is respected. |
11273 |
*** |
11274 |
[0m |
11275 |
|
11276 |
EOF |
11277 |
fi |
11278 |
|
11279 |
|
11280 |
|