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