1 |
pcg |
1.1 |
#! /bin/sh |
2 |
|
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
root |
1.166 |
# Generated by GNU Autoconf 2.71. |
4 |
sf-exg |
1.132 |
# |
5 |
pcg |
1.1 |
# |
6 |
root |
1.166 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 |
|
|
# Inc. |
8 |
sf-exg |
1.132 |
# |
9 |
|
|
# |
10 |
pcg |
1.1 |
# This configure script is free software; the Free Software Foundation |
11 |
|
|
# gives unlimited permission to copy, distribute and modify it. |
12 |
sf-exg |
1.132 |
## -------------------- ## |
13 |
|
|
## M4sh Initialization. ## |
14 |
|
|
## -------------------- ## |
15 |
pcg |
1.11 |
|
16 |
ayin |
1.108 |
# Be more Bourne compatible |
17 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
18 |
root |
1.166 |
as_nop=: |
19 |
|
|
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
20 |
|
|
then : |
21 |
pcg |
1.11 |
emulate sh |
22 |
|
|
NULLCMD=: |
23 |
sf-exg |
1.132 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 |
pcg |
1.11 |
# is contrary to our usage. Disable this feature. |
25 |
|
|
alias -g '${1+"$@"}'='"$@"' |
26 |
ayin |
1.108 |
setopt NO_GLOB_SUBST |
27 |
root |
1.166 |
else $as_nop |
28 |
sf-exg |
1.132 |
case `(set -o) 2>/dev/null` in #( |
29 |
|
|
*posix*) : |
30 |
|
|
set -o posix ;; #( |
31 |
|
|
*) : |
32 |
|
|
;; |
33 |
ayin |
1.108 |
esac |
34 |
|
|
fi |
35 |
|
|
|
36 |
|
|
|
37 |
root |
1.166 |
|
38 |
|
|
# Reset variables that may have inherited troublesome values from |
39 |
|
|
# the environment. |
40 |
|
|
|
41 |
|
|
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
42 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
43 |
|
|
# side effect of setting IFS to empty, thus disabling word splitting.) |
44 |
|
|
# Quoting is to prevent editors from complaining about space-tab. |
45 |
sf-exg |
1.132 |
as_nl=' |
46 |
|
|
' |
47 |
|
|
export as_nl |
48 |
root |
1.166 |
IFS=" "" $as_nl" |
49 |
|
|
|
50 |
|
|
PS1='$ ' |
51 |
|
|
PS2='> ' |
52 |
|
|
PS4='+ ' |
53 |
|
|
|
54 |
|
|
# Ensure predictable behavior from utilities with locale-dependent output. |
55 |
|
|
LC_ALL=C |
56 |
|
|
export LC_ALL |
57 |
|
|
LANGUAGE=C |
58 |
|
|
export LANGUAGE |
59 |
|
|
|
60 |
|
|
# We cannot yet rely on "unset" to work, but we need these variables |
61 |
|
|
# to be unset--not just set to an empty or harmless value--now, to |
62 |
|
|
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
63 |
|
|
# also avoids known problems related to "unset" and subshell syntax |
64 |
|
|
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
65 |
|
|
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
66 |
|
|
do eval test \${$as_var+y} \ |
67 |
|
|
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
68 |
|
|
done |
69 |
|
|
|
70 |
|
|
# Ensure that fds 0, 1, and 2 are open. |
71 |
|
|
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
72 |
|
|
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
73 |
|
|
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
74 |
pcg |
1.11 |
|
75 |
sf-exg |
1.132 |
# The user is always right. |
76 |
root |
1.166 |
if ${PATH_SEPARATOR+false} :; then |
77 |
sf-exg |
1.132 |
PATH_SEPARATOR=: |
78 |
|
|
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 |
|
|
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 |
|
|
PATH_SEPARATOR=';' |
81 |
|
|
} |
82 |
pcg |
1.11 |
fi |
83 |
|
|
|
84 |
|
|
|
85 |
ayin |
1.108 |
# Find who we are. Look in the path if we contain no directory separator. |
86 |
root |
1.158 |
as_myself= |
87 |
sf-exg |
1.132 |
case $0 in #(( |
88 |
ayin |
1.108 |
*[\\/]* ) as_myself=$0 ;; |
89 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
90 |
|
|
for as_dir in $PATH |
91 |
|
|
do |
92 |
|
|
IFS=$as_save_IFS |
93 |
root |
1.166 |
case $as_dir in #((( |
94 |
|
|
'') as_dir=./ ;; |
95 |
|
|
*/) ;; |
96 |
|
|
*) as_dir=$as_dir/ ;; |
97 |
|
|
esac |
98 |
|
|
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
99 |
sf-exg |
1.132 |
done |
100 |
ayin |
1.108 |
IFS=$as_save_IFS |
101 |
|
|
|
102 |
|
|
;; |
103 |
|
|
esac |
104 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
|
|
# in which case we are not to be found in the path. |
106 |
|
|
if test "x$as_myself" = x; then |
107 |
|
|
as_myself=$0 |
108 |
|
|
fi |
109 |
|
|
if test ! -f "$as_myself"; then |
110 |
root |
1.166 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
sf-exg |
1.132 |
exit 1 |
112 |
ayin |
1.108 |
fi |
113 |
|
|
|
114 |
|
|
|
115 |
root |
1.158 |
# Use a proper internal environment variable to ensure we don't fall |
116 |
|
|
# into an infinite loop, continuously re-executing ourselves. |
117 |
|
|
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
118 |
|
|
_as_can_reexec=no; export _as_can_reexec; |
119 |
|
|
# We cannot yet assume a decent shell, so we have to provide a |
120 |
|
|
# neutralization value for shells without unset; and this also |
121 |
|
|
# works around shells that cannot unset nonexistent variables. |
122 |
|
|
# Preserve -v and -x to the replacement shell. |
123 |
|
|
BASH_ENV=/dev/null |
124 |
|
|
ENV=/dev/null |
125 |
|
|
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
126 |
|
|
case $- in # (((( |
127 |
|
|
*v*x* | *x*v* ) as_opts=-vx ;; |
128 |
|
|
*v* ) as_opts=-v ;; |
129 |
|
|
*x* ) as_opts=-x ;; |
130 |
|
|
* ) as_opts= ;; |
131 |
|
|
esac |
132 |
|
|
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
133 |
|
|
# Admittedly, this is quite paranoid, since all the known shells bail |
134 |
|
|
# out after a failed `exec'. |
135 |
root |
1.166 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 |
|
|
exit 255 |
137 |
root |
1.158 |
fi |
138 |
|
|
# We don't want this to propagate to other subprocesses. |
139 |
|
|
{ _as_can_reexec=; unset _as_can_reexec;} |
140 |
ayin |
1.108 |
if test "x$CONFIG_SHELL" = x; then |
141 |
root |
1.166 |
as_bourne_compatible="as_nop=: |
142 |
|
|
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
143 |
|
|
then : |
144 |
sf-exg |
1.132 |
emulate sh |
145 |
|
|
NULLCMD=: |
146 |
|
|
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
147 |
|
|
# is contrary to our usage. Disable this feature. |
148 |
|
|
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
149 |
|
|
setopt NO_GLOB_SUBST |
150 |
root |
1.166 |
else \$as_nop |
151 |
sf-exg |
1.132 |
case \`(set -o) 2>/dev/null\` in #( |
152 |
|
|
*posix*) : |
153 |
|
|
set -o posix ;; #( |
154 |
|
|
*) : |
155 |
|
|
;; |
156 |
|
|
esac |
157 |
ayin |
1.108 |
fi |
158 |
sf-exg |
1.132 |
" |
159 |
|
|
as_required="as_fn_return () { (exit \$1); } |
160 |
|
|
as_fn_success () { as_fn_return 0; } |
161 |
|
|
as_fn_failure () { as_fn_return 1; } |
162 |
|
|
as_fn_ret_success () { return 0; } |
163 |
|
|
as_fn_ret_failure () { return 1; } |
164 |
root |
1.105 |
|
165 |
ayin |
1.108 |
exitcode=0 |
166 |
sf-exg |
1.132 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
167 |
|
|
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
168 |
|
|
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
169 |
|
|
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
170 |
root |
1.166 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 |
|
|
then : |
172 |
sf-exg |
1.132 |
|
173 |
root |
1.166 |
else \$as_nop |
174 |
sf-exg |
1.132 |
exitcode=1; echo positional parameters were not saved. |
175 |
|
|
fi |
176 |
root |
1.158 |
test x\$exitcode = x0 || exit 1 |
177 |
root |
1.166 |
blah=\$(echo \$(echo blah)) |
178 |
|
|
test x\"\$blah\" = xblah || exit 1 |
179 |
root |
1.158 |
test -x / || exit 1" |
180 |
sf-exg |
1.132 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
181 |
|
|
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
182 |
|
|
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
183 |
|
|
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
184 |
|
|
test \$(( 1 + 1 )) = 2 || exit 1" |
185 |
root |
1.166 |
if (eval "$as_required") 2>/dev/null |
186 |
|
|
then : |
187 |
sf-exg |
1.132 |
as_have_required=yes |
188 |
root |
1.166 |
else $as_nop |
189 |
sf-exg |
1.132 |
as_have_required=no |
190 |
ayin |
1.108 |
fi |
191 |
root |
1.166 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
192 |
|
|
then : |
193 |
root |
1.105 |
|
194 |
root |
1.166 |
else $as_nop |
195 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 |
|
|
as_found=false |
197 |
pcg |
1.11 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
198 |
|
|
do |
199 |
|
|
IFS=$as_save_IFS |
200 |
root |
1.166 |
case $as_dir in #((( |
201 |
|
|
'') as_dir=./ ;; |
202 |
|
|
*/) ;; |
203 |
|
|
*) as_dir=$as_dir/ ;; |
204 |
|
|
esac |
205 |
sf-exg |
1.132 |
as_found=: |
206 |
|
|
case $as_dir in #( |
207 |
pcg |
1.11 |
/*) |
208 |
ayin |
1.108 |
for as_base in sh bash ksh sh5; do |
209 |
sf-exg |
1.132 |
# Try only shells that exist, to save several forks. |
210 |
root |
1.166 |
as_shell=$as_dir$as_base |
211 |
sf-exg |
1.132 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
212 |
root |
1.166 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
213 |
|
|
then : |
214 |
sf-exg |
1.132 |
CONFIG_SHELL=$as_shell as_have_required=yes |
215 |
root |
1.166 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
216 |
|
|
then : |
217 |
sf-exg |
1.132 |
break 2 |
218 |
|
|
fi |
219 |
|
|
fi |
220 |
ayin |
1.108 |
done;; |
221 |
|
|
esac |
222 |
sf-exg |
1.132 |
as_found=false |
223 |
ayin |
1.108 |
done |
224 |
root |
1.166 |
IFS=$as_save_IFS |
225 |
|
|
if $as_found |
226 |
|
|
then : |
227 |
|
|
|
228 |
|
|
else $as_nop |
229 |
|
|
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
230 |
|
|
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
231 |
|
|
then : |
232 |
sf-exg |
1.132 |
CONFIG_SHELL=$SHELL as_have_required=yes |
233 |
root |
1.166 |
fi |
234 |
|
|
fi |
235 |
ayin |
1.108 |
|
236 |
|
|
|
237 |
root |
1.166 |
if test "x$CONFIG_SHELL" != x |
238 |
|
|
then : |
239 |
root |
1.158 |
export CONFIG_SHELL |
240 |
|
|
# We cannot yet assume a decent shell, so we have to provide a |
241 |
|
|
# neutralization value for shells without unset; and this also |
242 |
|
|
# works around shells that cannot unset nonexistent variables. |
243 |
|
|
# Preserve -v and -x to the replacement shell. |
244 |
|
|
BASH_ENV=/dev/null |
245 |
|
|
ENV=/dev/null |
246 |
|
|
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
247 |
|
|
case $- in # (((( |
248 |
|
|
*v*x* | *x*v* ) as_opts=-vx ;; |
249 |
|
|
*v* ) as_opts=-v ;; |
250 |
|
|
*x* ) as_opts=-x ;; |
251 |
|
|
* ) as_opts= ;; |
252 |
|
|
esac |
253 |
|
|
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 |
|
|
# Admittedly, this is quite paranoid, since all the known shells bail |
255 |
|
|
# out after a failed `exec'. |
256 |
root |
1.166 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 |
root |
1.158 |
exit 255 |
258 |
sf-exg |
1.132 |
fi |
259 |
|
|
|
260 |
root |
1.166 |
if test x$as_have_required = xno |
261 |
|
|
then : |
262 |
|
|
printf "%s\n" "$0: This script requires a shell more modern than all" |
263 |
|
|
printf "%s\n" "$0: the shells that I found on your system." |
264 |
|
|
if test ${ZSH_VERSION+y} ; then |
265 |
|
|
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
266 |
|
|
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
267 |
sf-exg |
1.132 |
else |
268 |
root |
1.166 |
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
269 |
sf-exg |
1.132 |
$0: including any error possibly output before this |
270 |
|
|
$0: message. Then install a modern shell, or manually run |
271 |
|
|
$0: the script under such a shell if you do have one." |
272 |
|
|
fi |
273 |
|
|
exit 1 |
274 |
|
|
fi |
275 |
ayin |
1.108 |
fi |
276 |
|
|
fi |
277 |
sf-exg |
1.132 |
SHELL=${CONFIG_SHELL-/bin/sh} |
278 |
|
|
export SHELL |
279 |
|
|
# Unset more variables known to interfere with behavior of common tools. |
280 |
|
|
CLICOLOR_FORCE= GREP_OPTIONS= |
281 |
|
|
unset CLICOLOR_FORCE GREP_OPTIONS |
282 |
ayin |
1.108 |
|
283 |
sf-exg |
1.132 |
## --------------------- ## |
284 |
|
|
## M4sh Shell Functions. ## |
285 |
|
|
## --------------------- ## |
286 |
|
|
# as_fn_unset VAR |
287 |
|
|
# --------------- |
288 |
|
|
# Portably unset VAR. |
289 |
|
|
as_fn_unset () |
290 |
|
|
{ |
291 |
|
|
{ eval $1=; unset $1;} |
292 |
|
|
} |
293 |
|
|
as_unset=as_fn_unset |
294 |
|
|
|
295 |
root |
1.166 |
|
296 |
sf-exg |
1.132 |
# as_fn_set_status STATUS |
297 |
|
|
# ----------------------- |
298 |
|
|
# Set $? to STATUS, without forking. |
299 |
|
|
as_fn_set_status () |
300 |
|
|
{ |
301 |
|
|
return $1 |
302 |
|
|
} # as_fn_set_status |
303 |
|
|
|
304 |
|
|
# as_fn_exit STATUS |
305 |
|
|
# ----------------- |
306 |
|
|
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
307 |
|
|
as_fn_exit () |
308 |
|
|
{ |
309 |
|
|
set +e |
310 |
|
|
as_fn_set_status $1 |
311 |
|
|
exit $1 |
312 |
|
|
} # as_fn_exit |
313 |
root |
1.166 |
# as_fn_nop |
314 |
|
|
# --------- |
315 |
|
|
# Do nothing but, unlike ":", preserve the value of $?. |
316 |
|
|
as_fn_nop () |
317 |
|
|
{ |
318 |
|
|
return $? |
319 |
|
|
} |
320 |
|
|
as_nop=as_fn_nop |
321 |
sf-exg |
1.132 |
|
322 |
|
|
# as_fn_mkdir_p |
323 |
|
|
# ------------- |
324 |
|
|
# Create "$as_dir" as a directory, including parents if necessary. |
325 |
|
|
as_fn_mkdir_p () |
326 |
|
|
{ |
327 |
ayin |
1.108 |
|
328 |
sf-exg |
1.132 |
case $as_dir in #( |
329 |
|
|
-*) as_dir=./$as_dir;; |
330 |
|
|
esac |
331 |
|
|
test -d "$as_dir" || eval $as_mkdir_p || { |
332 |
|
|
as_dirs= |
333 |
|
|
while :; do |
334 |
|
|
case $as_dir in #( |
335 |
root |
1.166 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
336 |
sf-exg |
1.132 |
*) as_qdir=$as_dir;; |
337 |
|
|
esac |
338 |
|
|
as_dirs="'$as_qdir' $as_dirs" |
339 |
|
|
as_dir=`$as_dirname -- "$as_dir" || |
340 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
341 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
342 |
|
|
X"$as_dir" : 'X\(//\)$' \| \ |
343 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
344 |
root |
1.166 |
printf "%s\n" X"$as_dir" | |
345 |
sf-exg |
1.132 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 |
|
|
s//\1/ |
347 |
|
|
q |
348 |
|
|
} |
349 |
|
|
/^X\(\/\/\)[^/].*/{ |
350 |
|
|
s//\1/ |
351 |
|
|
q |
352 |
|
|
} |
353 |
|
|
/^X\(\/\/\)$/{ |
354 |
|
|
s//\1/ |
355 |
|
|
q |
356 |
|
|
} |
357 |
|
|
/^X\(\/\).*/{ |
358 |
|
|
s//\1/ |
359 |
|
|
q |
360 |
|
|
} |
361 |
|
|
s/.*/./; q'` |
362 |
|
|
test -d "$as_dir" && break |
363 |
|
|
done |
364 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs" |
365 |
root |
1.137 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
366 |
ayin |
1.108 |
|
367 |
|
|
|
368 |
sf-exg |
1.132 |
} # as_fn_mkdir_p |
369 |
root |
1.158 |
|
370 |
|
|
# as_fn_executable_p FILE |
371 |
|
|
# ----------------------- |
372 |
|
|
# Test if FILE is an executable regular file. |
373 |
|
|
as_fn_executable_p () |
374 |
|
|
{ |
375 |
|
|
test -f "$1" && test -x "$1" |
376 |
|
|
} # as_fn_executable_p |
377 |
sf-exg |
1.132 |
# as_fn_append VAR VALUE |
378 |
|
|
# ---------------------- |
379 |
|
|
# Append the text in VALUE to the end of the definition contained in VAR. Take |
380 |
|
|
# advantage of any shell optimizations that allow amortized linear growth over |
381 |
|
|
# repeated appends, instead of the typical quadratic growth present in naive |
382 |
|
|
# implementations. |
383 |
root |
1.166 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
384 |
|
|
then : |
385 |
sf-exg |
1.132 |
eval 'as_fn_append () |
386 |
|
|
{ |
387 |
|
|
eval $1+=\$2 |
388 |
|
|
}' |
389 |
root |
1.166 |
else $as_nop |
390 |
sf-exg |
1.132 |
as_fn_append () |
391 |
|
|
{ |
392 |
|
|
eval $1=\$$1\$2 |
393 |
|
|
} |
394 |
|
|
fi # as_fn_append |
395 |
|
|
|
396 |
|
|
# as_fn_arith ARG... |
397 |
|
|
# ------------------ |
398 |
|
|
# Perform arithmetic evaluation on the ARGs, and store the result in the |
399 |
|
|
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
400 |
|
|
# must be portable across $(()) and expr. |
401 |
root |
1.166 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
402 |
|
|
then : |
403 |
sf-exg |
1.132 |
eval 'as_fn_arith () |
404 |
|
|
{ |
405 |
|
|
as_val=$(( $* )) |
406 |
|
|
}' |
407 |
root |
1.166 |
else $as_nop |
408 |
sf-exg |
1.132 |
as_fn_arith () |
409 |
|
|
{ |
410 |
|
|
as_val=`expr "$@" || test $? -eq 1` |
411 |
|
|
} |
412 |
|
|
fi # as_fn_arith |
413 |
|
|
|
414 |
root |
1.166 |
# as_fn_nop |
415 |
|
|
# --------- |
416 |
|
|
# Do nothing but, unlike ":", preserve the value of $?. |
417 |
|
|
as_fn_nop () |
418 |
|
|
{ |
419 |
|
|
return $? |
420 |
|
|
} |
421 |
|
|
as_nop=as_fn_nop |
422 |
sf-exg |
1.132 |
|
423 |
root |
1.137 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
424 |
|
|
# ---------------------------------------- |
425 |
sf-exg |
1.132 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
426 |
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
427 |
root |
1.137 |
# script with STATUS, using 1 if that was 0. |
428 |
sf-exg |
1.132 |
as_fn_error () |
429 |
|
|
{ |
430 |
root |
1.137 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
431 |
|
|
if test "$4"; then |
432 |
|
|
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
433 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
434 |
sf-exg |
1.132 |
fi |
435 |
root |
1.166 |
printf "%s\n" "$as_me: error: $2" >&2 |
436 |
sf-exg |
1.132 |
as_fn_exit $as_status |
437 |
|
|
} # as_fn_error |
438 |
ayin |
1.108 |
|
439 |
sf-exg |
1.132 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
440 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
441 |
|
|
as_expr=expr |
442 |
ayin |
1.108 |
else |
443 |
sf-exg |
1.132 |
as_expr=false |
444 |
ayin |
1.108 |
fi |
445 |
|
|
|
446 |
sf-exg |
1.132 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
447 |
|
|
as_basename=basename |
448 |
ayin |
1.108 |
else |
449 |
sf-exg |
1.132 |
as_basename=false |
450 |
ayin |
1.108 |
fi |
451 |
|
|
|
452 |
sf-exg |
1.132 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
453 |
|
|
as_dirname=dirname |
454 |
ayin |
1.108 |
else |
455 |
sf-exg |
1.132 |
as_dirname=false |
456 |
ayin |
1.108 |
fi |
457 |
|
|
|
458 |
sf-exg |
1.132 |
as_me=`$as_basename -- "$0" || |
459 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
460 |
|
|
X"$0" : 'X\(//\)$' \| \ |
461 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
462 |
root |
1.166 |
printf "%s\n" X/"$0" | |
463 |
sf-exg |
1.132 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
464 |
|
|
s//\1/ |
465 |
|
|
q |
466 |
|
|
} |
467 |
|
|
/^X\/\(\/\/\)$/{ |
468 |
|
|
s//\1/ |
469 |
|
|
q |
470 |
|
|
} |
471 |
|
|
/^X\/\(\/\).*/{ |
472 |
|
|
s//\1/ |
473 |
|
|
q |
474 |
|
|
} |
475 |
|
|
s/.*/./; q'` |
476 |
ayin |
1.108 |
|
477 |
sf-exg |
1.132 |
# Avoid depending upon Character Ranges. |
478 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
479 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
480 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
481 |
|
|
as_cr_digits='0123456789' |
482 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
483 |
ayin |
1.108 |
|
484 |
|
|
|
485 |
sf-exg |
1.132 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
486 |
|
|
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
487 |
|
|
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
488 |
|
|
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
489 |
|
|
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
490 |
ayin |
1.108 |
sed -n ' |
491 |
|
|
p |
492 |
|
|
/[$]LINENO/= |
493 |
|
|
' <$as_myself | |
494 |
pcg |
1.11 |
sed ' |
495 |
ayin |
1.108 |
s/[$]LINENO.*/&-/ |
496 |
|
|
t lineno |
497 |
|
|
b |
498 |
|
|
:lineno |
499 |
pcg |
1.11 |
N |
500 |
ayin |
1.108 |
:loop |
501 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
502 |
pcg |
1.11 |
t loop |
503 |
ayin |
1.108 |
s/-\n.*// |
504 |
pcg |
1.11 |
' >$as_me.lineno && |
505 |
ayin |
1.108 |
chmod +x "$as_me.lineno" || |
506 |
root |
1.166 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
507 |
pcg |
1.11 |
|
508 |
root |
1.158 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
509 |
|
|
# already done that, so ensure we don't try to do so again and fall |
510 |
|
|
# in an infinite loop. This has already happened in practice. |
511 |
|
|
_as_can_reexec=no; export _as_can_reexec |
512 |
pcg |
1.11 |
# Don't try to exec as it changes $[0], causing all sort of problems |
513 |
|
|
# (the dirname of $[0] is not the place where we might find the |
514 |
ayin |
1.108 |
# original and so on. Autoconf is especially sensitive to this). |
515 |
|
|
. "./$as_me.lineno" |
516 |
pcg |
1.11 |
# Exit status is that of the last command. |
517 |
|
|
exit |
518 |
|
|
} |
519 |
|
|
|
520 |
root |
1.166 |
|
521 |
|
|
# Determine whether it's possible to make 'echo' print without a newline. |
522 |
|
|
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
523 |
|
|
# for compatibility with existing Makefiles. |
524 |
sf-exg |
1.132 |
ECHO_C= ECHO_N= ECHO_T= |
525 |
|
|
case `echo -n x` in #((((( |
526 |
|
|
-n*) |
527 |
|
|
case `echo 'xy\c'` in |
528 |
ayin |
1.108 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
529 |
sf-exg |
1.132 |
xy) ECHO_C='\c';; |
530 |
|
|
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
531 |
|
|
ECHO_T=' ';; |
532 |
ayin |
1.108 |
esac;; |
533 |
|
|
*) |
534 |
|
|
ECHO_N='-n';; |
535 |
pcg |
1.11 |
esac |
536 |
|
|
|
537 |
root |
1.166 |
# For backward compatibility with old third-party macros, we provide |
538 |
|
|
# the shell variables $as_echo and $as_echo_n. New code should use |
539 |
|
|
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
540 |
|
|
as_echo='printf %s\n' |
541 |
|
|
as_echo_n='printf %s' |
542 |
|
|
|
543 |
|
|
|
544 |
pcg |
1.11 |
rm -f conf$$ conf$$.exe conf$$.file |
545 |
ayin |
1.108 |
if test -d conf$$.dir; then |
546 |
|
|
rm -f conf$$.dir/conf$$.file |
547 |
|
|
else |
548 |
|
|
rm -f conf$$.dir |
549 |
sf-exg |
1.132 |
mkdir conf$$.dir 2>/dev/null |
550 |
ayin |
1.108 |
fi |
551 |
sf-exg |
1.132 |
if (echo >conf$$.file) 2>/dev/null; then |
552 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
553 |
|
|
as_ln_s='ln -s' |
554 |
|
|
# ... but there are two gotchas: |
555 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
556 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
557 |
root |
1.158 |
# In both cases, we have to default to `cp -pR'. |
558 |
sf-exg |
1.132 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
559 |
root |
1.158 |
as_ln_s='cp -pR' |
560 |
sf-exg |
1.132 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
561 |
|
|
as_ln_s=ln |
562 |
|
|
else |
563 |
root |
1.158 |
as_ln_s='cp -pR' |
564 |
sf-exg |
1.132 |
fi |
565 |
pcg |
1.11 |
else |
566 |
root |
1.158 |
as_ln_s='cp -pR' |
567 |
pcg |
1.11 |
fi |
568 |
ayin |
1.108 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
569 |
|
|
rmdir conf$$.dir 2>/dev/null |
570 |
pcg |
1.11 |
|
571 |
|
|
if mkdir -p . 2>/dev/null; then |
572 |
sf-exg |
1.132 |
as_mkdir_p='mkdir -p "$as_dir"' |
573 |
pcg |
1.11 |
else |
574 |
|
|
test -d ./-p && rmdir ./-p |
575 |
|
|
as_mkdir_p=false |
576 |
|
|
fi |
577 |
|
|
|
578 |
root |
1.158 |
as_test_x='test -x' |
579 |
|
|
as_executable_p=as_fn_executable_p |
580 |
pcg |
1.11 |
|
581 |
|
|
# Sed expression to map a string onto a valid CPP name. |
582 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
583 |
|
|
|
584 |
|
|
# Sed expression to map a string onto a valid variable name. |
585 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
586 |
|
|
|
587 |
|
|
|
588 |
sf-exg |
1.132 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
589 |
|
|
exec 6>&1 |
590 |
pcg |
1.1 |
|
591 |
pcg |
1.11 |
# Name of the host. |
592 |
root |
1.137 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
593 |
pcg |
1.11 |
# so uname gets run too. |
594 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
595 |
|
|
|
596 |
|
|
# |
597 |
|
|
# Initializations. |
598 |
|
|
# |
599 |
|
|
ac_default_prefix=/usr/local |
600 |
ayin |
1.108 |
ac_clean_files= |
601 |
pcg |
1.11 |
ac_config_libobj_dir=. |
602 |
ayin |
1.108 |
LIBOBJS= |
603 |
pcg |
1.11 |
cross_compiling=no |
604 |
|
|
subdirs= |
605 |
|
|
MFLAGS= |
606 |
|
|
MAKEFLAGS= |
607 |
|
|
|
608 |
|
|
# Identity of this package. |
609 |
root |
1.166 |
PACKAGE_NAME='' |
610 |
|
|
PACKAGE_TARNAME='' |
611 |
|
|
PACKAGE_VERSION='' |
612 |
|
|
PACKAGE_STRING='' |
613 |
|
|
PACKAGE_BUGREPORT='' |
614 |
|
|
PACKAGE_URL='' |
615 |
pcg |
1.11 |
|
616 |
|
|
ac_unique_file="src/feature.h" |
617 |
|
|
# Factoring default headers for most tests. |
618 |
|
|
ac_includes_default="\ |
619 |
root |
1.166 |
#include <stddef.h> |
620 |
|
|
#ifdef HAVE_STDIO_H |
621 |
|
|
# include <stdio.h> |
622 |
pcg |
1.11 |
#endif |
623 |
root |
1.166 |
#ifdef HAVE_STDLIB_H |
624 |
pcg |
1.11 |
# include <stdlib.h> |
625 |
|
|
#endif |
626 |
ayin |
1.108 |
#ifdef HAVE_STRING_H |
627 |
pcg |
1.11 |
# include <string.h> |
628 |
|
|
#endif |
629 |
ayin |
1.108 |
#ifdef HAVE_INTTYPES_H |
630 |
pcg |
1.11 |
# include <inttypes.h> |
631 |
|
|
#endif |
632 |
ayin |
1.108 |
#ifdef HAVE_STDINT_H |
633 |
|
|
# include <stdint.h> |
634 |
|
|
#endif |
635 |
root |
1.166 |
#ifdef HAVE_STRINGS_H |
636 |
|
|
# include <strings.h> |
637 |
|
|
#endif |
638 |
|
|
#ifdef HAVE_SYS_TYPES_H |
639 |
|
|
# include <sys/types.h> |
640 |
|
|
#endif |
641 |
|
|
#ifdef HAVE_SYS_STAT_H |
642 |
|
|
# include <sys/stat.h> |
643 |
|
|
#endif |
644 |
ayin |
1.108 |
#ifdef HAVE_UNISTD_H |
645 |
pcg |
1.11 |
# include <unistd.h> |
646 |
|
|
#endif" |
647 |
|
|
|
648 |
root |
1.166 |
ac_header_c_list= |
649 |
sf-exg |
1.132 |
ac_subst_vars='LTLIBOBJS |
650 |
|
|
LIBOBJS |
651 |
|
|
PERL_O |
652 |
|
|
IF_PERL |
653 |
|
|
PERLPRIVLIBEXP |
654 |
|
|
PERLFLAGS |
655 |
|
|
PERLLIB |
656 |
|
|
PERL |
657 |
|
|
XFT_CONFIG |
658 |
root |
1.166 |
EGREP |
659 |
|
|
GREP |
660 |
mikachu |
1.147 |
STARTUP_NOTIFICATION_LIBS |
661 |
|
|
STARTUP_NOTIFICATION_CFLAGS |
662 |
root |
1.158 |
PIXBUF_LIBS |
663 |
|
|
PIXBUF_CFLAGS |
664 |
sf-exg |
1.132 |
PKG_CONFIG |
665 |
|
|
X_EXTRA_LIBS |
666 |
|
|
X_LIBS |
667 |
|
|
X_PRE_LIBS |
668 |
|
|
X_CFLAGS |
669 |
root |
1.166 |
CXXCPP |
670 |
sf-exg |
1.132 |
XMKMF |
671 |
|
|
TIC |
672 |
|
|
RXVTNAME |
673 |
|
|
LINKER |
674 |
|
|
INSTALL_DATA |
675 |
|
|
INSTALL_SCRIPT |
676 |
|
|
INSTALL_PROGRAM |
677 |
|
|
ac_ct_CXX |
678 |
|
|
CXXFLAGS |
679 |
|
|
CXX |
680 |
|
|
OBJEXT |
681 |
|
|
EXEEXT |
682 |
|
|
ac_ct_CC |
683 |
|
|
CPPFLAGS |
684 |
|
|
LDFLAGS |
685 |
|
|
CFLAGS |
686 |
|
|
CC |
687 |
|
|
DATE |
688 |
|
|
VERSION |
689 |
|
|
host_os |
690 |
|
|
host_vendor |
691 |
|
|
host_cpu |
692 |
|
|
host |
693 |
|
|
build_os |
694 |
|
|
build_vendor |
695 |
|
|
build_cpu |
696 |
|
|
build |
697 |
|
|
target_alias |
698 |
|
|
host_alias |
699 |
|
|
build_alias |
700 |
|
|
LIBS |
701 |
|
|
ECHO_T |
702 |
|
|
ECHO_N |
703 |
|
|
ECHO_C |
704 |
|
|
DEFS |
705 |
|
|
mandir |
706 |
|
|
localedir |
707 |
|
|
libdir |
708 |
|
|
psdir |
709 |
|
|
pdfdir |
710 |
|
|
dvidir |
711 |
|
|
htmldir |
712 |
|
|
infodir |
713 |
|
|
docdir |
714 |
|
|
oldincludedir |
715 |
|
|
includedir |
716 |
root |
1.164 |
runstatedir |
717 |
sf-exg |
1.132 |
localstatedir |
718 |
|
|
sharedstatedir |
719 |
|
|
sysconfdir |
720 |
|
|
datadir |
721 |
|
|
datarootdir |
722 |
|
|
libexecdir |
723 |
|
|
sbindir |
724 |
|
|
bindir |
725 |
|
|
program_transform_name |
726 |
|
|
prefix |
727 |
|
|
exec_prefix |
728 |
|
|
PACKAGE_URL |
729 |
|
|
PACKAGE_BUGREPORT |
730 |
|
|
PACKAGE_STRING |
731 |
|
|
PACKAGE_VERSION |
732 |
|
|
PACKAGE_TARNAME |
733 |
|
|
PACKAGE_NAME |
734 |
ayin |
1.108 |
PATH_SEPARATOR |
735 |
sf-exg |
1.132 |
SHELL' |
736 |
root |
1.73 |
ac_subst_files='' |
737 |
sf-exg |
1.132 |
ac_user_opts=' |
738 |
|
|
enable_option_checking |
739 |
|
|
enable_everything |
740 |
|
|
enable_assert |
741 |
|
|
enable_warnings |
742 |
|
|
enable_256_color |
743 |
|
|
enable_unicode3 |
744 |
|
|
enable_combining |
745 |
|
|
enable_xft |
746 |
|
|
enable_font_styles |
747 |
sf-exg |
1.134 |
enable_pixbuf |
748 |
mikachu |
1.147 |
enable_startup_notification |
749 |
sf-exg |
1.132 |
enable_transparency |
750 |
|
|
enable_fading |
751 |
|
|
enable_rxvt_scroll |
752 |
|
|
enable_next_scroll |
753 |
|
|
enable_xterm_scroll |
754 |
|
|
enable_perl |
755 |
|
|
with_codesets |
756 |
|
|
enable_xim |
757 |
|
|
enable_backspace_key |
758 |
|
|
enable_delete_key |
759 |
|
|
enable_resources |
760 |
|
|
enable_8bitctrls |
761 |
|
|
enable_fallback |
762 |
|
|
with_res_name |
763 |
|
|
with_res_class |
764 |
|
|
with_name |
765 |
|
|
enable_swapscreen |
766 |
|
|
enable_iso14755 |
767 |
|
|
enable_frills |
768 |
|
|
enable_keepscrolling |
769 |
|
|
enable_selectionscrolling |
770 |
|
|
enable_mousewheel |
771 |
|
|
enable_slipwheeling |
772 |
|
|
enable_smart_resize |
773 |
|
|
enable_text_blink |
774 |
|
|
enable_pointer_blank |
775 |
|
|
with_term |
776 |
|
|
with_terminfo |
777 |
|
|
with_x |
778 |
|
|
enable_utmp |
779 |
|
|
enable_wtmp |
780 |
|
|
enable_lastlog |
781 |
|
|
' |
782 |
ayin |
1.108 |
ac_precious_vars='build_alias |
783 |
|
|
host_alias |
784 |
|
|
target_alias |
785 |
|
|
CC |
786 |
|
|
CFLAGS |
787 |
|
|
LDFLAGS |
788 |
|
|
LIBS |
789 |
|
|
CPPFLAGS |
790 |
|
|
CXX |
791 |
|
|
CXXFLAGS |
792 |
|
|
CCC |
793 |
root |
1.166 |
XMKMF |
794 |
|
|
CXXCPP' |
795 |
ayin |
1.108 |
|
796 |
pcg |
1.1 |
|
797 |
|
|
# Initialize some variables set by options. |
798 |
pcg |
1.11 |
ac_init_help= |
799 |
|
|
ac_init_version=false |
800 |
sf-exg |
1.132 |
ac_unrecognized_opts= |
801 |
|
|
ac_unrecognized_sep= |
802 |
pcg |
1.1 |
# The variables have the same names as the options, with |
803 |
|
|
# dashes changed to underlines. |
804 |
pcg |
1.11 |
cache_file=/dev/null |
805 |
pcg |
1.1 |
exec_prefix=NONE |
806 |
|
|
no_create= |
807 |
|
|
no_recursion= |
808 |
|
|
prefix=NONE |
809 |
|
|
program_prefix=NONE |
810 |
|
|
program_suffix=NONE |
811 |
|
|
program_transform_name=s,x,x, |
812 |
|
|
silent= |
813 |
|
|
site= |
814 |
|
|
srcdir= |
815 |
|
|
verbose= |
816 |
|
|
x_includes=NONE |
817 |
|
|
x_libraries=NONE |
818 |
pcg |
1.11 |
|
819 |
|
|
# Installation directory options. |
820 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo" |
821 |
|
|
# and all the variables that are supposed to be based on exec_prefix |
822 |
|
|
# by default will actually change. |
823 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them. |
824 |
ayin |
1.108 |
# (The list follows the same order as the GNU Coding Standards.) |
825 |
pcg |
1.1 |
bindir='${exec_prefix}/bin' |
826 |
|
|
sbindir='${exec_prefix}/sbin' |
827 |
|
|
libexecdir='${exec_prefix}/libexec' |
828 |
ayin |
1.108 |
datarootdir='${prefix}/share' |
829 |
|
|
datadir='${datarootdir}' |
830 |
pcg |
1.1 |
sysconfdir='${prefix}/etc' |
831 |
|
|
sharedstatedir='${prefix}/com' |
832 |
|
|
localstatedir='${prefix}/var' |
833 |
root |
1.164 |
runstatedir='${localstatedir}/run' |
834 |
pcg |
1.1 |
includedir='${prefix}/include' |
835 |
|
|
oldincludedir='/usr/include' |
836 |
ayin |
1.108 |
docdir='${datarootdir}/doc/${PACKAGE}' |
837 |
|
|
infodir='${datarootdir}/info' |
838 |
|
|
htmldir='${docdir}' |
839 |
|
|
dvidir='${docdir}' |
840 |
|
|
pdfdir='${docdir}' |
841 |
|
|
psdir='${docdir}' |
842 |
|
|
libdir='${exec_prefix}/lib' |
843 |
|
|
localedir='${datarootdir}/locale' |
844 |
|
|
mandir='${datarootdir}/man' |
845 |
pcg |
1.1 |
|
846 |
|
|
ac_prev= |
847 |
ayin |
1.108 |
ac_dashdash= |
848 |
pcg |
1.1 |
for ac_option |
849 |
|
|
do |
850 |
|
|
# If the previous option needs an argument, assign it. |
851 |
|
|
if test -n "$ac_prev"; then |
852 |
ayin |
1.108 |
eval $ac_prev=\$ac_option |
853 |
pcg |
1.1 |
ac_prev= |
854 |
|
|
continue |
855 |
|
|
fi |
856 |
|
|
|
857 |
ayin |
1.108 |
case $ac_option in |
858 |
root |
1.137 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
859 |
|
|
*=) ac_optarg= ;; |
860 |
|
|
*) ac_optarg=yes ;; |
861 |
ayin |
1.108 |
esac |
862 |
pcg |
1.1 |
|
863 |
ayin |
1.108 |
case $ac_dashdash$ac_option in |
864 |
|
|
--) |
865 |
|
|
ac_dashdash=yes ;; |
866 |
pcg |
1.1 |
|
867 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
868 |
|
|
ac_prev=bindir ;; |
869 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
870 |
pcg |
1.11 |
bindir=$ac_optarg ;; |
871 |
pcg |
1.1 |
|
872 |
|
|
-build | --build | --buil | --bui | --bu) |
873 |
pcg |
1.11 |
ac_prev=build_alias ;; |
874 |
pcg |
1.1 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
875 |
pcg |
1.11 |
build_alias=$ac_optarg ;; |
876 |
pcg |
1.1 |
|
877 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
878 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
879 |
|
|
ac_prev=cache_file ;; |
880 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
881 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
882 |
pcg |
1.11 |
cache_file=$ac_optarg ;; |
883 |
|
|
|
884 |
|
|
--config-cache | -C) |
885 |
|
|
cache_file=config.cache ;; |
886 |
pcg |
1.1 |
|
887 |
ayin |
1.108 |
-datadir | --datadir | --datadi | --datad) |
888 |
pcg |
1.1 |
ac_prev=datadir ;; |
889 |
ayin |
1.108 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
890 |
pcg |
1.11 |
datadir=$ac_optarg ;; |
891 |
pcg |
1.1 |
|
892 |
ayin |
1.108 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
893 |
|
|
| --dataroo | --dataro | --datar) |
894 |
|
|
ac_prev=datarootdir ;; |
895 |
|
|
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
896 |
|
|
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
897 |
|
|
datarootdir=$ac_optarg ;; |
898 |
|
|
|
899 |
pcg |
1.1 |
-disable-* | --disable-*) |
900 |
sf-exg |
1.132 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
901 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
902 |
sf-exg |
1.132 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
903 |
root |
1.166 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
904 |
sf-exg |
1.132 |
ac_useropt_orig=$ac_useropt |
905 |
root |
1.166 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
906 |
sf-exg |
1.132 |
case $ac_user_opts in |
907 |
|
|
*" |
908 |
|
|
"enable_$ac_useropt" |
909 |
|
|
"*) ;; |
910 |
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
911 |
|
|
ac_unrecognized_sep=', ';; |
912 |
|
|
esac |
913 |
|
|
eval enable_$ac_useropt=no ;; |
914 |
ayin |
1.108 |
|
915 |
|
|
-docdir | --docdir | --docdi | --doc | --do) |
916 |
|
|
ac_prev=docdir ;; |
917 |
|
|
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
918 |
|
|
docdir=$ac_optarg ;; |
919 |
|
|
|
920 |
|
|
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
921 |
|
|
ac_prev=dvidir ;; |
922 |
|
|
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
923 |
|
|
dvidir=$ac_optarg ;; |
924 |
pcg |
1.1 |
|
925 |
|
|
-enable-* | --enable-*) |
926 |
sf-exg |
1.132 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
927 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
928 |
sf-exg |
1.132 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
929 |
root |
1.166 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
930 |
sf-exg |
1.132 |
ac_useropt_orig=$ac_useropt |
931 |
root |
1.166 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
932 |
sf-exg |
1.132 |
case $ac_user_opts in |
933 |
|
|
*" |
934 |
|
|
"enable_$ac_useropt" |
935 |
|
|
"*) ;; |
936 |
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
937 |
|
|
ac_unrecognized_sep=', ';; |
938 |
|
|
esac |
939 |
|
|
eval enable_$ac_useropt=\$ac_optarg ;; |
940 |
pcg |
1.1 |
|
941 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
942 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
943 |
|
|
| --exec | --exe | --ex) |
944 |
|
|
ac_prev=exec_prefix ;; |
945 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
946 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
947 |
|
|
| --exec=* | --exe=* | --ex=*) |
948 |
pcg |
1.11 |
exec_prefix=$ac_optarg ;; |
949 |
pcg |
1.1 |
|
950 |
|
|
-gas | --gas | --ga | --g) |
951 |
|
|
# Obsolete; use --with-gas. |
952 |
|
|
with_gas=yes ;; |
953 |
|
|
|
954 |
pcg |
1.11 |
-help | --help | --hel | --he | -h) |
955 |
|
|
ac_init_help=long ;; |
956 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
957 |
|
|
ac_init_help=recursive ;; |
958 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
959 |
|
|
ac_init_help=short ;; |
960 |
pcg |
1.1 |
|
961 |
|
|
-host | --host | --hos | --ho) |
962 |
pcg |
1.11 |
ac_prev=host_alias ;; |
963 |
pcg |
1.1 |
-host=* | --host=* | --hos=* | --ho=*) |
964 |
pcg |
1.11 |
host_alias=$ac_optarg ;; |
965 |
pcg |
1.1 |
|
966 |
ayin |
1.108 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
967 |
|
|
ac_prev=htmldir ;; |
968 |
|
|
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
969 |
|
|
| --ht=*) |
970 |
|
|
htmldir=$ac_optarg ;; |
971 |
|
|
|
972 |
pcg |
1.1 |
-includedir | --includedir | --includedi | --included | --include \ |
973 |
|
|
| --includ | --inclu | --incl | --inc) |
974 |
|
|
ac_prev=includedir ;; |
975 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
976 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*) |
977 |
pcg |
1.11 |
includedir=$ac_optarg ;; |
978 |
pcg |
1.1 |
|
979 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf) |
980 |
|
|
ac_prev=infodir ;; |
981 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
982 |
pcg |
1.11 |
infodir=$ac_optarg ;; |
983 |
pcg |
1.1 |
|
984 |
|
|
-libdir | --libdir | --libdi | --libd) |
985 |
|
|
ac_prev=libdir ;; |
986 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
987 |
pcg |
1.11 |
libdir=$ac_optarg ;; |
988 |
pcg |
1.1 |
|
989 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
990 |
|
|
| --libexe | --libex | --libe) |
991 |
|
|
ac_prev=libexecdir ;; |
992 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
993 |
|
|
| --libexe=* | --libex=* | --libe=*) |
994 |
pcg |
1.11 |
libexecdir=$ac_optarg ;; |
995 |
pcg |
1.1 |
|
996 |
ayin |
1.108 |
-localedir | --localedir | --localedi | --localed | --locale) |
997 |
|
|
ac_prev=localedir ;; |
998 |
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
999 |
|
|
localedir=$ac_optarg ;; |
1000 |
|
|
|
1001 |
pcg |
1.1 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1002 |
ayin |
1.108 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1003 |
pcg |
1.1 |
ac_prev=localstatedir ;; |
1004 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1005 |
ayin |
1.108 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1006 |
pcg |
1.11 |
localstatedir=$ac_optarg ;; |
1007 |
pcg |
1.1 |
|
1008 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1009 |
|
|
ac_prev=mandir ;; |
1010 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1011 |
pcg |
1.11 |
mandir=$ac_optarg ;; |
1012 |
pcg |
1.1 |
|
1013 |
|
|
-nfp | --nfp | --nf) |
1014 |
|
|
# Obsolete; use --without-fp. |
1015 |
|
|
with_fp=no ;; |
1016 |
|
|
|
1017 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1018 |
pcg |
1.11 |
| --no-cr | --no-c | -n) |
1019 |
pcg |
1.1 |
no_create=yes ;; |
1020 |
|
|
|
1021 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1022 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1023 |
|
|
no_recursion=yes ;; |
1024 |
|
|
|
1025 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1026 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1027 |
|
|
| --oldin | --oldi | --old | --ol | --o) |
1028 |
|
|
ac_prev=oldincludedir ;; |
1029 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1030 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1031 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1032 |
pcg |
1.11 |
oldincludedir=$ac_optarg ;; |
1033 |
pcg |
1.1 |
|
1034 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1035 |
|
|
ac_prev=prefix ;; |
1036 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1037 |
pcg |
1.11 |
prefix=$ac_optarg ;; |
1038 |
pcg |
1.1 |
|
1039 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1040 |
|
|
| --program-pre | --program-pr | --program-p) |
1041 |
|
|
ac_prev=program_prefix ;; |
1042 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1043 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1044 |
pcg |
1.11 |
program_prefix=$ac_optarg ;; |
1045 |
pcg |
1.1 |
|
1046 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1047 |
|
|
| --program-suf | --program-su | --program-s) |
1048 |
|
|
ac_prev=program_suffix ;; |
1049 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1050 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1051 |
pcg |
1.11 |
program_suffix=$ac_optarg ;; |
1052 |
pcg |
1.1 |
|
1053 |
|
|
-program-transform-name | --program-transform-name \ |
1054 |
|
|
| --program-transform-nam | --program-transform-na \ |
1055 |
|
|
| --program-transform-n | --program-transform- \ |
1056 |
|
|
| --program-transform | --program-transfor \ |
1057 |
|
|
| --program-transfo | --program-transf \ |
1058 |
|
|
| --program-trans | --program-tran \ |
1059 |
|
|
| --progr-tra | --program-tr | --program-t) |
1060 |
|
|
ac_prev=program_transform_name ;; |
1061 |
|
|
-program-transform-name=* | --program-transform-name=* \ |
1062 |
|
|
| --program-transform-nam=* | --program-transform-na=* \ |
1063 |
|
|
| --program-transform-n=* | --program-transform-=* \ |
1064 |
|
|
| --program-transform=* | --program-transfor=* \ |
1065 |
|
|
| --program-transfo=* | --program-transf=* \ |
1066 |
|
|
| --program-trans=* | --program-tran=* \ |
1067 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
1068 |
pcg |
1.11 |
program_transform_name=$ac_optarg ;; |
1069 |
pcg |
1.1 |
|
1070 |
ayin |
1.108 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1071 |
|
|
ac_prev=pdfdir ;; |
1072 |
|
|
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1073 |
|
|
pdfdir=$ac_optarg ;; |
1074 |
|
|
|
1075 |
|
|
-psdir | --psdir | --psdi | --psd | --ps) |
1076 |
|
|
ac_prev=psdir ;; |
1077 |
|
|
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1078 |
|
|
psdir=$ac_optarg ;; |
1079 |
|
|
|
1080 |
pcg |
1.1 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1081 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
1082 |
|
|
silent=yes ;; |
1083 |
|
|
|
1084 |
root |
1.164 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
1085 |
|
|
| --runstate | --runstat | --runsta | --runst | --runs \ |
1086 |
|
|
| --run | --ru | --r) |
1087 |
|
|
ac_prev=runstatedir ;; |
1088 |
|
|
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
1089 |
|
|
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
1090 |
|
|
| --run=* | --ru=* | --r=*) |
1091 |
|
|
runstatedir=$ac_optarg ;; |
1092 |
|
|
|
1093 |
pcg |
1.1 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1094 |
|
|
ac_prev=sbindir ;; |
1095 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1096 |
|
|
| --sbi=* | --sb=*) |
1097 |
pcg |
1.11 |
sbindir=$ac_optarg ;; |
1098 |
pcg |
1.1 |
|
1099 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1100 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1101 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \ |
1102 |
|
|
| --sha | --sh) |
1103 |
|
|
ac_prev=sharedstatedir ;; |
1104 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1105 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1106 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1107 |
|
|
| --sha=* | --sh=*) |
1108 |
pcg |
1.11 |
sharedstatedir=$ac_optarg ;; |
1109 |
pcg |
1.1 |
|
1110 |
|
|
-site | --site | --sit) |
1111 |
|
|
ac_prev=site ;; |
1112 |
|
|
-site=* | --site=* | --sit=*) |
1113 |
pcg |
1.11 |
site=$ac_optarg ;; |
1114 |
pcg |
1.1 |
|
1115 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1116 |
|
|
ac_prev=srcdir ;; |
1117 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1118 |
pcg |
1.11 |
srcdir=$ac_optarg ;; |
1119 |
pcg |
1.1 |
|
1120 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1121 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy) |
1122 |
|
|
ac_prev=sysconfdir ;; |
1123 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1124 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1125 |
pcg |
1.11 |
sysconfdir=$ac_optarg ;; |
1126 |
pcg |
1.1 |
|
1127 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t) |
1128 |
pcg |
1.11 |
ac_prev=target_alias ;; |
1129 |
pcg |
1.1 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1130 |
pcg |
1.11 |
target_alias=$ac_optarg ;; |
1131 |
pcg |
1.1 |
|
1132 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1133 |
|
|
verbose=yes ;; |
1134 |
|
|
|
1135 |
pcg |
1.11 |
-version | --version | --versio | --versi | --vers | -V) |
1136 |
|
|
ac_init_version=: ;; |
1137 |
pcg |
1.1 |
|
1138 |
|
|
-with-* | --with-*) |
1139 |
sf-exg |
1.132 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1140 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
1141 |
sf-exg |
1.132 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1142 |
root |
1.166 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1143 |
sf-exg |
1.132 |
ac_useropt_orig=$ac_useropt |
1144 |
root |
1.166 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1145 |
sf-exg |
1.132 |
case $ac_user_opts in |
1146 |
|
|
*" |
1147 |
|
|
"with_$ac_useropt" |
1148 |
|
|
"*) ;; |
1149 |
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1150 |
|
|
ac_unrecognized_sep=', ';; |
1151 |
|
|
esac |
1152 |
|
|
eval with_$ac_useropt=\$ac_optarg ;; |
1153 |
pcg |
1.1 |
|
1154 |
|
|
-without-* | --without-*) |
1155 |
sf-exg |
1.132 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1156 |
pcg |
1.1 |
# Reject names that are not valid shell variable names. |
1157 |
sf-exg |
1.132 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1158 |
root |
1.166 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
1159 |
sf-exg |
1.132 |
ac_useropt_orig=$ac_useropt |
1160 |
root |
1.166 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1161 |
sf-exg |
1.132 |
case $ac_user_opts in |
1162 |
|
|
*" |
1163 |
|
|
"with_$ac_useropt" |
1164 |
|
|
"*) ;; |
1165 |
|
|
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1166 |
|
|
ac_unrecognized_sep=', ';; |
1167 |
|
|
esac |
1168 |
|
|
eval with_$ac_useropt=no ;; |
1169 |
pcg |
1.1 |
|
1170 |
|
|
--x) |
1171 |
|
|
# Obsolete; use --with-x. |
1172 |
|
|
with_x=yes ;; |
1173 |
|
|
|
1174 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1175 |
|
|
| --x-incl | --x-inc | --x-in | --x-i) |
1176 |
|
|
ac_prev=x_includes ;; |
1177 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1178 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1179 |
pcg |
1.11 |
x_includes=$ac_optarg ;; |
1180 |
pcg |
1.1 |
|
1181 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1182 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1183 |
|
|
ac_prev=x_libraries ;; |
1184 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1185 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1186 |
pcg |
1.11 |
x_libraries=$ac_optarg ;; |
1187 |
pcg |
1.1 |
|
1188 |
root |
1.137 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1189 |
|
|
Try \`$0 --help' for more information" |
1190 |
pcg |
1.1 |
;; |
1191 |
|
|
|
1192 |
pcg |
1.11 |
*=*) |
1193 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1194 |
|
|
# Reject names that are not valid shell variable names. |
1195 |
sf-exg |
1.132 |
case $ac_envvar in #( |
1196 |
|
|
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1197 |
root |
1.137 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1198 |
sf-exg |
1.132 |
esac |
1199 |
ayin |
1.108 |
eval $ac_envvar=\$ac_optarg |
1200 |
pcg |
1.11 |
export $ac_envvar ;; |
1201 |
|
|
|
1202 |
pcg |
1.1 |
*) |
1203 |
pcg |
1.11 |
# FIXME: should be removed in autoconf 3.0. |
1204 |
root |
1.166 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1205 |
pcg |
1.11 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1206 |
root |
1.166 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1207 |
root |
1.158 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1208 |
pcg |
1.1 |
;; |
1209 |
|
|
|
1210 |
|
|
esac |
1211 |
|
|
done |
1212 |
|
|
|
1213 |
|
|
if test -n "$ac_prev"; then |
1214 |
pcg |
1.11 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1215 |
root |
1.137 |
as_fn_error $? "missing argument to $ac_option" |
1216 |
sf-exg |
1.132 |
fi |
1217 |
|
|
|
1218 |
|
|
if test -n "$ac_unrecognized_opts"; then |
1219 |
|
|
case $enable_option_checking in |
1220 |
|
|
no) ;; |
1221 |
root |
1.137 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1222 |
root |
1.166 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1223 |
sf-exg |
1.132 |
esac |
1224 |
pcg |
1.1 |
fi |
1225 |
|
|
|
1226 |
sf-exg |
1.132 |
# Check all directory arguments for consistency. |
1227 |
ayin |
1.108 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1228 |
|
|
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1229 |
|
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1230 |
root |
1.164 |
libdir localedir mandir runstatedir |
1231 |
pcg |
1.11 |
do |
1232 |
ayin |
1.108 |
eval ac_val=\$$ac_var |
1233 |
sf-exg |
1.132 |
# Remove trailing slashes. |
1234 |
|
|
case $ac_val in |
1235 |
|
|
*/ ) |
1236 |
|
|
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1237 |
|
|
eval $ac_var=\$ac_val;; |
1238 |
|
|
esac |
1239 |
|
|
# Be sure to have absolute directory names. |
1240 |
pcg |
1.11 |
case $ac_val in |
1241 |
ayin |
1.108 |
[\\/$]* | ?:[\\/]* ) continue;; |
1242 |
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1243 |
pcg |
1.1 |
esac |
1244 |
root |
1.137 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1245 |
pcg |
1.1 |
done |
1246 |
|
|
|
1247 |
pcg |
1.11 |
# There might be people who depend on the old broken behavior: `$host' |
1248 |
|
|
# used to hold the argument of --host etc. |
1249 |
|
|
# FIXME: To remove some day. |
1250 |
|
|
build=$build_alias |
1251 |
|
|
host=$host_alias |
1252 |
|
|
target=$target_alias |
1253 |
|
|
|
1254 |
|
|
# FIXME: To remove some day. |
1255 |
|
|
if test "x$host_alias" != x; then |
1256 |
|
|
if test "x$build_alias" = x; then |
1257 |
|
|
cross_compiling=maybe |
1258 |
|
|
elif test "x$build_alias" != "x$host_alias"; then |
1259 |
|
|
cross_compiling=yes |
1260 |
|
|
fi |
1261 |
|
|
fi |
1262 |
|
|
|
1263 |
|
|
ac_tool_prefix= |
1264 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1265 |
pcg |
1.1 |
|
1266 |
pcg |
1.11 |
test "$silent" = yes && exec 6>/dev/null |
1267 |
pcg |
1.1 |
|
1268 |
|
|
|
1269 |
ayin |
1.108 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1270 |
|
|
ac_ls_di=`ls -di .` && |
1271 |
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1272 |
root |
1.137 |
as_fn_error $? "working directory cannot be determined" |
1273 |
ayin |
1.108 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1274 |
root |
1.137 |
as_fn_error $? "pwd does not report name of working directory" |
1275 |
ayin |
1.108 |
|
1276 |
|
|
|
1277 |
pcg |
1.1 |
# Find the source files, if location was not specified. |
1278 |
|
|
if test -z "$srcdir"; then |
1279 |
|
|
ac_srcdir_defaulted=yes |
1280 |
ayin |
1.108 |
# Try the directory containing this script, then the parent directory. |
1281 |
sf-exg |
1.132 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1282 |
|
|
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1283 |
|
|
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1284 |
|
|
X"$as_myself" : 'X\(//\)$' \| \ |
1285 |
|
|
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1286 |
root |
1.166 |
printf "%s\n" X"$as_myself" | |
1287 |
ayin |
1.108 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1288 |
|
|
s//\1/ |
1289 |
|
|
q |
1290 |
|
|
} |
1291 |
|
|
/^X\(\/\/\)[^/].*/{ |
1292 |
|
|
s//\1/ |
1293 |
|
|
q |
1294 |
|
|
} |
1295 |
|
|
/^X\(\/\/\)$/{ |
1296 |
|
|
s//\1/ |
1297 |
|
|
q |
1298 |
|
|
} |
1299 |
|
|
/^X\(\/\).*/{ |
1300 |
|
|
s//\1/ |
1301 |
|
|
q |
1302 |
|
|
} |
1303 |
|
|
s/.*/./; q'` |
1304 |
pcg |
1.1 |
srcdir=$ac_confdir |
1305 |
ayin |
1.108 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1306 |
pcg |
1.1 |
srcdir=.. |
1307 |
|
|
fi |
1308 |
|
|
else |
1309 |
|
|
ac_srcdir_defaulted=no |
1310 |
|
|
fi |
1311 |
ayin |
1.108 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1312 |
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1313 |
root |
1.137 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1314 |
ayin |
1.108 |
fi |
1315 |
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1316 |
|
|
ac_abs_confdir=`( |
1317 |
root |
1.137 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1318 |
ayin |
1.108 |
pwd)` |
1319 |
|
|
# When building in place, set srcdir=. |
1320 |
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1321 |
|
|
srcdir=. |
1322 |
|
|
fi |
1323 |
|
|
# Remove unnecessary trailing slashes from srcdir. |
1324 |
|
|
# Double slashes in file names in object file debugging info |
1325 |
|
|
# mess up M-x gdb in Emacs. |
1326 |
|
|
case $srcdir in |
1327 |
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1328 |
|
|
esac |
1329 |
|
|
for ac_var in $ac_precious_vars; do |
1330 |
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1331 |
|
|
eval ac_env_${ac_var}_value=\$${ac_var} |
1332 |
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1333 |
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1334 |
|
|
done |
1335 |
|
|
|
1336 |
pcg |
1.11 |
# |
1337 |
|
|
# Report the --help message. |
1338 |
|
|
# |
1339 |
|
|
if test "$ac_init_help" = "long"; then |
1340 |
|
|
# Omit some internal or obsolete options to make the list less imposing. |
1341 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1342 |
|
|
cat <<_ACEOF |
1343 |
|
|
\`configure' configures this package to adapt to many kinds of systems. |
1344 |
|
|
|
1345 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1346 |
|
|
|
1347 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1348 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables. |
1349 |
|
|
|
1350 |
|
|
Defaults for the options are specified in brackets. |
1351 |
|
|
|
1352 |
|
|
Configuration: |
1353 |
|
|
-h, --help display this help and exit |
1354 |
|
|
--help=short display options specific to this package |
1355 |
|
|
--help=recursive display the short help of all the included packages |
1356 |
|
|
-V, --version display version information and exit |
1357 |
root |
1.137 |
-q, --quiet, --silent do not print \`checking ...' messages |
1358 |
pcg |
1.11 |
--cache-file=FILE cache test results in FILE [disabled] |
1359 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache' |
1360 |
|
|
-n, --no-create do not create output files |
1361 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1362 |
|
|
|
1363 |
|
|
Installation directories: |
1364 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
1365 |
sf-exg |
1.132 |
[$ac_default_prefix] |
1366 |
pcg |
1.11 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1367 |
sf-exg |
1.132 |
[PREFIX] |
1368 |
pcg |
1.11 |
|
1369 |
|
|
By default, \`make install' will install all the files in |
1370 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1371 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1372 |
|
|
for instance \`--prefix=\$HOME'. |
1373 |
|
|
|
1374 |
|
|
For better control, use the options below. |
1375 |
|
|
|
1376 |
|
|
Fine tuning of the installation directories: |
1377 |
sf-exg |
1.132 |
--bindir=DIR user executables [EPREFIX/bin] |
1378 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1379 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec] |
1380 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1381 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1382 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1383 |
root |
1.164 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1384 |
sf-exg |
1.132 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1385 |
|
|
--includedir=DIR C header files [PREFIX/include] |
1386 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1387 |
|
|
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1388 |
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1389 |
|
|
--infodir=DIR info documentation [DATAROOTDIR/info] |
1390 |
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1391 |
|
|
--mandir=DIR man documentation [DATAROOTDIR/man] |
1392 |
|
|
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1393 |
|
|
--htmldir=DIR html documentation [DOCDIR] |
1394 |
|
|
--dvidir=DIR dvi documentation [DOCDIR] |
1395 |
|
|
--pdfdir=DIR pdf documentation [DOCDIR] |
1396 |
|
|
--psdir=DIR ps documentation [DOCDIR] |
1397 |
pcg |
1.11 |
_ACEOF |
1398 |
|
|
|
1399 |
|
|
cat <<\_ACEOF |
1400 |
|
|
|
1401 |
|
|
X features: |
1402 |
|
|
--x-includes=DIR X include files are in DIR |
1403 |
|
|
--x-libraries=DIR X library files are in DIR |
1404 |
|
|
|
1405 |
|
|
System types: |
1406 |
|
|
--build=BUILD configure for building on BUILD [guessed] |
1407 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1408 |
|
|
_ACEOF |
1409 |
|
|
fi |
1410 |
|
|
|
1411 |
|
|
if test -n "$ac_init_help"; then |
1412 |
|
|
|
1413 |
|
|
cat <<\_ACEOF |
1414 |
|
|
|
1415 |
|
|
Optional Features: |
1416 |
sf-exg |
1.132 |
--disable-option-checking ignore unrecognized --enable/--with options |
1417 |
pcg |
1.11 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1418 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1419 |
pcg |
1.13 |
--enable-everything enable standard non-multichoice features |
1420 |
root |
1.125 |
NOTE: this option is order dependent |
1421 |
root |
1.130 |
--enable-assert enable assertions |
1422 |
ayin |
1.114 |
--enable-warnings turn on g++ warnings |
1423 |
sf-exg |
1.132 |
--enable-256-color enable 256-color support |
1424 |
pcg |
1.11 |
--enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1425 |
pcg |
1.18 |
--enable-combining enable composition of base and combining characters |
1426 |
pcg |
1.15 |
--enable-xft enable xft support on systems that have it |
1427 |
root |
1.39 |
--enable-font-styles enable bold and italic support |
1428 |
sf-exg |
1.134 |
--enable-pixbuf enable integration with gdk-pixbuf for background images |
1429 |
mikachu |
1.147 |
--enable-startup-notification enable freedesktop startup notification support |
1430 |
pcg |
1.11 |
--enable-transparency enable transparent backgrounds |
1431 |
root |
1.31 |
--enable-fading enable colors fading when off focus |
1432 |
pcg |
1.11 |
--enable-rxvt-scroll enable rxvt style scrollbar |
1433 |
|
|
--enable-next-scroll enable NeXT style scrollbar |
1434 |
|
|
--enable-xterm-scroll enable Xterm style scrollbar |
1435 |
root |
1.60 |
--enable-perl enable embedded perl interpreter |
1436 |
pcg |
1.11 |
--enable-xim XIM (X Input Method) protocol support |
1437 |
|
|
--disable-backspace-key disable handling of the backspace key |
1438 |
|
|
--disable-delete-key disable handling of the delete key |
1439 |
|
|
--disable-resources disable all resource checking |
1440 |
root |
1.26 |
--enable-8bitctrls enable 8 bit control sequences (not recommended) |
1441 |
ayin |
1.114 |
--enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1442 |
pcg |
1.11 |
--disable-swapscreen disable swap screen support |
1443 |
root |
1.34 |
--enable-iso14755 enable support for extended ISO 14755 modes |
1444 |
pcg |
1.11 |
--enable-frills enable support for rarely used features |
1445 |
|
|
--enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1446 |
|
|
--enable-selectionscrolling enable scrolling during selections |
1447 |
|
|
--enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1448 |
ayin |
1.114 |
--enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1449 |
pcg |
1.11 |
--enable-smart-resize enable smart growth/shrink behaviour |
1450 |
|
|
--enable-text-blink enable blinking text |
1451 |
root |
1.131 |
--enable-pointer-blank enable pointer blanking when typing or inactive |
1452 |
root |
1.92 |
--enable-utmp enable utmp (utmpx) support |
1453 |
|
|
--enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1454 |
|
|
--enable-lastlog enable lastlog support (requires --enable-utmp) |
1455 |
pcg |
1.11 |
|
1456 |
|
|
Optional Packages: |
1457 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1458 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1459 |
ayin |
1.114 |
--with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1460 |
pcg |
1.15 |
--with-res-name=NAME use this as default resource name (default: urxvt) |
1461 |
pcg |
1.18 |
--with-res-class=CLASS use this as the resource class (default: URxvt) |
1462 |
pcg |
1.15 |
--with-name=NAME set the basename for the installed binaries (default: urxvt) |
1463 |
|
|
--with-term=NAME set the terminal to NAME (default: rxvt) |
1464 |
pcg |
1.11 |
--with-terminfo=PATH set the path to the terminfo tree to PATH |
1465 |
|
|
--with-x use the X Window System |
1466 |
|
|
|
1467 |
|
|
Some influential environment variables: |
1468 |
|
|
CC C compiler command |
1469 |
|
|
CFLAGS C compiler flags |
1470 |
|
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1471 |
|
|
nonstandard directory <lib dir> |
1472 |
ayin |
1.108 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1473 |
sf-exg |
1.132 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1474 |
ayin |
1.108 |
you have headers in a nonstandard directory <include dir> |
1475 |
pcg |
1.11 |
CXX C++ compiler command |
1476 |
|
|
CXXFLAGS C++ compiler flags |
1477 |
root |
1.166 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
1478 |
root |
1.116 |
CXXCPP C++ preprocessor |
1479 |
pcg |
1.11 |
|
1480 |
|
|
Use these variables to override the choices made by `configure' or to help |
1481 |
|
|
it to find libraries and programs with nonstandard names/locations. |
1482 |
|
|
|
1483 |
sf-exg |
1.132 |
Report bugs to the package provider. |
1484 |
pcg |
1.11 |
_ACEOF |
1485 |
ayin |
1.108 |
ac_status=$? |
1486 |
pcg |
1.11 |
fi |
1487 |
|
|
|
1488 |
|
|
if test "$ac_init_help" = "recursive"; then |
1489 |
|
|
# If there are subdirs, report their specific --help. |
1490 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1491 |
sf-exg |
1.132 |
test -d "$ac_dir" || |
1492 |
|
|
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1493 |
|
|
continue |
1494 |
pcg |
1.11 |
ac_builddir=. |
1495 |
|
|
|
1496 |
ayin |
1.108 |
case "$ac_dir" in |
1497 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1498 |
|
|
*) |
1499 |
root |
1.166 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1500 |
ayin |
1.108 |
# A ".." for each directory in $ac_dir_suffix. |
1501 |
root |
1.166 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1502 |
ayin |
1.108 |
case $ac_top_builddir_sub in |
1503 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1504 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1505 |
|
|
esac ;; |
1506 |
|
|
esac |
1507 |
|
|
ac_abs_top_builddir=$ac_pwd |
1508 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1509 |
|
|
# for backward compatibility: |
1510 |
|
|
ac_top_builddir=$ac_top_build_prefix |
1511 |
pcg |
1.11 |
|
1512 |
|
|
case $srcdir in |
1513 |
ayin |
1.108 |
.) # We are building in place. |
1514 |
pcg |
1.11 |
ac_srcdir=. |
1515 |
ayin |
1.108 |
ac_top_srcdir=$ac_top_builddir_sub |
1516 |
|
|
ac_abs_top_srcdir=$ac_pwd ;; |
1517 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name. |
1518 |
pcg |
1.11 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1519 |
ayin |
1.108 |
ac_top_srcdir=$srcdir |
1520 |
|
|
ac_abs_top_srcdir=$srcdir ;; |
1521 |
|
|
*) # Relative name. |
1522 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1523 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1524 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1525 |
pcg |
1.11 |
esac |
1526 |
ayin |
1.108 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1527 |
pcg |
1.11 |
|
1528 |
ayin |
1.108 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1529 |
root |
1.166 |
# Check for configure.gnu first; this name is used for a wrapper for |
1530 |
|
|
# Metaconfig's "Configure" on case-insensitive file systems. |
1531 |
ayin |
1.108 |
if test -f "$ac_srcdir/configure.gnu"; then |
1532 |
|
|
echo && |
1533 |
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1534 |
|
|
elif test -f "$ac_srcdir/configure"; then |
1535 |
|
|
echo && |
1536 |
|
|
$SHELL "$ac_srcdir/configure" --help=recursive |
1537 |
pcg |
1.11 |
else |
1538 |
root |
1.166 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1539 |
ayin |
1.108 |
fi || ac_status=$? |
1540 |
|
|
cd "$ac_pwd" || { ac_status=$?; break; } |
1541 |
pcg |
1.11 |
done |
1542 |
|
|
fi |
1543 |
|
|
|
1544 |
ayin |
1.108 |
test -n "$ac_init_help" && exit $ac_status |
1545 |
pcg |
1.11 |
if $ac_init_version; then |
1546 |
|
|
cat <<\_ACEOF |
1547 |
ayin |
1.108 |
configure |
1548 |
root |
1.166 |
generated by GNU Autoconf 2.71 |
1549 |
pcg |
1.11 |
|
1550 |
root |
1.166 |
Copyright (C) 2021 Free Software Foundation, Inc. |
1551 |
pcg |
1.11 |
This configure script is free software; the Free Software Foundation |
1552 |
|
|
gives unlimited permission to copy, distribute and modify it. |
1553 |
|
|
_ACEOF |
1554 |
ayin |
1.108 |
exit |
1555 |
pcg |
1.11 |
fi |
1556 |
|
|
|
1557 |
sf-exg |
1.132 |
## ------------------------ ## |
1558 |
|
|
## Autoconf initialization. ## |
1559 |
|
|
## ------------------------ ## |
1560 |
|
|
|
1561 |
|
|
# ac_fn_c_try_compile LINENO |
1562 |
|
|
# -------------------------- |
1563 |
|
|
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1564 |
|
|
ac_fn_c_try_compile () |
1565 |
|
|
{ |
1566 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1567 |
root |
1.166 |
rm -f conftest.$ac_objext conftest.beam |
1568 |
sf-exg |
1.132 |
if { { ac_try="$ac_compile" |
1569 |
|
|
case "(($ac_try" in |
1570 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1571 |
|
|
*) ac_try_echo=$ac_try;; |
1572 |
|
|
esac |
1573 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1574 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1575 |
sf-exg |
1.132 |
(eval "$ac_compile") 2>conftest.err |
1576 |
|
|
ac_status=$? |
1577 |
|
|
if test -s conftest.err; then |
1578 |
|
|
grep -v '^ *+' conftest.err >conftest.er1 |
1579 |
|
|
cat conftest.er1 >&5 |
1580 |
|
|
mv -f conftest.er1 conftest.err |
1581 |
|
|
fi |
1582 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1583 |
sf-exg |
1.132 |
test $ac_status = 0; } && { |
1584 |
|
|
test -z "$ac_c_werror_flag" || |
1585 |
|
|
test ! -s conftest.err |
1586 |
root |
1.166 |
} && test -s conftest.$ac_objext |
1587 |
|
|
then : |
1588 |
sf-exg |
1.132 |
ac_retval=0 |
1589 |
root |
1.166 |
else $as_nop |
1590 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
1591 |
sf-exg |
1.132 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1592 |
|
|
|
1593 |
|
|
ac_retval=1 |
1594 |
|
|
fi |
1595 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1596 |
sf-exg |
1.132 |
as_fn_set_status $ac_retval |
1597 |
pcg |
1.11 |
|
1598 |
sf-exg |
1.132 |
} # ac_fn_c_try_compile |
1599 |
pcg |
1.11 |
|
1600 |
sf-exg |
1.132 |
# ac_fn_cxx_try_compile LINENO |
1601 |
|
|
# ---------------------------- |
1602 |
|
|
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1603 |
|
|
ac_fn_cxx_try_compile () |
1604 |
pcg |
1.11 |
{ |
1605 |
sf-exg |
1.132 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1606 |
root |
1.166 |
rm -f conftest.$ac_objext conftest.beam |
1607 |
sf-exg |
1.132 |
if { { ac_try="$ac_compile" |
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 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1614 |
sf-exg |
1.132 |
(eval "$ac_compile") 2>conftest.err |
1615 |
|
|
ac_status=$? |
1616 |
|
|
if test -s conftest.err; then |
1617 |
|
|
grep -v '^ *+' conftest.err >conftest.er1 |
1618 |
|
|
cat conftest.er1 >&5 |
1619 |
|
|
mv -f conftest.er1 conftest.err |
1620 |
|
|
fi |
1621 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1622 |
sf-exg |
1.132 |
test $ac_status = 0; } && { |
1623 |
|
|
test -z "$ac_cxx_werror_flag" || |
1624 |
|
|
test ! -s conftest.err |
1625 |
root |
1.166 |
} && test -s conftest.$ac_objext |
1626 |
|
|
then : |
1627 |
sf-exg |
1.132 |
ac_retval=0 |
1628 |
root |
1.166 |
else $as_nop |
1629 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
1630 |
sf-exg |
1.132 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1631 |
|
|
|
1632 |
|
|
ac_retval=1 |
1633 |
|
|
fi |
1634 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1635 |
sf-exg |
1.132 |
as_fn_set_status $ac_retval |
1636 |
|
|
|
1637 |
|
|
} # ac_fn_cxx_try_compile |
1638 |
pcg |
1.11 |
|
1639 |
sf-exg |
1.132 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1640 |
|
|
# ------------------------------------------------------- |
1641 |
|
|
# Tests whether HEADER exists and can be compiled using the include files in |
1642 |
|
|
# INCLUDES, setting the cache variable VAR accordingly. |
1643 |
|
|
ac_fn_c_check_header_compile () |
1644 |
|
|
{ |
1645 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1646 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1647 |
|
|
printf %s "checking for $2... " >&6; } |
1648 |
|
|
if eval test \${$3+y} |
1649 |
|
|
then : |
1650 |
|
|
printf %s "(cached) " >&6 |
1651 |
|
|
else $as_nop |
1652 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1653 |
|
|
/* end confdefs.h. */ |
1654 |
|
|
$4 |
1655 |
|
|
#include <$2> |
1656 |
|
|
_ACEOF |
1657 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
1658 |
|
|
then : |
1659 |
sf-exg |
1.132 |
eval "$3=yes" |
1660 |
root |
1.166 |
else $as_nop |
1661 |
sf-exg |
1.132 |
eval "$3=no" |
1662 |
|
|
fi |
1663 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1664 |
sf-exg |
1.132 |
fi |
1665 |
|
|
eval ac_res=\$$3 |
1666 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1667 |
|
|
printf "%s\n" "$ac_res" >&6; } |
1668 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1669 |
sf-exg |
1.132 |
|
1670 |
|
|
} # ac_fn_c_check_header_compile |
1671 |
|
|
|
1672 |
|
|
# ac_fn_cxx_try_link LINENO |
1673 |
|
|
# ------------------------- |
1674 |
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1675 |
|
|
ac_fn_cxx_try_link () |
1676 |
pcg |
1.11 |
{ |
1677 |
sf-exg |
1.132 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1678 |
root |
1.166 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1679 |
sf-exg |
1.132 |
if { { ac_try="$ac_link" |
1680 |
ayin |
1.108 |
case "(($ac_try" in |
1681 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1682 |
|
|
*) ac_try_echo=$ac_try;; |
1683 |
|
|
esac |
1684 |
sf-exg |
1.132 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1685 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
1686 |
sf-exg |
1.132 |
(eval "$ac_link") 2>conftest.err |
1687 |
pcg |
1.11 |
ac_status=$? |
1688 |
sf-exg |
1.132 |
if test -s conftest.err; then |
1689 |
|
|
grep -v '^ *+' conftest.err >conftest.er1 |
1690 |
|
|
cat conftest.er1 >&5 |
1691 |
|
|
mv -f conftest.er1 conftest.err |
1692 |
|
|
fi |
1693 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1694 |
sf-exg |
1.132 |
test $ac_status = 0; } && { |
1695 |
ayin |
1.108 |
test -z "$ac_cxx_werror_flag" || |
1696 |
|
|
test ! -s conftest.err |
1697 |
sf-exg |
1.132 |
} && test -s conftest$ac_exeext && { |
1698 |
|
|
test "$cross_compiling" = yes || |
1699 |
root |
1.158 |
test -x conftest$ac_exeext |
1700 |
root |
1.166 |
} |
1701 |
|
|
then : |
1702 |
sf-exg |
1.132 |
ac_retval=0 |
1703 |
root |
1.166 |
else $as_nop |
1704 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
1705 |
pcg |
1.11 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1706 |
|
|
|
1707 |
sf-exg |
1.132 |
ac_retval=1 |
1708 |
pcg |
1.11 |
fi |
1709 |
sf-exg |
1.132 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1710 |
|
|
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1711 |
|
|
# interfere with the next link command; also delete a directory that is |
1712 |
|
|
# left behind by Apple's compiler. We do this before executing the actions. |
1713 |
|
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1714 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1715 |
sf-exg |
1.132 |
as_fn_set_status $ac_retval |
1716 |
ayin |
1.108 |
|
1717 |
sf-exg |
1.132 |
} # ac_fn_cxx_try_link |
1718 |
pcg |
1.11 |
|
1719 |
root |
1.166 |
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
1720 |
sf-exg |
1.132 |
# --------------------------------------------------------- |
1721 |
root |
1.166 |
# Tests whether HEADER exists and can be compiled using the include files in |
1722 |
|
|
# INCLUDES, setting the cache variable VAR accordingly. |
1723 |
|
|
ac_fn_cxx_check_header_compile () |
1724 |
sf-exg |
1.132 |
{ |
1725 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1726 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1727 |
|
|
printf %s "checking for $2... " >&6; } |
1728 |
|
|
if eval test \${$3+y} |
1729 |
|
|
then : |
1730 |
|
|
printf %s "(cached) " >&6 |
1731 |
|
|
else $as_nop |
1732 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1733 |
sf-exg |
1.132 |
/* end confdefs.h. */ |
1734 |
|
|
$4 |
1735 |
|
|
#include <$2> |
1736 |
pcg |
1.11 |
_ACEOF |
1737 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
1738 |
|
|
then : |
1739 |
|
|
eval "$3=yes" |
1740 |
|
|
else $as_nop |
1741 |
|
|
eval "$3=no" |
1742 |
sf-exg |
1.132 |
fi |
1743 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1744 |
sf-exg |
1.132 |
fi |
1745 |
|
|
eval ac_res=\$$3 |
1746 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1747 |
|
|
printf "%s\n" "$ac_res" >&6; } |
1748 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1749 |
ayin |
1.108 |
|
1750 |
root |
1.166 |
} # ac_fn_cxx_check_header_compile |
1751 |
sf-exg |
1.132 |
|
1752 |
sf-exg |
1.133 |
# ac_fn_cxx_check_func LINENO FUNC VAR |
1753 |
|
|
# ------------------------------------ |
1754 |
|
|
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1755 |
|
|
ac_fn_cxx_check_func () |
1756 |
|
|
{ |
1757 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1758 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1759 |
|
|
printf %s "checking for $2... " >&6; } |
1760 |
|
|
if eval test \${$3+y} |
1761 |
|
|
then : |
1762 |
|
|
printf %s "(cached) " >&6 |
1763 |
|
|
else $as_nop |
1764 |
sf-exg |
1.133 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1765 |
|
|
/* end confdefs.h. */ |
1766 |
|
|
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1767 |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1768 |
|
|
#define $2 innocuous_$2 |
1769 |
|
|
|
1770 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1771 |
root |
1.166 |
which can conflict with char $2 (); below. */ |
1772 |
sf-exg |
1.133 |
|
1773 |
root |
1.166 |
#include <limits.h> |
1774 |
sf-exg |
1.133 |
#undef $2 |
1775 |
|
|
|
1776 |
|
|
/* Override any GCC internal prototype to avoid an error. |
1777 |
|
|
Use char because int might match the return type of a GCC |
1778 |
|
|
builtin and then its argument prototype would still apply. */ |
1779 |
|
|
#ifdef __cplusplus |
1780 |
|
|
extern "C" |
1781 |
|
|
#endif |
1782 |
|
|
char $2 (); |
1783 |
|
|
/* The GNU C library defines this for functions which it implements |
1784 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1785 |
|
|
something starting with __ and the normal name is an alias. */ |
1786 |
|
|
#if defined __stub_$2 || defined __stub___$2 |
1787 |
|
|
choke me |
1788 |
|
|
#endif |
1789 |
|
|
|
1790 |
|
|
int |
1791 |
root |
1.166 |
main (void) |
1792 |
sf-exg |
1.133 |
{ |
1793 |
|
|
return $2 (); |
1794 |
|
|
; |
1795 |
|
|
return 0; |
1796 |
|
|
} |
1797 |
|
|
_ACEOF |
1798 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
1799 |
|
|
then : |
1800 |
sf-exg |
1.133 |
eval "$3=yes" |
1801 |
root |
1.166 |
else $as_nop |
1802 |
sf-exg |
1.133 |
eval "$3=no" |
1803 |
|
|
fi |
1804 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1805 |
sf-exg |
1.133 |
conftest$ac_exeext conftest.$ac_ext |
1806 |
|
|
fi |
1807 |
|
|
eval ac_res=\$$3 |
1808 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1809 |
|
|
printf "%s\n" "$ac_res" >&6; } |
1810 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1811 |
sf-exg |
1.133 |
|
1812 |
|
|
} # ac_fn_cxx_check_func |
1813 |
|
|
|
1814 |
sf-exg |
1.132 |
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
1815 |
|
|
# --------------------------------------------- |
1816 |
|
|
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1817 |
|
|
# variable VAR accordingly. |
1818 |
|
|
ac_fn_cxx_check_type () |
1819 |
|
|
{ |
1820 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1821 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1822 |
|
|
printf %s "checking for $2... " >&6; } |
1823 |
|
|
if eval test \${$3+y} |
1824 |
|
|
then : |
1825 |
|
|
printf %s "(cached) " >&6 |
1826 |
|
|
else $as_nop |
1827 |
sf-exg |
1.132 |
eval "$3=no" |
1828 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1829 |
|
|
/* end confdefs.h. */ |
1830 |
|
|
$4 |
1831 |
|
|
int |
1832 |
root |
1.166 |
main (void) |
1833 |
sf-exg |
1.132 |
{ |
1834 |
|
|
if (sizeof ($2)) |
1835 |
|
|
return 0; |
1836 |
|
|
; |
1837 |
|
|
return 0; |
1838 |
|
|
} |
1839 |
|
|
_ACEOF |
1840 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
1841 |
|
|
then : |
1842 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1843 |
|
|
/* end confdefs.h. */ |
1844 |
|
|
$4 |
1845 |
pcg |
1.11 |
int |
1846 |
root |
1.166 |
main (void) |
1847 |
pcg |
1.11 |
{ |
1848 |
sf-exg |
1.132 |
if (sizeof (($2))) |
1849 |
|
|
return 0; |
1850 |
pcg |
1.11 |
; |
1851 |
|
|
return 0; |
1852 |
|
|
} |
1853 |
|
|
_ACEOF |
1854 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
1855 |
|
|
then : |
1856 |
sf-exg |
1.132 |
|
1857 |
root |
1.166 |
else $as_nop |
1858 |
sf-exg |
1.132 |
eval "$3=yes" |
1859 |
|
|
fi |
1860 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1861 |
sf-exg |
1.132 |
fi |
1862 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1863 |
sf-exg |
1.132 |
fi |
1864 |
|
|
eval ac_res=\$$3 |
1865 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1866 |
|
|
printf "%s\n" "$ac_res" >&6; } |
1867 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1868 |
sf-exg |
1.132 |
|
1869 |
|
|
} # ac_fn_cxx_check_type |
1870 |
|
|
|
1871 |
root |
1.166 |
# ac_fn_cxx_try_cpp LINENO |
1872 |
|
|
# ------------------------ |
1873 |
|
|
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1874 |
|
|
ac_fn_cxx_try_cpp () |
1875 |
sf-exg |
1.132 |
{ |
1876 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1877 |
root |
1.166 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1878 |
|
|
case "(($ac_try" in |
1879 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1880 |
|
|
*) ac_try_echo=$ac_try;; |
1881 |
|
|
esac |
1882 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1883 |
|
|
printf "%s\n" "$ac_try_echo"; } >&5 |
1884 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1885 |
|
|
ac_status=$? |
1886 |
|
|
if test -s conftest.err; then |
1887 |
|
|
grep -v '^ *+' conftest.err >conftest.er1 |
1888 |
|
|
cat conftest.er1 >&5 |
1889 |
|
|
mv -f conftest.er1 conftest.err |
1890 |
|
|
fi |
1891 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1892 |
|
|
test $ac_status = 0; } > conftest.i && { |
1893 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1894 |
|
|
test ! -s conftest.err |
1895 |
|
|
} |
1896 |
|
|
then : |
1897 |
|
|
ac_retval=0 |
1898 |
|
|
else $as_nop |
1899 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
1900 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
1901 |
|
|
|
1902 |
|
|
ac_retval=1 |
1903 |
|
|
fi |
1904 |
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1905 |
|
|
as_fn_set_status $ac_retval |
1906 |
|
|
|
1907 |
|
|
} # ac_fn_cxx_try_cpp |
1908 |
|
|
|
1909 |
|
|
# ac_fn_c_find_intX_t LINENO BITS VAR |
1910 |
|
|
# ----------------------------------- |
1911 |
|
|
# Finds a signed integer type with width BITS, setting cache variable VAR |
1912 |
|
|
# accordingly. |
1913 |
|
|
ac_fn_c_find_intX_t () |
1914 |
|
|
{ |
1915 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1916 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
1917 |
|
|
printf %s "checking for int$2_t... " >&6; } |
1918 |
|
|
if eval test \${$3+y} |
1919 |
|
|
then : |
1920 |
|
|
printf %s "(cached) " >&6 |
1921 |
|
|
else $as_nop |
1922 |
sf-exg |
1.132 |
eval "$3=no" |
1923 |
|
|
# Order is important - never check a type that is potentially smaller |
1924 |
|
|
# than half of the expected target width. |
1925 |
|
|
for ac_type in int$2_t 'int' 'long int' \ |
1926 |
|
|
'long long int' 'short int' 'signed char'; do |
1927 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1928 |
|
|
/* end confdefs.h. */ |
1929 |
|
|
$ac_includes_default |
1930 |
root |
1.137 |
enum { N = $2 / 2 - 1 }; |
1931 |
sf-exg |
1.132 |
int |
1932 |
root |
1.166 |
main (void) |
1933 |
sf-exg |
1.132 |
{ |
1934 |
root |
1.137 |
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
1935 |
root |
1.158 |
test_array [0] = 0; |
1936 |
|
|
return test_array [0]; |
1937 |
pcg |
1.11 |
|
1938 |
sf-exg |
1.132 |
; |
1939 |
|
|
return 0; |
1940 |
|
|
} |
1941 |
pcg |
1.11 |
_ACEOF |
1942 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
1943 |
|
|
then : |
1944 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1945 |
pcg |
1.11 |
/* end confdefs.h. */ |
1946 |
sf-exg |
1.132 |
$ac_includes_default |
1947 |
root |
1.137 |
enum { N = $2 / 2 - 1 }; |
1948 |
pcg |
1.11 |
int |
1949 |
root |
1.166 |
main (void) |
1950 |
pcg |
1.11 |
{ |
1951 |
root |
1.137 |
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
1952 |
sf-exg |
1.132 |
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
1953 |
root |
1.158 |
test_array [0] = 0; |
1954 |
|
|
return test_array [0]; |
1955 |
ayin |
1.108 |
|
1956 |
pcg |
1.11 |
; |
1957 |
|
|
return 0; |
1958 |
|
|
} |
1959 |
|
|
_ACEOF |
1960 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
1961 |
|
|
then : |
1962 |
sf-exg |
1.132 |
|
1963 |
root |
1.166 |
else $as_nop |
1964 |
sf-exg |
1.132 |
case $ac_type in #( |
1965 |
|
|
int$2_t) : |
1966 |
|
|
eval "$3=yes" ;; #( |
1967 |
|
|
*) : |
1968 |
|
|
eval "$3=\$ac_type" ;; |
1969 |
ayin |
1.108 |
esac |
1970 |
pcg |
1.11 |
fi |
1971 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1972 |
ayin |
1.108 |
fi |
1973 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1974 |
|
|
if eval test \"x\$"$3"\" = x"no" |
1975 |
|
|
then : |
1976 |
pcg |
1.11 |
|
1977 |
root |
1.166 |
else $as_nop |
1978 |
sf-exg |
1.132 |
break |
1979 |
ayin |
1.108 |
fi |
1980 |
sf-exg |
1.132 |
done |
1981 |
pcg |
1.11 |
fi |
1982 |
sf-exg |
1.132 |
eval ac_res=\$$3 |
1983 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1984 |
|
|
printf "%s\n" "$ac_res" >&6; } |
1985 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1986 |
sf-exg |
1.132 |
|
1987 |
|
|
} # ac_fn_c_find_intX_t |
1988 |
|
|
|
1989 |
|
|
# ac_fn_c_find_uintX_t LINENO BITS VAR |
1990 |
|
|
# ------------------------------------ |
1991 |
|
|
# Finds an unsigned integer type with width BITS, setting cache variable VAR |
1992 |
|
|
# accordingly. |
1993 |
|
|
ac_fn_c_find_uintX_t () |
1994 |
|
|
{ |
1995 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1996 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
1997 |
|
|
printf %s "checking for uint$2_t... " >&6; } |
1998 |
|
|
if eval test \${$3+y} |
1999 |
|
|
then : |
2000 |
|
|
printf %s "(cached) " >&6 |
2001 |
|
|
else $as_nop |
2002 |
sf-exg |
1.132 |
eval "$3=no" |
2003 |
|
|
# Order is important - never check a type that is potentially smaller |
2004 |
|
|
# than half of the expected target width. |
2005 |
|
|
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
2006 |
|
|
'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
2007 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2008 |
|
|
/* end confdefs.h. */ |
2009 |
|
|
$ac_includes_default |
2010 |
|
|
int |
2011 |
root |
1.166 |
main (void) |
2012 |
sf-exg |
1.132 |
{ |
2013 |
|
|
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2014 |
root |
1.158 |
test_array [0] = 0; |
2015 |
|
|
return test_array [0]; |
2016 |
ayin |
1.108 |
|
2017 |
sf-exg |
1.132 |
; |
2018 |
|
|
return 0; |
2019 |
|
|
} |
2020 |
pcg |
1.11 |
_ACEOF |
2021 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
2022 |
|
|
then : |
2023 |
sf-exg |
1.132 |
case $ac_type in #( |
2024 |
|
|
uint$2_t) : |
2025 |
|
|
eval "$3=yes" ;; #( |
2026 |
|
|
*) : |
2027 |
|
|
eval "$3=\$ac_type" ;; |
2028 |
ayin |
1.108 |
esac |
2029 |
pcg |
1.11 |
fi |
2030 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2031 |
|
|
if eval test \"x\$"$3"\" = x"no" |
2032 |
|
|
then : |
2033 |
ayin |
1.108 |
|
2034 |
root |
1.166 |
else $as_nop |
2035 |
pcg |
1.11 |
break |
2036 |
|
|
fi |
2037 |
sf-exg |
1.132 |
done |
2038 |
|
|
fi |
2039 |
|
|
eval ac_res=\$$3 |
2040 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2041 |
|
|
printf "%s\n" "$ac_res" >&6; } |
2042 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2043 |
pcg |
1.11 |
|
2044 |
sf-exg |
1.132 |
} # ac_fn_c_find_uintX_t |
2045 |
pcg |
1.11 |
|
2046 |
sf-exg |
1.162 |
# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
2047 |
|
|
# ------------------------------------------------------ |
2048 |
|
|
# Tries to find if the field MEMBER exists in type AGGR, after including |
2049 |
|
|
# INCLUDES, setting cache variable VAR accordingly. |
2050 |
|
|
ac_fn_cxx_check_member () |
2051 |
|
|
{ |
2052 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2053 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2054 |
|
|
printf %s "checking for $2.$3... " >&6; } |
2055 |
|
|
if eval test \${$4+y} |
2056 |
|
|
then : |
2057 |
|
|
printf %s "(cached) " >&6 |
2058 |
|
|
else $as_nop |
2059 |
sf-exg |
1.162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2060 |
|
|
/* end confdefs.h. */ |
2061 |
|
|
$5 |
2062 |
|
|
int |
2063 |
root |
1.166 |
main (void) |
2064 |
sf-exg |
1.162 |
{ |
2065 |
|
|
static $2 ac_aggr; |
2066 |
|
|
if (ac_aggr.$3) |
2067 |
|
|
return 0; |
2068 |
|
|
; |
2069 |
|
|
return 0; |
2070 |
|
|
} |
2071 |
|
|
_ACEOF |
2072 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
2073 |
|
|
then : |
2074 |
sf-exg |
1.162 |
eval "$4=yes" |
2075 |
root |
1.166 |
else $as_nop |
2076 |
sf-exg |
1.162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2077 |
|
|
/* end confdefs.h. */ |
2078 |
|
|
$5 |
2079 |
|
|
int |
2080 |
root |
1.166 |
main (void) |
2081 |
sf-exg |
1.162 |
{ |
2082 |
|
|
static $2 ac_aggr; |
2083 |
|
|
if (sizeof ac_aggr.$3) |
2084 |
|
|
return 0; |
2085 |
|
|
; |
2086 |
|
|
return 0; |
2087 |
|
|
} |
2088 |
|
|
_ACEOF |
2089 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
2090 |
|
|
then : |
2091 |
sf-exg |
1.162 |
eval "$4=yes" |
2092 |
root |
1.166 |
else $as_nop |
2093 |
sf-exg |
1.162 |
eval "$4=no" |
2094 |
|
|
fi |
2095 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2096 |
sf-exg |
1.162 |
fi |
2097 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2098 |
sf-exg |
1.162 |
fi |
2099 |
|
|
eval ac_res=\$$4 |
2100 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2101 |
|
|
printf "%s\n" "$ac_res" >&6; } |
2102 |
sf-exg |
1.162 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2103 |
|
|
|
2104 |
|
|
} # ac_fn_cxx_check_member |
2105 |
|
|
|
2106 |
sf-exg |
1.132 |
# ac_fn_cxx_try_run LINENO |
2107 |
|
|
# ------------------------ |
2108 |
root |
1.166 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
2109 |
|
|
# executables *can* be run. |
2110 |
sf-exg |
1.132 |
ac_fn_cxx_try_run () |
2111 |
|
|
{ |
2112 |
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2113 |
|
|
if { { ac_try="$ac_link" |
2114 |
ayin |
1.108 |
case "(($ac_try" in |
2115 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2116 |
|
|
*) ac_try_echo=$ac_try;; |
2117 |
|
|
esac |
2118 |
sf-exg |
1.132 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2119 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2120 |
sf-exg |
1.132 |
(eval "$ac_link") 2>&5 |
2121 |
|
|
ac_status=$? |
2122 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2123 |
sf-exg |
1.132 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
2124 |
|
|
{ { case "(($ac_try" in |
2125 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2126 |
|
|
*) ac_try_echo=$ac_try;; |
2127 |
|
|
esac |
2128 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2129 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
2130 |
sf-exg |
1.132 |
(eval "$ac_try") 2>&5 |
2131 |
pcg |
1.11 |
ac_status=$? |
2132 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2133 |
|
|
test $ac_status = 0; }; } |
2134 |
|
|
then : |
2135 |
sf-exg |
1.132 |
ac_retval=0 |
2136 |
root |
1.166 |
else $as_nop |
2137 |
|
|
printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
2138 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
2139 |
pcg |
1.11 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2140 |
|
|
|
2141 |
sf-exg |
1.132 |
ac_retval=$ac_status |
2142 |
pcg |
1.1 |
fi |
2143 |
sf-exg |
1.132 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2144 |
root |
1.158 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2145 |
sf-exg |
1.132 |
as_fn_set_status $ac_retval |
2146 |
|
|
|
2147 |
|
|
} # ac_fn_cxx_try_run |
2148 |
root |
1.166 |
ac_configure_args_raw= |
2149 |
|
|
for ac_arg |
2150 |
|
|
do |
2151 |
|
|
case $ac_arg in |
2152 |
|
|
*\'*) |
2153 |
|
|
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2154 |
|
|
esac |
2155 |
|
|
as_fn_append ac_configure_args_raw " '$ac_arg'" |
2156 |
|
|
done |
2157 |
|
|
|
2158 |
|
|
case $ac_configure_args_raw in |
2159 |
|
|
*$as_nl*) |
2160 |
|
|
ac_safe_unquote= ;; |
2161 |
|
|
*) |
2162 |
|
|
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
2163 |
|
|
ac_unsafe_a="$ac_unsafe_z#~" |
2164 |
|
|
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
2165 |
|
|
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
2166 |
|
|
esac |
2167 |
|
|
|
2168 |
sf-exg |
1.132 |
cat >config.log <<_ACEOF |
2169 |
|
|
This file contains any messages produced by compilers while |
2170 |
|
|
running configure, to aid debugging if configure makes a mistake. |
2171 |
|
|
|
2172 |
|
|
It was created by $as_me, which was |
2173 |
root |
1.166 |
generated by GNU Autoconf 2.71. Invocation command line was |
2174 |
ayin |
1.108 |
|
2175 |
root |
1.166 |
$ $0$ac_configure_args_raw |
2176 |
pcg |
1.11 |
|
2177 |
|
|
_ACEOF |
2178 |
sf-exg |
1.132 |
exec 5>>config.log |
2179 |
|
|
{ |
2180 |
|
|
cat <<_ASUNAME |
2181 |
|
|
## --------- ## |
2182 |
|
|
## Platform. ## |
2183 |
|
|
## --------- ## |
2184 |
pcg |
1.11 |
|
2185 |
sf-exg |
1.132 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2186 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2187 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2188 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2189 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2190 |
ayin |
1.108 |
|
2191 |
sf-exg |
1.132 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2192 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2193 |
pcg |
1.11 |
|
2194 |
sf-exg |
1.132 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2195 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2196 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2197 |
|
|
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2198 |
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2199 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2200 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2201 |
pcg |
1.11 |
|
2202 |
sf-exg |
1.132 |
_ASUNAME |
2203 |
pcg |
1.1 |
|
2204 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2205 |
pcg |
1.11 |
for as_dir in $PATH |
2206 |
|
|
do |
2207 |
|
|
IFS=$as_save_IFS |
2208 |
root |
1.166 |
case $as_dir in #((( |
2209 |
|
|
'') as_dir=./ ;; |
2210 |
|
|
*/) ;; |
2211 |
|
|
*) as_dir=$as_dir/ ;; |
2212 |
|
|
esac |
2213 |
|
|
printf "%s\n" "PATH: $as_dir" |
2214 |
sf-exg |
1.132 |
done |
2215 |
ayin |
1.108 |
IFS=$as_save_IFS |
2216 |
pcg |
1.11 |
|
2217 |
sf-exg |
1.132 |
} >&5 |
2218 |
pcg |
1.1 |
|
2219 |
sf-exg |
1.132 |
cat >&5 <<_ACEOF |
2220 |
pcg |
1.1 |
|
2221 |
|
|
|
2222 |
sf-exg |
1.132 |
## ----------- ## |
2223 |
|
|
## Core tests. ## |
2224 |
|
|
## ----------- ## |
2225 |
pcg |
1.1 |
|
2226 |
sf-exg |
1.132 |
_ACEOF |
2227 |
pcg |
1.1 |
|
2228 |
|
|
|
2229 |
sf-exg |
1.132 |
# Keep a trace of the command line. |
2230 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
2231 |
|
|
# Strip out --silent because we don't want to record it for future runs. |
2232 |
|
|
# Also quote any args containing shell meta-characters. |
2233 |
|
|
# Make two passes to allow for proper duplicate-argument suppression. |
2234 |
|
|
ac_configure_args= |
2235 |
|
|
ac_configure_args0= |
2236 |
|
|
ac_configure_args1= |
2237 |
|
|
ac_must_keep_next=false |
2238 |
|
|
for ac_pass in 1 2 |
2239 |
ayin |
1.108 |
do |
2240 |
sf-exg |
1.132 |
for ac_arg |
2241 |
ayin |
1.108 |
do |
2242 |
sf-exg |
1.132 |
case $ac_arg in |
2243 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2244 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2245 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
2246 |
|
|
continue ;; |
2247 |
|
|
*\'*) |
2248 |
root |
1.166 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2249 |
sf-exg |
1.132 |
esac |
2250 |
|
|
case $ac_pass in |
2251 |
|
|
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2252 |
|
|
2) |
2253 |
|
|
as_fn_append ac_configure_args1 " '$ac_arg'" |
2254 |
|
|
if test $ac_must_keep_next = true; then |
2255 |
|
|
ac_must_keep_next=false # Got value, back to normal. |
2256 |
|
|
else |
2257 |
|
|
case $ac_arg in |
2258 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2259 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2260 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2261 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x) |
2262 |
|
|
case "$ac_configure_args0 " in |
2263 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2264 |
|
|
esac |
2265 |
|
|
;; |
2266 |
|
|
-* ) ac_must_keep_next=true ;; |
2267 |
|
|
esac |
2268 |
|
|
fi |
2269 |
|
|
as_fn_append ac_configure_args " '$ac_arg'" |
2270 |
|
|
;; |
2271 |
|
|
esac |
2272 |
ayin |
1.108 |
done |
2273 |
sf-exg |
1.132 |
done |
2274 |
|
|
{ ac_configure_args0=; unset ac_configure_args0;} |
2275 |
|
|
{ ac_configure_args1=; unset ac_configure_args1;} |
2276 |
ayin |
1.108 |
|
2277 |
sf-exg |
1.132 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2278 |
|
|
# config.log. We remove comments because anyway the quotes in there |
2279 |
|
|
# would cause problems or look ugly. |
2280 |
|
|
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2281 |
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2282 |
|
|
trap 'exit_status=$? |
2283 |
root |
1.166 |
# Sanitize IFS. |
2284 |
|
|
IFS=" "" $as_nl" |
2285 |
sf-exg |
1.132 |
# Save into config.log some information that might help in debugging. |
2286 |
|
|
{ |
2287 |
|
|
echo |
2288 |
ayin |
1.108 |
|
2289 |
root |
1.166 |
printf "%s\n" "## ---------------- ## |
2290 |
sf-exg |
1.132 |
## Cache variables. ## |
2291 |
root |
1.137 |
## ---------------- ##" |
2292 |
sf-exg |
1.132 |
echo |
2293 |
|
|
# The following way of writing the cache mishandles newlines in values, |
2294 |
|
|
( |
2295 |
|
|
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2296 |
|
|
eval ac_val=\$$ac_var |
2297 |
|
|
case $ac_val in #( |
2298 |
|
|
*${as_nl}*) |
2299 |
|
|
case $ac_var in #( |
2300 |
root |
1.166 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2301 |
|
|
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2302 |
sf-exg |
1.132 |
esac |
2303 |
|
|
case $ac_var in #( |
2304 |
|
|
_ | IFS | as_nl) ;; #( |
2305 |
|
|
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2306 |
|
|
*) { eval $ac_var=; unset $ac_var;} ;; |
2307 |
|
|
esac ;; |
2308 |
|
|
esac |
2309 |
ayin |
1.108 |
done |
2310 |
sf-exg |
1.132 |
(set) 2>&1 | |
2311 |
|
|
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2312 |
|
|
*${as_nl}ac_space=\ *) |
2313 |
|
|
sed -n \ |
2314 |
|
|
"s/'\''/'\''\\\\'\'''\''/g; |
2315 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2316 |
|
|
;; #( |
2317 |
|
|
*) |
2318 |
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2319 |
|
|
;; |
2320 |
|
|
esac | |
2321 |
|
|
sort |
2322 |
|
|
) |
2323 |
|
|
echo |
2324 |
root |
1.105 |
|
2325 |
root |
1.166 |
printf "%s\n" "## ----------------- ## |
2326 |
sf-exg |
1.132 |
## Output variables. ## |
2327 |
root |
1.137 |
## ----------------- ##" |
2328 |
sf-exg |
1.132 |
echo |
2329 |
|
|
for ac_var in $ac_subst_vars |
2330 |
|
|
do |
2331 |
|
|
eval ac_val=\$$ac_var |
2332 |
|
|
case $ac_val in |
2333 |
root |
1.166 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2334 |
sf-exg |
1.132 |
esac |
2335 |
root |
1.166 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
2336 |
sf-exg |
1.132 |
done | sort |
2337 |
|
|
echo |
2338 |
root |
1.105 |
|
2339 |
sf-exg |
1.132 |
if test -n "$ac_subst_files"; then |
2340 |
root |
1.166 |
printf "%s\n" "## ------------------- ## |
2341 |
sf-exg |
1.132 |
## File substitutions. ## |
2342 |
root |
1.137 |
## ------------------- ##" |
2343 |
sf-exg |
1.132 |
echo |
2344 |
|
|
for ac_var in $ac_subst_files |
2345 |
|
|
do |
2346 |
|
|
eval ac_val=\$$ac_var |
2347 |
|
|
case $ac_val in |
2348 |
root |
1.166 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2349 |
sf-exg |
1.132 |
esac |
2350 |
root |
1.166 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
2351 |
sf-exg |
1.132 |
done | sort |
2352 |
|
|
echo |
2353 |
|
|
fi |
2354 |
root |
1.105 |
|
2355 |
sf-exg |
1.132 |
if test -s confdefs.h; then |
2356 |
root |
1.166 |
printf "%s\n" "## ----------- ## |
2357 |
sf-exg |
1.132 |
## confdefs.h. ## |
2358 |
root |
1.137 |
## ----------- ##" |
2359 |
sf-exg |
1.132 |
echo |
2360 |
|
|
cat confdefs.h |
2361 |
|
|
echo |
2362 |
ayin |
1.108 |
fi |
2363 |
sf-exg |
1.132 |
test "$ac_signal" != 0 && |
2364 |
root |
1.166 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
2365 |
|
|
printf "%s\n" "$as_me: exit $exit_status" |
2366 |
sf-exg |
1.132 |
} >&5 |
2367 |
|
|
rm -f core *.core core.conftest.* && |
2368 |
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2369 |
|
|
exit $exit_status |
2370 |
|
|
' 0 |
2371 |
|
|
for ac_signal in 1 2 13 15; do |
2372 |
|
|
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2373 |
ayin |
1.108 |
done |
2374 |
sf-exg |
1.132 |
ac_signal=0 |
2375 |
ayin |
1.108 |
|
2376 |
sf-exg |
1.132 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2377 |
|
|
rm -f -r conftest* confdefs.h |
2378 |
ayin |
1.108 |
|
2379 |
root |
1.166 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
2380 |
ayin |
1.108 |
|
2381 |
sf-exg |
1.132 |
# Predefined preprocessor variables. |
2382 |
ayin |
1.108 |
|
2383 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
2384 |
ayin |
1.108 |
|
2385 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
2386 |
ayin |
1.108 |
|
2387 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
2388 |
ayin |
1.108 |
|
2389 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
2390 |
ayin |
1.108 |
|
2391 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
2392 |
ayin |
1.108 |
|
2393 |
root |
1.166 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
2394 |
ayin |
1.104 |
|
2395 |
ayin |
1.108 |
|
2396 |
sf-exg |
1.132 |
# Let the site file select an alternate cache file if it wants to. |
2397 |
|
|
# Prefer an explicitly selected file to automatically selected ones. |
2398 |
|
|
if test -n "$CONFIG_SITE"; then |
2399 |
root |
1.166 |
ac_site_files="$CONFIG_SITE" |
2400 |
sf-exg |
1.132 |
elif test "x$prefix" != xNONE; then |
2401 |
root |
1.166 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
2402 |
ayin |
1.104 |
else |
2403 |
root |
1.166 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
2404 |
ayin |
1.108 |
fi |
2405 |
root |
1.166 |
|
2406 |
|
|
for ac_site_file in $ac_site_files |
2407 |
sf-exg |
1.132 |
do |
2408 |
root |
1.166 |
case $ac_site_file in #( |
2409 |
|
|
*/*) : |
2410 |
|
|
;; #( |
2411 |
|
|
*) : |
2412 |
|
|
ac_site_file=./$ac_site_file ;; |
2413 |
|
|
esac |
2414 |
|
|
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
2415 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2416 |
|
|
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
2417 |
sf-exg |
1.132 |
sed 's/^/| /' "$ac_site_file" >&5 |
2418 |
root |
1.137 |
. "$ac_site_file" \ |
2419 |
root |
1.166 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2420 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2421 |
root |
1.137 |
as_fn_error $? "failed to load site script $ac_site_file |
2422 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
2423 |
sf-exg |
1.132 |
fi |
2424 |
|
|
done |
2425 |
ayin |
1.108 |
|
2426 |
sf-exg |
1.132 |
if test -r "$cache_file"; then |
2427 |
|
|
# Some versions of bash will fail to source /dev/null (special files |
2428 |
|
|
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2429 |
|
|
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2430 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2431 |
|
|
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
2432 |
sf-exg |
1.132 |
case $cache_file in |
2433 |
|
|
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2434 |
|
|
*) . "./$cache_file";; |
2435 |
|
|
esac |
2436 |
|
|
fi |
2437 |
ayin |
1.108 |
else |
2438 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2439 |
|
|
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
2440 |
sf-exg |
1.132 |
>$cache_file |
2441 |
|
|
fi |
2442 |
ayin |
1.106 |
|
2443 |
root |
1.166 |
# Test code for whether the C compiler supports C89 (global declarations) |
2444 |
|
|
ac_c_conftest_c89_globals=' |
2445 |
|
|
/* Does the compiler advertise C89 conformance? |
2446 |
|
|
Do not test the value of __STDC__, because some compilers set it to 0 |
2447 |
|
|
while being otherwise adequately conformant. */ |
2448 |
|
|
#if !defined __STDC__ |
2449 |
|
|
# error "Compiler does not advertise C89 conformance" |
2450 |
|
|
#endif |
2451 |
|
|
|
2452 |
|
|
#include <stddef.h> |
2453 |
|
|
#include <stdarg.h> |
2454 |
|
|
struct stat; |
2455 |
|
|
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
2456 |
|
|
struct buf { int x; }; |
2457 |
|
|
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
2458 |
|
|
static char *e (p, i) |
2459 |
|
|
char **p; |
2460 |
|
|
int i; |
2461 |
|
|
{ |
2462 |
|
|
return p[i]; |
2463 |
|
|
} |
2464 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...) |
2465 |
|
|
{ |
2466 |
|
|
char *s; |
2467 |
|
|
va_list v; |
2468 |
|
|
va_start (v,p); |
2469 |
|
|
s = g (p, va_arg (v,int)); |
2470 |
|
|
va_end (v); |
2471 |
|
|
return s; |
2472 |
|
|
} |
2473 |
|
|
|
2474 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2475 |
|
|
function prototypes and stuff, but not \xHH hex character constants. |
2476 |
|
|
These do not provoke an error unfortunately, instead are silently treated |
2477 |
|
|
as an "x". The following induces an error, until -std is added to get |
2478 |
|
|
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
2479 |
|
|
array size at least. It is necessary to write \x00 == 0 to get something |
2480 |
|
|
that is true only with -std. */ |
2481 |
|
|
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
2482 |
|
|
|
2483 |
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2484 |
|
|
inside strings and character constants. */ |
2485 |
|
|
#define FOO(x) '\''x'\'' |
2486 |
|
|
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
2487 |
|
|
|
2488 |
|
|
int test (int i, double x); |
2489 |
|
|
struct s1 {int (*f) (int a);}; |
2490 |
|
|
struct s2 {int (*f) (double a);}; |
2491 |
|
|
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
2492 |
|
|
int, int);' |
2493 |
|
|
|
2494 |
|
|
# Test code for whether the C compiler supports C89 (body of main). |
2495 |
|
|
ac_c_conftest_c89_main=' |
2496 |
|
|
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
2497 |
|
|
' |
2498 |
|
|
|
2499 |
|
|
# Test code for whether the C compiler supports C99 (global declarations) |
2500 |
|
|
ac_c_conftest_c99_globals=' |
2501 |
|
|
// Does the compiler advertise C99 conformance? |
2502 |
|
|
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
2503 |
|
|
# error "Compiler does not advertise C99 conformance" |
2504 |
|
|
#endif |
2505 |
|
|
|
2506 |
|
|
#include <stdbool.h> |
2507 |
|
|
extern int puts (const char *); |
2508 |
|
|
extern int printf (const char *, ...); |
2509 |
|
|
extern int dprintf (int, const char *, ...); |
2510 |
|
|
extern void *malloc (size_t); |
2511 |
|
|
|
2512 |
|
|
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
2513 |
|
|
// dprintf is used instead of fprintf to avoid needing to declare |
2514 |
|
|
// FILE and stderr. |
2515 |
|
|
#define debug(...) dprintf (2, __VA_ARGS__) |
2516 |
|
|
#define showlist(...) puts (#__VA_ARGS__) |
2517 |
|
|
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
2518 |
|
|
static void |
2519 |
|
|
test_varargs_macros (void) |
2520 |
|
|
{ |
2521 |
|
|
int x = 1234; |
2522 |
|
|
int y = 5678; |
2523 |
|
|
debug ("Flag"); |
2524 |
|
|
debug ("X = %d\n", x); |
2525 |
|
|
showlist (The first, second, and third items.); |
2526 |
|
|
report (x>y, "x is %d but y is %d", x, y); |
2527 |
|
|
} |
2528 |
|
|
|
2529 |
|
|
// Check long long types. |
2530 |
|
|
#define BIG64 18446744073709551615ull |
2531 |
|
|
#define BIG32 4294967295ul |
2532 |
|
|
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
2533 |
|
|
#if !BIG_OK |
2534 |
|
|
#error "your preprocessor is broken" |
2535 |
|
|
#endif |
2536 |
|
|
#if BIG_OK |
2537 |
|
|
#else |
2538 |
|
|
#error "your preprocessor is broken" |
2539 |
|
|
#endif |
2540 |
|
|
static long long int bignum = -9223372036854775807LL; |
2541 |
|
|
static unsigned long long int ubignum = BIG64; |
2542 |
|
|
|
2543 |
|
|
struct incomplete_array |
2544 |
|
|
{ |
2545 |
|
|
int datasize; |
2546 |
|
|
double data[]; |
2547 |
|
|
}; |
2548 |
|
|
|
2549 |
|
|
struct named_init { |
2550 |
|
|
int number; |
2551 |
|
|
const wchar_t *name; |
2552 |
|
|
double average; |
2553 |
|
|
}; |
2554 |
|
|
|
2555 |
|
|
typedef const char *ccp; |
2556 |
|
|
|
2557 |
|
|
static inline int |
2558 |
|
|
test_restrict (ccp restrict text) |
2559 |
|
|
{ |
2560 |
|
|
// See if C++-style comments work. |
2561 |
|
|
// Iterate through items via the restricted pointer. |
2562 |
|
|
// Also check for declarations in for loops. |
2563 |
|
|
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
2564 |
|
|
continue; |
2565 |
|
|
return 0; |
2566 |
|
|
} |
2567 |
|
|
|
2568 |
|
|
// Check varargs and va_copy. |
2569 |
|
|
static bool |
2570 |
|
|
test_varargs (const char *format, ...) |
2571 |
|
|
{ |
2572 |
|
|
va_list args; |
2573 |
|
|
va_start (args, format); |
2574 |
|
|
va_list args_copy; |
2575 |
|
|
va_copy (args_copy, args); |
2576 |
|
|
|
2577 |
|
|
const char *str = ""; |
2578 |
|
|
int number = 0; |
2579 |
|
|
float fnumber = 0; |
2580 |
|
|
|
2581 |
|
|
while (*format) |
2582 |
|
|
{ |
2583 |
|
|
switch (*format++) |
2584 |
|
|
{ |
2585 |
|
|
case '\''s'\'': // string |
2586 |
|
|
str = va_arg (args_copy, const char *); |
2587 |
|
|
break; |
2588 |
|
|
case '\''d'\'': // int |
2589 |
|
|
number = va_arg (args_copy, int); |
2590 |
|
|
break; |
2591 |
|
|
case '\''f'\'': // float |
2592 |
|
|
fnumber = va_arg (args_copy, double); |
2593 |
|
|
break; |
2594 |
|
|
default: |
2595 |
|
|
break; |
2596 |
|
|
} |
2597 |
|
|
} |
2598 |
|
|
va_end (args_copy); |
2599 |
|
|
va_end (args); |
2600 |
|
|
|
2601 |
|
|
return *str && number && fnumber; |
2602 |
|
|
} |
2603 |
|
|
' |
2604 |
|
|
|
2605 |
|
|
# Test code for whether the C compiler supports C99 (body of main). |
2606 |
|
|
ac_c_conftest_c99_main=' |
2607 |
|
|
// Check bool. |
2608 |
|
|
_Bool success = false; |
2609 |
|
|
success |= (argc != 0); |
2610 |
|
|
|
2611 |
|
|
// Check restrict. |
2612 |
|
|
if (test_restrict ("String literal") == 0) |
2613 |
|
|
success = true; |
2614 |
|
|
char *restrict newvar = "Another string"; |
2615 |
|
|
|
2616 |
|
|
// Check varargs. |
2617 |
|
|
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
2618 |
|
|
test_varargs_macros (); |
2619 |
|
|
|
2620 |
|
|
// Check flexible array members. |
2621 |
|
|
struct incomplete_array *ia = |
2622 |
|
|
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
2623 |
|
|
ia->datasize = 10; |
2624 |
|
|
for (int i = 0; i < ia->datasize; ++i) |
2625 |
|
|
ia->data[i] = i * 1.234; |
2626 |
|
|
|
2627 |
|
|
// Check named initializers. |
2628 |
|
|
struct named_init ni = { |
2629 |
|
|
.number = 34, |
2630 |
|
|
.name = L"Test wide string", |
2631 |
|
|
.average = 543.34343, |
2632 |
|
|
}; |
2633 |
|
|
|
2634 |
|
|
ni.number = 58; |
2635 |
|
|
|
2636 |
|
|
int dynamic_array[ni.number]; |
2637 |
|
|
dynamic_array[0] = argv[0][0]; |
2638 |
|
|
dynamic_array[ni.number - 1] = 543; |
2639 |
|
|
|
2640 |
|
|
// work around unused variable warnings |
2641 |
|
|
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
2642 |
|
|
|| dynamic_array[ni.number - 1] != 543); |
2643 |
|
|
' |
2644 |
|
|
|
2645 |
|
|
# Test code for whether the C compiler supports C11 (global declarations) |
2646 |
|
|
ac_c_conftest_c11_globals=' |
2647 |
|
|
// Does the compiler advertise C11 conformance? |
2648 |
|
|
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
2649 |
|
|
# error "Compiler does not advertise C11 conformance" |
2650 |
|
|
#endif |
2651 |
|
|
|
2652 |
|
|
// Check _Alignas. |
2653 |
|
|
char _Alignas (double) aligned_as_double; |
2654 |
|
|
char _Alignas (0) no_special_alignment; |
2655 |
|
|
extern char aligned_as_int; |
2656 |
|
|
char _Alignas (0) _Alignas (int) aligned_as_int; |
2657 |
|
|
|
2658 |
|
|
// Check _Alignof. |
2659 |
|
|
enum |
2660 |
|
|
{ |
2661 |
|
|
int_alignment = _Alignof (int), |
2662 |
|
|
int_array_alignment = _Alignof (int[100]), |
2663 |
|
|
char_alignment = _Alignof (char) |
2664 |
|
|
}; |
2665 |
|
|
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
2666 |
|
|
|
2667 |
|
|
// Check _Noreturn. |
2668 |
|
|
int _Noreturn does_not_return (void) { for (;;) continue; } |
2669 |
|
|
|
2670 |
|
|
// Check _Static_assert. |
2671 |
|
|
struct test_static_assert |
2672 |
|
|
{ |
2673 |
|
|
int x; |
2674 |
|
|
_Static_assert (sizeof (int) <= sizeof (long int), |
2675 |
|
|
"_Static_assert does not work in struct"); |
2676 |
|
|
long int y; |
2677 |
|
|
}; |
2678 |
|
|
|
2679 |
|
|
// Check UTF-8 literals. |
2680 |
|
|
#define u8 syntax error! |
2681 |
|
|
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
2682 |
|
|
|
2683 |
|
|
// Check duplicate typedefs. |
2684 |
|
|
typedef long *long_ptr; |
2685 |
|
|
typedef long int *long_ptr; |
2686 |
|
|
typedef long_ptr long_ptr; |
2687 |
|
|
|
2688 |
|
|
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
2689 |
|
|
struct anonymous |
2690 |
|
|
{ |
2691 |
|
|
union { |
2692 |
|
|
struct { int i; int j; }; |
2693 |
|
|
struct { int k; long int l; } w; |
2694 |
|
|
}; |
2695 |
|
|
int m; |
2696 |
|
|
} v1; |
2697 |
|
|
' |
2698 |
|
|
|
2699 |
|
|
# Test code for whether the C compiler supports C11 (body of main). |
2700 |
|
|
ac_c_conftest_c11_main=' |
2701 |
|
|
_Static_assert ((offsetof (struct anonymous, i) |
2702 |
|
|
== offsetof (struct anonymous, w.k)), |
2703 |
|
|
"Anonymous union alignment botch"); |
2704 |
|
|
v1.i = 2; |
2705 |
|
|
v1.w.k = 5; |
2706 |
|
|
ok |= v1.i != 5; |
2707 |
|
|
' |
2708 |
|
|
|
2709 |
|
|
# Test code for whether the C compiler supports C11 (complete). |
2710 |
|
|
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
2711 |
|
|
${ac_c_conftest_c99_globals} |
2712 |
|
|
${ac_c_conftest_c11_globals} |
2713 |
|
|
|
2714 |
|
|
int |
2715 |
|
|
main (int argc, char **argv) |
2716 |
|
|
{ |
2717 |
|
|
int ok = 0; |
2718 |
|
|
${ac_c_conftest_c89_main} |
2719 |
|
|
${ac_c_conftest_c99_main} |
2720 |
|
|
${ac_c_conftest_c11_main} |
2721 |
|
|
return ok; |
2722 |
|
|
} |
2723 |
|
|
" |
2724 |
|
|
|
2725 |
|
|
# Test code for whether the C compiler supports C99 (complete). |
2726 |
|
|
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
2727 |
|
|
${ac_c_conftest_c99_globals} |
2728 |
|
|
|
2729 |
|
|
int |
2730 |
|
|
main (int argc, char **argv) |
2731 |
|
|
{ |
2732 |
|
|
int ok = 0; |
2733 |
|
|
${ac_c_conftest_c89_main} |
2734 |
|
|
${ac_c_conftest_c99_main} |
2735 |
|
|
return ok; |
2736 |
|
|
} |
2737 |
|
|
" |
2738 |
|
|
|
2739 |
|
|
# Test code for whether the C compiler supports C89 (complete). |
2740 |
|
|
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
2741 |
|
|
|
2742 |
|
|
int |
2743 |
|
|
main (int argc, char **argv) |
2744 |
|
|
{ |
2745 |
|
|
int ok = 0; |
2746 |
|
|
${ac_c_conftest_c89_main} |
2747 |
|
|
return ok; |
2748 |
|
|
} |
2749 |
|
|
" |
2750 |
|
|
|
2751 |
|
|
# Test code for whether the C++ compiler supports C++98 (global declarations) |
2752 |
|
|
ac_cxx_conftest_cxx98_globals=' |
2753 |
|
|
// Does the compiler advertise C++98 conformance? |
2754 |
|
|
#if !defined __cplusplus || __cplusplus < 199711L |
2755 |
|
|
# error "Compiler does not advertise C++98 conformance" |
2756 |
|
|
#endif |
2757 |
|
|
|
2758 |
|
|
// These inclusions are to reject old compilers that |
2759 |
|
|
// lack the unsuffixed header files. |
2760 |
|
|
#include <cstdlib> |
2761 |
|
|
#include <exception> |
2762 |
|
|
|
2763 |
|
|
// <cassert> and <cstring> are *not* freestanding headers in C++98. |
2764 |
|
|
extern void assert (int); |
2765 |
|
|
namespace std { |
2766 |
|
|
extern int strcmp (const char *, const char *); |
2767 |
|
|
} |
2768 |
|
|
|
2769 |
|
|
// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
2770 |
|
|
using std::exception; |
2771 |
|
|
using std::strcmp; |
2772 |
|
|
|
2773 |
|
|
namespace { |
2774 |
|
|
|
2775 |
|
|
void test_exception_syntax() |
2776 |
|
|
{ |
2777 |
|
|
try { |
2778 |
|
|
throw "test"; |
2779 |
|
|
} catch (const char *s) { |
2780 |
|
|
// Extra parentheses suppress a warning when building autoconf itself, |
2781 |
|
|
// due to lint rules shared with more typical C programs. |
2782 |
|
|
assert (!(strcmp) (s, "test")); |
2783 |
|
|
} |
2784 |
|
|
} |
2785 |
|
|
|
2786 |
|
|
template <typename T> struct test_template |
2787 |
|
|
{ |
2788 |
|
|
T const val; |
2789 |
|
|
explicit test_template(T t) : val(t) {} |
2790 |
|
|
template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
2791 |
|
|
}; |
2792 |
|
|
|
2793 |
|
|
} // anonymous namespace |
2794 |
|
|
' |
2795 |
|
|
|
2796 |
|
|
# Test code for whether the C++ compiler supports C++98 (body of main) |
2797 |
|
|
ac_cxx_conftest_cxx98_main=' |
2798 |
|
|
assert (argc); |
2799 |
|
|
assert (! argv[0]); |
2800 |
|
|
{ |
2801 |
|
|
test_exception_syntax (); |
2802 |
|
|
test_template<double> tt (2.0); |
2803 |
|
|
assert (tt.add (4) == 6.0); |
2804 |
|
|
assert (true && !false); |
2805 |
|
|
} |
2806 |
|
|
' |
2807 |
|
|
|
2808 |
|
|
# Test code for whether the C++ compiler supports C++11 (global declarations) |
2809 |
|
|
ac_cxx_conftest_cxx11_globals=' |
2810 |
|
|
// Does the compiler advertise C++ 2011 conformance? |
2811 |
|
|
#if !defined __cplusplus || __cplusplus < 201103L |
2812 |
|
|
# error "Compiler does not advertise C++11 conformance" |
2813 |
|
|
#endif |
2814 |
|
|
|
2815 |
|
|
namespace cxx11test |
2816 |
|
|
{ |
2817 |
|
|
constexpr int get_val() { return 20; } |
2818 |
|
|
|
2819 |
|
|
struct testinit |
2820 |
|
|
{ |
2821 |
|
|
int i; |
2822 |
|
|
double d; |
2823 |
|
|
}; |
2824 |
|
|
|
2825 |
|
|
class delegate |
2826 |
|
|
{ |
2827 |
|
|
public: |
2828 |
|
|
delegate(int n) : n(n) {} |
2829 |
|
|
delegate(): delegate(2354) {} |
2830 |
|
|
|
2831 |
|
|
virtual int getval() { return this->n; }; |
2832 |
|
|
protected: |
2833 |
|
|
int n; |
2834 |
|
|
}; |
2835 |
|
|
|
2836 |
|
|
class overridden : public delegate |
2837 |
|
|
{ |
2838 |
|
|
public: |
2839 |
|
|
overridden(int n): delegate(n) {} |
2840 |
|
|
virtual int getval() override final { return this->n * 2; } |
2841 |
|
|
}; |
2842 |
|
|
|
2843 |
|
|
class nocopy |
2844 |
|
|
{ |
2845 |
|
|
public: |
2846 |
|
|
nocopy(int i): i(i) {} |
2847 |
|
|
nocopy() = default; |
2848 |
|
|
nocopy(const nocopy&) = delete; |
2849 |
|
|
nocopy & operator=(const nocopy&) = delete; |
2850 |
|
|
private: |
2851 |
|
|
int i; |
2852 |
|
|
}; |
2853 |
|
|
|
2854 |
|
|
// for testing lambda expressions |
2855 |
|
|
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
2856 |
|
|
{ |
2857 |
|
|
return f(v); |
2858 |
|
|
} |
2859 |
|
|
|
2860 |
|
|
// for testing variadic templates and trailing return types |
2861 |
|
|
template <typename V> auto sum(V first) -> V |
2862 |
|
|
{ |
2863 |
|
|
return first; |
2864 |
|
|
} |
2865 |
|
|
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
2866 |
|
|
{ |
2867 |
|
|
return first + sum(rest...); |
2868 |
|
|
} |
2869 |
|
|
} |
2870 |
|
|
' |
2871 |
|
|
|
2872 |
|
|
# Test code for whether the C++ compiler supports C++11 (body of main) |
2873 |
|
|
ac_cxx_conftest_cxx11_main=' |
2874 |
|
|
{ |
2875 |
|
|
// Test auto and decltype |
2876 |
|
|
auto a1 = 6538; |
2877 |
|
|
auto a2 = 48573953.4; |
2878 |
|
|
auto a3 = "String literal"; |
2879 |
|
|
|
2880 |
|
|
int total = 0; |
2881 |
|
|
for (auto i = a3; *i; ++i) { total += *i; } |
2882 |
|
|
|
2883 |
|
|
decltype(a2) a4 = 34895.034; |
2884 |
|
|
} |
2885 |
|
|
{ |
2886 |
|
|
// Test constexpr |
2887 |
|
|
short sa[cxx11test::get_val()] = { 0 }; |
2888 |
|
|
} |
2889 |
|
|
{ |
2890 |
|
|
// Test initializer lists |
2891 |
|
|
cxx11test::testinit il = { 4323, 435234.23544 }; |
2892 |
|
|
} |
2893 |
|
|
{ |
2894 |
|
|
// Test range-based for |
2895 |
|
|
int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
2896 |
|
|
14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
2897 |
|
|
for (auto &x : array) { x += 23; } |
2898 |
|
|
} |
2899 |
|
|
{ |
2900 |
|
|
// Test lambda expressions |
2901 |
|
|
using cxx11test::eval; |
2902 |
|
|
assert (eval ([](int x) { return x*2; }, 21) == 42); |
2903 |
|
|
double d = 2.0; |
2904 |
|
|
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
2905 |
|
|
assert (d == 5.0); |
2906 |
|
|
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
2907 |
|
|
assert (d == 5.0); |
2908 |
|
|
} |
2909 |
|
|
{ |
2910 |
|
|
// Test use of variadic templates |
2911 |
|
|
using cxx11test::sum; |
2912 |
|
|
auto a = sum(1); |
2913 |
|
|
auto b = sum(1, 2); |
2914 |
|
|
auto c = sum(1.0, 2.0, 3.0); |
2915 |
|
|
} |
2916 |
|
|
{ |
2917 |
|
|
// Test constructor delegation |
2918 |
|
|
cxx11test::delegate d1; |
2919 |
|
|
cxx11test::delegate d2(); |
2920 |
|
|
cxx11test::delegate d3(45); |
2921 |
|
|
} |
2922 |
|
|
{ |
2923 |
|
|
// Test override and final |
2924 |
|
|
cxx11test::overridden o1(55464); |
2925 |
|
|
} |
2926 |
|
|
{ |
2927 |
|
|
// Test nullptr |
2928 |
|
|
char *c = nullptr; |
2929 |
|
|
} |
2930 |
|
|
{ |
2931 |
|
|
// Test template brackets |
2932 |
|
|
test_template<::test_template<int>> v(test_template<int>(12)); |
2933 |
|
|
} |
2934 |
|
|
{ |
2935 |
|
|
// Unicode literals |
2936 |
|
|
char const *utf8 = u8"UTF-8 string \u2500"; |
2937 |
|
|
char16_t const *utf16 = u"UTF-8 string \u2500"; |
2938 |
|
|
char32_t const *utf32 = U"UTF-32 string \u2500"; |
2939 |
|
|
} |
2940 |
|
|
' |
2941 |
|
|
|
2942 |
|
|
# Test code for whether the C compiler supports C++11 (complete). |
2943 |
|
|
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
2944 |
|
|
${ac_cxx_conftest_cxx11_globals} |
2945 |
|
|
|
2946 |
|
|
int |
2947 |
|
|
main (int argc, char **argv) |
2948 |
|
|
{ |
2949 |
|
|
int ok = 0; |
2950 |
|
|
${ac_cxx_conftest_cxx98_main} |
2951 |
|
|
${ac_cxx_conftest_cxx11_main} |
2952 |
|
|
return ok; |
2953 |
|
|
} |
2954 |
|
|
" |
2955 |
|
|
|
2956 |
|
|
# Test code for whether the C compiler supports C++98 (complete). |
2957 |
|
|
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
2958 |
|
|
int |
2959 |
|
|
main (int argc, char **argv) |
2960 |
|
|
{ |
2961 |
|
|
int ok = 0; |
2962 |
|
|
${ac_cxx_conftest_cxx98_main} |
2963 |
|
|
return ok; |
2964 |
|
|
} |
2965 |
|
|
" |
2966 |
|
|
|
2967 |
|
|
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
2968 |
|
|
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
2969 |
|
|
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
2970 |
|
|
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
2971 |
|
|
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
2972 |
|
|
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
2973 |
|
|
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
2974 |
|
|
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
2975 |
|
|
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
2976 |
|
|
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
2977 |
|
|
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
2978 |
|
|
|
2979 |
|
|
# Auxiliary files required by this configure script. |
2980 |
|
|
ac_aux_files="install-sh config.guess config.sub" |
2981 |
|
|
|
2982 |
|
|
# Locations in which to look for auxiliary files. |
2983 |
|
|
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
2984 |
|
|
|
2985 |
|
|
# Search for a directory containing all of the required auxiliary files, |
2986 |
|
|
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
2987 |
|
|
# If we don't find one directory that contains all the files we need, |
2988 |
|
|
# we report the set of missing files from the *first* directory in |
2989 |
|
|
# $ac_aux_dir_candidates and give up. |
2990 |
|
|
ac_missing_aux_files="" |
2991 |
|
|
ac_first_candidate=: |
2992 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
2993 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2994 |
|
|
as_found=false |
2995 |
|
|
for as_dir in $ac_aux_dir_candidates |
2996 |
|
|
do |
2997 |
|
|
IFS=$as_save_IFS |
2998 |
|
|
case $as_dir in #((( |
2999 |
|
|
'') as_dir=./ ;; |
3000 |
|
|
*/) ;; |
3001 |
|
|
*) as_dir=$as_dir/ ;; |
3002 |
|
|
esac |
3003 |
|
|
as_found=: |
3004 |
|
|
|
3005 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
3006 |
|
|
ac_aux_dir_found=yes |
3007 |
|
|
ac_install_sh= |
3008 |
|
|
for ac_aux in $ac_aux_files |
3009 |
|
|
do |
3010 |
|
|
# As a special case, if "install-sh" is required, that requirement |
3011 |
|
|
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
3012 |
|
|
# and $ac_install_sh is set appropriately for whichever one is found. |
3013 |
|
|
if test x"$ac_aux" = x"install-sh" |
3014 |
|
|
then |
3015 |
|
|
if test -f "${as_dir}install-sh"; then |
3016 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
3017 |
|
|
ac_install_sh="${as_dir}install-sh -c" |
3018 |
|
|
elif test -f "${as_dir}install.sh"; then |
3019 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
3020 |
|
|
ac_install_sh="${as_dir}install.sh -c" |
3021 |
|
|
elif test -f "${as_dir}shtool"; then |
3022 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
3023 |
|
|
ac_install_sh="${as_dir}shtool install -c" |
3024 |
|
|
else |
3025 |
|
|
ac_aux_dir_found=no |
3026 |
|
|
if $ac_first_candidate; then |
3027 |
|
|
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
3028 |
|
|
else |
3029 |
|
|
break |
3030 |
|
|
fi |
3031 |
|
|
fi |
3032 |
|
|
else |
3033 |
|
|
if test -f "${as_dir}${ac_aux}"; then |
3034 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
3035 |
|
|
else |
3036 |
|
|
ac_aux_dir_found=no |
3037 |
|
|
if $ac_first_candidate; then |
3038 |
|
|
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
3039 |
|
|
else |
3040 |
|
|
break |
3041 |
|
|
fi |
3042 |
|
|
fi |
3043 |
|
|
fi |
3044 |
|
|
done |
3045 |
|
|
if test "$ac_aux_dir_found" = yes; then |
3046 |
|
|
ac_aux_dir="$as_dir" |
3047 |
|
|
break |
3048 |
|
|
fi |
3049 |
|
|
ac_first_candidate=false |
3050 |
|
|
|
3051 |
|
|
as_found=false |
3052 |
|
|
done |
3053 |
|
|
IFS=$as_save_IFS |
3054 |
|
|
if $as_found |
3055 |
|
|
then : |
3056 |
|
|
|
3057 |
|
|
else $as_nop |
3058 |
|
|
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
3059 |
|
|
fi |
3060 |
|
|
|
3061 |
|
|
|
3062 |
|
|
# These three variables are undocumented and unsupported, |
3063 |
|
|
# and are intended to be withdrawn in a future Autoconf release. |
3064 |
|
|
# They can cause serious problems if a builder's source tree is in a directory |
3065 |
|
|
# whose full name contains unusual characters. |
3066 |
|
|
if test -f "${ac_aux_dir}config.guess"; then |
3067 |
|
|
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
3068 |
|
|
fi |
3069 |
|
|
if test -f "${ac_aux_dir}config.sub"; then |
3070 |
|
|
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
3071 |
|
|
fi |
3072 |
|
|
if test -f "$ac_aux_dir/configure"; then |
3073 |
|
|
ac_configure="$SHELL ${ac_aux_dir}configure" |
3074 |
|
|
fi |
3075 |
|
|
|
3076 |
sf-exg |
1.132 |
# Check that the precious variables saved in the cache have kept the same |
3077 |
|
|
# value. |
3078 |
|
|
ac_cache_corrupted=false |
3079 |
|
|
for ac_var in $ac_precious_vars; do |
3080 |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
3081 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set |
3082 |
|
|
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3083 |
|
|
eval ac_new_val=\$ac_env_${ac_var}_value |
3084 |
|
|
case $ac_old_set,$ac_new_set in |
3085 |
|
|
set,) |
3086 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3087 |
|
|
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3088 |
sf-exg |
1.132 |
ac_cache_corrupted=: ;; |
3089 |
|
|
,set) |
3090 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
3091 |
|
|
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3092 |
sf-exg |
1.132 |
ac_cache_corrupted=: ;; |
3093 |
|
|
,);; |
3094 |
|
|
*) |
3095 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
3096 |
|
|
# differences in whitespace do not lead to failure. |
3097 |
|
|
ac_old_val_w=`echo x $ac_old_val` |
3098 |
|
|
ac_new_val_w=`echo x $ac_new_val` |
3099 |
|
|
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
3100 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
3101 |
|
|
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3102 |
sf-exg |
1.132 |
ac_cache_corrupted=: |
3103 |
|
|
else |
3104 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
3105 |
|
|
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
3106 |
sf-exg |
1.132 |
eval $ac_var=\$ac_old_val |
3107 |
|
|
fi |
3108 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
3109 |
|
|
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
3110 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
3111 |
|
|
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
3112 |
sf-exg |
1.132 |
fi;; |
3113 |
|
|
esac |
3114 |
|
|
# Pass precious variables to config.status. |
3115 |
|
|
if test "$ac_new_set" = set; then |
3116 |
|
|
case $ac_new_val in |
3117 |
root |
1.166 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3118 |
sf-exg |
1.132 |
*) ac_arg=$ac_var=$ac_new_val ;; |
3119 |
|
|
esac |
3120 |
|
|
case " $ac_configure_args " in |
3121 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
3122 |
|
|
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3123 |
|
|
esac |
3124 |
ayin |
1.108 |
fi |
3125 |
sf-exg |
1.132 |
done |
3126 |
|
|
if $ac_cache_corrupted; then |
3127 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3128 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3129 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
3130 |
|
|
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
3131 |
|
|
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
3132 |
|
|
and start over" "$LINENO" 5 |
3133 |
sf-exg |
1.132 |
fi |
3134 |
|
|
## -------------------- ## |
3135 |
|
|
## Main body of script. ## |
3136 |
|
|
## -------------------- ## |
3137 |
|
|
|
3138 |
|
|
ac_ext=c |
3139 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
3140 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3141 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3142 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3143 |
|
|
|
3144 |
|
|
|
3145 |
|
|
|
3146 |
ayin |
1.106 |
|
3147 |
sf-exg |
1.132 |
ac_config_headers="$ac_config_headers config.h:config.h.in" |
3148 |
ayin |
1.108 |
|
3149 |
|
|
|
3150 |
ayin |
1.106 |
|
3151 |
|
|
|
3152 |
|
|
|
3153 |
root |
1.166 |
# Make sure we can run config.sub. |
3154 |
|
|
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
3155 |
|
|
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
3156 |
|
|
|
3157 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3158 |
|
|
printf %s "checking build system type... " >&6; } |
3159 |
|
|
if test ${ac_cv_build+y} |
3160 |
|
|
then : |
3161 |
|
|
printf %s "(cached) " >&6 |
3162 |
|
|
else $as_nop |
3163 |
sf-exg |
1.132 |
ac_build_alias=$build_alias |
3164 |
|
|
test "x$ac_build_alias" = x && |
3165 |
root |
1.166 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
3166 |
sf-exg |
1.132 |
test "x$ac_build_alias" = x && |
3167 |
root |
1.137 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3168 |
root |
1.166 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
3169 |
|
|
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
3170 |
ayin |
1.106 |
|
3171 |
sf-exg |
1.132 |
fi |
3172 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3173 |
|
|
printf "%s\n" "$ac_cv_build" >&6; } |
3174 |
sf-exg |
1.132 |
case $ac_cv_build in |
3175 |
|
|
*-*-*) ;; |
3176 |
root |
1.158 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3177 |
ayin |
1.108 |
esac |
3178 |
sf-exg |
1.132 |
build=$ac_cv_build |
3179 |
|
|
ac_save_IFS=$IFS; IFS='-' |
3180 |
|
|
set x $ac_cv_build |
3181 |
|
|
shift |
3182 |
|
|
build_cpu=$1 |
3183 |
|
|
build_vendor=$2 |
3184 |
|
|
shift; shift |
3185 |
|
|
# Remember, the first character of IFS is used to create $*, |
3186 |
|
|
# except with old shells: |
3187 |
|
|
build_os=$* |
3188 |
|
|
IFS=$ac_save_IFS |
3189 |
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3190 |
root |
1.80 |
|
3191 |
root |
1.84 |
|
3192 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3193 |
|
|
printf %s "checking host system type... " >&6; } |
3194 |
|
|
if test ${ac_cv_host+y} |
3195 |
|
|
then : |
3196 |
|
|
printf %s "(cached) " >&6 |
3197 |
|
|
else $as_nop |
3198 |
sf-exg |
1.132 |
if test "x$host_alias" = x; then |
3199 |
|
|
ac_cv_host=$ac_cv_build |
3200 |
|
|
else |
3201 |
root |
1.166 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
3202 |
|
|
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
3203 |
sf-exg |
1.132 |
fi |
3204 |
root |
1.84 |
|
3205 |
sf-exg |
1.132 |
fi |
3206 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3207 |
|
|
printf "%s\n" "$ac_cv_host" >&6; } |
3208 |
sf-exg |
1.132 |
case $ac_cv_host in |
3209 |
|
|
*-*-*) ;; |
3210 |
root |
1.158 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3211 |
sf-exg |
1.132 |
esac |
3212 |
|
|
host=$ac_cv_host |
3213 |
|
|
ac_save_IFS=$IFS; IFS='-' |
3214 |
|
|
set x $ac_cv_host |
3215 |
|
|
shift |
3216 |
|
|
host_cpu=$1 |
3217 |
|
|
host_vendor=$2 |
3218 |
|
|
shift; shift |
3219 |
|
|
# Remember, the first character of IFS is used to create $*, |
3220 |
|
|
# except with old shells: |
3221 |
|
|
host_os=$* |
3222 |
|
|
IFS=$ac_save_IFS |
3223 |
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3224 |
root |
1.84 |
|
3225 |
ayin |
1.108 |
|
3226 |
root |
1.80 |
|
3227 |
sf-exg |
1.151 |
VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3228 |
|
|
DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3229 |
root |
1.80 |
|
3230 |
sf-exg |
1.132 |
echo "" |
3231 |
|
|
echo "configuring for rxvt $VERSION" |
3232 |
|
|
echo "" |
3233 |
root |
1.83 |
|
3234 |
sf-exg |
1.132 |
orig_CXXFLAGS="$CXXFLAGS" |
3235 |
root |
1.83 |
|
3236 |
root |
1.166 |
|
3237 |
|
|
|
3238 |
|
|
|
3239 |
|
|
|
3240 |
|
|
|
3241 |
|
|
|
3242 |
|
|
|
3243 |
|
|
|
3244 |
|
|
|
3245 |
sf-exg |
1.132 |
ac_ext=c |
3246 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
3247 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3248 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3249 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3250 |
|
|
if test -n "$ac_tool_prefix"; then |
3251 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3252 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3253 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3254 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3255 |
|
|
if test ${ac_cv_prog_CC+y} |
3256 |
|
|
then : |
3257 |
|
|
printf %s "(cached) " >&6 |
3258 |
|
|
else $as_nop |
3259 |
sf-exg |
1.132 |
if test -n "$CC"; then |
3260 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
3261 |
root |
1.80 |
else |
3262 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3263 |
|
|
for as_dir in $PATH |
3264 |
|
|
do |
3265 |
|
|
IFS=$as_save_IFS |
3266 |
root |
1.166 |
case $as_dir in #((( |
3267 |
|
|
'') as_dir=./ ;; |
3268 |
|
|
*/) ;; |
3269 |
|
|
*) as_dir=$as_dir/ ;; |
3270 |
|
|
esac |
3271 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3272 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3273 |
sf-exg |
1.132 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3274 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3275 |
sf-exg |
1.132 |
break 2 |
3276 |
|
|
fi |
3277 |
|
|
done |
3278 |
|
|
done |
3279 |
|
|
IFS=$as_save_IFS |
3280 |
root |
1.80 |
|
3281 |
|
|
fi |
3282 |
sf-exg |
1.132 |
fi |
3283 |
|
|
CC=$ac_cv_prog_CC |
3284 |
|
|
if test -n "$CC"; then |
3285 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3286 |
|
|
printf "%s\n" "$CC" >&6; } |
3287 |
sf-exg |
1.132 |
else |
3288 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3289 |
|
|
printf "%s\n" "no" >&6; } |
3290 |
root |
1.80 |
fi |
3291 |
|
|
|
3292 |
|
|
|
3293 |
sf-exg |
1.132 |
fi |
3294 |
|
|
if test -z "$ac_cv_prog_CC"; then |
3295 |
|
|
ac_ct_CC=$CC |
3296 |
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
3297 |
|
|
set dummy gcc; ac_word=$2 |
3298 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3299 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3300 |
|
|
if test ${ac_cv_prog_ac_ct_CC+y} |
3301 |
|
|
then : |
3302 |
|
|
printf %s "(cached) " >&6 |
3303 |
|
|
else $as_nop |
3304 |
sf-exg |
1.132 |
if test -n "$ac_ct_CC"; then |
3305 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3306 |
|
|
else |
3307 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3308 |
|
|
for as_dir in $PATH |
3309 |
|
|
do |
3310 |
|
|
IFS=$as_save_IFS |
3311 |
root |
1.166 |
case $as_dir in #((( |
3312 |
|
|
'') as_dir=./ ;; |
3313 |
|
|
*/) ;; |
3314 |
|
|
*) as_dir=$as_dir/ ;; |
3315 |
|
|
esac |
3316 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3317 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3318 |
sf-exg |
1.132 |
ac_cv_prog_ac_ct_CC="gcc" |
3319 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3320 |
sf-exg |
1.132 |
break 2 |
3321 |
|
|
fi |
3322 |
|
|
done |
3323 |
|
|
done |
3324 |
|
|
IFS=$as_save_IFS |
3325 |
pcg |
1.11 |
|
3326 |
sf-exg |
1.132 |
fi |
3327 |
|
|
fi |
3328 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3329 |
|
|
if test -n "$ac_ct_CC"; then |
3330 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3331 |
|
|
printf "%s\n" "$ac_ct_CC" >&6; } |
3332 |
root |
1.57 |
else |
3333 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3334 |
|
|
printf "%s\n" "no" >&6; } |
3335 |
sf-exg |
1.132 |
fi |
3336 |
root |
1.57 |
|
3337 |
sf-exg |
1.132 |
if test "x$ac_ct_CC" = x; then |
3338 |
|
|
CC="" |
3339 |
|
|
else |
3340 |
|
|
case $cross_compiling:$ac_tool_warned in |
3341 |
|
|
yes:) |
3342 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3343 |
|
|
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3344 |
sf-exg |
1.132 |
ac_tool_warned=yes ;; |
3345 |
ayin |
1.108 |
esac |
3346 |
sf-exg |
1.132 |
CC=$ac_ct_CC |
3347 |
|
|
fi |
3348 |
root |
1.57 |
else |
3349 |
sf-exg |
1.132 |
CC="$ac_cv_prog_CC" |
3350 |
root |
1.57 |
fi |
3351 |
ayin |
1.108 |
|
3352 |
sf-exg |
1.132 |
if test -z "$CC"; then |
3353 |
|
|
if test -n "$ac_tool_prefix"; then |
3354 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3355 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3356 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3357 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3358 |
|
|
if test ${ac_cv_prog_CC+y} |
3359 |
|
|
then : |
3360 |
|
|
printf %s "(cached) " >&6 |
3361 |
|
|
else $as_nop |
3362 |
sf-exg |
1.132 |
if test -n "$CC"; then |
3363 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
3364 |
pcg |
1.25 |
else |
3365 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3366 |
|
|
for as_dir in $PATH |
3367 |
|
|
do |
3368 |
|
|
IFS=$as_save_IFS |
3369 |
root |
1.166 |
case $as_dir in #((( |
3370 |
|
|
'') as_dir=./ ;; |
3371 |
|
|
*/) ;; |
3372 |
|
|
*) as_dir=$as_dir/ ;; |
3373 |
|
|
esac |
3374 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3375 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3376 |
sf-exg |
1.132 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3377 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3378 |
sf-exg |
1.132 |
break 2 |
3379 |
|
|
fi |
3380 |
|
|
done |
3381 |
|
|
done |
3382 |
|
|
IFS=$as_save_IFS |
3383 |
pcg |
1.25 |
|
3384 |
sf-exg |
1.132 |
fi |
3385 |
|
|
fi |
3386 |
|
|
CC=$ac_cv_prog_CC |
3387 |
|
|
if test -n "$CC"; then |
3388 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3389 |
|
|
printf "%s\n" "$CC" >&6; } |
3390 |
pcg |
1.25 |
else |
3391 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3392 |
|
|
printf "%s\n" "no" >&6; } |
3393 |
sf-exg |
1.132 |
fi |
3394 |
|
|
|
3395 |
pcg |
1.25 |
|
3396 |
sf-exg |
1.132 |
fi |
3397 |
pcg |
1.25 |
fi |
3398 |
sf-exg |
1.132 |
if test -z "$CC"; then |
3399 |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
3400 |
|
|
set dummy cc; ac_word=$2 |
3401 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3402 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3403 |
|
|
if test ${ac_cv_prog_CC+y} |
3404 |
|
|
then : |
3405 |
|
|
printf %s "(cached) " >&6 |
3406 |
|
|
else $as_nop |
3407 |
sf-exg |
1.132 |
if test -n "$CC"; then |
3408 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
3409 |
|
|
else |
3410 |
|
|
ac_prog_rejected=no |
3411 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3412 |
|
|
for as_dir in $PATH |
3413 |
|
|
do |
3414 |
|
|
IFS=$as_save_IFS |
3415 |
root |
1.166 |
case $as_dir in #((( |
3416 |
|
|
'') as_dir=./ ;; |
3417 |
|
|
*/) ;; |
3418 |
|
|
*) as_dir=$as_dir/ ;; |
3419 |
|
|
esac |
3420 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3421 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3422 |
|
|
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3423 |
sf-exg |
1.132 |
ac_prog_rejected=yes |
3424 |
|
|
continue |
3425 |
|
|
fi |
3426 |
|
|
ac_cv_prog_CC="cc" |
3427 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3428 |
sf-exg |
1.132 |
break 2 |
3429 |
|
|
fi |
3430 |
|
|
done |
3431 |
|
|
done |
3432 |
|
|
IFS=$as_save_IFS |
3433 |
ayin |
1.108 |
|
3434 |
sf-exg |
1.132 |
if test $ac_prog_rejected = yes; then |
3435 |
|
|
# We found a bogon in the path, so make sure we never use it. |
3436 |
|
|
set dummy $ac_cv_prog_CC |
3437 |
|
|
shift |
3438 |
|
|
if test $# != 0; then |
3439 |
|
|
# We chose a different compiler from the bogus one. |
3440 |
|
|
# However, it has the same basename, so the bogon will be chosen |
3441 |
|
|
# first if we set CC to just the basename; use the full file name. |
3442 |
|
|
shift |
3443 |
root |
1.166 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
3444 |
sf-exg |
1.132 |
fi |
3445 |
|
|
fi |
3446 |
pcg |
1.25 |
fi |
3447 |
|
|
fi |
3448 |
sf-exg |
1.132 |
CC=$ac_cv_prog_CC |
3449 |
|
|
if test -n "$CC"; then |
3450 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3451 |
|
|
printf "%s\n" "$CC" >&6; } |
3452 |
sf-exg |
1.132 |
else |
3453 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3454 |
|
|
printf "%s\n" "no" >&6; } |
3455 |
root |
1.57 |
fi |
3456 |
|
|
|
3457 |
|
|
|
3458 |
sf-exg |
1.132 |
fi |
3459 |
|
|
if test -z "$CC"; then |
3460 |
|
|
if test -n "$ac_tool_prefix"; then |
3461 |
|
|
for ac_prog in cl.exe |
3462 |
|
|
do |
3463 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3464 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3465 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3466 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3467 |
|
|
if test ${ac_cv_prog_CC+y} |
3468 |
|
|
then : |
3469 |
|
|
printf %s "(cached) " >&6 |
3470 |
|
|
else $as_nop |
3471 |
sf-exg |
1.132 |
if test -n "$CC"; then |
3472 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
3473 |
root |
1.57 |
else |
3474 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3475 |
|
|
for as_dir in $PATH |
3476 |
|
|
do |
3477 |
|
|
IFS=$as_save_IFS |
3478 |
root |
1.166 |
case $as_dir in #((( |
3479 |
|
|
'') as_dir=./ ;; |
3480 |
|
|
*/) ;; |
3481 |
|
|
*) as_dir=$as_dir/ ;; |
3482 |
|
|
esac |
3483 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3484 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3485 |
sf-exg |
1.132 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3486 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3487 |
sf-exg |
1.132 |
break 2 |
3488 |
|
|
fi |
3489 |
|
|
done |
3490 |
|
|
done |
3491 |
|
|
IFS=$as_save_IFS |
3492 |
root |
1.57 |
|
3493 |
sf-exg |
1.132 |
fi |
3494 |
|
|
fi |
3495 |
|
|
CC=$ac_cv_prog_CC |
3496 |
|
|
if test -n "$CC"; then |
3497 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3498 |
|
|
printf "%s\n" "$CC" >&6; } |
3499 |
sf-exg |
1.132 |
else |
3500 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3501 |
|
|
printf "%s\n" "no" >&6; } |
3502 |
sf-exg |
1.132 |
fi |
3503 |
root |
1.57 |
|
3504 |
|
|
|
3505 |
sf-exg |
1.132 |
test -n "$CC" && break |
3506 |
|
|
done |
3507 |
|
|
fi |
3508 |
|
|
if test -z "$CC"; then |
3509 |
|
|
ac_ct_CC=$CC |
3510 |
|
|
for ac_prog in cl.exe |
3511 |
|
|
do |
3512 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3513 |
|
|
set dummy $ac_prog; ac_word=$2 |
3514 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3515 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3516 |
|
|
if test ${ac_cv_prog_ac_ct_CC+y} |
3517 |
|
|
then : |
3518 |
|
|
printf %s "(cached) " >&6 |
3519 |
|
|
else $as_nop |
3520 |
sf-exg |
1.132 |
if test -n "$ac_ct_CC"; then |
3521 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3522 |
root |
1.57 |
else |
3523 |
sf-exg |
1.132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3524 |
|
|
for as_dir in $PATH |
3525 |
|
|
do |
3526 |
|
|
IFS=$as_save_IFS |
3527 |
root |
1.166 |
case $as_dir in #((( |
3528 |
|
|
'') as_dir=./ ;; |
3529 |
|
|
*/) ;; |
3530 |
|
|
*) as_dir=$as_dir/ ;; |
3531 |
|
|
esac |
3532 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3533 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3534 |
sf-exg |
1.132 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3535 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3536 |
sf-exg |
1.132 |
break 2 |
3537 |
|
|
fi |
3538 |
|
|
done |
3539 |
|
|
done |
3540 |
|
|
IFS=$as_save_IFS |
3541 |
pcg |
1.25 |
|
3542 |
root |
1.57 |
fi |
3543 |
|
|
fi |
3544 |
sf-exg |
1.132 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3545 |
|
|
if test -n "$ac_ct_CC"; then |
3546 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3547 |
|
|
printf "%s\n" "$ac_ct_CC" >&6; } |
3548 |
root |
1.57 |
else |
3549 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3550 |
|
|
printf "%s\n" "no" >&6; } |
3551 |
sf-exg |
1.132 |
fi |
3552 |
|
|
|
3553 |
|
|
|
3554 |
|
|
test -n "$ac_ct_CC" && break |
3555 |
|
|
done |
3556 |
pcg |
1.25 |
|
3557 |
sf-exg |
1.132 |
if test "x$ac_ct_CC" = x; then |
3558 |
|
|
CC="" |
3559 |
|
|
else |
3560 |
|
|
case $cross_compiling:$ac_tool_warned in |
3561 |
|
|
yes:) |
3562 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3563 |
|
|
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3564 |
|
|
ac_tool_warned=yes ;; |
3565 |
|
|
esac |
3566 |
|
|
CC=$ac_ct_CC |
3567 |
|
|
fi |
3568 |
|
|
fi |
3569 |
|
|
|
3570 |
|
|
fi |
3571 |
|
|
if test -z "$CC"; then |
3572 |
|
|
if test -n "$ac_tool_prefix"; then |
3573 |
|
|
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
3574 |
|
|
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
3575 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3576 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3577 |
|
|
if test ${ac_cv_prog_CC+y} |
3578 |
|
|
then : |
3579 |
|
|
printf %s "(cached) " >&6 |
3580 |
|
|
else $as_nop |
3581 |
|
|
if test -n "$CC"; then |
3582 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
3583 |
|
|
else |
3584 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3585 |
|
|
for as_dir in $PATH |
3586 |
|
|
do |
3587 |
|
|
IFS=$as_save_IFS |
3588 |
|
|
case $as_dir in #((( |
3589 |
|
|
'') as_dir=./ ;; |
3590 |
|
|
*/) ;; |
3591 |
|
|
*) as_dir=$as_dir/ ;; |
3592 |
|
|
esac |
3593 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3594 |
|
|
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3595 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}clang" |
3596 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3597 |
|
|
break 2 |
3598 |
|
|
fi |
3599 |
|
|
done |
3600 |
|
|
done |
3601 |
|
|
IFS=$as_save_IFS |
3602 |
|
|
|
3603 |
|
|
fi |
3604 |
|
|
fi |
3605 |
|
|
CC=$ac_cv_prog_CC |
3606 |
|
|
if test -n "$CC"; then |
3607 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3608 |
|
|
printf "%s\n" "$CC" >&6; } |
3609 |
|
|
else |
3610 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3611 |
|
|
printf "%s\n" "no" >&6; } |
3612 |
|
|
fi |
3613 |
|
|
|
3614 |
|
|
|
3615 |
|
|
fi |
3616 |
|
|
if test -z "$ac_cv_prog_CC"; then |
3617 |
|
|
ac_ct_CC=$CC |
3618 |
|
|
# Extract the first word of "clang", so it can be a program name with args. |
3619 |
|
|
set dummy clang; ac_word=$2 |
3620 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3621 |
|
|
printf %s "checking for $ac_word... " >&6; } |
3622 |
|
|
if test ${ac_cv_prog_ac_ct_CC+y} |
3623 |
|
|
then : |
3624 |
|
|
printf %s "(cached) " >&6 |
3625 |
|
|
else $as_nop |
3626 |
|
|
if test -n "$ac_ct_CC"; then |
3627 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3628 |
|
|
else |
3629 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3630 |
|
|
for as_dir in $PATH |
3631 |
|
|
do |
3632 |
|
|
IFS=$as_save_IFS |
3633 |
|
|
case $as_dir in #((( |
3634 |
|
|
'') as_dir=./ ;; |
3635 |
|
|
*/) ;; |
3636 |
|
|
*) as_dir=$as_dir/ ;; |
3637 |
|
|
esac |
3638 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3639 |
|
|
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3640 |
|
|
ac_cv_prog_ac_ct_CC="clang" |
3641 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3642 |
|
|
break 2 |
3643 |
|
|
fi |
3644 |
|
|
done |
3645 |
|
|
done |
3646 |
|
|
IFS=$as_save_IFS |
3647 |
|
|
|
3648 |
|
|
fi |
3649 |
|
|
fi |
3650 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3651 |
|
|
if test -n "$ac_ct_CC"; then |
3652 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3653 |
|
|
printf "%s\n" "$ac_ct_CC" >&6; } |
3654 |
|
|
else |
3655 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3656 |
|
|
printf "%s\n" "no" >&6; } |
3657 |
|
|
fi |
3658 |
|
|
|
3659 |
|
|
if test "x$ac_ct_CC" = x; then |
3660 |
|
|
CC="" |
3661 |
|
|
else |
3662 |
|
|
case $cross_compiling:$ac_tool_warned in |
3663 |
|
|
yes:) |
3664 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3665 |
|
|
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3666 |
sf-exg |
1.132 |
ac_tool_warned=yes ;; |
3667 |
ayin |
1.108 |
esac |
3668 |
sf-exg |
1.132 |
CC=$ac_ct_CC |
3669 |
|
|
fi |
3670 |
root |
1.166 |
else |
3671 |
|
|
CC="$ac_cv_prog_CC" |
3672 |
pcg |
1.25 |
fi |
3673 |
ayin |
1.108 |
|
3674 |
pcg |
1.25 |
fi |
3675 |
|
|
|
3676 |
root |
1.57 |
|
3677 |
root |
1.166 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3678 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3679 |
root |
1.137 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3680 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
3681 |
root |
1.57 |
|
3682 |
sf-exg |
1.132 |
# Provide some information about the compiler. |
3683 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3684 |
sf-exg |
1.132 |
set X $ac_compile |
3685 |
|
|
ac_compiler=$2 |
3686 |
root |
1.166 |
for ac_option in --version -v -V -qversion -version; do |
3687 |
sf-exg |
1.132 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3688 |
|
|
case "(($ac_try" in |
3689 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3690 |
|
|
*) ac_try_echo=$ac_try;; |
3691 |
|
|
esac |
3692 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3693 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3694 |
sf-exg |
1.132 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3695 |
|
|
ac_status=$? |
3696 |
|
|
if test -s conftest.err; then |
3697 |
|
|
sed '10a\ |
3698 |
|
|
... rest of stderr output deleted ... |
3699 |
|
|
10q' conftest.err >conftest.er1 |
3700 |
|
|
cat conftest.er1 >&5 |
3701 |
|
|
fi |
3702 |
|
|
rm -f conftest.er1 conftest.err |
3703 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3704 |
sf-exg |
1.132 |
test $ac_status = 0; } |
3705 |
|
|
done |
3706 |
root |
1.57 |
|
3707 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3708 |
|
|
/* end confdefs.h. */ |
3709 |
root |
1.57 |
|
3710 |
|
|
int |
3711 |
root |
1.166 |
main (void) |
3712 |
root |
1.57 |
{ |
3713 |
sf-exg |
1.132 |
|
3714 |
root |
1.57 |
; |
3715 |
|
|
return 0; |
3716 |
|
|
} |
3717 |
|
|
_ACEOF |
3718 |
sf-exg |
1.132 |
ac_clean_files_save=$ac_clean_files |
3719 |
|
|
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3720 |
|
|
# Try to create an executable without -o first, disregard a.out. |
3721 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition |
3722 |
|
|
# of exeext. |
3723 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3724 |
|
|
printf %s "checking whether the C compiler works... " >&6; } |
3725 |
|
|
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3726 |
sf-exg |
1.132 |
|
3727 |
|
|
# The possible output files: |
3728 |
|
|
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3729 |
|
|
|
3730 |
|
|
ac_rmfiles= |
3731 |
|
|
for ac_file in $ac_files |
3732 |
|
|
do |
3733 |
|
|
case $ac_file in |
3734 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3735 |
|
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3736 |
|
|
esac |
3737 |
|
|
done |
3738 |
|
|
rm -f $ac_rmfiles |
3739 |
|
|
|
3740 |
|
|
if { { ac_try="$ac_link_default" |
3741 |
ayin |
1.108 |
case "(($ac_try" in |
3742 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3743 |
|
|
*) ac_try_echo=$ac_try;; |
3744 |
|
|
esac |
3745 |
sf-exg |
1.132 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3746 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3747 |
sf-exg |
1.132 |
(eval "$ac_link_default") 2>&5 |
3748 |
root |
1.57 |
ac_status=$? |
3749 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3750 |
|
|
test $ac_status = 0; } |
3751 |
|
|
then : |
3752 |
sf-exg |
1.132 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3753 |
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3754 |
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3755 |
|
|
# so that the user can short-circuit this test for compilers unknown to |
3756 |
|
|
# Autoconf. |
3757 |
|
|
for ac_file in $ac_files '' |
3758 |
|
|
do |
3759 |
|
|
test -f "$ac_file" || continue |
3760 |
|
|
case $ac_file in |
3761 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3762 |
|
|
;; |
3763 |
|
|
[ab].out ) |
3764 |
|
|
# We found the default executable, but exeext='' is most |
3765 |
|
|
# certainly right. |
3766 |
|
|
break;; |
3767 |
|
|
*.* ) |
3768 |
root |
1.166 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
3769 |
sf-exg |
1.132 |
then :; else |
3770 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3771 |
|
|
fi |
3772 |
|
|
# We set ac_cv_exeext here because the later test for it is not |
3773 |
|
|
# safe: cross compilers may not add the suffix if given an `-o' |
3774 |
|
|
# argument, so we may need to know it at that point already. |
3775 |
|
|
# Even if this section looks crufty: it has the advantage of |
3776 |
|
|
# actually working. |
3777 |
|
|
break;; |
3778 |
|
|
* ) |
3779 |
|
|
break;; |
3780 |
|
|
esac |
3781 |
|
|
done |
3782 |
|
|
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3783 |
|
|
|
3784 |
root |
1.166 |
else $as_nop |
3785 |
sf-exg |
1.132 |
ac_file='' |
3786 |
root |
1.57 |
fi |
3787 |
root |
1.166 |
if test -z "$ac_file" |
3788 |
|
|
then : |
3789 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3790 |
|
|
printf "%s\n" "no" >&6; } |
3791 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
3792 |
sf-exg |
1.132 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3793 |
|
|
|
3794 |
root |
1.166 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3795 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3796 |
root |
1.137 |
as_fn_error 77 "C compiler cannot create executables |
3797 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
3798 |
root |
1.166 |
else $as_nop |
3799 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3800 |
|
|
printf "%s\n" "yes" >&6; } |
3801 |
|
|
fi |
3802 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3803 |
|
|
printf %s "checking for C compiler default output file name... " >&6; } |
3804 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3805 |
|
|
printf "%s\n" "$ac_file" >&6; } |
3806 |
sf-exg |
1.132 |
ac_exeext=$ac_cv_exeext |
3807 |
ayin |
1.108 |
|
3808 |
sf-exg |
1.132 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3809 |
|
|
ac_clean_files=$ac_clean_files_save |
3810 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3811 |
|
|
printf %s "checking for suffix of executables... " >&6; } |
3812 |
sf-exg |
1.132 |
if { { ac_try="$ac_link" |
3813 |
|
|
case "(($ac_try" in |
3814 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3815 |
|
|
*) ac_try_echo=$ac_try;; |
3816 |
|
|
esac |
3817 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3818 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3819 |
sf-exg |
1.132 |
(eval "$ac_link") 2>&5 |
3820 |
|
|
ac_status=$? |
3821 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3822 |
|
|
test $ac_status = 0; } |
3823 |
|
|
then : |
3824 |
sf-exg |
1.132 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3825 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3826 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3827 |
|
|
# `rm'. |
3828 |
|
|
for ac_file in conftest.exe conftest conftest.*; do |
3829 |
|
|
test -f "$ac_file" || continue |
3830 |
|
|
case $ac_file in |
3831 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3832 |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3833 |
|
|
break;; |
3834 |
|
|
* ) break;; |
3835 |
|
|
esac |
3836 |
|
|
done |
3837 |
root |
1.166 |
else $as_nop |
3838 |
|
|
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3839 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3840 |
root |
1.137 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3841 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
3842 |
sf-exg |
1.132 |
fi |
3843 |
|
|
rm -f conftest conftest$ac_cv_exeext |
3844 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3845 |
|
|
printf "%s\n" "$ac_cv_exeext" >&6; } |
3846 |
sf-exg |
1.132 |
|
3847 |
|
|
rm -f conftest.$ac_ext |
3848 |
|
|
EXEEXT=$ac_cv_exeext |
3849 |
|
|
ac_exeext=$EXEEXT |
3850 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3851 |
pcg |
1.25 |
/* end confdefs.h. */ |
3852 |
sf-exg |
1.132 |
#include <stdio.h> |
3853 |
pcg |
1.25 |
int |
3854 |
root |
1.166 |
main (void) |
3855 |
pcg |
1.25 |
{ |
3856 |
sf-exg |
1.132 |
FILE *f = fopen ("conftest.out", "w"); |
3857 |
|
|
return ferror (f) || fclose (f) != 0; |
3858 |
|
|
|
3859 |
pcg |
1.25 |
; |
3860 |
|
|
return 0; |
3861 |
|
|
} |
3862 |
|
|
_ACEOF |
3863 |
sf-exg |
1.132 |
ac_clean_files="$ac_clean_files conftest.out" |
3864 |
|
|
# Check that the compiler produces executables we can run. If not, either |
3865 |
|
|
# the compiler is broken, or we cross compile. |
3866 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3867 |
|
|
printf %s "checking whether we are cross compiling... " >&6; } |
3868 |
sf-exg |
1.132 |
if test "$cross_compiling" != yes; then |
3869 |
|
|
{ { ac_try="$ac_link" |
3870 |
ayin |
1.108 |
case "(($ac_try" in |
3871 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3872 |
|
|
*) ac_try_echo=$ac_try;; |
3873 |
|
|
esac |
3874 |
sf-exg |
1.132 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3875 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3876 |
sf-exg |
1.132 |
(eval "$ac_link") 2>&5 |
3877 |
|
|
ac_status=$? |
3878 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3879 |
sf-exg |
1.132 |
test $ac_status = 0; } |
3880 |
|
|
if { ac_try='./conftest$ac_cv_exeext' |
3881 |
|
|
{ { case "(($ac_try" in |
3882 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3883 |
|
|
*) ac_try_echo=$ac_try;; |
3884 |
|
|
esac |
3885 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3886 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3887 |
sf-exg |
1.132 |
(eval "$ac_try") 2>&5 |
3888 |
pcg |
1.25 |
ac_status=$? |
3889 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3890 |
sf-exg |
1.132 |
test $ac_status = 0; }; }; then |
3891 |
|
|
cross_compiling=no |
3892 |
|
|
else |
3893 |
|
|
if test "$cross_compiling" = maybe; then |
3894 |
|
|
cross_compiling=yes |
3895 |
|
|
else |
3896 |
root |
1.166 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3897 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3898 |
|
|
as_fn_error 77 "cannot run C compiled programs. |
3899 |
sf-exg |
1.132 |
If you meant to cross compile, use \`--host'. |
3900 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
3901 |
root |
1.54 |
fi |
3902 |
root |
1.130 |
fi |
3903 |
|
|
fi |
3904 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3905 |
|
|
printf "%s\n" "$cross_compiling" >&6; } |
3906 |
root |
1.130 |
|
3907 |
sf-exg |
1.132 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3908 |
|
|
ac_clean_files=$ac_clean_files_save |
3909 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3910 |
|
|
printf %s "checking for suffix of object files... " >&6; } |
3911 |
|
|
if test ${ac_cv_objext+y} |
3912 |
|
|
then : |
3913 |
|
|
printf %s "(cached) " >&6 |
3914 |
|
|
else $as_nop |
3915 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3916 |
ayin |
1.114 |
/* end confdefs.h. */ |
3917 |
|
|
|
3918 |
|
|
int |
3919 |
root |
1.166 |
main (void) |
3920 |
ayin |
1.114 |
{ |
3921 |
|
|
|
3922 |
|
|
; |
3923 |
|
|
return 0; |
3924 |
|
|
} |
3925 |
|
|
_ACEOF |
3926 |
sf-exg |
1.132 |
rm -f conftest.o conftest.obj |
3927 |
|
|
if { { ac_try="$ac_compile" |
3928 |
ayin |
1.114 |
case "(($ac_try" in |
3929 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3930 |
|
|
*) ac_try_echo=$ac_try;; |
3931 |
|
|
esac |
3932 |
sf-exg |
1.132 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3933 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
3934 |
sf-exg |
1.132 |
(eval "$ac_compile") 2>&5 |
3935 |
ayin |
1.114 |
ac_status=$? |
3936 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3937 |
|
|
test $ac_status = 0; } |
3938 |
|
|
then : |
3939 |
sf-exg |
1.132 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3940 |
|
|
test -f "$ac_file" || continue; |
3941 |
|
|
case $ac_file in |
3942 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3943 |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3944 |
|
|
break;; |
3945 |
|
|
esac |
3946 |
|
|
done |
3947 |
root |
1.166 |
else $as_nop |
3948 |
|
|
printf "%s\n" "$as_me: failed program was:" >&5 |
3949 |
ayin |
1.114 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3950 |
|
|
|
3951 |
root |
1.166 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3952 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3953 |
root |
1.137 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3954 |
root |
1.158 |
See \`config.log' for more details" "$LINENO" 5; } |
3955 |
sf-exg |
1.132 |
fi |
3956 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3957 |
ayin |
1.114 |
fi |
3958 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3959 |
|
|
printf "%s\n" "$ac_cv_objext" >&6; } |
3960 |
sf-exg |
1.132 |
OBJEXT=$ac_cv_objext |
3961 |
|
|
ac_objext=$OBJEXT |
3962 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3963 |
|
|
printf %s "checking whether the compiler supports GNU C... " >&6; } |
3964 |
|
|
if test ${ac_cv_c_compiler_gnu+y} |
3965 |
|
|
then : |
3966 |
|
|
printf %s "(cached) " >&6 |
3967 |
|
|
else $as_nop |
3968 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3969 |
|
|
/* end confdefs.h. */ |
3970 |
|
|
|
3971 |
|
|
int |
3972 |
root |
1.166 |
main (void) |
3973 |
sf-exg |
1.132 |
{ |
3974 |
|
|
#ifndef __GNUC__ |
3975 |
|
|
choke me |
3976 |
|
|
#endif |
3977 |
ayin |
1.114 |
|
3978 |
sf-exg |
1.132 |
; |
3979 |
|
|
return 0; |
3980 |
|
|
} |
3981 |
|
|
_ACEOF |
3982 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
3983 |
|
|
then : |
3984 |
sf-exg |
1.132 |
ac_compiler_gnu=yes |
3985 |
root |
1.166 |
else $as_nop |
3986 |
sf-exg |
1.132 |
ac_compiler_gnu=no |
3987 |
|
|
fi |
3988 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3989 |
sf-exg |
1.132 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3990 |
|
|
|
3991 |
|
|
fi |
3992 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3993 |
|
|
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
3994 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3995 |
|
|
|
3996 |
sf-exg |
1.132 |
if test $ac_compiler_gnu = yes; then |
3997 |
|
|
GCC=yes |
3998 |
|
|
else |
3999 |
|
|
GCC= |
4000 |
ayin |
1.114 |
fi |
4001 |
root |
1.166 |
ac_test_CFLAGS=${CFLAGS+y} |
4002 |
sf-exg |
1.132 |
ac_save_CFLAGS=$CFLAGS |
4003 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4004 |
|
|
printf %s "checking whether $CC accepts -g... " >&6; } |
4005 |
|
|
if test ${ac_cv_prog_cc_g+y} |
4006 |
|
|
then : |
4007 |
|
|
printf %s "(cached) " >&6 |
4008 |
|
|
else $as_nop |
4009 |
sf-exg |
1.132 |
ac_save_c_werror_flag=$ac_c_werror_flag |
4010 |
|
|
ac_c_werror_flag=yes |
4011 |
|
|
ac_cv_prog_cc_g=no |
4012 |
|
|
CFLAGS="-g" |
4013 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4014 |
|
|
/* end confdefs.h. */ |
4015 |
ayin |
1.114 |
|
4016 |
sf-exg |
1.132 |
int |
4017 |
root |
1.166 |
main (void) |
4018 |
sf-exg |
1.132 |
{ |
4019 |
root |
1.105 |
|
4020 |
sf-exg |
1.132 |
; |
4021 |
|
|
return 0; |
4022 |
|
|
} |
4023 |
|
|
_ACEOF |
4024 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4025 |
|
|
then : |
4026 |
sf-exg |
1.132 |
ac_cv_prog_cc_g=yes |
4027 |
root |
1.166 |
else $as_nop |
4028 |
sf-exg |
1.132 |
CFLAGS="" |
4029 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4030 |
|
|
/* end confdefs.h. */ |
4031 |
ayin |
1.108 |
|
4032 |
sf-exg |
1.132 |
int |
4033 |
root |
1.166 |
main (void) |
4034 |
sf-exg |
1.132 |
{ |
4035 |
root |
1.105 |
|
4036 |
sf-exg |
1.132 |
; |
4037 |
|
|
return 0; |
4038 |
|
|
} |
4039 |
|
|
_ACEOF |
4040 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4041 |
|
|
then : |
4042 |
ayin |
1.108 |
|
4043 |
root |
1.166 |
else $as_nop |
4044 |
sf-exg |
1.132 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4045 |
|
|
CFLAGS="-g" |
4046 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4047 |
|
|
/* end confdefs.h. */ |
4048 |
root |
1.105 |
|
4049 |
sf-exg |
1.132 |
int |
4050 |
root |
1.166 |
main (void) |
4051 |
sf-exg |
1.132 |
{ |
4052 |
ayin |
1.108 |
|
4053 |
sf-exg |
1.132 |
; |
4054 |
|
|
return 0; |
4055 |
|
|
} |
4056 |
|
|
_ACEOF |
4057 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4058 |
|
|
then : |
4059 |
sf-exg |
1.132 |
ac_cv_prog_cc_g=yes |
4060 |
|
|
fi |
4061 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4062 |
sf-exg |
1.132 |
fi |
4063 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4064 |
sf-exg |
1.132 |
fi |
4065 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4066 |
sf-exg |
1.132 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4067 |
|
|
fi |
4068 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4069 |
|
|
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
4070 |
|
|
if test $ac_test_CFLAGS; then |
4071 |
sf-exg |
1.132 |
CFLAGS=$ac_save_CFLAGS |
4072 |
|
|
elif test $ac_cv_prog_cc_g = yes; then |
4073 |
|
|
if test "$GCC" = yes; then |
4074 |
|
|
CFLAGS="-g -O2" |
4075 |
|
|
else |
4076 |
|
|
CFLAGS="-g" |
4077 |
|
|
fi |
4078 |
|
|
else |
4079 |
|
|
if test "$GCC" = yes; then |
4080 |
|
|
CFLAGS="-O2" |
4081 |
|
|
else |
4082 |
|
|
CFLAGS= |
4083 |
pcg |
1.1 |
fi |
4084 |
ayin |
1.108 |
fi |
4085 |
root |
1.166 |
ac_prog_cc_stdc=no |
4086 |
|
|
if test x$ac_prog_cc_stdc = xno |
4087 |
|
|
then : |
4088 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
4089 |
|
|
printf %s "checking for $CC option to enable C11 features... " >&6; } |
4090 |
|
|
if test ${ac_cv_prog_cc_c11+y} |
4091 |
|
|
then : |
4092 |
|
|
printf %s "(cached) " >&6 |
4093 |
|
|
else $as_nop |
4094 |
|
|
ac_cv_prog_cc_c11=no |
4095 |
sf-exg |
1.132 |
ac_save_CC=$CC |
4096 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4097 |
|
|
/* end confdefs.h. */ |
4098 |
root |
1.166 |
$ac_c_conftest_c11_program |
4099 |
|
|
_ACEOF |
4100 |
|
|
for ac_arg in '' -std=gnu11 |
4101 |
|
|
do |
4102 |
|
|
CC="$ac_save_CC $ac_arg" |
4103 |
|
|
if ac_fn_c_try_compile "$LINENO" |
4104 |
|
|
then : |
4105 |
|
|
ac_cv_prog_cc_c11=$ac_arg |
4106 |
|
|
fi |
4107 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4108 |
|
|
test "x$ac_cv_prog_cc_c11" != "xno" && break |
4109 |
|
|
done |
4110 |
|
|
rm -f conftest.$ac_ext |
4111 |
|
|
CC=$ac_save_CC |
4112 |
|
|
fi |
4113 |
sf-exg |
1.132 |
|
4114 |
root |
1.166 |
if test "x$ac_cv_prog_cc_c11" = xno |
4115 |
|
|
then : |
4116 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4117 |
|
|
printf "%s\n" "unsupported" >&6; } |
4118 |
|
|
else $as_nop |
4119 |
|
|
if test "x$ac_cv_prog_cc_c11" = x |
4120 |
|
|
then : |
4121 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4122 |
|
|
printf "%s\n" "none needed" >&6; } |
4123 |
|
|
else $as_nop |
4124 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
4125 |
|
|
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
4126 |
|
|
CC="$CC $ac_cv_prog_cc_c11" |
4127 |
|
|
fi |
4128 |
|
|
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
4129 |
|
|
ac_prog_cc_stdc=c11 |
4130 |
|
|
fi |
4131 |
|
|
fi |
4132 |
|
|
if test x$ac_prog_cc_stdc = xno |
4133 |
|
|
then : |
4134 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
4135 |
|
|
printf %s "checking for $CC option to enable C99 features... " >&6; } |
4136 |
|
|
if test ${ac_cv_prog_cc_c99+y} |
4137 |
|
|
then : |
4138 |
|
|
printf %s "(cached) " >&6 |
4139 |
|
|
else $as_nop |
4140 |
|
|
ac_cv_prog_cc_c99=no |
4141 |
|
|
ac_save_CC=$CC |
4142 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4143 |
|
|
/* end confdefs.h. */ |
4144 |
|
|
$ac_c_conftest_c99_program |
4145 |
|
|
_ACEOF |
4146 |
|
|
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
4147 |
|
|
do |
4148 |
|
|
CC="$ac_save_CC $ac_arg" |
4149 |
|
|
if ac_fn_c_try_compile "$LINENO" |
4150 |
|
|
then : |
4151 |
|
|
ac_cv_prog_cc_c99=$ac_arg |
4152 |
|
|
fi |
4153 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4154 |
|
|
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4155 |
|
|
done |
4156 |
|
|
rm -f conftest.$ac_ext |
4157 |
|
|
CC=$ac_save_CC |
4158 |
|
|
fi |
4159 |
root |
1.105 |
|
4160 |
root |
1.166 |
if test "x$ac_cv_prog_cc_c99" = xno |
4161 |
|
|
then : |
4162 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4163 |
|
|
printf "%s\n" "unsupported" >&6; } |
4164 |
|
|
else $as_nop |
4165 |
|
|
if test "x$ac_cv_prog_cc_c99" = x |
4166 |
|
|
then : |
4167 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4168 |
|
|
printf "%s\n" "none needed" >&6; } |
4169 |
|
|
else $as_nop |
4170 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4171 |
|
|
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
4172 |
|
|
CC="$CC $ac_cv_prog_cc_c99" |
4173 |
|
|
fi |
4174 |
|
|
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
4175 |
|
|
ac_prog_cc_stdc=c99 |
4176 |
|
|
fi |
4177 |
|
|
fi |
4178 |
|
|
if test x$ac_prog_cc_stdc = xno |
4179 |
|
|
then : |
4180 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
4181 |
|
|
printf %s "checking for $CC option to enable C89 features... " >&6; } |
4182 |
|
|
if test ${ac_cv_prog_cc_c89+y} |
4183 |
|
|
then : |
4184 |
|
|
printf %s "(cached) " >&6 |
4185 |
|
|
else $as_nop |
4186 |
|
|
ac_cv_prog_cc_c89=no |
4187 |
|
|
ac_save_CC=$CC |
4188 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4189 |
|
|
/* end confdefs.h. */ |
4190 |
|
|
$ac_c_conftest_c89_program |
4191 |
sf-exg |
1.132 |
_ACEOF |
4192 |
root |
1.166 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4193 |
sf-exg |
1.132 |
do |
4194 |
|
|
CC="$ac_save_CC $ac_arg" |
4195 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4196 |
|
|
then : |
4197 |
sf-exg |
1.132 |
ac_cv_prog_cc_c89=$ac_arg |
4198 |
ayin |
1.108 |
fi |
4199 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4200 |
sf-exg |
1.132 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4201 |
|
|
done |
4202 |
|
|
rm -f conftest.$ac_ext |
4203 |
|
|
CC=$ac_save_CC |
4204 |
root |
1.166 |
fi |
4205 |
root |
1.103 |
|
4206 |
root |
1.166 |
if test "x$ac_cv_prog_cc_c89" = xno |
4207 |
|
|
then : |
4208 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4209 |
|
|
printf "%s\n" "unsupported" >&6; } |
4210 |
|
|
else $as_nop |
4211 |
|
|
if test "x$ac_cv_prog_cc_c89" = x |
4212 |
|
|
then : |
4213 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4214 |
|
|
printf "%s\n" "none needed" >&6; } |
4215 |
|
|
else $as_nop |
4216 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4217 |
|
|
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
4218 |
|
|
CC="$CC $ac_cv_prog_cc_c89" |
4219 |
|
|
fi |
4220 |
|
|
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
4221 |
|
|
ac_prog_cc_stdc=c89 |
4222 |
sf-exg |
1.132 |
fi |
4223 |
ayin |
1.108 |
fi |
4224 |
root |
1.105 |
|
4225 |
sf-exg |
1.132 |
ac_ext=c |
4226 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
4227 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4228 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4229 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4230 |
ayin |
1.108 |
|
4231 |
root |
1.166 |
|
4232 |
|
|
|
4233 |
|
|
|
4234 |
|
|
|
4235 |
|
|
|
4236 |
|
|
|
4237 |
sf-exg |
1.132 |
ac_ext=cpp |
4238 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
4239 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4240 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4241 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4242 |
|
|
if test -z "$CXX"; then |
4243 |
|
|
if test -n "$CCC"; then |
4244 |
|
|
CXX=$CCC |
4245 |
|
|
else |
4246 |
|
|
if test -n "$ac_tool_prefix"; then |
4247 |
root |
1.166 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
4248 |
sf-exg |
1.132 |
do |
4249 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4250 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4251 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4252 |
|
|
printf %s "checking for $ac_word... " >&6; } |
4253 |
|
|
if test ${ac_cv_prog_CXX+y} |
4254 |
|
|
then : |
4255 |
|
|
printf %s "(cached) " >&6 |
4256 |
|
|
else $as_nop |
4257 |
sf-exg |
1.132 |
if test -n "$CXX"; then |
4258 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4259 |
|
|
else |
4260 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4261 |
|
|
for as_dir in $PATH |
4262 |
|
|
do |
4263 |
|
|
IFS=$as_save_IFS |
4264 |
root |
1.166 |
case $as_dir in #((( |
4265 |
|
|
'') as_dir=./ ;; |
4266 |
|
|
*/) ;; |
4267 |
|
|
*) as_dir=$as_dir/ ;; |
4268 |
|
|
esac |
4269 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4270 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4271 |
sf-exg |
1.132 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4272 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4273 |
sf-exg |
1.132 |
break 2 |
4274 |
pcg |
1.1 |
fi |
4275 |
sf-exg |
1.132 |
done |
4276 |
|
|
done |
4277 |
|
|
IFS=$as_save_IFS |
4278 |
root |
1.105 |
|
4279 |
ayin |
1.108 |
fi |
4280 |
|
|
fi |
4281 |
sf-exg |
1.132 |
CXX=$ac_cv_prog_CXX |
4282 |
|
|
if test -n "$CXX"; then |
4283 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4284 |
|
|
printf "%s\n" "$CXX" >&6; } |
4285 |
sf-exg |
1.132 |
else |
4286 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4287 |
|
|
printf "%s\n" "no" >&6; } |
4288 |
ayin |
1.108 |
fi |
4289 |
root |
1.105 |
|
4290 |
ayin |
1.108 |
|
4291 |
sf-exg |
1.132 |
test -n "$CXX" && break |
4292 |
|
|
done |
4293 |
ayin |
1.108 |
fi |
4294 |
sf-exg |
1.132 |
if test -z "$CXX"; then |
4295 |
|
|
ac_ct_CXX=$CXX |
4296 |
root |
1.166 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
4297 |
sf-exg |
1.132 |
do |
4298 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4299 |
|
|
set dummy $ac_prog; ac_word=$2 |
4300 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4301 |
|
|
printf %s "checking for $ac_word... " >&6; } |
4302 |
|
|
if test ${ac_cv_prog_ac_ct_CXX+y} |
4303 |
|
|
then : |
4304 |
|
|
printf %s "(cached) " >&6 |
4305 |
|
|
else $as_nop |
4306 |
sf-exg |
1.132 |
if test -n "$ac_ct_CXX"; then |
4307 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4308 |
|
|
else |
4309 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4310 |
|
|
for as_dir in $PATH |
4311 |
|
|
do |
4312 |
|
|
IFS=$as_save_IFS |
4313 |
root |
1.166 |
case $as_dir in #((( |
4314 |
|
|
'') as_dir=./ ;; |
4315 |
|
|
*/) ;; |
4316 |
|
|
*) as_dir=$as_dir/ ;; |
4317 |
|
|
esac |
4318 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4319 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4320 |
sf-exg |
1.132 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
4321 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4322 |
sf-exg |
1.132 |
break 2 |
4323 |
root |
1.60 |
fi |
4324 |
sf-exg |
1.132 |
done |
4325 |
|
|
done |
4326 |
|
|
IFS=$as_save_IFS |
4327 |
ayin |
1.108 |
|
4328 |
|
|
fi |
4329 |
|
|
fi |
4330 |
sf-exg |
1.132 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4331 |
|
|
if test -n "$ac_ct_CXX"; then |
4332 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4333 |
|
|
printf "%s\n" "$ac_ct_CXX" >&6; } |
4334 |
sf-exg |
1.132 |
else |
4335 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4336 |
|
|
printf "%s\n" "no" >&6; } |
4337 |
ayin |
1.108 |
fi |
4338 |
root |
1.105 |
|
4339 |
ayin |
1.108 |
|
4340 |
sf-exg |
1.132 |
test -n "$ac_ct_CXX" && break |
4341 |
|
|
done |
4342 |
pcg |
1.1 |
|
4343 |
sf-exg |
1.132 |
if test "x$ac_ct_CXX" = x; then |
4344 |
|
|
CXX="g++" |
4345 |
|
|
else |
4346 |
|
|
case $cross_compiling:$ac_tool_warned in |
4347 |
|
|
yes:) |
4348 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4349 |
|
|
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4350 |
sf-exg |
1.132 |
ac_tool_warned=yes ;; |
4351 |
|
|
esac |
4352 |
|
|
CXX=$ac_ct_CXX |
4353 |
pcg |
1.1 |
fi |
4354 |
ayin |
1.108 |
fi |
4355 |
root |
1.105 |
|
4356 |
pcg |
1.1 |
fi |
4357 |
ayin |
1.108 |
fi |
4358 |
sf-exg |
1.132 |
# Provide some information about the compiler. |
4359 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4360 |
sf-exg |
1.132 |
set X $ac_compile |
4361 |
|
|
ac_compiler=$2 |
4362 |
|
|
for ac_option in --version -v -V -qversion; do |
4363 |
|
|
{ { ac_try="$ac_compiler $ac_option >&5" |
4364 |
|
|
case "(($ac_try" in |
4365 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4366 |
|
|
*) ac_try_echo=$ac_try;; |
4367 |
|
|
esac |
4368 |
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4369 |
root |
1.166 |
printf "%s\n" "$ac_try_echo"; } >&5 |
4370 |
sf-exg |
1.132 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4371 |
|
|
ac_status=$? |
4372 |
|
|
if test -s conftest.err; then |
4373 |
|
|
sed '10a\ |
4374 |
|
|
... rest of stderr output deleted ... |
4375 |
|
|
10q' conftest.err >conftest.er1 |
4376 |
|
|
cat conftest.er1 >&5 |
4377 |
root |
1.26 |
fi |
4378 |
sf-exg |
1.132 |
rm -f conftest.er1 conftest.err |
4379 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4380 |
sf-exg |
1.132 |
test $ac_status = 0; } |
4381 |
|
|
done |
4382 |
ayin |
1.108 |
|
4383 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
4384 |
|
|
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
4385 |
|
|
if test ${ac_cv_cxx_compiler_gnu+y} |
4386 |
|
|
then : |
4387 |
|
|
printf %s "(cached) " >&6 |
4388 |
|
|
else $as_nop |
4389 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4390 |
|
|
/* end confdefs.h. */ |
4391 |
root |
1.26 |
|
4392 |
sf-exg |
1.132 |
int |
4393 |
root |
1.166 |
main (void) |
4394 |
sf-exg |
1.132 |
{ |
4395 |
|
|
#ifndef __GNUC__ |
4396 |
|
|
choke me |
4397 |
|
|
#endif |
4398 |
pcg |
1.15 |
|
4399 |
sf-exg |
1.132 |
; |
4400 |
|
|
return 0; |
4401 |
|
|
} |
4402 |
pcg |
1.15 |
_ACEOF |
4403 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
4404 |
|
|
then : |
4405 |
sf-exg |
1.132 |
ac_compiler_gnu=yes |
4406 |
root |
1.166 |
else $as_nop |
4407 |
sf-exg |
1.132 |
ac_compiler_gnu=no |
4408 |
pcg |
1.15 |
fi |
4409 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4410 |
sf-exg |
1.132 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4411 |
pcg |
1.15 |
|
4412 |
ayin |
1.108 |
fi |
4413 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4414 |
|
|
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
4415 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4416 |
|
|
|
4417 |
sf-exg |
1.132 |
if test $ac_compiler_gnu = yes; then |
4418 |
|
|
GXX=yes |
4419 |
|
|
else |
4420 |
|
|
GXX= |
4421 |
ayin |
1.108 |
fi |
4422 |
root |
1.166 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
4423 |
sf-exg |
1.132 |
ac_save_CXXFLAGS=$CXXFLAGS |
4424 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4425 |
|
|
printf %s "checking whether $CXX accepts -g... " >&6; } |
4426 |
|
|
if test ${ac_cv_prog_cxx_g+y} |
4427 |
|
|
then : |
4428 |
|
|
printf %s "(cached) " >&6 |
4429 |
|
|
else $as_nop |
4430 |
sf-exg |
1.132 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4431 |
|
|
ac_cxx_werror_flag=yes |
4432 |
|
|
ac_cv_prog_cxx_g=no |
4433 |
|
|
CXXFLAGS="-g" |
4434 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4435 |
|
|
/* end confdefs.h. */ |
4436 |
ayin |
1.108 |
|
4437 |
sf-exg |
1.132 |
int |
4438 |
root |
1.166 |
main (void) |
4439 |
sf-exg |
1.132 |
{ |
4440 |
pcg |
1.15 |
|
4441 |
sf-exg |
1.132 |
; |
4442 |
|
|
return 0; |
4443 |
|
|
} |
4444 |
pcg |
1.15 |
_ACEOF |
4445 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
4446 |
|
|
then : |
4447 |
sf-exg |
1.132 |
ac_cv_prog_cxx_g=yes |
4448 |
root |
1.166 |
else $as_nop |
4449 |
sf-exg |
1.132 |
CXXFLAGS="" |
4450 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4451 |
|
|
/* end confdefs.h. */ |
4452 |
pcg |
1.15 |
|
4453 |
sf-exg |
1.132 |
int |
4454 |
root |
1.166 |
main (void) |
4455 |
sf-exg |
1.132 |
{ |
4456 |
pcg |
1.15 |
|
4457 |
sf-exg |
1.132 |
; |
4458 |
|
|
return 0; |
4459 |
|
|
} |
4460 |
root |
1.39 |
_ACEOF |
4461 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
4462 |
|
|
then : |
4463 |
root |
1.39 |
|
4464 |
root |
1.166 |
else $as_nop |
4465 |
sf-exg |
1.132 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4466 |
|
|
CXXFLAGS="-g" |
4467 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4468 |
|
|
/* end confdefs.h. */ |
4469 |
root |
1.39 |
|
4470 |
sf-exg |
1.132 |
int |
4471 |
root |
1.166 |
main (void) |
4472 |
sf-exg |
1.132 |
{ |
4473 |
pcg |
1.15 |
|
4474 |
sf-exg |
1.132 |
; |
4475 |
|
|
return 0; |
4476 |
|
|
} |
4477 |
pcg |
1.11 |
_ACEOF |
4478 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
4479 |
|
|
then : |
4480 |
sf-exg |
1.132 |
ac_cv_prog_cxx_g=yes |
4481 |
ayin |
1.108 |
fi |
4482 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4483 |
ayin |
1.108 |
fi |
4484 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4485 |
ayin |
1.108 |
fi |
4486 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4487 |
sf-exg |
1.132 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4488 |
ayin |
1.108 |
fi |
4489 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4490 |
|
|
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
4491 |
|
|
if test $ac_test_CXXFLAGS; then |
4492 |
sf-exg |
1.132 |
CXXFLAGS=$ac_save_CXXFLAGS |
4493 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then |
4494 |
|
|
if test "$GXX" = yes; then |
4495 |
|
|
CXXFLAGS="-g -O2" |
4496 |
|
|
else |
4497 |
|
|
CXXFLAGS="-g" |
4498 |
pcg |
1.1 |
fi |
4499 |
sf-exg |
1.132 |
else |
4500 |
|
|
if test "$GXX" = yes; then |
4501 |
|
|
CXXFLAGS="-O2" |
4502 |
|
|
else |
4503 |
|
|
CXXFLAGS= |
4504 |
pcg |
1.1 |
fi |
4505 |
ayin |
1.108 |
fi |
4506 |
root |
1.166 |
ac_prog_cxx_stdcxx=no |
4507 |
|
|
if test x$ac_prog_cxx_stdcxx = xno |
4508 |
|
|
then : |
4509 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
4510 |
|
|
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
4511 |
sf-exg |
1.167 |
if test ${ac_cv_prog_cxx_cxx11+y} |
4512 |
root |
1.166 |
then : |
4513 |
|
|
printf %s "(cached) " >&6 |
4514 |
|
|
else $as_nop |
4515 |
sf-exg |
1.167 |
ac_cv_prog_cxx_cxx11=no |
4516 |
root |
1.166 |
ac_save_CXX=$CXX |
4517 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4518 |
|
|
/* end confdefs.h. */ |
4519 |
|
|
$ac_cxx_conftest_cxx11_program |
4520 |
|
|
_ACEOF |
4521 |
|
|
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
4522 |
|
|
do |
4523 |
|
|
CXX="$ac_save_CXX $ac_arg" |
4524 |
|
|
if ac_fn_cxx_try_compile "$LINENO" |
4525 |
|
|
then : |
4526 |
|
|
ac_cv_prog_cxx_cxx11=$ac_arg |
4527 |
|
|
fi |
4528 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4529 |
|
|
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
4530 |
|
|
done |
4531 |
|
|
rm -f conftest.$ac_ext |
4532 |
|
|
CXX=$ac_save_CXX |
4533 |
|
|
fi |
4534 |
|
|
|
4535 |
|
|
if test "x$ac_cv_prog_cxx_cxx11" = xno |
4536 |
|
|
then : |
4537 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4538 |
|
|
printf "%s\n" "unsupported" >&6; } |
4539 |
|
|
else $as_nop |
4540 |
|
|
if test "x$ac_cv_prog_cxx_cxx11" = x |
4541 |
|
|
then : |
4542 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4543 |
|
|
printf "%s\n" "none needed" >&6; } |
4544 |
|
|
else $as_nop |
4545 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
4546 |
|
|
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
4547 |
|
|
CXX="$CXX $ac_cv_prog_cxx_cxx11" |
4548 |
|
|
fi |
4549 |
|
|
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
4550 |
|
|
ac_prog_cxx_stdcxx=cxx11 |
4551 |
|
|
fi |
4552 |
|
|
fi |
4553 |
|
|
if test x$ac_prog_cxx_stdcxx = xno |
4554 |
|
|
then : |
4555 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
4556 |
|
|
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
4557 |
sf-exg |
1.167 |
if test ${ac_cv_prog_cxx_cxx98+y} |
4558 |
root |
1.166 |
then : |
4559 |
|
|
printf %s "(cached) " >&6 |
4560 |
|
|
else $as_nop |
4561 |
sf-exg |
1.167 |
ac_cv_prog_cxx_cxx98=no |
4562 |
root |
1.166 |
ac_save_CXX=$CXX |
4563 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4564 |
|
|
/* end confdefs.h. */ |
4565 |
|
|
$ac_cxx_conftest_cxx98_program |
4566 |
|
|
_ACEOF |
4567 |
|
|
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
4568 |
|
|
do |
4569 |
|
|
CXX="$ac_save_CXX $ac_arg" |
4570 |
|
|
if ac_fn_cxx_try_compile "$LINENO" |
4571 |
|
|
then : |
4572 |
|
|
ac_cv_prog_cxx_cxx98=$ac_arg |
4573 |
|
|
fi |
4574 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam |
4575 |
|
|
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
4576 |
|
|
done |
4577 |
|
|
rm -f conftest.$ac_ext |
4578 |
|
|
CXX=$ac_save_CXX |
4579 |
|
|
fi |
4580 |
|
|
|
4581 |
|
|
if test "x$ac_cv_prog_cxx_cxx98" = xno |
4582 |
|
|
then : |
4583 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4584 |
|
|
printf "%s\n" "unsupported" >&6; } |
4585 |
|
|
else $as_nop |
4586 |
|
|
if test "x$ac_cv_prog_cxx_cxx98" = x |
4587 |
|
|
then : |
4588 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4589 |
|
|
printf "%s\n" "none needed" >&6; } |
4590 |
|
|
else $as_nop |
4591 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
4592 |
|
|
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
4593 |
|
|
CXX="$CXX $ac_cv_prog_cxx_cxx98" |
4594 |
|
|
fi |
4595 |
|
|
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
4596 |
|
|
ac_prog_cxx_stdcxx=cxx98 |
4597 |
|
|
fi |
4598 |
|
|
fi |
4599 |
|
|
|
4600 |
sf-exg |
1.132 |
ac_ext=c |
4601 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
4602 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4603 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4604 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4605 |
ayin |
1.108 |
|
4606 |
root |
1.166 |
|
4607 |
|
|
# Find a good install program. We prefer a C program (faster), |
4608 |
root |
1.153 |
# so one script is as good as another. But avoid the broken or |
4609 |
|
|
# incompatible versions: |
4610 |
|
|
# SysV /etc/install, /usr/sbin/install |
4611 |
|
|
# SunOS /usr/etc/install |
4612 |
|
|
# IRIX /sbin/install |
4613 |
|
|
# AIX /bin/install |
4614 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs |
4615 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4616 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4617 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4618 |
|
|
# OS/2's system install, which has a completely different semantic |
4619 |
|
|
# ./install, which can be erroneously created by make from ./install.sh. |
4620 |
|
|
# Reject install programs that cannot install multiple files. |
4621 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4622 |
|
|
printf %s "checking for a BSD-compatible install... " >&6; } |
4623 |
root |
1.153 |
if test -z "$INSTALL"; then |
4624 |
root |
1.166 |
if test ${ac_cv_path_install+y} |
4625 |
|
|
then : |
4626 |
|
|
printf %s "(cached) " >&6 |
4627 |
|
|
else $as_nop |
4628 |
root |
1.153 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4629 |
|
|
for as_dir in $PATH |
4630 |
|
|
do |
4631 |
|
|
IFS=$as_save_IFS |
4632 |
root |
1.166 |
case $as_dir in #((( |
4633 |
|
|
'') as_dir=./ ;; |
4634 |
|
|
*/) ;; |
4635 |
|
|
*) as_dir=$as_dir/ ;; |
4636 |
|
|
esac |
4637 |
|
|
# Account for fact that we put trailing slashes in our PATH walk. |
4638 |
|
|
case $as_dir in #(( |
4639 |
|
|
./ | /[cC]/* | \ |
4640 |
root |
1.153 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4641 |
|
|
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4642 |
|
|
/usr/ucb/* ) ;; |
4643 |
|
|
*) |
4644 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install. |
4645 |
|
|
# Don't use installbsd from OSF since it installs stuff as root |
4646 |
|
|
# by default. |
4647 |
|
|
for ac_prog in ginstall scoinst install; do |
4648 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4649 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
4650 |
root |
1.153 |
if test $ac_prog = install && |
4651 |
root |
1.166 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4652 |
root |
1.153 |
# AIX install. It has an incompatible calling convention. |
4653 |
|
|
: |
4654 |
|
|
elif test $ac_prog = install && |
4655 |
root |
1.166 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4656 |
root |
1.153 |
# program-specific install script used by HP pwplus--don't use. |
4657 |
|
|
: |
4658 |
|
|
else |
4659 |
|
|
rm -rf conftest.one conftest.two conftest.dir |
4660 |
|
|
echo one > conftest.one |
4661 |
|
|
echo two > conftest.two |
4662 |
|
|
mkdir conftest.dir |
4663 |
root |
1.166 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
4664 |
root |
1.153 |
test -s conftest.one && test -s conftest.two && |
4665 |
|
|
test -s conftest.dir/conftest.one && |
4666 |
|
|
test -s conftest.dir/conftest.two |
4667 |
|
|
then |
4668 |
root |
1.166 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
4669 |
root |
1.153 |
break 3 |
4670 |
|
|
fi |
4671 |
|
|
fi |
4672 |
|
|
fi |
4673 |
|
|
done |
4674 |
|
|
done |
4675 |
|
|
;; |
4676 |
|
|
esac |
4677 |
|
|
|
4678 |
|
|
done |
4679 |
|
|
IFS=$as_save_IFS |
4680 |
|
|
|
4681 |
|
|
rm -rf conftest.one conftest.two conftest.dir |
4682 |
|
|
|
4683 |
|
|
fi |
4684 |
root |
1.166 |
if test ${ac_cv_path_install+y}; then |
4685 |
root |
1.153 |
INSTALL=$ac_cv_path_install |
4686 |
|
|
else |
4687 |
|
|
# As a last resort, use the slow shell script. Don't cache a |
4688 |
|
|
# value for INSTALL within a source directory, because that will |
4689 |
|
|
# break other packages using the cache if that directory is |
4690 |
|
|
# removed, or if the value is a relative name. |
4691 |
|
|
INSTALL=$ac_install_sh |
4692 |
|
|
fi |
4693 |
|
|
fi |
4694 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4695 |
|
|
printf "%s\n" "$INSTALL" >&6; } |
4696 |
root |
1.153 |
|
4697 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4698 |
|
|
# It thinks the first close brace ends the variable substitution. |
4699 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4700 |
|
|
|
4701 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4702 |
|
|
|
4703 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4704 |
|
|
|
4705 |
|
|
|
4706 |
|
|
|
4707 |
root |
1.166 |
ac_header= ac_cache= |
4708 |
|
|
for ac_item in $ac_header_c_list |
4709 |
sf-exg |
1.132 |
do |
4710 |
root |
1.166 |
if test $ac_cache; then |
4711 |
|
|
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
4712 |
|
|
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
4713 |
|
|
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
4714 |
|
|
fi |
4715 |
|
|
ac_header= ac_cache= |
4716 |
|
|
elif test $ac_header; then |
4717 |
|
|
ac_cache=$ac_item |
4718 |
|
|
else |
4719 |
|
|
ac_header=$ac_item |
4720 |
|
|
fi |
4721 |
|
|
done |
4722 |
|
|
|
4723 |
|
|
|
4724 |
|
|
|
4725 |
|
|
|
4726 |
|
|
|
4727 |
|
|
|
4728 |
|
|
|
4729 |
|
|
|
4730 |
|
|
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
4731 |
|
|
then : |
4732 |
|
|
|
4733 |
|
|
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
4734 |
ayin |
1.108 |
|
4735 |
|
|
fi |
4736 |
|
|
|
4737 |
root |
1.166 |
|
4738 |
|
|
|
4739 |
|
|
|
4740 |
|
|
|
4741 |
|
|
|
4742 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4743 |
|
|
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
4744 |
|
|
if test ${ac_cv_safe_to_define___extensions__+y} |
4745 |
|
|
then : |
4746 |
|
|
printf %s "(cached) " >&6 |
4747 |
|
|
else $as_nop |
4748 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4749 |
|
|
/* end confdefs.h. */ |
4750 |
root |
1.166 |
|
4751 |
|
|
# define __EXTENSIONS__ 1 |
4752 |
|
|
$ac_includes_default |
4753 |
|
|
int |
4754 |
|
|
main (void) |
4755 |
|
|
{ |
4756 |
|
|
|
4757 |
|
|
; |
4758 |
|
|
return 0; |
4759 |
|
|
} |
4760 |
pcg |
1.11 |
_ACEOF |
4761 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4762 |
|
|
then : |
4763 |
|
|
ac_cv_safe_to_define___extensions__=yes |
4764 |
|
|
else $as_nop |
4765 |
|
|
ac_cv_safe_to_define___extensions__=no |
4766 |
root |
1.80 |
fi |
4767 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4768 |
root |
1.116 |
fi |
4769 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4770 |
|
|
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
4771 |
root |
1.116 |
|
4772 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
4773 |
|
|
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
4774 |
|
|
if test ${ac_cv_should_define__xopen_source+y} |
4775 |
|
|
then : |
4776 |
|
|
printf %s "(cached) " >&6 |
4777 |
|
|
else $as_nop |
4778 |
|
|
ac_cv_should_define__xopen_source=no |
4779 |
|
|
if test $ac_cv_header_wchar_h = yes |
4780 |
|
|
then : |
4781 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4782 |
root |
1.116 |
/* end confdefs.h. */ |
4783 |
|
|
|
4784 |
root |
1.166 |
#include <wchar.h> |
4785 |
|
|
mbstate_t x; |
4786 |
root |
1.116 |
int |
4787 |
root |
1.166 |
main (void) |
4788 |
root |
1.116 |
{ |
4789 |
|
|
|
4790 |
|
|
; |
4791 |
|
|
return 0; |
4792 |
|
|
} |
4793 |
|
|
_ACEOF |
4794 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4795 |
|
|
then : |
4796 |
root |
1.116 |
|
4797 |
root |
1.166 |
else $as_nop |
4798 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4799 |
root |
1.116 |
/* end confdefs.h. */ |
4800 |
|
|
|
4801 |
root |
1.166 |
#define _XOPEN_SOURCE 500 |
4802 |
|
|
#include <wchar.h> |
4803 |
|
|
mbstate_t x; |
4804 |
root |
1.116 |
int |
4805 |
root |
1.166 |
main (void) |
4806 |
root |
1.116 |
{ |
4807 |
root |
1.166 |
|
4808 |
|
|
; |
4809 |
root |
1.116 |
return 0; |
4810 |
|
|
} |
4811 |
|
|
_ACEOF |
4812 |
root |
1.166 |
if ac_fn_c_try_compile "$LINENO" |
4813 |
|
|
then : |
4814 |
|
|
ac_cv_should_define__xopen_source=yes |
4815 |
sf-exg |
1.132 |
fi |
4816 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4817 |
sf-exg |
1.132 |
fi |
4818 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4819 |
root |
1.116 |
fi |
4820 |
sf-exg |
1.132 |
fi |
4821 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
4822 |
|
|
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
4823 |
root |
1.116 |
|
4824 |
root |
1.166 |
printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
4825 |
root |
1.116 |
|
4826 |
root |
1.166 |
printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
4827 |
root |
1.116 |
|
4828 |
root |
1.166 |
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
4829 |
root |
1.116 |
|
4830 |
root |
1.166 |
printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
4831 |
root |
1.116 |
|
4832 |
root |
1.166 |
printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
4833 |
root |
1.116 |
|
4834 |
root |
1.166 |
printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
4835 |
root |
1.116 |
|
4836 |
root |
1.166 |
printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4837 |
root |
1.116 |
|
4838 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
4839 |
root |
1.116 |
|
4840 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
4841 |
root |
1.117 |
|
4842 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
4843 |
root |
1.119 |
|
4844 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
4845 |
root |
1.119 |
|
4846 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
4847 |
ayin |
1.121 |
|
4848 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
4849 |
root |
1.127 |
|
4850 |
root |
1.166 |
printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
4851 |
root |
1.129 |
|
4852 |
root |
1.166 |
printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
4853 |
root |
1.116 |
|
4854 |
root |
1.166 |
if test $ac_cv_header_minix_config_h = yes |
4855 |
|
|
then : |
4856 |
|
|
MINIX=yes |
4857 |
|
|
printf "%s\n" "#define _MINIX 1" >>confdefs.h |
4858 |
root |
1.116 |
|
4859 |
root |
1.166 |
printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
4860 |
root |
1.116 |
|
4861 |
root |
1.166 |
printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
4862 |
root |
1.116 |
|
4863 |
root |
1.166 |
else $as_nop |
4864 |
|
|
MINIX= |
4865 |
|
|
fi |
4866 |
|
|
if test $ac_cv_safe_to_define___extensions__ = yes |
4867 |
|
|
then : |
4868 |
|
|
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
4869 |
sf-exg |
1.132 |
|
4870 |
|
|
fi |
4871 |
root |
1.166 |
if test $ac_cv_should_define__xopen_source = yes |
4872 |
|
|
then : |
4873 |
|
|
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4874 |
|
|
|
4875 |
sf-exg |
1.132 |
fi |
4876 |
root |
1.116 |
|
4877 |
sf-exg |
1.132 |
ac_ext=cpp |
4878 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
4879 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4880 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4881 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4882 |
|
|
|
4883 |
|
|
|
4884 |
root |
1.166 |
if test "$ac_prog_cxx_stdcxx" != cxx11; then |
4885 |
|
|
as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 |
4886 |
|
|
fi |
4887 |
|
|
|
4888 |
sf-exg |
1.151 |
LINKER="$CXX" |
4889 |
sf-exg |
1.132 |
if test x$GCC = xyes && test x$GXX = xyes; then |
4890 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4891 |
|
|
printf %s "checking for working libsupc++... " >&6; } |
4892 |
sf-exg |
1.132 |
save_CXX="$CXX" |
4893 |
|
|
save_LIBS="$LIBS" |
4894 |
|
|
CXX="$CC" |
4895 |
|
|
LIBS="$LIBS -lsupc++" |
4896 |
root |
1.116 |
|
4897 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4898 |
root |
1.129 |
/* end confdefs.h. */ |
4899 |
sf-exg |
1.132 |
struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4900 |
root |
1.129 |
int |
4901 |
root |
1.166 |
main (void) |
4902 |
root |
1.129 |
{ |
4903 |
sf-exg |
1.132 |
|
4904 |
root |
1.129 |
; |
4905 |
|
|
return 0; |
4906 |
|
|
} |
4907 |
|
|
_ACEOF |
4908 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
4909 |
|
|
then : |
4910 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4911 |
|
|
printf "%s\n" "ok" >&6; } |
4912 |
sf-exg |
1.151 |
LINKER="$CC" |
4913 |
root |
1.166 |
else $as_nop |
4914 |
root |
1.129 |
|
4915 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4916 |
|
|
printf "%s\n" "no, making everything bigger and slower" >&6; } |
4917 |
sf-exg |
1.132 |
LIBS="$save_LIBS" |
4918 |
root |
1.129 |
|
4919 |
|
|
|
4920 |
|
|
fi |
4921 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4922 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
4923 |
|
|
CXX="$save_CXX" |
4924 |
|
|
fi |
4925 |
|
|
LINKER=$LINKER |
4926 |
root |
1.129 |
|
4927 |
root |
1.116 |
|
4928 |
sf-exg |
1.132 |
if test -z "$orig_CXXFLAGS"; then |
4929 |
|
|
if test x$GCC = xyes && test "x$GXX" = xyes; then |
4930 |
|
|
CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
4931 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4932 |
root |
1.116 |
/* end confdefs.h. */ |
4933 |
|
|
|
4934 |
|
|
int |
4935 |
root |
1.166 |
main (void) |
4936 |
root |
1.116 |
{ |
4937 |
sf-exg |
1.132 |
|
4938 |
root |
1.116 |
; |
4939 |
|
|
return 0; |
4940 |
|
|
} |
4941 |
|
|
_ACEOF |
4942 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
4943 |
|
|
then : |
4944 |
sf-exg |
1.132 |
|
4945 |
root |
1.166 |
else $as_nop |
4946 |
sf-exg |
1.132 |
CXXFLAGS="-g -O3" |
4947 |
|
|
fi |
4948 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4949 |
sf-exg |
1.132 |
else |
4950 |
|
|
CXXFLAGS="-O" |
4951 |
|
|
fi |
4952 |
|
|
CFLAGS="$CXXFLAGS" |
4953 |
root |
1.116 |
fi |
4954 |
|
|
|
4955 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4956 |
|
|
printf %s "checking for library containing setlocale... " >&6; } |
4957 |
|
|
if test ${ac_cv_search_setlocale+y} |
4958 |
|
|
then : |
4959 |
|
|
printf %s "(cached) " >&6 |
4960 |
|
|
else $as_nop |
4961 |
sf-exg |
1.133 |
ac_func_search_save_LIBS=$LIBS |
4962 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4963 |
root |
1.116 |
/* end confdefs.h. */ |
4964 |
|
|
|
4965 |
root |
1.166 |
namespace conftest { |
4966 |
|
|
extern "C" int setlocale (); |
4967 |
|
|
} |
4968 |
root |
1.116 |
int |
4969 |
root |
1.166 |
main (void) |
4970 |
root |
1.116 |
{ |
4971 |
root |
1.166 |
return conftest::setlocale (); |
4972 |
root |
1.116 |
; |
4973 |
|
|
return 0; |
4974 |
|
|
} |
4975 |
|
|
_ACEOF |
4976 |
root |
1.166 |
for ac_lib in '' xpg4 |
4977 |
|
|
do |
4978 |
sf-exg |
1.133 |
if test -z "$ac_lib"; then |
4979 |
|
|
ac_res="none required" |
4980 |
|
|
else |
4981 |
|
|
ac_res=-l$ac_lib |
4982 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4983 |
|
|
fi |
4984 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
4985 |
|
|
then : |
4986 |
sf-exg |
1.133 |
ac_cv_search_setlocale=$ac_res |
4987 |
sf-exg |
1.132 |
fi |
4988 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4989 |
sf-exg |
1.133 |
conftest$ac_exeext |
4990 |
root |
1.166 |
if test ${ac_cv_search_setlocale+y} |
4991 |
|
|
then : |
4992 |
sf-exg |
1.133 |
break |
4993 |
|
|
fi |
4994 |
|
|
done |
4995 |
root |
1.166 |
if test ${ac_cv_search_setlocale+y} |
4996 |
|
|
then : |
4997 |
sf-exg |
1.133 |
|
4998 |
root |
1.166 |
else $as_nop |
4999 |
sf-exg |
1.133 |
ac_cv_search_setlocale=no |
5000 |
root |
1.116 |
fi |
5001 |
sf-exg |
1.133 |
rm conftest.$ac_ext |
5002 |
|
|
LIBS=$ac_func_search_save_LIBS |
5003 |
root |
1.116 |
fi |
5004 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5 |
5005 |
|
|
printf "%s\n" "$ac_cv_search_setlocale" >&6; } |
5006 |
sf-exg |
1.133 |
ac_res=$ac_cv_search_setlocale |
5007 |
root |
1.166 |
if test "$ac_res" != no |
5008 |
|
|
then : |
5009 |
sf-exg |
1.133 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5010 |
root |
1.116 |
|
5011 |
|
|
fi |
5012 |
|
|
|
5013 |
|
|
|
5014 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
5015 |
|
|
printf %s "checking for library containing gethostbyname... " >&6; } |
5016 |
|
|
if test ${ac_cv_search_gethostbyname+y} |
5017 |
|
|
then : |
5018 |
|
|
printf %s "(cached) " >&6 |
5019 |
|
|
else $as_nop |
5020 |
sf-exg |
1.133 |
ac_func_search_save_LIBS=$LIBS |
5021 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5022 |
root |
1.123 |
/* end confdefs.h. */ |
5023 |
|
|
|
5024 |
root |
1.166 |
namespace conftest { |
5025 |
|
|
extern "C" int gethostbyname (); |
5026 |
|
|
} |
5027 |
root |
1.123 |
int |
5028 |
root |
1.166 |
main (void) |
5029 |
root |
1.123 |
{ |
5030 |
root |
1.166 |
return conftest::gethostbyname (); |
5031 |
root |
1.123 |
; |
5032 |
|
|
return 0; |
5033 |
|
|
} |
5034 |
|
|
_ACEOF |
5035 |
root |
1.166 |
for ac_lib in '' nsl |
5036 |
|
|
do |
5037 |
sf-exg |
1.133 |
if test -z "$ac_lib"; then |
5038 |
|
|
ac_res="none required" |
5039 |
|
|
else |
5040 |
|
|
ac_res=-l$ac_lib |
5041 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5042 |
|
|
fi |
5043 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5044 |
|
|
then : |
5045 |
sf-exg |
1.133 |
ac_cv_search_gethostbyname=$ac_res |
5046 |
sf-exg |
1.132 |
fi |
5047 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5048 |
sf-exg |
1.133 |
conftest$ac_exeext |
5049 |
root |
1.166 |
if test ${ac_cv_search_gethostbyname+y} |
5050 |
|
|
then : |
5051 |
sf-exg |
1.133 |
break |
5052 |
|
|
fi |
5053 |
|
|
done |
5054 |
root |
1.166 |
if test ${ac_cv_search_gethostbyname+y} |
5055 |
|
|
then : |
5056 |
sf-exg |
1.133 |
|
5057 |
root |
1.166 |
else $as_nop |
5058 |
sf-exg |
1.133 |
ac_cv_search_gethostbyname=no |
5059 |
sf-exg |
1.132 |
fi |
5060 |
sf-exg |
1.133 |
rm conftest.$ac_ext |
5061 |
|
|
LIBS=$ac_func_search_save_LIBS |
5062 |
root |
1.123 |
fi |
5063 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
5064 |
|
|
printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
5065 |
sf-exg |
1.133 |
ac_res=$ac_cv_search_gethostbyname |
5066 |
root |
1.166 |
if test "$ac_res" != no |
5067 |
|
|
then : |
5068 |
sf-exg |
1.133 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5069 |
root |
1.123 |
|
5070 |
|
|
fi |
5071 |
|
|
|
5072 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
5073 |
|
|
printf %s "checking for library containing socket... " >&6; } |
5074 |
|
|
if test ${ac_cv_search_socket+y} |
5075 |
|
|
then : |
5076 |
|
|
printf %s "(cached) " >&6 |
5077 |
|
|
else $as_nop |
5078 |
sf-exg |
1.133 |
ac_func_search_save_LIBS=$LIBS |
5079 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5080 |
root |
1.123 |
/* end confdefs.h. */ |
5081 |
|
|
|
5082 |
root |
1.166 |
namespace conftest { |
5083 |
|
|
extern "C" int socket (); |
5084 |
|
|
} |
5085 |
root |
1.123 |
int |
5086 |
root |
1.166 |
main (void) |
5087 |
root |
1.123 |
{ |
5088 |
root |
1.166 |
return conftest::socket (); |
5089 |
root |
1.123 |
; |
5090 |
|
|
return 0; |
5091 |
|
|
} |
5092 |
|
|
_ACEOF |
5093 |
root |
1.166 |
for ac_lib in '' socket |
5094 |
|
|
do |
5095 |
sf-exg |
1.133 |
if test -z "$ac_lib"; then |
5096 |
|
|
ac_res="none required" |
5097 |
|
|
else |
5098 |
|
|
ac_res=-l$ac_lib |
5099 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5100 |
|
|
fi |
5101 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5102 |
|
|
then : |
5103 |
sf-exg |
1.133 |
ac_cv_search_socket=$ac_res |
5104 |
sf-exg |
1.132 |
fi |
5105 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5106 |
sf-exg |
1.133 |
conftest$ac_exeext |
5107 |
root |
1.166 |
if test ${ac_cv_search_socket+y} |
5108 |
|
|
then : |
5109 |
sf-exg |
1.133 |
break |
5110 |
|
|
fi |
5111 |
|
|
done |
5112 |
root |
1.166 |
if test ${ac_cv_search_socket+y} |
5113 |
|
|
then : |
5114 |
sf-exg |
1.133 |
|
5115 |
root |
1.166 |
else $as_nop |
5116 |
sf-exg |
1.133 |
ac_cv_search_socket=no |
5117 |
sf-exg |
1.132 |
fi |
5118 |
sf-exg |
1.133 |
rm conftest.$ac_ext |
5119 |
|
|
LIBS=$ac_func_search_save_LIBS |
5120 |
sf-exg |
1.132 |
fi |
5121 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
5122 |
|
|
printf "%s\n" "$ac_cv_search_socket" >&6; } |
5123 |
sf-exg |
1.133 |
ac_res=$ac_cv_search_socket |
5124 |
root |
1.166 |
if test "$ac_res" != no |
5125 |
|
|
then : |
5126 |
sf-exg |
1.133 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5127 |
root |
1.123 |
|
5128 |
|
|
fi |
5129 |
|
|
|
5130 |
sf-exg |
1.132 |
|
5131 |
|
|
support_frills=yes |
5132 |
|
|
support_inheritpixmap=yes |
5133 |
|
|
support_fading=yes |
5134 |
|
|
support_keepscrolling=yes |
5135 |
|
|
support_selectionscrolling=yes |
5136 |
|
|
support_mousewheel=yes |
5137 |
|
|
support_mouseslipwheel=yes |
5138 |
|
|
support_text_blink=yes |
5139 |
|
|
support_pointer_blank=yes |
5140 |
|
|
support_scroll_rxvt=yes |
5141 |
|
|
support_scroll_next=yes |
5142 |
|
|
support_scroll_xterm=yes |
5143 |
|
|
support_xim=yes |
5144 |
sf-exg |
1.142 |
support_pixbuf=yes |
5145 |
mikachu |
1.147 |
support_startup_notification=yes |
5146 |
sf-exg |
1.132 |
support_xft=yes |
5147 |
|
|
support_unicode3=no |
5148 |
|
|
support_combining=yes |
5149 |
|
|
support_8bitctrls=no |
5150 |
|
|
support_iso14755=yes |
5151 |
|
|
support_styles=yes |
5152 |
|
|
support_perl=yes |
5153 |
|
|
codesets=all |
5154 |
|
|
|
5155 |
|
|
|
5156 |
|
|
# Check whether --enable-everything was given. |
5157 |
root |
1.166 |
if test ${enable_everything+y} |
5158 |
|
|
then : |
5159 |
sf-exg |
1.132 |
enableval=$enable_everything; |
5160 |
|
|
if test x$enableval = xno; then |
5161 |
|
|
support_frills=no |
5162 |
|
|
support_inheritpixmap=no |
5163 |
|
|
support_fading=no |
5164 |
|
|
support_keepscrolling=no |
5165 |
|
|
support_selectionscrolling=no |
5166 |
|
|
support_lastlog=no |
5167 |
|
|
support_mousewheel=no |
5168 |
|
|
support_mouseslipwheel=no |
5169 |
|
|
support_text_blink=no |
5170 |
|
|
support_pointer_blank=no |
5171 |
|
|
support_scroll_rxvt=no |
5172 |
|
|
support_scroll_next=no |
5173 |
|
|
support_scroll_xterm=no |
5174 |
|
|
support_utmp=no |
5175 |
|
|
support_wtmp=no |
5176 |
|
|
support_xim=no |
5177 |
sf-exg |
1.142 |
support_pixbuf=no |
5178 |
mikachu |
1.147 |
support_startup_notification=no |
5179 |
sf-exg |
1.132 |
support_xft=no |
5180 |
|
|
support_unicode3=no |
5181 |
|
|
support_combining=no |
5182 |
|
|
support_8bitctrls=no |
5183 |
|
|
support_iso14755=no |
5184 |
|
|
support_styles=no |
5185 |
|
|
support_perl=no |
5186 |
|
|
codesets= |
5187 |
|
|
fi |
5188 |
|
|
if test x$enableval = xyes; then |
5189 |
|
|
support_frills=yes |
5190 |
|
|
support_inheritpixmap=yes |
5191 |
|
|
support_fading=yes |
5192 |
|
|
support_keepscrolling=yes |
5193 |
|
|
support_selectionscrolling=yes |
5194 |
|
|
support_lastlog=yes |
5195 |
|
|
support_mousewheel=yes |
5196 |
|
|
support_mouseslipwheel=yes |
5197 |
|
|
support_text_blink=yes |
5198 |
|
|
support_pointer_blank=yes |
5199 |
|
|
support_scroll_rxvt=yes |
5200 |
|
|
support_scroll_next=yes |
5201 |
|
|
support_scroll_xterm=yes |
5202 |
|
|
support_utmp=yes |
5203 |
|
|
support_wtmp=yes |
5204 |
|
|
support_xim=yes |
5205 |
sf-exg |
1.142 |
support_pixbuf=yes |
5206 |
mikachu |
1.147 |
support_startup_notification=yes |
5207 |
sf-exg |
1.132 |
support_xft=yes |
5208 |
|
|
support_unicode3=yes |
5209 |
|
|
support_combining=yes |
5210 |
|
|
#support_8bitctrls=yes |
5211 |
|
|
support_iso14755=yes |
5212 |
|
|
support_styles=yes |
5213 |
|
|
support_perl=yes |
5214 |
|
|
codesets=all |
5215 |
|
|
fi |
5216 |
|
|
|
5217 |
root |
1.123 |
fi |
5218 |
|
|
|
5219 |
|
|
|
5220 |
root |
1.150 |
support_assertions=no |
5221 |
sf-exg |
1.132 |
# Check whether --enable-assert was given. |
5222 |
root |
1.166 |
if test ${enable_assert+y} |
5223 |
|
|
then : |
5224 |
sf-exg |
1.132 |
enableval=$enable_assert; if test x$enableval = xyes; then |
5225 |
root |
1.150 |
support_assertions=yes |
5226 |
sf-exg |
1.132 |
fi |
5227 |
root |
1.123 |
fi |
5228 |
|
|
|
5229 |
root |
1.150 |
if test x$support_assertions = xno; then |
5230 |
root |
1.123 |
|
5231 |
root |
1.166 |
printf "%s\n" "#define NDEBUG 1" >>confdefs.h |
5232 |
root |
1.123 |
|
5233 |
sf-exg |
1.132 |
fi |
5234 |
root |
1.123 |
|
5235 |
root |
1.150 |
support_warnings=no |
5236 |
sf-exg |
1.132 |
# Check whether --enable-warnings was given. |
5237 |
root |
1.166 |
if test ${enable_warnings+y} |
5238 |
|
|
then : |
5239 |
sf-exg |
1.132 |
enableval=$enable_warnings; if test x$enableval = xyes; then |
5240 |
root |
1.150 |
support_warnings=yes |
5241 |
sf-exg |
1.132 |
fi |
5242 |
|
|
fi |
5243 |
root |
1.123 |
|
5244 |
sf-exg |
1.132 |
if test x$GXX = xyes; then |
5245 |
root |
1.150 |
if test $support_warnings = yes; then |
5246 |
sf-exg |
1.132 |
save_CXXFLAGS="$CXXFLAGS" |
5247 |
root |
1.150 |
CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
5248 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5249 |
|
|
/* end confdefs.h. */ |
5250 |
root |
1.123 |
|
5251 |
|
|
int |
5252 |
root |
1.166 |
main (void) |
5253 |
root |
1.123 |
{ |
5254 |
sf-exg |
1.132 |
|
5255 |
root |
1.123 |
; |
5256 |
|
|
return 0; |
5257 |
|
|
} |
5258 |
|
|
_ACEOF |
5259 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
5260 |
|
|
then : |
5261 |
sf-exg |
1.132 |
|
5262 |
root |
1.166 |
else $as_nop |
5263 |
sf-exg |
1.132 |
CXXFLAGS="$save_CXXFLAGS" |
5264 |
|
|
fi |
5265 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5266 |
sf-exg |
1.132 |
else |
5267 |
|
|
CXXFLAGS="$CXXFLAGS -w" |
5268 |
|
|
fi |
5269 |
|
|
fi |
5270 |
|
|
|
5271 |
|
|
support_256_color=no |
5272 |
|
|
# Check whether --enable-256-color was given. |
5273 |
root |
1.166 |
if test ${enable_256_color+y} |
5274 |
|
|
then : |
5275 |
sf-exg |
1.132 |
enableval=$enable_256_color; if test x$enableval = xyes; then |
5276 |
|
|
support_256_color=yes |
5277 |
|
|
fi |
5278 |
|
|
fi |
5279 |
|
|
|
5280 |
|
|
if test x$support_256_color = xyes; then |
5281 |
|
|
|
5282 |
root |
1.166 |
printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h |
5283 |
sf-exg |
1.132 |
|
5284 |
|
|
fi |
5285 |
|
|
|
5286 |
|
|
# Check whether --enable-unicode3 was given. |
5287 |
root |
1.166 |
if test ${enable_unicode3+y} |
5288 |
|
|
then : |
5289 |
sf-exg |
1.132 |
enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
5290 |
|
|
support_unicode3=$enableval |
5291 |
|
|
fi |
5292 |
|
|
fi |
5293 |
|
|
|
5294 |
|
|
|
5295 |
|
|
# Check whether --enable-combining was given. |
5296 |
root |
1.166 |
if test ${enable_combining+y} |
5297 |
|
|
then : |
5298 |
sf-exg |
1.132 |
enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
5299 |
|
|
support_combining=$enableval |
5300 |
|
|
fi |
5301 |
|
|
fi |
5302 |
|
|
|
5303 |
|
|
|
5304 |
|
|
# Check whether --enable-xft was given. |
5305 |
root |
1.166 |
if test ${enable_xft+y} |
5306 |
|
|
then : |
5307 |
sf-exg |
1.132 |
enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
5308 |
|
|
support_xft=$enableval |
5309 |
|
|
fi |
5310 |
|
|
fi |
5311 |
|
|
|
5312 |
|
|
|
5313 |
|
|
# Check whether --enable-font-styles was given. |
5314 |
root |
1.166 |
if test ${enable_font_styles+y} |
5315 |
|
|
then : |
5316 |
sf-exg |
1.132 |
enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
5317 |
|
|
support_styles=$enableval |
5318 |
|
|
fi |
5319 |
|
|
fi |
5320 |
|
|
|
5321 |
root |
1.123 |
|
5322 |
sf-exg |
1.134 |
# Check whether --enable-pixbuf was given. |
5323 |
root |
1.166 |
if test ${enable_pixbuf+y} |
5324 |
|
|
then : |
5325 |
sf-exg |
1.134 |
enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
5326 |
|
|
support_pixbuf=$enableval |
5327 |
|
|
fi |
5328 |
|
|
fi |
5329 |
|
|
|
5330 |
|
|
|
5331 |
mikachu |
1.147 |
# Check whether --enable-startup-notification was given. |
5332 |
root |
1.166 |
if test ${enable_startup_notification+y} |
5333 |
|
|
then : |
5334 |
mikachu |
1.147 |
enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then |
5335 |
|
|
support_startup_notification=$enableval |
5336 |
|
|
fi |
5337 |
|
|
fi |
5338 |
|
|
|
5339 |
|
|
|
5340 |
sf-exg |
1.132 |
# Check whether --enable-transparency was given. |
5341 |
root |
1.166 |
if test ${enable_transparency+y} |
5342 |
|
|
then : |
5343 |
sf-exg |
1.132 |
enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
5344 |
|
|
support_inheritpixmap=$enableval |
5345 |
|
|
fi |
5346 |
root |
1.123 |
fi |
5347 |
|
|
|
5348 |
|
|
|
5349 |
sf-exg |
1.132 |
# Check whether --enable-fading was given. |
5350 |
root |
1.166 |
if test ${enable_fading+y} |
5351 |
|
|
then : |
5352 |
sf-exg |
1.132 |
enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
5353 |
|
|
support_fading=$enableval |
5354 |
|
|
fi |
5355 |
root |
1.123 |
fi |
5356 |
|
|
|
5357 |
|
|
|
5358 |
sf-exg |
1.132 |
# Check whether --enable-rxvt-scroll was given. |
5359 |
root |
1.166 |
if test ${enable_rxvt_scroll+y} |
5360 |
|
|
then : |
5361 |
sf-exg |
1.132 |
enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5362 |
|
|
support_scroll_rxvt=$enableval |
5363 |
|
|
fi |
5364 |
|
|
fi |
5365 |
root |
1.116 |
|
5366 |
|
|
|
5367 |
sf-exg |
1.132 |
# Check whether --enable-next-scroll was given. |
5368 |
root |
1.166 |
if test ${enable_next_scroll+y} |
5369 |
|
|
then : |
5370 |
sf-exg |
1.132 |
enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5371 |
|
|
support_scroll_next=$enableval |
5372 |
|
|
fi |
5373 |
|
|
fi |
5374 |
root |
1.116 |
|
5375 |
|
|
|
5376 |
sf-exg |
1.132 |
# Check whether --enable-xterm-scroll was given. |
5377 |
root |
1.166 |
if test ${enable_xterm_scroll+y} |
5378 |
|
|
then : |
5379 |
sf-exg |
1.132 |
enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5380 |
|
|
support_scroll_xterm=$enableval |
5381 |
|
|
fi |
5382 |
root |
1.116 |
fi |
5383 |
|
|
|
5384 |
|
|
|
5385 |
sf-exg |
1.132 |
# Check whether --enable-perl was given. |
5386 |
root |
1.166 |
if test ${enable_perl+y} |
5387 |
|
|
then : |
5388 |
sf-exg |
1.132 |
enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
5389 |
|
|
support_perl=$enableval |
5390 |
|
|
fi |
5391 |
root |
1.116 |
fi |
5392 |
|
|
|
5393 |
|
|
|
5394 |
|
|
|
5395 |
sf-exg |
1.132 |
# Check whether --with-codesets was given. |
5396 |
root |
1.166 |
if test ${with_codesets+y} |
5397 |
|
|
then : |
5398 |
sf-exg |
1.132 |
withval=$with_codesets; codesets="$withval" |
5399 |
|
|
fi |
5400 |
root |
1.116 |
|
5401 |
|
|
|
5402 |
sf-exg |
1.132 |
# Check whether --enable-xim was given. |
5403 |
root |
1.166 |
if test ${enable_xim+y} |
5404 |
|
|
then : |
5405 |
sf-exg |
1.132 |
enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
5406 |
|
|
support_xim=$enableval |
5407 |
root |
1.116 |
fi |
5408 |
sf-exg |
1.132 |
fi |
5409 |
|
|
|
5410 |
root |
1.116 |
|
5411 |
sf-exg |
1.132 |
# Check whether --enable-backspace-key was given. |
5412 |
root |
1.166 |
if test ${enable_backspace_key+y} |
5413 |
|
|
then : |
5414 |
sf-exg |
1.132 |
enableval=$enable_backspace_key; if test x$enableval = xno; then |
5415 |
root |
1.80 |
|
5416 |
root |
1.166 |
printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h |
5417 |
root |
1.116 |
|
5418 |
sf-exg |
1.132 |
fi |
5419 |
|
|
fi |
5420 |
root |
1.116 |
|
5421 |
pcg |
1.24 |
|
5422 |
sf-exg |
1.132 |
# Check whether --enable-delete-key was given. |
5423 |
root |
1.166 |
if test ${enable_delete_key+y} |
5424 |
|
|
then : |
5425 |
sf-exg |
1.132 |
enableval=$enable_delete_key; if test x$enableval = xno; then |
5426 |
pcg |
1.11 |
|
5427 |
root |
1.166 |
printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h |
5428 |
pcg |
1.1 |
|
5429 |
|
|
fi |
5430 |
|
|
fi |
5431 |
|
|
|
5432 |
pcg |
1.11 |
|
5433 |
sf-exg |
1.162 |
support_resources=yes |
5434 |
sf-exg |
1.132 |
# Check whether --enable-resources was given. |
5435 |
root |
1.166 |
if test ${enable_resources+y} |
5436 |
|
|
then : |
5437 |
sf-exg |
1.132 |
enableval=$enable_resources; if test x$enableval = xno; then |
5438 |
sf-exg |
1.162 |
support_resources=no |
5439 |
sf-exg |
1.132 |
fi |
5440 |
|
|
fi |
5441 |
pcg |
1.11 |
|
5442 |
|
|
|
5443 |
sf-exg |
1.132 |
# Check whether --enable-8bitctrls was given. |
5444 |
root |
1.166 |
if test ${enable_8bitctrls+y} |
5445 |
|
|
then : |
5446 |
sf-exg |
1.132 |
enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
5447 |
|
|
support_8bitctrls=$enableval |
5448 |
|
|
fi |
5449 |
|
|
fi |
5450 |
pcg |
1.11 |
|
5451 |
pcg |
1.1 |
|
5452 |
sf-exg |
1.132 |
RESFALLBACK=Rxvt |
5453 |
|
|
# Check whether --enable-fallback was given. |
5454 |
root |
1.166 |
if test ${enable_fallback+y} |
5455 |
|
|
then : |
5456 |
sf-exg |
1.132 |
enableval=$enable_fallback; |
5457 |
|
|
test x$enableval = xyes && enableval=Rxvt |
5458 |
|
|
test x$enableval = xno && enableval= |
5459 |
|
|
RESFALLBACK="$enableval" |
5460 |
pcg |
1.11 |
|
5461 |
pcg |
1.1 |
fi |
5462 |
ayin |
1.108 |
|
5463 |
pcg |
1.1 |
|
5464 |
sf-exg |
1.132 |
if test x$RESFALLBACK != x; then |
5465 |
|
|
|
5466 |
root |
1.166 |
printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h |
5467 |
pcg |
1.11 |
|
5468 |
pcg |
1.1 |
fi |
5469 |
ayin |
1.108 |
|
5470 |
sf-exg |
1.132 |
RESNAME=urxvt |
5471 |
pcg |
1.1 |
|
5472 |
sf-exg |
1.132 |
# Check whether --with-res-name was given. |
5473 |
root |
1.166 |
if test ${with_res_name+y} |
5474 |
|
|
then : |
5475 |
sf-exg |
1.132 |
withval=$with_res_name; RESNAME="$withval" |
5476 |
ayin |
1.106 |
fi |
5477 |
pcg |
1.1 |
|
5478 |
sf-exg |
1.132 |
|
5479 |
root |
1.166 |
printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h |
5480 |
sf-exg |
1.132 |
|
5481 |
|
|
|
5482 |
|
|
RESCLASS=URxvt |
5483 |
|
|
|
5484 |
|
|
# Check whether --with-res-class was given. |
5485 |
root |
1.166 |
if test ${with_res_class+y} |
5486 |
|
|
then : |
5487 |
sf-exg |
1.132 |
withval=$with_res_class; RESCLASS="$withval" |
5488 |
pcg |
1.1 |
fi |
5489 |
|
|
|
5490 |
pcg |
1.11 |
|
5491 |
root |
1.166 |
printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h |
5492 |
pcg |
1.1 |
|
5493 |
|
|
|
5494 |
sf-exg |
1.132 |
RXVTNAME=urxvt |
5495 |
|
|
|
5496 |
|
|
# Check whether --with-name was given. |
5497 |
root |
1.166 |
if test ${with_name+y} |
5498 |
|
|
then : |
5499 |
sf-exg |
1.132 |
withval=$with_name; RXVTNAME="$withval" |
5500 |
|
|
fi |
5501 |
|
|
|
5502 |
|
|
|
5503 |
root |
1.166 |
printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h |
5504 |
pcg |
1.1 |
|
5505 |
|
|
|
5506 |
pcg |
1.11 |
|
5507 |
pcg |
1.1 |
|
5508 |
sf-exg |
1.132 |
# Check whether --enable-swapscreen was given. |
5509 |
root |
1.166 |
if test ${enable_swapscreen+y} |
5510 |
|
|
then : |
5511 |
sf-exg |
1.132 |
enableval=$enable_swapscreen; if test x$enableval = xno; then |
5512 |
pcg |
1.1 |
|
5513 |
root |
1.166 |
printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h |
5514 |
pcg |
1.11 |
|
5515 |
sf-exg |
1.132 |
fi |
5516 |
ayin |
1.102 |
fi |
5517 |
ayin |
1.108 |
|
5518 |
|
|
|
5519 |
sf-exg |
1.132 |
# Check whether --enable-iso14755 was given. |
5520 |
root |
1.166 |
if test ${enable_iso14755+y} |
5521 |
|
|
then : |
5522 |
sf-exg |
1.132 |
enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
5523 |
|
|
support_iso14755=$enableval |
5524 |
pcg |
1.1 |
fi |
5525 |
sf-exg |
1.132 |
fi |
5526 |
pcg |
1.1 |
|
5527 |
|
|
|
5528 |
sf-exg |
1.132 |
# Check whether --enable-frills was given. |
5529 |
root |
1.166 |
if test ${enable_frills+y} |
5530 |
|
|
then : |
5531 |
sf-exg |
1.132 |
enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
5532 |
|
|
support_frills=$enableval |
5533 |
|
|
fi |
5534 |
|
|
fi |
5535 |
pcg |
1.11 |
|
5536 |
pcg |
1.1 |
|
5537 |
sf-exg |
1.132 |
# Check whether --enable-keepscrolling was given. |
5538 |
root |
1.166 |
if test ${enable_keepscrolling+y} |
5539 |
|
|
then : |
5540 |
sf-exg |
1.132 |
enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5541 |
|
|
support_keepscrolling=$enableval |
5542 |
|
|
fi |
5543 |
|
|
fi |
5544 |
pcg |
1.1 |
|
5545 |
pcg |
1.11 |
|
5546 |
sf-exg |
1.132 |
# Check whether --enable-selectionscrolling was given. |
5547 |
root |
1.166 |
if test ${enable_selectionscrolling+y} |
5548 |
|
|
then : |
5549 |
sf-exg |
1.132 |
enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5550 |
|
|
support_selectionscrolling=$enableval |
5551 |
|
|
fi |
5552 |
pcg |
1.11 |
fi |
5553 |
ayin |
1.108 |
|
5554 |
sf-exg |
1.132 |
|
5555 |
|
|
# Check whether --enable-mousewheel was given. |
5556 |
root |
1.166 |
if test ${enable_mousewheel+y} |
5557 |
|
|
then : |
5558 |
sf-exg |
1.132 |
enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
5559 |
|
|
support_mousewheel=$enableval |
5560 |
|
|
fi |
5561 |
pcg |
1.1 |
fi |
5562 |
|
|
|
5563 |
pcg |
1.11 |
|
5564 |
sf-exg |
1.132 |
# Check whether --enable-slipwheeling was given. |
5565 |
root |
1.166 |
if test ${enable_slipwheeling+y} |
5566 |
|
|
then : |
5567 |
sf-exg |
1.132 |
enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
5568 |
|
|
support_mouseslipwheel=$enableval |
5569 |
|
|
fi |
5570 |
pcg |
1.11 |
fi |
5571 |
ayin |
1.108 |
|
5572 |
sf-exg |
1.132 |
|
5573 |
|
|
# Check whether --enable-smart-resize was given. |
5574 |
root |
1.166 |
if test ${enable_smart_resize+y} |
5575 |
|
|
then : |
5576 |
sf-exg |
1.132 |
enableval=$enable_smart_resize; if test x$enableval = xyes; then |
5577 |
|
|
|
5578 |
root |
1.166 |
printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h |
5579 |
sf-exg |
1.132 |
|
5580 |
|
|
fi |
5581 |
pcg |
1.11 |
fi |
5582 |
sf-exg |
1.132 |
|
5583 |
|
|
|
5584 |
|
|
# Check whether --enable-text-blink was given. |
5585 |
root |
1.166 |
if test ${enable_text_blink+y} |
5586 |
|
|
then : |
5587 |
sf-exg |
1.132 |
enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
5588 |
|
|
support_text_blink=$enableval |
5589 |
|
|
fi |
5590 |
pcg |
1.1 |
fi |
5591 |
|
|
|
5592 |
sf-exg |
1.132 |
|
5593 |
|
|
# Check whether --enable-pointer-blank was given. |
5594 |
root |
1.166 |
if test ${enable_pointer_blank+y} |
5595 |
|
|
then : |
5596 |
sf-exg |
1.132 |
enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
5597 |
|
|
support_pointer_blank=$enableval |
5598 |
|
|
fi |
5599 |
pcg |
1.11 |
fi |
5600 |
ayin |
1.108 |
|
5601 |
pcg |
1.1 |
|
5602 |
sf-exg |
1.132 |
|
5603 |
|
|
# Check whether --with-term was given. |
5604 |
root |
1.166 |
if test ${with_term+y} |
5605 |
|
|
then : |
5606 |
sf-exg |
1.132 |
withval=$with_term; if test x$withval != x; then |
5607 |
|
|
|
5608 |
root |
1.166 |
printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h |
5609 |
sf-exg |
1.132 |
term="$withval" |
5610 |
|
|
fi |
5611 |
|
|
fi |
5612 |
pcg |
1.11 |
|
5613 |
|
|
|
5614 |
|
|
|
5615 |
sf-exg |
1.132 |
# Check whether --with-terminfo was given. |
5616 |
root |
1.166 |
if test ${with_terminfo+y} |
5617 |
|
|
then : |
5618 |
sf-exg |
1.132 |
withval=$with_terminfo; if test x$withval != x; then |
5619 |
pcg |
1.11 |
|
5620 |
root |
1.166 |
printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h |
5621 |
sf-exg |
1.132 |
terminfo="$withval" |
5622 |
|
|
fi |
5623 |
|
|
fi |
5624 |
pcg |
1.1 |
|
5625 |
pcg |
1.11 |
|
5626 |
sf-exg |
1.162 |
if test x$support_resources = xno; then |
5627 |
|
|
if test x$support_frills = xyes || test x$support_perl = xyes; then |
5628 |
|
|
as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5 |
5629 |
|
|
fi |
5630 |
|
|
|
5631 |
|
|
|
5632 |
root |
1.166 |
printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h |
5633 |
sf-exg |
1.162 |
|
5634 |
|
|
fi |
5635 |
|
|
|
5636 |
ayin |
1.108 |
|
5637 |
sf-exg |
1.132 |
LIBEV_M4_AVOID_LIBRT=1 |
5638 |
pcg |
1.11 |
|
5639 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
5640 |
|
|
if test "x$ac_cv_header_sys_inotify_h" = xyes |
5641 |
|
|
then : |
5642 |
|
|
printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h |
5643 |
sf-exg |
1.132 |
|
5644 |
pcg |
1.11 |
fi |
5645 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
5646 |
|
|
if test "x$ac_cv_header_sys_epoll_h" = xyes |
5647 |
|
|
then : |
5648 |
|
|
printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
5649 |
ayin |
1.108 |
|
5650 |
pcg |
1.11 |
fi |
5651 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
5652 |
|
|
if test "x$ac_cv_header_sys_event_h" = xyes |
5653 |
|
|
then : |
5654 |
|
|
printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
5655 |
ayin |
1.108 |
|
5656 |
pcg |
1.1 |
fi |
5657 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" |
5658 |
|
|
if test "x$ac_cv_header_port_h" = xyes |
5659 |
|
|
then : |
5660 |
|
|
printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h |
5661 |
pcg |
1.1 |
|
5662 |
root |
1.166 |
fi |
5663 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
5664 |
|
|
if test "x$ac_cv_header_poll_h" = xyes |
5665 |
|
|
then : |
5666 |
|
|
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
5667 |
pcg |
1.1 |
|
5668 |
sf-exg |
1.132 |
fi |
5669 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
5670 |
|
|
if test "x$ac_cv_header_sys_timerfd_h" = xyes |
5671 |
|
|
then : |
5672 |
|
|
printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h |
5673 |
|
|
|
5674 |
sf-exg |
1.132 |
fi |
5675 |
pcg |
1.11 |
|
5676 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
5677 |
|
|
if test "x$ac_cv_header_sys_select_h" = xyes |
5678 |
|
|
then : |
5679 |
|
|
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
5680 |
|
|
|
5681 |
sf-exg |
1.132 |
fi |
5682 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
5683 |
|
|
if test "x$ac_cv_header_sys_eventfd_h" = xyes |
5684 |
|
|
then : |
5685 |
|
|
printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
5686 |
pcg |
1.11 |
|
5687 |
sf-exg |
1.132 |
fi |
5688 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default" |
5689 |
|
|
if test "x$ac_cv_header_sys_signalfd_h" = xyes |
5690 |
|
|
then : |
5691 |
|
|
printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h |
5692 |
sf-exg |
1.132 |
|
5693 |
root |
1.166 |
fi |
5694 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default" |
5695 |
|
|
if test "x$ac_cv_header_linux_aio_abi_h" = xyes |
5696 |
|
|
then : |
5697 |
|
|
printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h |
5698 |
pcg |
1.11 |
|
5699 |
pcg |
1.1 |
fi |
5700 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
5701 |
|
|
if test "x$ac_cv_header_linux_fs_h" = xyes |
5702 |
|
|
then : |
5703 |
|
|
printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
5704 |
ayin |
1.108 |
|
5705 |
root |
1.166 |
fi |
5706 |
pcg |
1.1 |
|
5707 |
pcg |
1.11 |
|
5708 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" |
5709 |
|
|
if test "x$ac_cv_func_inotify_init" = xyes |
5710 |
|
|
then : |
5711 |
|
|
printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h |
5712 |
root |
1.164 |
|
5713 |
|
|
fi |
5714 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" |
5715 |
|
|
if test "x$ac_cv_func_epoll_ctl" = xyes |
5716 |
|
|
then : |
5717 |
|
|
printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h |
5718 |
root |
1.164 |
|
5719 |
root |
1.166 |
fi |
5720 |
|
|
ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" |
5721 |
|
|
if test "x$ac_cv_func_kqueue" = xyes |
5722 |
|
|
then : |
5723 |
|
|
printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
5724 |
root |
1.164 |
|
5725 |
root |
1.166 |
fi |
5726 |
|
|
ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create" |
5727 |
|
|
if test "x$ac_cv_func_port_create" = xyes |
5728 |
|
|
then : |
5729 |
|
|
printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h |
5730 |
pcg |
1.11 |
|
5731 |
|
|
fi |
5732 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll" |
5733 |
|
|
if test "x$ac_cv_func_poll" = xyes |
5734 |
|
|
then : |
5735 |
|
|
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
5736 |
ayin |
1.108 |
|
5737 |
root |
1.166 |
fi |
5738 |
|
|
ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select" |
5739 |
|
|
if test "x$ac_cv_func_select" = xyes |
5740 |
|
|
then : |
5741 |
|
|
printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
5742 |
pcg |
1.1 |
|
5743 |
root |
1.166 |
fi |
5744 |
|
|
ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
5745 |
|
|
if test "x$ac_cv_func_eventfd" = xyes |
5746 |
|
|
then : |
5747 |
|
|
printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
5748 |
pcg |
1.1 |
|
5749 |
root |
1.166 |
fi |
5750 |
|
|
ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd" |
5751 |
|
|
if test "x$ac_cv_func_signalfd" = xyes |
5752 |
|
|
then : |
5753 |
|
|
printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h |
5754 |
pcg |
1.11 |
|
5755 |
sf-exg |
1.132 |
fi |
5756 |
pcg |
1.11 |
|
5757 |
|
|
|
5758 |
root |
1.166 |
|
5759 |
|
|
for ac_func in clock_gettime |
5760 |
root |
1.143 |
do : |
5761 |
|
|
ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
5762 |
root |
1.166 |
if test "x$ac_cv_func_clock_gettime" = xyes |
5763 |
|
|
then : |
5764 |
|
|
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
5765 |
pcg |
1.11 |
|
5766 |
root |
1.166 |
else $as_nop |
5767 |
pcg |
1.1 |
|
5768 |
sf-exg |
1.132 |
if test $(uname) = Linux; then |
5769 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
5770 |
|
|
printf %s "checking for clock_gettime syscall... " >&6; } |
5771 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5772 |
|
|
/* end confdefs.h. */ |
5773 |
|
|
#include <unistd.h> |
5774 |
|
|
#include <sys/syscall.h> |
5775 |
|
|
#include <time.h> |
5776 |
pcg |
1.11 |
int |
5777 |
root |
1.166 |
main (void) |
5778 |
pcg |
1.11 |
{ |
5779 |
sf-exg |
1.132 |
struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
5780 |
pcg |
1.11 |
; |
5781 |
|
|
return 0; |
5782 |
|
|
} |
5783 |
|
|
_ACEOF |
5784 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5785 |
|
|
then : |
5786 |
sf-exg |
1.132 |
ac_have_clock_syscall=1 |
5787 |
pcg |
1.11 |
|
5788 |
root |
1.166 |
printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
5789 |
ayin |
1.108 |
|
5790 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5791 |
|
|
printf "%s\n" "yes" >&6; } |
5792 |
|
|
else $as_nop |
5793 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5794 |
|
|
printf "%s\n" "no" >&6; } |
5795 |
pcg |
1.1 |
fi |
5796 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5797 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
5798 |
|
|
fi |
5799 |
|
|
if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5800 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
5801 |
|
|
printf %s "checking for clock_gettime in -lrt... " >&6; } |
5802 |
|
|
if test ${ac_cv_lib_rt_clock_gettime+y} |
5803 |
|
|
then : |
5804 |
|
|
printf %s "(cached) " >&6 |
5805 |
|
|
else $as_nop |
5806 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
5807 |
sf-exg |
1.132 |
LIBS="-lrt $LIBS" |
5808 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5809 |
pcg |
1.11 |
/* end confdefs.h. */ |
5810 |
|
|
|
5811 |
root |
1.166 |
namespace conftest { |
5812 |
|
|
extern "C" int clock_gettime (); |
5813 |
|
|
} |
5814 |
pcg |
1.11 |
int |
5815 |
root |
1.166 |
main (void) |
5816 |
pcg |
1.11 |
{ |
5817 |
root |
1.166 |
return conftest::clock_gettime (); |
5818 |
pcg |
1.11 |
; |
5819 |
|
|
return 0; |
5820 |
|
|
} |
5821 |
|
|
_ACEOF |
5822 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5823 |
|
|
then : |
5824 |
sf-exg |
1.132 |
ac_cv_lib_rt_clock_gettime=yes |
5825 |
root |
1.166 |
else $as_nop |
5826 |
sf-exg |
1.132 |
ac_cv_lib_rt_clock_gettime=no |
5827 |
pcg |
1.11 |
fi |
5828 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5829 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
5830 |
pcg |
1.11 |
LIBS=$ac_check_lib_save_LIBS |
5831 |
|
|
fi |
5832 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
5833 |
|
|
printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
5834 |
|
|
if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
5835 |
|
|
then : |
5836 |
|
|
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
5837 |
sf-exg |
1.132 |
|
5838 |
|
|
LIBS="-lrt $LIBS" |
5839 |
|
|
|
5840 |
pcg |
1.1 |
fi |
5841 |
|
|
|
5842 |
sf-exg |
1.132 |
unset ac_cv_func_clock_gettime |
5843 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
5844 |
|
|
if test "x$ac_cv_func_clock_gettime" = xyes |
5845 |
|
|
then : |
5846 |
|
|
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
5847 |
pcg |
1.1 |
|
5848 |
sf-exg |
1.132 |
fi |
5849 |
pcg |
1.11 |
|
5850 |
sf-exg |
1.132 |
fi |
5851 |
pcg |
1.11 |
|
5852 |
sf-exg |
1.132 |
fi |
5853 |
root |
1.166 |
|
5854 |
root |
1.143 |
done |
5855 |
pcg |
1.11 |
|
5856 |
|
|
|
5857 |
root |
1.166 |
for ac_func in nanosleep |
5858 |
root |
1.143 |
do : |
5859 |
|
|
ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5860 |
root |
1.166 |
if test "x$ac_cv_func_nanosleep" = xyes |
5861 |
|
|
then : |
5862 |
|
|
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
5863 |
pcg |
1.11 |
|
5864 |
root |
1.166 |
else $as_nop |
5865 |
pcg |
1.1 |
|
5866 |
sf-exg |
1.132 |
if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5867 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
5868 |
|
|
printf %s "checking for nanosleep in -lrt... " >&6; } |
5869 |
|
|
if test ${ac_cv_lib_rt_nanosleep+y} |
5870 |
|
|
then : |
5871 |
|
|
printf %s "(cached) " >&6 |
5872 |
|
|
else $as_nop |
5873 |
pcg |
1.11 |
ac_check_lib_save_LIBS=$LIBS |
5874 |
sf-exg |
1.132 |
LIBS="-lrt $LIBS" |
5875 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5876 |
pcg |
1.11 |
/* end confdefs.h. */ |
5877 |
|
|
|
5878 |
root |
1.166 |
namespace conftest { |
5879 |
|
|
extern "C" int nanosleep (); |
5880 |
|
|
} |
5881 |
pcg |
1.11 |
int |
5882 |
root |
1.166 |
main (void) |
5883 |
pcg |
1.11 |
{ |
5884 |
root |
1.166 |
return conftest::nanosleep (); |
5885 |
pcg |
1.11 |
; |
5886 |
|
|
return 0; |
5887 |
|
|
} |
5888 |
|
|
_ACEOF |
5889 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5890 |
|
|
then : |
5891 |
sf-exg |
1.132 |
ac_cv_lib_rt_nanosleep=yes |
5892 |
root |
1.166 |
else $as_nop |
5893 |
sf-exg |
1.132 |
ac_cv_lib_rt_nanosleep=no |
5894 |
|
|
fi |
5895 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5896 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
5897 |
|
|
LIBS=$ac_check_lib_save_LIBS |
5898 |
|
|
fi |
5899 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
5900 |
|
|
printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } |
5901 |
|
|
if test "x$ac_cv_lib_rt_nanosleep" = xyes |
5902 |
|
|
then : |
5903 |
|
|
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
5904 |
sf-exg |
1.132 |
|
5905 |
|
|
LIBS="-lrt $LIBS" |
5906 |
pcg |
1.11 |
|
5907 |
|
|
fi |
5908 |
ayin |
1.108 |
|
5909 |
sf-exg |
1.132 |
unset ac_cv_func_nanosleep |
5910 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5911 |
|
|
if test "x$ac_cv_func_nanosleep" = xyes |
5912 |
|
|
then : |
5913 |
|
|
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
5914 |
sf-exg |
1.132 |
|
5915 |
pcg |
1.11 |
fi |
5916 |
sf-exg |
1.132 |
|
5917 |
|
|
fi |
5918 |
|
|
|
5919 |
pcg |
1.1 |
fi |
5920 |
root |
1.166 |
|
5921 |
root |
1.143 |
done |
5922 |
pcg |
1.1 |
|
5923 |
root |
1.165 |
ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
5924 |
|
|
" |
5925 |
root |
1.166 |
if test "x$ac_cv_type___kernel_rwf_t" = xyes |
5926 |
|
|
then : |
5927 |
root |
1.165 |
|
5928 |
|
|
|
5929 |
root |
1.166 |
printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
5930 |
root |
1.165 |
|
5931 |
|
|
|
5932 |
|
|
fi |
5933 |
|
|
|
5934 |
|
|
|
5935 |
root |
1.143 |
if test -z "$LIBEV_M4_AVOID_LIBM"; then |
5936 |
|
|
LIBM=m |
5937 |
|
|
fi |
5938 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
5939 |
|
|
printf %s "checking for library containing floor... " >&6; } |
5940 |
|
|
if test ${ac_cv_search_floor+y} |
5941 |
|
|
then : |
5942 |
|
|
printf %s "(cached) " >&6 |
5943 |
|
|
else $as_nop |
5944 |
root |
1.143 |
ac_func_search_save_LIBS=$LIBS |
5945 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5946 |
pcg |
1.11 |
/* end confdefs.h. */ |
5947 |
|
|
|
5948 |
root |
1.166 |
namespace conftest { |
5949 |
|
|
extern "C" int floor (); |
5950 |
|
|
} |
5951 |
pcg |
1.11 |
int |
5952 |
root |
1.166 |
main (void) |
5953 |
pcg |
1.11 |
{ |
5954 |
root |
1.166 |
return conftest::floor (); |
5955 |
pcg |
1.11 |
; |
5956 |
|
|
return 0; |
5957 |
|
|
} |
5958 |
|
|
_ACEOF |
5959 |
root |
1.166 |
for ac_lib in '' $LIBM |
5960 |
|
|
do |
5961 |
root |
1.143 |
if test -z "$ac_lib"; then |
5962 |
|
|
ac_res="none required" |
5963 |
|
|
else |
5964 |
|
|
ac_res=-l$ac_lib |
5965 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5966 |
|
|
fi |
5967 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
5968 |
|
|
then : |
5969 |
root |
1.143 |
ac_cv_search_floor=$ac_res |
5970 |
|
|
fi |
5971 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5972 |
root |
1.143 |
conftest$ac_exeext |
5973 |
root |
1.166 |
if test ${ac_cv_search_floor+y} |
5974 |
|
|
then : |
5975 |
root |
1.143 |
break |
5976 |
|
|
fi |
5977 |
|
|
done |
5978 |
root |
1.166 |
if test ${ac_cv_search_floor+y} |
5979 |
|
|
then : |
5980 |
root |
1.143 |
|
5981 |
root |
1.166 |
else $as_nop |
5982 |
root |
1.143 |
ac_cv_search_floor=no |
5983 |
pcg |
1.11 |
fi |
5984 |
root |
1.143 |
rm conftest.$ac_ext |
5985 |
|
|
LIBS=$ac_func_search_save_LIBS |
5986 |
pcg |
1.11 |
fi |
5987 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
5988 |
|
|
printf "%s\n" "$ac_cv_search_floor" >&6; } |
5989 |
root |
1.143 |
ac_res=$ac_cv_search_floor |
5990 |
root |
1.166 |
if test "$ac_res" != no |
5991 |
|
|
then : |
5992 |
root |
1.143 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5993 |
pcg |
1.1 |
|
5994 |
root |
1.166 |
printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
5995 |
|
|
|
5996 |
|
|
fi |
5997 |
|
|
|
5998 |
|
|
|
5999 |
|
|
|
6000 |
|
|
|
6001 |
|
|
|
6002 |
|
|
# Extract the first word of "tic", so it can be a program name with args. |
6003 |
|
|
set dummy tic; ac_word=$2 |
6004 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6005 |
|
|
printf %s "checking for $ac_word... " >&6; } |
6006 |
|
|
if test ${ac_cv_path_TIC+y} |
6007 |
|
|
then : |
6008 |
|
|
printf %s "(cached) " >&6 |
6009 |
|
|
else $as_nop |
6010 |
|
|
case $TIC in |
6011 |
|
|
[\\/]* | ?:[\\/]*) |
6012 |
|
|
ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
6013 |
|
|
;; |
6014 |
|
|
*) |
6015 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6016 |
|
|
for as_dir in $PATH |
6017 |
|
|
do |
6018 |
|
|
IFS=$as_save_IFS |
6019 |
|
|
case $as_dir in #((( |
6020 |
|
|
'') as_dir=./ ;; |
6021 |
|
|
*/) ;; |
6022 |
|
|
*) as_dir=$as_dir/ ;; |
6023 |
|
|
esac |
6024 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6025 |
|
|
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6026 |
|
|
ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext" |
6027 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
6028 |
|
|
break 2 |
6029 |
|
|
fi |
6030 |
|
|
done |
6031 |
|
|
done |
6032 |
|
|
IFS=$as_save_IFS |
6033 |
|
|
|
6034 |
|
|
test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
6035 |
|
|
;; |
6036 |
|
|
esac |
6037 |
|
|
fi |
6038 |
|
|
TIC=$ac_cv_path_TIC |
6039 |
|
|
if test -n "$TIC"; then |
6040 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 |
6041 |
|
|
printf "%s\n" "$TIC" >&6; } |
6042 |
|
|
else |
6043 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6044 |
|
|
printf "%s\n" "no" >&6; } |
6045 |
|
|
fi |
6046 |
|
|
|
6047 |
|
|
|
6048 |
|
|
|
6049 |
|
|
ac_ext=cpp |
6050 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
6051 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6052 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6053 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6054 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
6055 |
|
|
printf %s "checking how to run the C++ preprocessor... " >&6; } |
6056 |
|
|
if test -z "$CXXCPP"; then |
6057 |
|
|
if test ${ac_cv_prog_CXXCPP+y} |
6058 |
|
|
then : |
6059 |
|
|
printf %s "(cached) " >&6 |
6060 |
|
|
else $as_nop |
6061 |
|
|
# Double quotes because $CXX needs to be expanded |
6062 |
|
|
for CXXCPP in "$CXX -E" cpp /lib/cpp |
6063 |
|
|
do |
6064 |
|
|
ac_preproc_ok=false |
6065 |
|
|
for ac_cxx_preproc_warn_flag in '' yes |
6066 |
|
|
do |
6067 |
|
|
# Use a header file that comes with gcc, so configuring glibc |
6068 |
|
|
# with a fresh cross-compiler works. |
6069 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6070 |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
6071 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6072 |
|
|
/* end confdefs.h. */ |
6073 |
|
|
#include <limits.h> |
6074 |
|
|
Syntax error |
6075 |
|
|
_ACEOF |
6076 |
|
|
if ac_fn_cxx_try_cpp "$LINENO" |
6077 |
|
|
then : |
6078 |
|
|
|
6079 |
|
|
else $as_nop |
6080 |
|
|
# Broken: fails on valid input. |
6081 |
|
|
continue |
6082 |
|
|
fi |
6083 |
|
|
rm -f conftest.err conftest.i conftest.$ac_ext |
6084 |
|
|
|
6085 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers |
6086 |
|
|
# can be detected and how. |
6087 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6088 |
|
|
/* end confdefs.h. */ |
6089 |
|
|
#include <ac_nonexistent.h> |
6090 |
|
|
_ACEOF |
6091 |
|
|
if ac_fn_cxx_try_cpp "$LINENO" |
6092 |
|
|
then : |
6093 |
|
|
# Broken: success on invalid input. |
6094 |
|
|
continue |
6095 |
|
|
else $as_nop |
6096 |
|
|
# Passes both tests. |
6097 |
|
|
ac_preproc_ok=: |
6098 |
|
|
break |
6099 |
|
|
fi |
6100 |
|
|
rm -f conftest.err conftest.i conftest.$ac_ext |
6101 |
|
|
|
6102 |
|
|
done |
6103 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6104 |
|
|
rm -f conftest.i conftest.err conftest.$ac_ext |
6105 |
|
|
if $ac_preproc_ok |
6106 |
|
|
then : |
6107 |
|
|
break |
6108 |
|
|
fi |
6109 |
|
|
|
6110 |
|
|
done |
6111 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP |
6112 |
pcg |
1.1 |
|
6113 |
|
|
fi |
6114 |
root |
1.166 |
CXXCPP=$ac_cv_prog_CXXCPP |
6115 |
|
|
else |
6116 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP |
6117 |
|
|
fi |
6118 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
6119 |
|
|
printf "%s\n" "$CXXCPP" >&6; } |
6120 |
|
|
ac_preproc_ok=false |
6121 |
|
|
for ac_cxx_preproc_warn_flag in '' yes |
6122 |
|
|
do |
6123 |
|
|
# Use a header file that comes with gcc, so configuring glibc |
6124 |
|
|
# with a fresh cross-compiler works. |
6125 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6126 |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
6127 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6128 |
|
|
/* end confdefs.h. */ |
6129 |
|
|
#include <limits.h> |
6130 |
|
|
Syntax error |
6131 |
|
|
_ACEOF |
6132 |
|
|
if ac_fn_cxx_try_cpp "$LINENO" |
6133 |
|
|
then : |
6134 |
pcg |
1.1 |
|
6135 |
root |
1.166 |
else $as_nop |
6136 |
|
|
# Broken: fails on valid input. |
6137 |
|
|
continue |
6138 |
|
|
fi |
6139 |
|
|
rm -f conftest.err conftest.i conftest.$ac_ext |
6140 |
pcg |
1.1 |
|
6141 |
root |
1.166 |
# OK, works on sane cases. Now check whether nonexistent headers |
6142 |
|
|
# can be detected and how. |
6143 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6144 |
|
|
/* end confdefs.h. */ |
6145 |
|
|
#include <ac_nonexistent.h> |
6146 |
|
|
_ACEOF |
6147 |
|
|
if ac_fn_cxx_try_cpp "$LINENO" |
6148 |
|
|
then : |
6149 |
|
|
# Broken: success on invalid input. |
6150 |
|
|
continue |
6151 |
|
|
else $as_nop |
6152 |
|
|
# Passes both tests. |
6153 |
|
|
ac_preproc_ok=: |
6154 |
|
|
break |
6155 |
|
|
fi |
6156 |
|
|
rm -f conftest.err conftest.i conftest.$ac_ext |
6157 |
root |
1.103 |
|
6158 |
|
|
done |
6159 |
root |
1.166 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6160 |
|
|
rm -f conftest.i conftest.err conftest.$ac_ext |
6161 |
|
|
if $ac_preproc_ok |
6162 |
|
|
then : |
6163 |
root |
1.103 |
|
6164 |
root |
1.166 |
else $as_nop |
6165 |
|
|
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6166 |
|
|
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
6167 |
|
|
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
6168 |
|
|
See \`config.log' for more details" "$LINENO" 5; } |
6169 |
sf-exg |
1.132 |
fi |
6170 |
|
|
|
6171 |
root |
1.166 |
ac_ext=cpp |
6172 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
6173 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6174 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6175 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6176 |
sf-exg |
1.132 |
|
6177 |
|
|
|
6178 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
6179 |
|
|
printf %s "checking for X... " >&6; } |
6180 |
sf-exg |
1.132 |
|
6181 |
|
|
|
6182 |
|
|
# Check whether --with-x was given. |
6183 |
root |
1.166 |
if test ${with_x+y} |
6184 |
|
|
then : |
6185 |
sf-exg |
1.132 |
withval=$with_x; |
6186 |
|
|
fi |
6187 |
|
|
|
6188 |
|
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6189 |
|
|
if test "x$with_x" = xno; then |
6190 |
|
|
# The user explicitly disabled X. |
6191 |
|
|
have_x=disabled |
6192 |
|
|
else |
6193 |
|
|
case $x_includes,$x_libraries in #( |
6194 |
root |
1.158 |
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
6195 |
root |
1.166 |
*,NONE | NONE,*) if test ${ac_cv_have_x+y} |
6196 |
|
|
then : |
6197 |
|
|
printf %s "(cached) " >&6 |
6198 |
|
|
else $as_nop |
6199 |
sf-exg |
1.132 |
# One or both of the vars are not set, and there is no cached value. |
6200 |
root |
1.166 |
ac_x_includes=no |
6201 |
|
|
ac_x_libraries=no |
6202 |
|
|
# Do we need to do anything special at all? |
6203 |
|
|
ac_save_LIBS=$LIBS |
6204 |
|
|
LIBS="-lX11 $LIBS" |
6205 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6206 |
|
|
/* end confdefs.h. */ |
6207 |
|
|
#include <X11/Xlib.h> |
6208 |
|
|
int |
6209 |
|
|
main (void) |
6210 |
|
|
{ |
6211 |
|
|
XrmInitialize () |
6212 |
|
|
; |
6213 |
|
|
return 0; |
6214 |
|
|
} |
6215 |
|
|
_ACEOF |
6216 |
|
|
if ac_fn_cxx_try_link "$LINENO" |
6217 |
|
|
then : |
6218 |
|
|
# We can compile and link X programs with no special options. |
6219 |
|
|
ac_x_includes= |
6220 |
|
|
ac_x_libraries= |
6221 |
|
|
fi |
6222 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6223 |
|
|
conftest$ac_exeext conftest.$ac_ext |
6224 |
|
|
LIBS="$ac_save_LIBS" |
6225 |
|
|
# If that didn't work, only try xmkmf and file system searches |
6226 |
|
|
# for native compilation. |
6227 |
|
|
if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
6228 |
|
|
then : |
6229 |
|
|
rm -f -r conftest.dir |
6230 |
sf-exg |
1.132 |
if mkdir conftest.dir; then |
6231 |
|
|
cd conftest.dir |
6232 |
|
|
cat >Imakefile <<'_ACEOF' |
6233 |
|
|
incroot: |
6234 |
|
|
@echo incroot='${INCROOT}' |
6235 |
|
|
usrlibdir: |
6236 |
|
|
@echo usrlibdir='${USRLIBDIR}' |
6237 |
|
|
libdir: |
6238 |
|
|
@echo libdir='${LIBDIR}' |
6239 |
|
|
_ACEOF |
6240 |
|
|
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
6241 |
root |
1.137 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
6242 |
sf-exg |
1.132 |
for ac_var in incroot usrlibdir libdir; do |
6243 |
|
|
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
6244 |
|
|
done |
6245 |
|
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
6246 |
|
|
for ac_extension in a so sl dylib la dll; do |
6247 |
|
|
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
6248 |
|
|
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
6249 |
|
|
ac_im_usrlibdir=$ac_im_libdir; break |
6250 |
|
|
fi |
6251 |
|
|
done |
6252 |
|
|
# Screen out bogus values from the imake configuration. They are |
6253 |
|
|
# bogus both because they are the default anyway, and because |
6254 |
|
|
# using them would break gcc on systems where it needs fixed includes. |
6255 |
|
|
case $ac_im_incroot in |
6256 |
|
|
/usr/include) ac_x_includes= ;; |
6257 |
|
|
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
6258 |
|
|
esac |
6259 |
|
|
case $ac_im_usrlibdir in |
6260 |
|
|
/usr/lib | /usr/lib64 | /lib | /lib64) ;; |
6261 |
|
|
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
6262 |
|
|
esac |
6263 |
|
|
fi |
6264 |
|
|
cd .. |
6265 |
|
|
rm -f -r conftest.dir |
6266 |
root |
1.103 |
fi |
6267 |
|
|
|
6268 |
root |
1.166 |
# Standard set of common directories for X headers. |
6269 |
sf-exg |
1.132 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
6270 |
|
|
ac_x_header_dirs=' |
6271 |
|
|
/usr/X11/include |
6272 |
|
|
/usr/X11R7/include |
6273 |
|
|
/usr/X11R6/include |
6274 |
|
|
/usr/X11R5/include |
6275 |
|
|
/usr/X11R4/include |
6276 |
|
|
|
6277 |
|
|
/usr/include/X11 |
6278 |
|
|
/usr/include/X11R7 |
6279 |
|
|
/usr/include/X11R6 |
6280 |
|
|
/usr/include/X11R5 |
6281 |
|
|
/usr/include/X11R4 |
6282 |
|
|
|
6283 |
|
|
/usr/local/X11/include |
6284 |
|
|
/usr/local/X11R7/include |
6285 |
|
|
/usr/local/X11R6/include |
6286 |
|
|
/usr/local/X11R5/include |
6287 |
|
|
/usr/local/X11R4/include |
6288 |
|
|
|
6289 |
|
|
/usr/local/include/X11 |
6290 |
|
|
/usr/local/include/X11R7 |
6291 |
|
|
/usr/local/include/X11R6 |
6292 |
|
|
/usr/local/include/X11R5 |
6293 |
|
|
/usr/local/include/X11R4 |
6294 |
|
|
|
6295 |
root |
1.166 |
/opt/X11/include |
6296 |
|
|
|
6297 |
sf-exg |
1.132 |
/usr/X386/include |
6298 |
|
|
/usr/x386/include |
6299 |
|
|
/usr/XFree86/include/X11 |
6300 |
|
|
|
6301 |
|
|
/usr/include |
6302 |
|
|
/usr/local/include |
6303 |
|
|
/usr/unsupported/include |
6304 |
|
|
/usr/athena/include |
6305 |
|
|
/usr/local/x11r5/include |
6306 |
|
|
/usr/lpp/Xamples/include |
6307 |
|
|
|
6308 |
|
|
/usr/openwin/include |
6309 |
|
|
/usr/openwin/share/include' |
6310 |
ayin |
1.108 |
|
6311 |
sf-exg |
1.132 |
if test "$ac_x_includes" = no; then |
6312 |
|
|
# Guess where to find include files, by looking for Xlib.h. |
6313 |
|
|
# First, try using that file with no special directory specified. |
6314 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6315 |
|
|
/* end confdefs.h. */ |
6316 |
|
|
#include <X11/Xlib.h> |
6317 |
|
|
_ACEOF |
6318 |
root |
1.166 |
if ac_fn_cxx_try_cpp "$LINENO" |
6319 |
|
|
then : |
6320 |
sf-exg |
1.132 |
# We can compile using X headers with no special include directory. |
6321 |
|
|
ac_x_includes= |
6322 |
root |
1.166 |
else $as_nop |
6323 |
sf-exg |
1.132 |
for ac_dir in $ac_x_header_dirs; do |
6324 |
|
|
if test -r "$ac_dir/X11/Xlib.h"; then |
6325 |
|
|
ac_x_includes=$ac_dir |
6326 |
|
|
break |
6327 |
root |
1.103 |
fi |
6328 |
sf-exg |
1.132 |
done |
6329 |
|
|
fi |
6330 |
root |
1.137 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6331 |
sf-exg |
1.132 |
fi # $ac_x_includes = no |
6332 |
|
|
|
6333 |
|
|
if test "$ac_x_libraries" = no; then |
6334 |
|
|
# Check for the libraries. |
6335 |
|
|
# See if we find them without any special options. |
6336 |
|
|
# Don't add to $LIBS permanently. |
6337 |
|
|
ac_save_LIBS=$LIBS |
6338 |
|
|
LIBS="-lX11 $LIBS" |
6339 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6340 |
|
|
/* end confdefs.h. */ |
6341 |
|
|
#include <X11/Xlib.h> |
6342 |
|
|
int |
6343 |
root |
1.166 |
main (void) |
6344 |
sf-exg |
1.132 |
{ |
6345 |
|
|
XrmInitialize () |
6346 |
|
|
; |
6347 |
|
|
return 0; |
6348 |
|
|
} |
6349 |
|
|
_ACEOF |
6350 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6351 |
|
|
then : |
6352 |
sf-exg |
1.132 |
LIBS=$ac_save_LIBS |
6353 |
|
|
# We can link X programs with no special library path. |
6354 |
|
|
ac_x_libraries= |
6355 |
root |
1.166 |
else $as_nop |
6356 |
sf-exg |
1.132 |
LIBS=$ac_save_LIBS |
6357 |
root |
1.166 |
for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
6358 |
sf-exg |
1.132 |
do |
6359 |
|
|
# Don't even attempt the hair of trying to link an X program! |
6360 |
|
|
for ac_extension in a so sl dylib la dll; do |
6361 |
|
|
if test -r "$ac_dir/libX11.$ac_extension"; then |
6362 |
|
|
ac_x_libraries=$ac_dir |
6363 |
|
|
break 2 |
6364 |
root |
1.103 |
fi |
6365 |
sf-exg |
1.132 |
done |
6366 |
|
|
done |
6367 |
root |
1.103 |
fi |
6368 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6369 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6370 |
|
|
fi # $ac_x_libraries = no |
6371 |
root |
1.103 |
|
6372 |
root |
1.166 |
fi |
6373 |
|
|
# Record the results. |
6374 |
sf-exg |
1.132 |
case $ac_x_includes,$ac_x_libraries in #( |
6375 |
root |
1.166 |
no,* | *,no | *\'*) : |
6376 |
sf-exg |
1.132 |
# Didn't find X, or a directory has "'" in its name. |
6377 |
root |
1.166 |
ac_cv_have_x="have_x=no" ;; #( |
6378 |
|
|
*) : |
6379 |
sf-exg |
1.132 |
# Record where we found X for the cache. |
6380 |
|
|
ac_cv_have_x="have_x=yes\ |
6381 |
|
|
ac_x_includes='$ac_x_includes'\ |
6382 |
root |
1.166 |
ac_x_libraries='$ac_x_libraries'" ;; |
6383 |
sf-exg |
1.132 |
esac |
6384 |
|
|
fi |
6385 |
|
|
;; #( |
6386 |
|
|
*) have_x=yes;; |
6387 |
|
|
esac |
6388 |
|
|
eval "$ac_cv_have_x" |
6389 |
|
|
fi # $with_x != no |
6390 |
pcg |
1.11 |
|
6391 |
sf-exg |
1.132 |
if test "$have_x" != yes; then |
6392 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
6393 |
|
|
printf "%s\n" "$have_x" >&6; } |
6394 |
sf-exg |
1.132 |
no_x=yes |
6395 |
|
|
else |
6396 |
|
|
# If each of the values was on the command line, it overrides each guess. |
6397 |
|
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6398 |
|
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6399 |
|
|
# Update the cache value to reflect the command line values. |
6400 |
|
|
ac_cv_have_x="have_x=yes\ |
6401 |
|
|
ac_x_includes='$x_includes'\ |
6402 |
|
|
ac_x_libraries='$x_libraries'" |
6403 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
6404 |
|
|
printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
6405 |
sf-exg |
1.132 |
fi |
6406 |
pcg |
1.11 |
|
6407 |
sf-exg |
1.132 |
if test "$no_x" = yes; then |
6408 |
|
|
# Not all programs may use this symbol, but it does not hurt to define it. |
6409 |
pcg |
1.11 |
|
6410 |
root |
1.166 |
printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
6411 |
pcg |
1.11 |
|
6412 |
sf-exg |
1.132 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6413 |
|
|
else |
6414 |
|
|
if test -n "$x_includes"; then |
6415 |
|
|
X_CFLAGS="$X_CFLAGS -I$x_includes" |
6416 |
|
|
fi |
6417 |
pcg |
1.11 |
|
6418 |
sf-exg |
1.132 |
# It would also be nice to do this for all -L options, not just this one. |
6419 |
|
|
if test -n "$x_libraries"; then |
6420 |
|
|
X_LIBS="$X_LIBS -L$x_libraries" |
6421 |
|
|
# For Solaris; some versions of Sun CC require a space after -R and |
6422 |
|
|
# others require no space. Words are not sufficient . . . . |
6423 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
6424 |
|
|
printf %s "checking whether -R must be followed by a space... " >&6; } |
6425 |
sf-exg |
1.132 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
6426 |
|
|
ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
6427 |
|
|
ac_cxx_werror_flag=yes |
6428 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6429 |
|
|
/* end confdefs.h. */ |
6430 |
pcg |
1.11 |
|
6431 |
sf-exg |
1.132 |
int |
6432 |
root |
1.166 |
main (void) |
6433 |
sf-exg |
1.132 |
{ |
6434 |
pcg |
1.11 |
|
6435 |
sf-exg |
1.132 |
; |
6436 |
|
|
return 0; |
6437 |
|
|
} |
6438 |
|
|
_ACEOF |
6439 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6440 |
|
|
then : |
6441 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6442 |
|
|
printf "%s\n" "no" >&6; } |
6443 |
sf-exg |
1.132 |
X_LIBS="$X_LIBS -R$x_libraries" |
6444 |
root |
1.166 |
else $as_nop |
6445 |
sf-exg |
1.132 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
6446 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6447 |
pcg |
1.11 |
/* end confdefs.h. */ |
6448 |
sf-exg |
1.132 |
|
6449 |
|
|
int |
6450 |
root |
1.166 |
main (void) |
6451 |
sf-exg |
1.132 |
{ |
6452 |
|
|
|
6453 |
|
|
; |
6454 |
|
|
return 0; |
6455 |
|
|
} |
6456 |
pcg |
1.11 |
_ACEOF |
6457 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6458 |
|
|
then : |
6459 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6460 |
|
|
printf "%s\n" "yes" >&6; } |
6461 |
sf-exg |
1.132 |
X_LIBS="$X_LIBS -R $x_libraries" |
6462 |
root |
1.166 |
else $as_nop |
6463 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
6464 |
|
|
printf "%s\n" "neither works" >&6; } |
6465 |
sf-exg |
1.132 |
fi |
6466 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6467 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6468 |
pcg |
1.11 |
fi |
6469 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6470 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6471 |
|
|
ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
6472 |
|
|
LIBS=$ac_xsave_LIBS |
6473 |
|
|
fi |
6474 |
ayin |
1.108 |
|
6475 |
sf-exg |
1.132 |
# Check for system-dependent libraries X programs must link with. |
6476 |
|
|
# Do this before checking for the system-independent R6 libraries |
6477 |
|
|
# (-lICE), since we may need -lsocket or whatever for X linking. |
6478 |
pcg |
1.11 |
|
6479 |
sf-exg |
1.132 |
if test "$ISC" = yes; then |
6480 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
6481 |
|
|
else |
6482 |
|
|
# Martyn Johnson says this is needed for Ultrix, if the X |
6483 |
|
|
# libraries were built with DECnet support. And Karl Berry says |
6484 |
|
|
# the Alpha needs dnet_stub (dnet does not exist). |
6485 |
|
|
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
6486 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6487 |
pcg |
1.11 |
/* end confdefs.h. */ |
6488 |
sf-exg |
1.132 |
|
6489 |
root |
1.166 |
namespace conftest { |
6490 |
|
|
extern "C" int XOpenDisplay (); |
6491 |
|
|
} |
6492 |
sf-exg |
1.132 |
int |
6493 |
root |
1.166 |
main (void) |
6494 |
sf-exg |
1.132 |
{ |
6495 |
root |
1.166 |
return conftest::XOpenDisplay (); |
6496 |
sf-exg |
1.132 |
; |
6497 |
|
|
return 0; |
6498 |
|
|
} |
6499 |
pcg |
1.11 |
_ACEOF |
6500 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6501 |
|
|
then : |
6502 |
sf-exg |
1.132 |
|
6503 |
root |
1.166 |
else $as_nop |
6504 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
6505 |
|
|
printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
6506 |
|
|
if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
6507 |
|
|
then : |
6508 |
|
|
printf %s "(cached) " >&6 |
6509 |
|
|
else $as_nop |
6510 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6511 |
|
|
LIBS="-ldnet $LIBS" |
6512 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6513 |
|
|
/* end confdefs.h. */ |
6514 |
pcg |
1.11 |
|
6515 |
root |
1.166 |
namespace conftest { |
6516 |
|
|
extern "C" int dnet_ntoa (); |
6517 |
|
|
} |
6518 |
sf-exg |
1.132 |
int |
6519 |
root |
1.166 |
main (void) |
6520 |
sf-exg |
1.132 |
{ |
6521 |
root |
1.166 |
return conftest::dnet_ntoa (); |
6522 |
sf-exg |
1.132 |
; |
6523 |
|
|
return 0; |
6524 |
|
|
} |
6525 |
|
|
_ACEOF |
6526 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6527 |
|
|
then : |
6528 |
sf-exg |
1.132 |
ac_cv_lib_dnet_dnet_ntoa=yes |
6529 |
root |
1.166 |
else $as_nop |
6530 |
sf-exg |
1.132 |
ac_cv_lib_dnet_dnet_ntoa=no |
6531 |
pcg |
1.1 |
fi |
6532 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6533 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6534 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6535 |
pcg |
1.1 |
fi |
6536 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
6537 |
|
|
printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6538 |
|
|
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
6539 |
|
|
then : |
6540 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6541 |
pcg |
1.1 |
fi |
6542 |
pcg |
1.11 |
|
6543 |
sf-exg |
1.132 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6544 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
6545 |
|
|
printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
6546 |
|
|
if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
6547 |
|
|
then : |
6548 |
|
|
printf %s "(cached) " >&6 |
6549 |
|
|
else $as_nop |
6550 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6551 |
|
|
LIBS="-ldnet_stub $LIBS" |
6552 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6553 |
pcg |
1.11 |
/* end confdefs.h. */ |
6554 |
sf-exg |
1.132 |
|
6555 |
root |
1.166 |
namespace conftest { |
6556 |
|
|
extern "C" int dnet_ntoa (); |
6557 |
|
|
} |
6558 |
pcg |
1.11 |
int |
6559 |
root |
1.166 |
main (void) |
6560 |
pcg |
1.11 |
{ |
6561 |
root |
1.166 |
return conftest::dnet_ntoa (); |
6562 |
pcg |
1.11 |
; |
6563 |
|
|
return 0; |
6564 |
|
|
} |
6565 |
|
|
_ACEOF |
6566 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6567 |
|
|
then : |
6568 |
sf-exg |
1.132 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6569 |
root |
1.166 |
else $as_nop |
6570 |
sf-exg |
1.132 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
6571 |
|
|
fi |
6572 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6573 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6574 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6575 |
|
|
fi |
6576 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
6577 |
|
|
printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6578 |
|
|
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
6579 |
|
|
then : |
6580 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6581 |
pcg |
1.1 |
fi |
6582 |
ayin |
1.108 |
|
6583 |
sf-exg |
1.132 |
fi |
6584 |
pcg |
1.1 |
fi |
6585 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6586 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6587 |
|
|
LIBS="$ac_xsave_LIBS" |
6588 |
pcg |
1.1 |
|
6589 |
sf-exg |
1.132 |
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
6590 |
|
|
# to get the SysV transport functions. |
6591 |
|
|
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
6592 |
|
|
# needs -lnsl. |
6593 |
|
|
# The nsl library prevents programs from opening the X display |
6594 |
|
|
# on Irix 5.2, according to T.E. Dickey. |
6595 |
|
|
# The functions gethostbyname, getservbyname, and inet_addr are |
6596 |
|
|
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
6597 |
|
|
ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
6598 |
root |
1.166 |
if test "x$ac_cv_func_gethostbyname" = xyes |
6599 |
|
|
then : |
6600 |
pcg |
1.1 |
|
6601 |
|
|
fi |
6602 |
|
|
|
6603 |
sf-exg |
1.132 |
if test $ac_cv_func_gethostbyname = no; then |
6604 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
6605 |
|
|
printf %s "checking for gethostbyname in -lnsl... " >&6; } |
6606 |
|
|
if test ${ac_cv_lib_nsl_gethostbyname+y} |
6607 |
|
|
then : |
6608 |
|
|
printf %s "(cached) " >&6 |
6609 |
|
|
else $as_nop |
6610 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6611 |
|
|
LIBS="-lnsl $LIBS" |
6612 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6613 |
root |
1.99 |
/* end confdefs.h. */ |
6614 |
|
|
|
6615 |
root |
1.166 |
namespace conftest { |
6616 |
|
|
extern "C" int gethostbyname (); |
6617 |
|
|
} |
6618 |
root |
1.99 |
int |
6619 |
root |
1.166 |
main (void) |
6620 |
root |
1.99 |
{ |
6621 |
root |
1.166 |
return conftest::gethostbyname (); |
6622 |
root |
1.99 |
; |
6623 |
|
|
return 0; |
6624 |
|
|
} |
6625 |
|
|
_ACEOF |
6626 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6627 |
|
|
then : |
6628 |
sf-exg |
1.132 |
ac_cv_lib_nsl_gethostbyname=yes |
6629 |
root |
1.166 |
else $as_nop |
6630 |
sf-exg |
1.132 |
ac_cv_lib_nsl_gethostbyname=no |
6631 |
root |
1.99 |
fi |
6632 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6633 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6634 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6635 |
root |
1.99 |
fi |
6636 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
6637 |
|
|
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
6638 |
|
|
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
6639 |
|
|
then : |
6640 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
6641 |
root |
1.99 |
fi |
6642 |
pcg |
1.1 |
|
6643 |
sf-exg |
1.132 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
6644 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
6645 |
|
|
printf %s "checking for gethostbyname in -lbsd... " >&6; } |
6646 |
|
|
if test ${ac_cv_lib_bsd_gethostbyname+y} |
6647 |
|
|
then : |
6648 |
|
|
printf %s "(cached) " >&6 |
6649 |
|
|
else $as_nop |
6650 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6651 |
|
|
LIBS="-lbsd $LIBS" |
6652 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6653 |
pcg |
1.11 |
/* end confdefs.h. */ |
6654 |
sf-exg |
1.132 |
|
6655 |
root |
1.166 |
namespace conftest { |
6656 |
|
|
extern "C" int gethostbyname (); |
6657 |
|
|
} |
6658 |
pcg |
1.11 |
int |
6659 |
root |
1.166 |
main (void) |
6660 |
pcg |
1.11 |
{ |
6661 |
root |
1.166 |
return conftest::gethostbyname (); |
6662 |
pcg |
1.11 |
; |
6663 |
|
|
return 0; |
6664 |
|
|
} |
6665 |
|
|
_ACEOF |
6666 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6667 |
|
|
then : |
6668 |
sf-exg |
1.132 |
ac_cv_lib_bsd_gethostbyname=yes |
6669 |
root |
1.166 |
else $as_nop |
6670 |
sf-exg |
1.132 |
ac_cv_lib_bsd_gethostbyname=no |
6671 |
|
|
fi |
6672 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6673 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6674 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6675 |
|
|
fi |
6676 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
6677 |
|
|
printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
6678 |
|
|
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
6679 |
|
|
then : |
6680 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6681 |
pcg |
1.1 |
fi |
6682 |
ayin |
1.108 |
|
6683 |
sf-exg |
1.132 |
fi |
6684 |
|
|
fi |
6685 |
pcg |
1.1 |
|
6686 |
sf-exg |
1.132 |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
6687 |
|
|
# socket/setsockopt and other routines are undefined under SCO ODT |
6688 |
|
|
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
6689 |
|
|
# on later versions), says Simon Leinen: it contains gethostby* |
6690 |
|
|
# variants that don't use the name server (or something). -lsocket |
6691 |
|
|
# must be given before -lnsl if both are needed. We assume that |
6692 |
|
|
# if connect needs -lnsl, so does gethostbyname. |
6693 |
|
|
ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" |
6694 |
root |
1.166 |
if test "x$ac_cv_func_connect" = xyes |
6695 |
|
|
then : |
6696 |
pcg |
1.1 |
|
6697 |
|
|
fi |
6698 |
|
|
|
6699 |
sf-exg |
1.132 |
if test $ac_cv_func_connect = no; then |
6700 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
6701 |
|
|
printf %s "checking for connect in -lsocket... " >&6; } |
6702 |
|
|
if test ${ac_cv_lib_socket_connect+y} |
6703 |
|
|
then : |
6704 |
|
|
printf %s "(cached) " >&6 |
6705 |
|
|
else $as_nop |
6706 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6707 |
|
|
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6708 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6709 |
pcg |
1.11 |
/* end confdefs.h. */ |
6710 |
sf-exg |
1.132 |
|
6711 |
root |
1.166 |
namespace conftest { |
6712 |
|
|
extern "C" int connect (); |
6713 |
|
|
} |
6714 |
pcg |
1.11 |
int |
6715 |
root |
1.166 |
main (void) |
6716 |
pcg |
1.11 |
{ |
6717 |
root |
1.166 |
return conftest::connect (); |
6718 |
pcg |
1.11 |
; |
6719 |
|
|
return 0; |
6720 |
|
|
} |
6721 |
|
|
_ACEOF |
6722 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6723 |
|
|
then : |
6724 |
sf-exg |
1.132 |
ac_cv_lib_socket_connect=yes |
6725 |
root |
1.166 |
else $as_nop |
6726 |
sf-exg |
1.132 |
ac_cv_lib_socket_connect=no |
6727 |
|
|
fi |
6728 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6729 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6730 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6731 |
|
|
fi |
6732 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
6733 |
|
|
printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
6734 |
|
|
if test "x$ac_cv_lib_socket_connect" = xyes |
6735 |
|
|
then : |
6736 |
sf-exg |
1.132 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
6737 |
pcg |
1.1 |
fi |
6738 |
ayin |
1.108 |
|
6739 |
sf-exg |
1.132 |
fi |
6740 |
pcg |
1.1 |
|
6741 |
sf-exg |
1.132 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
6742 |
|
|
ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" |
6743 |
root |
1.166 |
if test "x$ac_cv_func_remove" = xyes |
6744 |
|
|
then : |
6745 |
pcg |
1.1 |
|
6746 |
|
|
fi |
6747 |
|
|
|
6748 |
sf-exg |
1.132 |
if test $ac_cv_func_remove = no; then |
6749 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
6750 |
|
|
printf %s "checking for remove in -lposix... " >&6; } |
6751 |
|
|
if test ${ac_cv_lib_posix_remove+y} |
6752 |
|
|
then : |
6753 |
|
|
printf %s "(cached) " >&6 |
6754 |
|
|
else $as_nop |
6755 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6756 |
|
|
LIBS="-lposix $LIBS" |
6757 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6758 |
pcg |
1.11 |
/* end confdefs.h. */ |
6759 |
|
|
|
6760 |
root |
1.166 |
namespace conftest { |
6761 |
|
|
extern "C" int remove (); |
6762 |
|
|
} |
6763 |
sf-exg |
1.132 |
int |
6764 |
root |
1.166 |
main (void) |
6765 |
sf-exg |
1.132 |
{ |
6766 |
root |
1.166 |
return conftest::remove (); |
6767 |
sf-exg |
1.132 |
; |
6768 |
|
|
return 0; |
6769 |
|
|
} |
6770 |
pcg |
1.11 |
_ACEOF |
6771 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6772 |
|
|
then : |
6773 |
sf-exg |
1.132 |
ac_cv_lib_posix_remove=yes |
6774 |
root |
1.166 |
else $as_nop |
6775 |
sf-exg |
1.132 |
ac_cv_lib_posix_remove=no |
6776 |
|
|
fi |
6777 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6778 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6779 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6780 |
pcg |
1.1 |
fi |
6781 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
6782 |
|
|
printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
6783 |
|
|
if test "x$ac_cv_lib_posix_remove" = xyes |
6784 |
|
|
then : |
6785 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
6786 |
pcg |
1.1 |
fi |
6787 |
|
|
|
6788 |
sf-exg |
1.132 |
fi |
6789 |
pcg |
1.11 |
|
6790 |
sf-exg |
1.132 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
6791 |
|
|
ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
6792 |
root |
1.166 |
if test "x$ac_cv_func_shmat" = xyes |
6793 |
|
|
then : |
6794 |
pcg |
1.1 |
|
6795 |
|
|
fi |
6796 |
|
|
|
6797 |
sf-exg |
1.132 |
if test $ac_cv_func_shmat = no; then |
6798 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
6799 |
|
|
printf %s "checking for shmat in -lipc... " >&6; } |
6800 |
|
|
if test ${ac_cv_lib_ipc_shmat+y} |
6801 |
|
|
then : |
6802 |
|
|
printf %s "(cached) " >&6 |
6803 |
|
|
else $as_nop |
6804 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6805 |
|
|
LIBS="-lipc $LIBS" |
6806 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6807 |
pcg |
1.11 |
/* end confdefs.h. */ |
6808 |
pcg |
1.1 |
|
6809 |
root |
1.166 |
namespace conftest { |
6810 |
|
|
extern "C" int shmat (); |
6811 |
|
|
} |
6812 |
pcg |
1.11 |
int |
6813 |
root |
1.166 |
main (void) |
6814 |
pcg |
1.1 |
{ |
6815 |
root |
1.166 |
return conftest::shmat (); |
6816 |
pcg |
1.11 |
; |
6817 |
|
|
return 0; |
6818 |
pcg |
1.1 |
} |
6819 |
pcg |
1.11 |
_ACEOF |
6820 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6821 |
|
|
then : |
6822 |
sf-exg |
1.132 |
ac_cv_lib_ipc_shmat=yes |
6823 |
root |
1.166 |
else $as_nop |
6824 |
sf-exg |
1.132 |
ac_cv_lib_ipc_shmat=no |
6825 |
ayin |
1.122 |
fi |
6826 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6827 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6828 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6829 |
pcg |
1.11 |
fi |
6830 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
6831 |
|
|
printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
6832 |
|
|
if test "x$ac_cv_lib_ipc_shmat" = xyes |
6833 |
|
|
then : |
6834 |
sf-exg |
1.132 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6835 |
pcg |
1.11 |
fi |
6836 |
ayin |
1.108 |
|
6837 |
sf-exg |
1.132 |
fi |
6838 |
|
|
fi |
6839 |
pcg |
1.1 |
|
6840 |
sf-exg |
1.132 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
6841 |
|
|
ac_save_LDFLAGS=$LDFLAGS |
6842 |
|
|
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
6843 |
|
|
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
6844 |
|
|
# check for ICE first), but we must link in the order -lSM -lICE or |
6845 |
|
|
# we get undefined symbols. So assume we have SM if we have ICE. |
6846 |
|
|
# These have to be linked with before -lX11, unlike the other |
6847 |
|
|
# libraries we check for below, so use a different variable. |
6848 |
|
|
# John Interrante, Karl Berry |
6849 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
6850 |
|
|
printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
6851 |
|
|
if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
6852 |
|
|
then : |
6853 |
|
|
printf %s "(cached) " >&6 |
6854 |
|
|
else $as_nop |
6855 |
sf-exg |
1.132 |
ac_check_lib_save_LIBS=$LIBS |
6856 |
|
|
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6857 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6858 |
pcg |
1.11 |
/* end confdefs.h. */ |
6859 |
sf-exg |
1.132 |
|
6860 |
root |
1.166 |
namespace conftest { |
6861 |
|
|
extern "C" int IceConnectionNumber (); |
6862 |
|
|
} |
6863 |
pcg |
1.11 |
int |
6864 |
root |
1.166 |
main (void) |
6865 |
pcg |
1.11 |
{ |
6866 |
root |
1.166 |
return conftest::IceConnectionNumber (); |
6867 |
pcg |
1.11 |
; |
6868 |
|
|
return 0; |
6869 |
|
|
} |
6870 |
|
|
_ACEOF |
6871 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
6872 |
|
|
then : |
6873 |
sf-exg |
1.132 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
6874 |
root |
1.166 |
else $as_nop |
6875 |
sf-exg |
1.132 |
ac_cv_lib_ICE_IceConnectionNumber=no |
6876 |
|
|
fi |
6877 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6878 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
6879 |
|
|
LIBS=$ac_check_lib_save_LIBS |
6880 |
|
|
fi |
6881 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
6882 |
|
|
printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6883 |
|
|
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
6884 |
|
|
then : |
6885 |
sf-exg |
1.132 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6886 |
|
|
fi |
6887 |
pcg |
1.11 |
|
6888 |
sf-exg |
1.132 |
LDFLAGS=$ac_save_LDFLAGS |
6889 |
ayin |
1.122 |
|
6890 |
pcg |
1.1 |
fi |
6891 |
ayin |
1.108 |
|
6892 |
ayin |
1.122 |
|
6893 |
sf-exg |
1.162 |
if test -n "$ac_tool_prefix"; then |
6894 |
|
|
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
6895 |
|
|
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
6896 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6897 |
|
|
printf %s "checking for $ac_word... " >&6; } |
6898 |
|
|
if test ${ac_cv_path_PKG_CONFIG+y} |
6899 |
|
|
then : |
6900 |
|
|
printf %s "(cached) " >&6 |
6901 |
|
|
else $as_nop |
6902 |
root |
1.158 |
case $PKG_CONFIG in |
6903 |
|
|
[\\/]* | ?:[\\/]*) |
6904 |
|
|
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6905 |
|
|
;; |
6906 |
|
|
*) |
6907 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6908 |
|
|
for as_dir in $PATH |
6909 |
|
|
do |
6910 |
|
|
IFS=$as_save_IFS |
6911 |
root |
1.166 |
case $as_dir in #((( |
6912 |
|
|
'') as_dir=./ ;; |
6913 |
|
|
*/) ;; |
6914 |
|
|
*) as_dir=$as_dir/ ;; |
6915 |
|
|
esac |
6916 |
root |
1.158 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6917 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6918 |
|
|
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
6919 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
6920 |
root |
1.158 |
break 2 |
6921 |
|
|
fi |
6922 |
|
|
done |
6923 |
|
|
done |
6924 |
|
|
IFS=$as_save_IFS |
6925 |
|
|
|
6926 |
|
|
;; |
6927 |
|
|
esac |
6928 |
|
|
fi |
6929 |
|
|
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6930 |
|
|
if test -n "$PKG_CONFIG"; then |
6931 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6932 |
|
|
printf "%s\n" "$PKG_CONFIG" >&6; } |
6933 |
root |
1.158 |
else |
6934 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6935 |
|
|
printf "%s\n" "no" >&6; } |
6936 |
root |
1.158 |
fi |
6937 |
|
|
|
6938 |
|
|
|
6939 |
|
|
fi |
6940 |
sf-exg |
1.162 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
6941 |
|
|
ac_pt_PKG_CONFIG=$PKG_CONFIG |
6942 |
mikachu |
1.147 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
6943 |
|
|
set dummy pkg-config; ac_word=$2 |
6944 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6945 |
|
|
printf %s "checking for $ac_word... " >&6; } |
6946 |
|
|
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
6947 |
|
|
then : |
6948 |
|
|
printf %s "(cached) " >&6 |
6949 |
|
|
else $as_nop |
6950 |
sf-exg |
1.162 |
case $ac_pt_PKG_CONFIG in |
6951 |
mikachu |
1.147 |
[\\/]* | ?:[\\/]*) |
6952 |
sf-exg |
1.162 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
6953 |
mikachu |
1.147 |
;; |
6954 |
|
|
*) |
6955 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6956 |
|
|
for as_dir in $PATH |
6957 |
|
|
do |
6958 |
|
|
IFS=$as_save_IFS |
6959 |
root |
1.166 |
case $as_dir in #((( |
6960 |
|
|
'') as_dir=./ ;; |
6961 |
|
|
*/) ;; |
6962 |
|
|
*) as_dir=$as_dir/ ;; |
6963 |
|
|
esac |
6964 |
mikachu |
1.147 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6965 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6966 |
|
|
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
6967 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
6968 |
mikachu |
1.147 |
break 2 |
6969 |
|
|
fi |
6970 |
|
|
done |
6971 |
|
|
done |
6972 |
|
|
IFS=$as_save_IFS |
6973 |
|
|
|
6974 |
|
|
;; |
6975 |
|
|
esac |
6976 |
|
|
fi |
6977 |
sf-exg |
1.162 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6978 |
|
|
if test -n "$ac_pt_PKG_CONFIG"; then |
6979 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
6980 |
|
|
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
6981 |
mikachu |
1.147 |
else |
6982 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6983 |
|
|
printf "%s\n" "no" >&6; } |
6984 |
mikachu |
1.147 |
fi |
6985 |
|
|
|
6986 |
sf-exg |
1.162 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
6987 |
|
|
PKG_CONFIG="no" |
6988 |
|
|
else |
6989 |
|
|
case $cross_compiling:$ac_tool_warned in |
6990 |
|
|
yes:) |
6991 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6992 |
|
|
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6993 |
sf-exg |
1.162 |
ac_tool_warned=yes ;; |
6994 |
|
|
esac |
6995 |
|
|
PKG_CONFIG=$ac_pt_PKG_CONFIG |
6996 |
|
|
fi |
6997 |
|
|
else |
6998 |
|
|
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6999 |
|
|
fi |
7000 |
|
|
|
7001 |
|
|
|
7002 |
|
|
image_lib=none |
7003 |
|
|
|
7004 |
|
|
PIXBUF_CFLAGS= |
7005 |
|
|
PIXBUF_LIBS= |
7006 |
|
|
|
7007 |
|
|
if test x$support_pixbuf = xyes; then |
7008 |
|
|
|
7009 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 |
7010 |
|
|
printf %s "checking for gdk-pixbuf-2.0... " >&6; } |
7011 |
sf-exg |
1.162 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7012 |
root |
1.163 |
PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
7013 |
|
|
PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
7014 |
sf-exg |
1.162 |
|
7015 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7016 |
|
|
printf "%s\n" "ok" >&6; } |
7017 |
sf-exg |
1.162 |
|
7018 |
|
|
image_lib=gdk-pixbuf |
7019 |
|
|
|
7020 |
root |
1.166 |
printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h |
7021 |
sf-exg |
1.162 |
|
7022 |
|
|
|
7023 |
|
|
else |
7024 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7025 |
|
|
printf "%s\n" "no" >&6; } |
7026 |
sf-exg |
1.162 |
: |
7027 |
|
|
fi |
7028 |
|
|
|
7029 |
|
|
fi |
7030 |
|
|
|
7031 |
|
|
|
7032 |
|
|
|
7033 |
|
|
|
7034 |
|
|
STARTUP_NOTIFICATION_CFLAGS= |
7035 |
|
|
STARTUP_NOTIFICATION_LIBS= |
7036 |
|
|
|
7037 |
|
|
if test x$support_startup_notification = xyes; then |
7038 |
mikachu |
1.147 |
|
7039 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 |
7040 |
|
|
printf %s "checking for libstartup-notification-1.0... " >&6; } |
7041 |
mikachu |
1.147 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7042 |
root |
1.163 |
STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
7043 |
|
|
STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
7044 |
mikachu |
1.147 |
|
7045 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7046 |
|
|
printf "%s\n" "ok" >&6; } |
7047 |
mikachu |
1.147 |
|
7048 |
sf-exg |
1.162 |
|
7049 |
root |
1.166 |
printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
7050 |
mikachu |
1.147 |
|
7051 |
sf-exg |
1.162 |
|
7052 |
mikachu |
1.147 |
else |
7053 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7054 |
|
|
printf "%s\n" "no" >&6; } |
7055 |
sf-exg |
1.162 |
: |
7056 |
mikachu |
1.147 |
fi |
7057 |
sf-exg |
1.162 |
|
7058 |
mikachu |
1.147 |
fi |
7059 |
|
|
|
7060 |
|
|
|
7061 |
|
|
|
7062 |
|
|
|
7063 |
sf-exg |
1.162 |
if test x$support_frills = xyes; then |
7064 |
|
|
|
7065 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 |
7066 |
|
|
printf %s "checking for xmu... " >&6; } |
7067 |
sf-exg |
1.162 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
7068 |
root |
1.163 |
XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
7069 |
|
|
XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
7070 |
sf-exg |
1.162 |
|
7071 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7072 |
|
|
printf "%s\n" "ok" >&6; } |
7073 |
sf-exg |
1.162 |
|
7074 |
|
|
X_LIBS="$XMU_LIBS $X_LIBS" |
7075 |
|
|
CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" |
7076 |
|
|
|
7077 |
root |
1.166 |
printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h |
7078 |
sf-exg |
1.162 |
|
7079 |
|
|
|
7080 |
|
|
else |
7081 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7082 |
|
|
printf "%s\n" "no" >&6; } |
7083 |
sf-exg |
1.162 |
: |
7084 |
|
|
fi |
7085 |
|
|
|
7086 |
|
|
fi |
7087 |
|
|
|
7088 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default" |
7089 |
|
|
if test "x$ac_cv_header_sys_byteorder_h" = xyes |
7090 |
|
|
then : |
7091 |
|
|
printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
7092 |
|
|
|
7093 |
|
|
fi |
7094 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
7095 |
|
|
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
7096 |
|
|
then : |
7097 |
|
|
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
7098 |
|
|
|
7099 |
|
|
fi |
7100 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
7101 |
|
|
if test "x$ac_cv_header_sys_sockio_h" = xyes |
7102 |
|
|
then : |
7103 |
|
|
printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h |
7104 |
|
|
|
7105 |
|
|
fi |
7106 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default" |
7107 |
|
|
if test "x$ac_cv_header_sys_strredir_h" = xyes |
7108 |
|
|
then : |
7109 |
|
|
printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h |
7110 |
|
|
|
7111 |
|
|
fi |
7112 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
7113 |
|
|
if test "x$ac_cv_header_stdint_h" = xyes |
7114 |
|
|
then : |
7115 |
|
|
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
7116 |
|
|
|
7117 |
|
|
fi |
7118 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
7119 |
|
|
if test "x$ac_cv_header_wchar_h" = xyes |
7120 |
|
|
then : |
7121 |
|
|
printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
7122 |
|
|
|
7123 |
|
|
fi |
7124 |
|
|
|
7125 |
|
|
|
7126 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7127 |
|
|
printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
7128 |
|
|
if test ${rxvt_cv_xlib_illegal_access+y} |
7129 |
|
|
then : |
7130 |
|
|
printf %s "(cached) " >&6 |
7131 |
|
|
else $as_nop |
7132 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7133 |
|
|
/* end confdefs.h. */ |
7134 |
|
|
|
7135 |
|
|
#define XLIB_ILLEGAL_ACCESS |
7136 |
|
|
#include <X11/Xlib.h> |
7137 |
|
|
|
7138 |
|
|
int |
7139 |
|
|
main (void) |
7140 |
|
|
{ |
7141 |
|
|
|
7142 |
|
|
Display *dpy; |
7143 |
|
|
dpy->xdefaults = (char *)0; |
7144 |
|
|
|
7145 |
|
|
; |
7146 |
|
|
return 0; |
7147 |
|
|
} |
7148 |
|
|
_ACEOF |
7149 |
|
|
if ac_fn_cxx_try_compile "$LINENO" |
7150 |
|
|
then : |
7151 |
|
|
rxvt_cv_xlib_illegal_access=yes |
7152 |
|
|
else $as_nop |
7153 |
|
|
rxvt_cv_xlib_illegal_access=no |
7154 |
|
|
|
7155 |
|
|
fi |
7156 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7157 |
|
|
fi |
7158 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
7159 |
|
|
printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; } |
7160 |
|
|
if test x$rxvt_cv_xlib_illegal_access = xyes; then |
7161 |
|
|
|
7162 |
|
|
printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
7163 |
|
|
|
7164 |
|
|
fi |
7165 |
|
|
|
7166 |
|
|
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
7167 |
|
|
if test "x$ac_cv_type_mode_t" = xyes |
7168 |
|
|
then : |
7169 |
|
|
|
7170 |
|
|
else $as_nop |
7171 |
|
|
|
7172 |
|
|
printf "%s\n" "#define mode_t int" >>confdefs.h |
7173 |
|
|
|
7174 |
|
|
fi |
7175 |
|
|
|
7176 |
|
|
|
7177 |
|
|
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
7178 |
|
|
" |
7179 |
|
|
if test "x$ac_cv_type_pid_t" = xyes |
7180 |
|
|
then : |
7181 |
|
|
|
7182 |
|
|
else $as_nop |
7183 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7184 |
|
|
/* end confdefs.h. */ |
7185 |
|
|
|
7186 |
|
|
#if defined _WIN64 && !defined __CYGWIN__ |
7187 |
|
|
LLP64 |
7188 |
|
|
#endif |
7189 |
|
|
|
7190 |
|
|
int |
7191 |
|
|
main (void) |
7192 |
|
|
{ |
7193 |
|
|
|
7194 |
|
|
; |
7195 |
|
|
return 0; |
7196 |
|
|
} |
7197 |
|
|
|
7198 |
|
|
_ACEOF |
7199 |
|
|
if ac_fn_cxx_try_compile "$LINENO" |
7200 |
|
|
then : |
7201 |
|
|
ac_pid_type='int' |
7202 |
|
|
else $as_nop |
7203 |
|
|
ac_pid_type='__int64' |
7204 |
|
|
fi |
7205 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7206 |
|
|
|
7207 |
|
|
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
7208 |
|
|
|
7209 |
|
|
|
7210 |
|
|
fi |
7211 |
|
|
|
7212 |
|
|
|
7213 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
7214 |
|
|
printf %s "checking for grep that handles long lines and -e... " >&6; } |
7215 |
|
|
if test ${ac_cv_path_GREP+y} |
7216 |
|
|
then : |
7217 |
|
|
printf %s "(cached) " >&6 |
7218 |
|
|
else $as_nop |
7219 |
|
|
if test -z "$GREP"; then |
7220 |
|
|
ac_path_GREP_found=false |
7221 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST |
7222 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7223 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7224 |
|
|
do |
7225 |
|
|
IFS=$as_save_IFS |
7226 |
|
|
case $as_dir in #((( |
7227 |
|
|
'') as_dir=./ ;; |
7228 |
|
|
*/) ;; |
7229 |
|
|
*) as_dir=$as_dir/ ;; |
7230 |
|
|
esac |
7231 |
|
|
for ac_prog in grep ggrep |
7232 |
|
|
do |
7233 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7234 |
|
|
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
7235 |
|
|
as_fn_executable_p "$ac_path_GREP" || continue |
7236 |
|
|
# Check for GNU ac_path_GREP and select it if it is found. |
7237 |
|
|
# Check for GNU $ac_path_GREP |
7238 |
|
|
case `"$ac_path_GREP" --version 2>&1` in |
7239 |
|
|
*GNU*) |
7240 |
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
7241 |
|
|
*) |
7242 |
|
|
ac_count=0 |
7243 |
|
|
printf %s 0123456789 >"conftest.in" |
7244 |
|
|
while : |
7245 |
|
|
do |
7246 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp" |
7247 |
|
|
mv "conftest.tmp" "conftest.in" |
7248 |
|
|
cp "conftest.in" "conftest.nl" |
7249 |
|
|
printf "%s\n" 'GREP' >> "conftest.nl" |
7250 |
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
7251 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7252 |
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val |
7253 |
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
7254 |
|
|
# Best one so far, save it but keep looking for a better one |
7255 |
|
|
ac_cv_path_GREP="$ac_path_GREP" |
7256 |
|
|
ac_path_GREP_max=$ac_count |
7257 |
|
|
fi |
7258 |
|
|
# 10*(2^10) chars as input seems more than enough |
7259 |
|
|
test $ac_count -gt 10 && break |
7260 |
|
|
done |
7261 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7262 |
|
|
esac |
7263 |
|
|
|
7264 |
|
|
$ac_path_GREP_found && break 3 |
7265 |
|
|
done |
7266 |
|
|
done |
7267 |
|
|
done |
7268 |
|
|
IFS=$as_save_IFS |
7269 |
|
|
if test -z "$ac_cv_path_GREP"; then |
7270 |
|
|
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7271 |
|
|
fi |
7272 |
|
|
else |
7273 |
|
|
ac_cv_path_GREP=$GREP |
7274 |
|
|
fi |
7275 |
|
|
|
7276 |
pcg |
1.1 |
fi |
7277 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
7278 |
|
|
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
7279 |
|
|
GREP="$ac_cv_path_GREP" |
7280 |
ayin |
1.108 |
|
7281 |
ayin |
1.122 |
|
7282 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
7283 |
|
|
printf %s "checking for egrep... " >&6; } |
7284 |
|
|
if test ${ac_cv_path_EGREP+y} |
7285 |
|
|
then : |
7286 |
|
|
printf %s "(cached) " >&6 |
7287 |
|
|
else $as_nop |
7288 |
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
7289 |
|
|
then ac_cv_path_EGREP="$GREP -E" |
7290 |
|
|
else |
7291 |
|
|
if test -z "$EGREP"; then |
7292 |
|
|
ac_path_EGREP_found=false |
7293 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST |
7294 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7295 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7296 |
|
|
do |
7297 |
|
|
IFS=$as_save_IFS |
7298 |
|
|
case $as_dir in #((( |
7299 |
|
|
'') as_dir=./ ;; |
7300 |
|
|
*/) ;; |
7301 |
|
|
*) as_dir=$as_dir/ ;; |
7302 |
|
|
esac |
7303 |
|
|
for ac_prog in egrep |
7304 |
|
|
do |
7305 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7306 |
|
|
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
7307 |
|
|
as_fn_executable_p "$ac_path_EGREP" || continue |
7308 |
|
|
# Check for GNU ac_path_EGREP and select it if it is found. |
7309 |
|
|
# Check for GNU $ac_path_EGREP |
7310 |
|
|
case `"$ac_path_EGREP" --version 2>&1` in |
7311 |
|
|
*GNU*) |
7312 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
7313 |
|
|
*) |
7314 |
|
|
ac_count=0 |
7315 |
|
|
printf %s 0123456789 >"conftest.in" |
7316 |
|
|
while : |
7317 |
|
|
do |
7318 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp" |
7319 |
|
|
mv "conftest.tmp" "conftest.in" |
7320 |
|
|
cp "conftest.in" "conftest.nl" |
7321 |
|
|
printf "%s\n" 'EGREP' >> "conftest.nl" |
7322 |
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
7323 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7324 |
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val |
7325 |
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
7326 |
|
|
# Best one so far, save it but keep looking for a better one |
7327 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP" |
7328 |
|
|
ac_path_EGREP_max=$ac_count |
7329 |
|
|
fi |
7330 |
|
|
# 10*(2^10) chars as input seems more than enough |
7331 |
|
|
test $ac_count -gt 10 && break |
7332 |
|
|
done |
7333 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7334 |
|
|
esac |
7335 |
pcg |
1.1 |
|
7336 |
root |
1.166 |
$ac_path_EGREP_found && break 3 |
7337 |
|
|
done |
7338 |
|
|
done |
7339 |
|
|
done |
7340 |
|
|
IFS=$as_save_IFS |
7341 |
|
|
if test -z "$ac_cv_path_EGREP"; then |
7342 |
|
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7343 |
|
|
fi |
7344 |
root |
1.83 |
else |
7345 |
root |
1.166 |
ac_cv_path_EGREP=$EGREP |
7346 |
root |
1.83 |
fi |
7347 |
pcg |
1.11 |
|
7348 |
root |
1.166 |
fi |
7349 |
ayin |
1.108 |
fi |
7350 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
7351 |
|
|
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
7352 |
|
|
EGREP="$ac_cv_path_EGREP" |
7353 |
ayin |
1.102 |
|
7354 |
root |
1.92 |
|
7355 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
7356 |
|
|
printf %s "checking for uid_t in sys/types.h... " >&6; } |
7357 |
|
|
if test ${ac_cv_type_uid_t+y} |
7358 |
|
|
then : |
7359 |
|
|
printf %s "(cached) " >&6 |
7360 |
|
|
else $as_nop |
7361 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7362 |
|
|
/* end confdefs.h. */ |
7363 |
|
|
#include <sys/types.h> |
7364 |
|
|
|
7365 |
root |
1.92 |
_ACEOF |
7366 |
sf-exg |
1.132 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7367 |
root |
1.166 |
$EGREP "uid_t" >/dev/null 2>&1 |
7368 |
|
|
then : |
7369 |
sf-exg |
1.132 |
ac_cv_type_uid_t=yes |
7370 |
root |
1.166 |
else $as_nop |
7371 |
sf-exg |
1.132 |
ac_cv_type_uid_t=no |
7372 |
root |
1.92 |
fi |
7373 |
root |
1.166 |
rm -rf conftest* |
7374 |
root |
1.92 |
|
7375 |
|
|
fi |
7376 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
7377 |
|
|
printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
7378 |
sf-exg |
1.132 |
if test $ac_cv_type_uid_t = no; then |
7379 |
root |
1.92 |
|
7380 |
root |
1.166 |
printf "%s\n" "#define uid_t int" >>confdefs.h |
7381 |
pcg |
1.11 |
|
7382 |
root |
1.88 |
|
7383 |
root |
1.166 |
printf "%s\n" "#define gid_t int" >>confdefs.h |
7384 |
root |
1.88 |
|
7385 |
sf-exg |
1.132 |
fi |
7386 |
root |
1.88 |
|
7387 |
sf-exg |
1.132 |
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
7388 |
|
|
case $ac_cv_c_int16_t in #( |
7389 |
|
|
no|yes) ;; #( |
7390 |
|
|
*) |
7391 |
root |
1.88 |
|
7392 |
root |
1.166 |
printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
7393 |
sf-exg |
1.132 |
;; |
7394 |
ayin |
1.108 |
esac |
7395 |
root |
1.88 |
|
7396 |
sf-exg |
1.132 |
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
7397 |
|
|
case $ac_cv_c_uint16_t in #( |
7398 |
|
|
no|yes) ;; #( |
7399 |
|
|
*) |
7400 |
|
|
|
7401 |
ayin |
1.108 |
|
7402 |
root |
1.166 |
printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
7403 |
sf-exg |
1.132 |
;; |
7404 |
|
|
esac |
7405 |
root |
1.88 |
|
7406 |
sf-exg |
1.132 |
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
7407 |
|
|
case $ac_cv_c_int32_t in #( |
7408 |
|
|
no|yes) ;; #( |
7409 |
|
|
*) |
7410 |
root |
1.88 |
|
7411 |
root |
1.166 |
printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
7412 |
sf-exg |
1.132 |
;; |
7413 |
ayin |
1.108 |
esac |
7414 |
root |
1.88 |
|
7415 |
sf-exg |
1.132 |
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
7416 |
|
|
case $ac_cv_c_uint32_t in #( |
7417 |
|
|
no|yes) ;; #( |
7418 |
|
|
*) |
7419 |
|
|
|
7420 |
root |
1.166 |
printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
7421 |
ayin |
1.108 |
|
7422 |
root |
1.88 |
|
7423 |
root |
1.166 |
printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
7424 |
sf-exg |
1.132 |
;; |
7425 |
|
|
esac |
7426 |
|
|
|
7427 |
|
|
|
7428 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
7429 |
|
|
if test "x$ac_cv_func_unsetenv" = xyes |
7430 |
|
|
then : |
7431 |
|
|
printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
7432 |
root |
1.88 |
|
7433 |
|
|
fi |
7434 |
sf-exg |
1.132 |
|
7435 |
|
|
|
7436 |
|
|
|
7437 |
|
|
support_utmp=yes |
7438 |
|
|
support_wtmp=yes |
7439 |
|
|
support_lastlog=yes |
7440 |
ayin |
1.108 |
|
7441 |
sf-exg |
1.132 |
# Check whether --enable-utmp was given. |
7442 |
root |
1.166 |
if test ${enable_utmp+y} |
7443 |
|
|
then : |
7444 |
sf-exg |
1.132 |
enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
7445 |
|
|
support_utmp=$enableval |
7446 |
|
|
fi |
7447 |
|
|
fi |
7448 |
root |
1.88 |
|
7449 |
ayin |
1.108 |
|
7450 |
sf-exg |
1.132 |
# Check whether --enable-wtmp was given. |
7451 |
root |
1.166 |
if test ${enable_wtmp+y} |
7452 |
|
|
then : |
7453 |
sf-exg |
1.132 |
enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
7454 |
|
|
support_wtmp=$enableval |
7455 |
|
|
fi |
7456 |
root |
1.88 |
fi |
7457 |
|
|
|
7458 |
sf-exg |
1.132 |
|
7459 |
|
|
# Check whether --enable-lastlog was given. |
7460 |
root |
1.166 |
if test ${enable_lastlog+y} |
7461 |
|
|
then : |
7462 |
sf-exg |
1.132 |
enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
7463 |
|
|
support_lastlog=$enableval |
7464 |
|
|
fi |
7465 |
root |
1.88 |
fi |
7466 |
sf-exg |
1.132 |
|
7467 |
|
|
|
7468 |
|
|
if test x$support_utmp = xyes; then |
7469 |
|
|
|
7470 |
root |
1.166 |
printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h |
7471 |
root |
1.88 |
|
7472 |
|
|
fi |
7473 |
sf-exg |
1.132 |
if test x$support_wtmp = xyes; then |
7474 |
|
|
|
7475 |
root |
1.166 |
printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h |
7476 |
root |
1.88 |
|
7477 |
sf-exg |
1.132 |
fi |
7478 |
|
|
if test x$support_lastlog = xyes; then |
7479 |
root |
1.88 |
|
7480 |
root |
1.166 |
printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h |
7481 |
root |
1.88 |
|
7482 |
sf-exg |
1.132 |
fi |
7483 |
root |
1.88 |
|
7484 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" |
7485 |
|
|
if test "x$ac_cv_func_updwtmp" = xyes |
7486 |
|
|
then : |
7487 |
|
|
printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h |
7488 |
|
|
|
7489 |
|
|
fi |
7490 |
|
|
ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx" |
7491 |
|
|
if test "x$ac_cv_func_updwtmpx" = xyes |
7492 |
|
|
then : |
7493 |
|
|
printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h |
7494 |
root |
1.128 |
|
7495 |
root |
1.166 |
fi |
7496 |
|
|
ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx" |
7497 |
|
|
if test "x$ac_cv_func_updlastlogx" = xyes |
7498 |
|
|
then : |
7499 |
|
|
printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h |
7500 |
root |
1.88 |
|
7501 |
|
|
fi |
7502 |
ayin |
1.108 |
|
7503 |
root |
1.88 |
|
7504 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
7505 |
|
|
if test "x$ac_cv_header_lastlog_h" = xyes |
7506 |
|
|
then : |
7507 |
|
|
printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h |
7508 |
root |
1.88 |
|
7509 |
|
|
fi |
7510 |
ayin |
1.108 |
|
7511 |
|
|
|
7512 |
sf-exg |
1.151 |
case $host in |
7513 |
|
|
*-*-solaris*) |
7514 |
|
|
|
7515 |
root |
1.166 |
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
7516 |
sf-exg |
1.151 |
|
7517 |
|
|
;; |
7518 |
|
|
esac |
7519 |
|
|
|
7520 |
root |
1.88 |
|
7521 |
root |
1.166 |
for ac_header in utmp.h |
7522 |
sf-exg |
1.132 |
do : |
7523 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
7524 |
|
|
if test "x$ac_cv_header_utmp_h" = xyes |
7525 |
|
|
then : |
7526 |
|
|
printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h |
7527 |
sf-exg |
1.162 |
|
7528 |
|
|
ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
7529 |
root |
1.88 |
#include <sys/types.h> |
7530 |
|
|
#include <utmp.h> |
7531 |
sf-exg |
1.145 |
|
7532 |
|
|
" |
7533 |
root |
1.166 |
if test "x$ac_cv_type_struct_utmp" = xyes |
7534 |
|
|
then : |
7535 |
sf-exg |
1.145 |
|
7536 |
root |
1.166 |
printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h |
7537 |
root |
1.88 |
|
7538 |
|
|
|
7539 |
|
|
fi |
7540 |
|
|
|
7541 |
|
|
|
7542 |
sf-exg |
1.145 |
ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
7543 |
|
|
#include <sys/types.h> |
7544 |
|
|
#include <utmp.h> |
7545 |
|
|
|
7546 |
|
|
" |
7547 |
root |
1.166 |
if test "x$ac_cv_member_struct_utmp_ut_host" = xyes |
7548 |
|
|
then : |
7549 |
sf-exg |
1.145 |
|
7550 |
root |
1.166 |
printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h |
7551 |
sf-exg |
1.145 |
|
7552 |
|
|
fi |
7553 |
|
|
|
7554 |
|
|
|
7555 |
|
|
ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
7556 |
|
|
#include <sys/types.h> |
7557 |
|
|
#include <utmp.h> |
7558 |
|
|
|
7559 |
|
|
" |
7560 |
root |
1.166 |
if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes |
7561 |
|
|
then : |
7562 |
root |
1.88 |
|
7563 |
root |
1.166 |
printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h |
7564 |
root |
1.88 |
|
7565 |
|
|
fi |
7566 |
|
|
|
7567 |
sf-exg |
1.145 |
|
7568 |
root |
1.88 |
fi |
7569 |
|
|
|
7570 |
root |
1.128 |
done |
7571 |
|
|
|
7572 |
root |
1.166 |
for ac_header in utmpx.h |
7573 |
sf-exg |
1.132 |
do : |
7574 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
7575 |
|
|
if test "x$ac_cv_header_utmpx_h" = xyes |
7576 |
|
|
then : |
7577 |
|
|
printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h |
7578 |
sf-exg |
1.162 |
|
7579 |
|
|
ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
7580 |
root |
1.88 |
#include <sys/types.h> |
7581 |
|
|
#include <utmpx.h> |
7582 |
sf-exg |
1.145 |
|
7583 |
|
|
" |
7584 |
root |
1.166 |
if test "x$ac_cv_type_struct_utmpx" = xyes |
7585 |
|
|
then : |
7586 |
sf-exg |
1.145 |
|
7587 |
root |
1.166 |
printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h |
7588 |
root |
1.88 |
|
7589 |
|
|
|
7590 |
|
|
fi |
7591 |
|
|
|
7592 |
|
|
|
7593 |
sf-exg |
1.145 |
ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
7594 |
root |
1.88 |
#include <sys/types.h> |
7595 |
|
|
#include <utmpx.h> |
7596 |
sf-exg |
1.145 |
|
7597 |
|
|
" |
7598 |
root |
1.166 |
if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes |
7599 |
|
|
then : |
7600 |
root |
1.88 |
|
7601 |
root |
1.166 |
printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
7602 |
root |
1.88 |
|
7603 |
|
|
fi |
7604 |
|
|
|
7605 |
sf-exg |
1.145 |
|
7606 |
root |
1.88 |
fi |
7607 |
|
|
|
7608 |
root |
1.128 |
done |
7609 |
sf-exg |
1.145 |
ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
7610 |
root |
1.88 |
#include <sys/types.h> |
7611 |
|
|
#include <utmp.h> |
7612 |
|
|
#ifdef HAVE_LASTLOG_H |
7613 |
|
|
#include <lastlog.h> |
7614 |
|
|
#endif |
7615 |
|
|
|
7616 |
sf-exg |
1.145 |
" |
7617 |
root |
1.166 |
if test "x$ac_cv_type_struct_lastlog" = xyes |
7618 |
|
|
then : |
7619 |
sf-exg |
1.145 |
|
7620 |
root |
1.166 |
printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h |
7621 |
root |
1.88 |
|
7622 |
|
|
|
7623 |
|
|
fi |
7624 |
|
|
|
7625 |
sf-exg |
1.145 |
|
7626 |
|
|
ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
7627 |
root |
1.88 |
#include <sys/types.h> |
7628 |
|
|
#include <utmpx.h> |
7629 |
|
|
#ifdef HAVE_LASTLOG_H |
7630 |
|
|
#include <lastlog.h> |
7631 |
|
|
#endif |
7632 |
|
|
|
7633 |
sf-exg |
1.145 |
" |
7634 |
root |
1.166 |
if test "x$ac_cv_type_struct_lastlogx" = xyes |
7635 |
|
|
then : |
7636 |
sf-exg |
1.145 |
|
7637 |
root |
1.166 |
printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h |
7638 |
root |
1.88 |
|
7639 |
|
|
|
7640 |
|
|
fi |
7641 |
|
|
|
7642 |
|
|
|
7643 |
sf-exg |
1.145 |
|
7644 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
7645 |
|
|
printf %s "checking for a fallback location of utmp... " >&6; } |
7646 |
|
|
if test ${pt_cv_path_utmp+y} |
7647 |
|
|
then : |
7648 |
|
|
printf %s "(cached) " >&6 |
7649 |
|
|
else $as_nop |
7650 |
sf-exg |
1.145 |
|
7651 |
sf-exg |
1.149 |
if test "$cross_compiling" != yes; then |
7652 |
|
|
for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
7653 |
|
|
if test -f "$file"; then |
7654 |
|
|
pt_cv_path_utmp=$file |
7655 |
|
|
break |
7656 |
|
|
fi |
7657 |
|
|
done |
7658 |
root |
1.88 |
fi |
7659 |
|
|
fi |
7660 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
7661 |
|
|
printf "%s\n" "$pt_cv_path_utmp" >&6; } |
7662 |
sf-exg |
1.132 |
if test x$pt_cv_path_utmp != x; then |
7663 |
root |
1.88 |
|
7664 |
root |
1.166 |
printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h |
7665 |
root |
1.88 |
|
7666 |
sf-exg |
1.149 |
elif test "$cross_compiling" = yes; then |
7667 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
7668 |
|
|
printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
7669 |
root |
1.88 |
fi |
7670 |
|
|
|
7671 |
|
|
|
7672 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
7673 |
|
|
printf %s "checking for a fallback location of wtmp... " >&6; } |
7674 |
|
|
if test ${pt_cv_path_wtmp+y} |
7675 |
|
|
then : |
7676 |
|
|
printf %s "(cached) " >&6 |
7677 |
|
|
else $as_nop |
7678 |
sf-exg |
1.145 |
|
7679 |
sf-exg |
1.149 |
if test "$cross_compiling" != yes; then |
7680 |
|
|
for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
7681 |
|
|
if test -f "$file"; then |
7682 |
|
|
pt_cv_path_wtmp=$file |
7683 |
|
|
break |
7684 |
|
|
fi |
7685 |
|
|
done |
7686 |
root |
1.88 |
fi |
7687 |
|
|
fi |
7688 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
7689 |
|
|
printf "%s\n" "$pt_cv_path_wtmp" >&6; } |
7690 |
sf-exg |
1.132 |
if test x$pt_cv_path_wtmp != x; then |
7691 |
root |
1.88 |
|
7692 |
root |
1.166 |
printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h |
7693 |
root |
1.88 |
|
7694 |
sf-exg |
1.149 |
elif test "$cross_compiling" = yes; then |
7695 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
7696 |
|
|
printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
7697 |
root |
1.88 |
fi |
7698 |
|
|
|
7699 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
7700 |
|
|
printf %s "checking for a fallback location of wtmpx... " >&6; } |
7701 |
|
|
if test ${pt_cv_path_wtmpx+y} |
7702 |
|
|
then : |
7703 |
|
|
printf %s "(cached) " >&6 |
7704 |
|
|
else $as_nop |
7705 |
sf-exg |
1.145 |
|
7706 |
sf-exg |
1.149 |
if test "$cross_compiling" != yes; then |
7707 |
|
|
for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
7708 |
|
|
if test -f "$file"; then |
7709 |
|
|
pt_cv_path_wtmpx=$file |
7710 |
|
|
break |
7711 |
|
|
fi |
7712 |
|
|
done |
7713 |
root |
1.88 |
fi |
7714 |
|
|
fi |
7715 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7716 |
|
|
printf "%s\n" "$pt_cv_path_wtmpx" >&6; } |
7717 |
sf-exg |
1.132 |
if test x$pt_cv_path_wtmpx != x; then |
7718 |
root |
1.88 |
|
7719 |
root |
1.166 |
printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h |
7720 |
root |
1.88 |
|
7721 |
sf-exg |
1.149 |
elif test "$cross_compiling" = yes; then |
7722 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
7723 |
|
|
printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
7724 |
root |
1.88 |
fi |
7725 |
|
|
|
7726 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
7727 |
|
|
printf %s "checking for a fallback location of lastlog... " >&6; } |
7728 |
|
|
if test ${pt_cv_path_lastlog+y} |
7729 |
|
|
then : |
7730 |
|
|
printf %s "(cached) " >&6 |
7731 |
|
|
else $as_nop |
7732 |
sf-exg |
1.145 |
|
7733 |
sf-exg |
1.149 |
if test "$cross_compiling" != yes; then |
7734 |
sf-exg |
1.151 |
for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
7735 |
sf-exg |
1.149 |
if test -f "$file"; then |
7736 |
|
|
pt_cv_path_lastlog=$file |
7737 |
|
|
break |
7738 |
|
|
fi |
7739 |
|
|
done |
7740 |
root |
1.88 |
fi |
7741 |
|
|
fi |
7742 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7743 |
|
|
printf "%s\n" "$pt_cv_path_lastlog" >&6; } |
7744 |
sf-exg |
1.132 |
if test x$pt_cv_path_lastlog != x; then |
7745 |
root |
1.88 |
|
7746 |
root |
1.166 |
printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h |
7747 |
root |
1.88 |
|
7748 |
sf-exg |
1.149 |
elif test "$cross_compiling" = yes; then |
7749 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
7750 |
|
|
printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
7751 |
root |
1.88 |
fi |
7752 |
|
|
|
7753 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
7754 |
|
|
printf %s "checking for a fallback location of lastlogx... " >&6; } |
7755 |
|
|
if test ${pt_cv_path_lastlogx+y} |
7756 |
|
|
then : |
7757 |
|
|
printf %s "(cached) " >&6 |
7758 |
|
|
else $as_nop |
7759 |
sf-exg |
1.145 |
|
7760 |
sf-exg |
1.149 |
if test "$cross_compiling" != yes; then |
7761 |
|
|
for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
7762 |
|
|
if test -f "$file"; then |
7763 |
|
|
pt_cv_path_lastlogx=$file |
7764 |
|
|
break |
7765 |
|
|
fi |
7766 |
|
|
done |
7767 |
root |
1.88 |
fi |
7768 |
|
|
fi |
7769 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7770 |
|
|
printf "%s\n" "$pt_cv_path_lastlogx" >&6; } |
7771 |
sf-exg |
1.132 |
if test x$pt_cv_path_lastlogx != x; then |
7772 |
root |
1.88 |
|
7773 |
root |
1.166 |
printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h |
7774 |
root |
1.88 |
|
7775 |
sf-exg |
1.149 |
elif test "$cross_compiling" = yes; then |
7776 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
7777 |
|
|
printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
7778 |
root |
1.88 |
fi |
7779 |
|
|
|
7780 |
|
|
|
7781 |
|
|
|
7782 |
|
|
|
7783 |
ayin |
1.114 |
save_LIBS=$LIBS |
7784 |
root |
1.161 |
save_CXXFLAGS=$CXXFLAGS |
7785 |
|
|
CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7786 |
root |
1.88 |
LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7787 |
ayin |
1.111 |
if test x$support_xim = xyes; then |
7788 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
7789 |
|
|
printf %s "checking for working Xlocale... " >&6; } |
7790 |
|
|
if test ${rxvt_cv_func_xlocale+y} |
7791 |
|
|
then : |
7792 |
|
|
printf %s "(cached) " >&6 |
7793 |
|
|
else $as_nop |
7794 |
|
|
if test "$cross_compiling" = yes |
7795 |
|
|
then : |
7796 |
root |
1.143 |
: |
7797 |
root |
1.166 |
else $as_nop |
7798 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7799 |
root |
1.88 |
/* end confdefs.h. */ |
7800 |
root |
1.143 |
|
7801 |
|
|
#include <X11/Xlib.h> |
7802 |
ayin |
1.111 |
#include <stdlib.h> |
7803 |
root |
1.143 |
int main() { |
7804 |
|
|
char *p; |
7805 |
|
|
if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
7806 |
|
|
exit (XSupportsLocale() ? 0 : 1); |
7807 |
|
|
else |
7808 |
|
|
exit (1); |
7809 |
|
|
} |
7810 |
|
|
|
7811 |
root |
1.88 |
_ACEOF |
7812 |
root |
1.166 |
if ac_fn_cxx_try_run "$LINENO" |
7813 |
|
|
then : |
7814 |
root |
1.143 |
rxvt_cv_func_xlocale=yes |
7815 |
root |
1.166 |
else $as_nop |
7816 |
sf-exg |
1.132 |
rxvt_cv_func_xlocale=no |
7817 |
root |
1.88 |
fi |
7818 |
sf-exg |
1.132 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7819 |
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7820 |
root |
1.88 |
fi |
7821 |
ayin |
1.108 |
|
7822 |
root |
1.88 |
fi |
7823 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
7824 |
|
|
printf "%s\n" "$rxvt_cv_func_xlocale" >&6; } |
7825 |
root |
1.105 |
if test x$rxvt_cv_func_xlocale = xyes; then |
7826 |
root |
1.88 |
|
7827 |
root |
1.166 |
printf "%s\n" "#define USE_XIM 1" >>confdefs.h |
7828 |
root |
1.88 |
|
7829 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
7830 |
|
|
printf %s "checking for broken XIM callback... " >&6; } |
7831 |
|
|
if test ${rxvt_cv_broken_ximcb+y} |
7832 |
|
|
then : |
7833 |
|
|
printf %s "(cached) " >&6 |
7834 |
|
|
else $as_nop |
7835 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7836 |
|
|
/* end confdefs.h. */ |
7837 |
ayin |
1.111 |
|
7838 |
|
|
#include <X11/Xlib.h> |
7839 |
|
|
|
7840 |
|
|
void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
7841 |
|
|
|
7842 |
|
|
void f() { |
7843 |
|
|
XIMCallback cb; |
7844 |
|
|
cb.callback = im_destroy_cb; |
7845 |
|
|
} |
7846 |
|
|
|
7847 |
|
|
_ACEOF |
7848 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
7849 |
|
|
then : |
7850 |
root |
1.131 |
rxvt_cv_broken_ximcb=yes |
7851 |
root |
1.166 |
else $as_nop |
7852 |
sf-exg |
1.132 |
rxvt_cv_broken_ximcb=no |
7853 |
ayin |
1.111 |
fi |
7854 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7855 |
ayin |
1.111 |
fi |
7856 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
7857 |
|
|
printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; } |
7858 |
ayin |
1.111 |
|
7859 |
root |
1.131 |
if test x$rxvt_cv_broken_ximcb = xyes; then |
7860 |
ayin |
1.111 |
|
7861 |
root |
1.166 |
printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
7862 |
ayin |
1.111 |
|
7863 |
|
|
fi |
7864 |
root |
1.105 |
fi |
7865 |
root |
1.88 |
fi |
7866 |
|
|
|
7867 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
7868 |
|
|
printf %s "checking for working X setlocale... " >&6; } |
7869 |
|
|
if test ${rxvt_cv_func_xsetlocale+y} |
7870 |
|
|
then : |
7871 |
|
|
printf %s "(cached) " >&6 |
7872 |
|
|
else $as_nop |
7873 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7874 |
root |
1.88 |
/* end confdefs.h. */ |
7875 |
|
|
#define X_LOCALE 1 |
7876 |
|
|
#include <X11/Xlocale.h> |
7877 |
|
|
int |
7878 |
root |
1.166 |
main (void) |
7879 |
root |
1.88 |
{ |
7880 |
|
|
setlocale(LC_CTYPE, ""); |
7881 |
|
|
; |
7882 |
|
|
return 0; |
7883 |
|
|
} |
7884 |
|
|
_ACEOF |
7885 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
7886 |
|
|
then : |
7887 |
root |
1.88 |
rxvt_cv_func_xsetlocale=yes |
7888 |
root |
1.166 |
else $as_nop |
7889 |
sf-exg |
1.132 |
rxvt_cv_func_xsetlocale=no |
7890 |
root |
1.88 |
fi |
7891 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7892 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
7893 |
root |
1.88 |
fi |
7894 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
7895 |
|
|
printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; } |
7896 |
root |
1.88 |
if test x$rxvt_cv_func_xsetlocale = xyes; then |
7897 |
|
|
|
7898 |
root |
1.166 |
printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h |
7899 |
root |
1.88 |
|
7900 |
|
|
fi |
7901 |
ayin |
1.114 |
LIBS=$save_LIBS |
7902 |
root |
1.161 |
CXXFLAGS=$save_CXXFLAGS |
7903 |
root |
1.88 |
|
7904 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
7905 |
|
|
printf %s "checking for working nl_langinfo... " >&6; } |
7906 |
|
|
if test ${rxvt_cv_func_nl_langinfo+y} |
7907 |
|
|
then : |
7908 |
|
|
printf %s "(cached) " >&6 |
7909 |
|
|
else $as_nop |
7910 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7911 |
root |
1.88 |
/* end confdefs.h. */ |
7912 |
|
|
#include <langinfo.h> |
7913 |
|
|
int |
7914 |
root |
1.166 |
main (void) |
7915 |
root |
1.88 |
{ |
7916 |
|
|
nl_langinfo(CODESET); |
7917 |
|
|
; |
7918 |
|
|
return 0; |
7919 |
|
|
} |
7920 |
|
|
_ACEOF |
7921 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
7922 |
|
|
then : |
7923 |
root |
1.88 |
rxvt_cv_func_nl_langinfo=yes |
7924 |
root |
1.166 |
else $as_nop |
7925 |
sf-exg |
1.132 |
rxvt_cv_func_nl_langinfo=no |
7926 |
root |
1.88 |
fi |
7927 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7928 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
7929 |
root |
1.88 |
fi |
7930 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
7931 |
|
|
printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
7932 |
root |
1.88 |
if test x$rxvt_cv_func_nl_langinfo = xyes; then |
7933 |
|
|
|
7934 |
root |
1.166 |
printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7935 |
root |
1.88 |
|
7936 |
|
|
fi |
7937 |
|
|
|
7938 |
|
|
|
7939 |
root |
1.161 |
|
7940 |
sf-exg |
1.151 |
case $host in |
7941 |
|
|
*-*-solaris*) |
7942 |
root |
1.161 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7943 |
|
|
/* end confdefs.h. */ |
7944 |
|
|
|
7945 |
|
|
#if __STDC_VERSION__ >= 199901L |
7946 |
|
|
error |
7947 |
|
|
#endif |
7948 |
|
|
|
7949 |
|
|
int |
7950 |
root |
1.166 |
main (void) |
7951 |
root |
1.161 |
{ |
7952 |
|
|
|
7953 |
|
|
; |
7954 |
|
|
return 0; |
7955 |
|
|
} |
7956 |
|
|
_ACEOF |
7957 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
7958 |
|
|
then : |
7959 |
|
|
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
7960 |
sf-exg |
1.151 |
|
7961 |
root |
1.166 |
else $as_nop |
7962 |
|
|
printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h |
7963 |
sf-exg |
1.151 |
|
7964 |
root |
1.161 |
fi |
7965 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7966 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
7967 |
|
|
printf %s "checking for library containing sendmsg... " >&6; } |
7968 |
|
|
if test ${ac_cv_search_sendmsg+y} |
7969 |
|
|
then : |
7970 |
|
|
printf %s "(cached) " >&6 |
7971 |
|
|
else $as_nop |
7972 |
sf-exg |
1.151 |
ac_func_search_save_LIBS=$LIBS |
7973 |
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7974 |
|
|
/* end confdefs.h. */ |
7975 |
|
|
|
7976 |
root |
1.166 |
namespace conftest { |
7977 |
|
|
extern "C" int sendmsg (); |
7978 |
|
|
} |
7979 |
sf-exg |
1.151 |
int |
7980 |
root |
1.166 |
main (void) |
7981 |
sf-exg |
1.151 |
{ |
7982 |
root |
1.166 |
return conftest::sendmsg (); |
7983 |
sf-exg |
1.151 |
; |
7984 |
|
|
return 0; |
7985 |
|
|
} |
7986 |
|
|
_ACEOF |
7987 |
root |
1.166 |
for ac_lib in '' socket |
7988 |
|
|
do |
7989 |
sf-exg |
1.151 |
if test -z "$ac_lib"; then |
7990 |
|
|
ac_res="none required" |
7991 |
|
|
else |
7992 |
|
|
ac_res=-l$ac_lib |
7993 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
7994 |
|
|
fi |
7995 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
7996 |
|
|
then : |
7997 |
sf-exg |
1.151 |
ac_cv_search_sendmsg=$ac_res |
7998 |
|
|
fi |
7999 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8000 |
sf-exg |
1.151 |
conftest$ac_exeext |
8001 |
root |
1.166 |
if test ${ac_cv_search_sendmsg+y} |
8002 |
|
|
then : |
8003 |
sf-exg |
1.151 |
break |
8004 |
|
|
fi |
8005 |
|
|
done |
8006 |
root |
1.166 |
if test ${ac_cv_search_sendmsg+y} |
8007 |
|
|
then : |
8008 |
sf-exg |
1.151 |
|
8009 |
root |
1.166 |
else $as_nop |
8010 |
sf-exg |
1.151 |
ac_cv_search_sendmsg=no |
8011 |
|
|
fi |
8012 |
|
|
rm conftest.$ac_ext |
8013 |
|
|
LIBS=$ac_func_search_save_LIBS |
8014 |
|
|
fi |
8015 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
8016 |
|
|
printf "%s\n" "$ac_cv_search_sendmsg" >&6; } |
8017 |
sf-exg |
1.151 |
ac_res=$ac_cv_search_sendmsg |
8018 |
root |
1.166 |
if test "$ac_res" != no |
8019 |
|
|
then : |
8020 |
sf-exg |
1.151 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
8021 |
|
|
|
8022 |
|
|
fi |
8023 |
|
|
|
8024 |
|
|
;; |
8025 |
|
|
esac |
8026 |
|
|
|
8027 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
8028 |
|
|
printf %s "checking for unix-compliant filehandle passing ability... " >&6; } |
8029 |
|
|
if test ${pt_cv_can_pass_fds+y} |
8030 |
|
|
then : |
8031 |
|
|
printf %s "(cached) " >&6 |
8032 |
|
|
else $as_nop |
8033 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8034 |
root |
1.88 |
/* end confdefs.h. */ |
8035 |
|
|
|
8036 |
root |
1.152 |
#include <stddef.h> // broken bsds (is that redundant?) need this |
8037 |
root |
1.88 |
#include <sys/types.h> |
8038 |
|
|
#include <sys/socket.h> |
8039 |
|
|
#include <sys/uio.h> |
8040 |
|
|
|
8041 |
|
|
int |
8042 |
root |
1.166 |
main (void) |
8043 |
root |
1.88 |
{ |
8044 |
|
|
|
8045 |
|
|
{ |
8046 |
|
|
msghdr msg; |
8047 |
|
|
iovec iov; |
8048 |
|
|
char buf [100]; |
8049 |
|
|
char data = 0; |
8050 |
|
|
|
8051 |
|
|
iov.iov_base = &data; |
8052 |
|
|
iov.iov_len = 1; |
8053 |
|
|
|
8054 |
|
|
msg.msg_iov = &iov; |
8055 |
|
|
msg.msg_iovlen = 1; |
8056 |
|
|
msg.msg_control = buf; |
8057 |
|
|
msg.msg_controllen = sizeof buf; |
8058 |
|
|
|
8059 |
|
|
cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
8060 |
|
|
cmsg->cmsg_level = SOL_SOCKET; |
8061 |
|
|
cmsg->cmsg_type = SCM_RIGHTS; |
8062 |
|
|
cmsg->cmsg_len = 100; |
8063 |
|
|
|
8064 |
|
|
*(int *)CMSG_DATA (cmsg) = 5; |
8065 |
|
|
|
8066 |
|
|
return sendmsg (3, &msg, 0); |
8067 |
|
|
} |
8068 |
|
|
|
8069 |
|
|
; |
8070 |
|
|
return 0; |
8071 |
|
|
} |
8072 |
|
|
_ACEOF |
8073 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
8074 |
|
|
then : |
8075 |
sf-exg |
1.132 |
pt_cv_can_pass_fds=yes |
8076 |
root |
1.166 |
else $as_nop |
8077 |
sf-exg |
1.132 |
pt_cv_can_pass_fds=no |
8078 |
root |
1.88 |
fi |
8079 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8080 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
8081 |
pcg |
1.11 |
fi |
8082 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
8083 |
|
|
printf "%s\n" "$pt_cv_can_pass_fds" >&6; } |
8084 |
sf-exg |
1.132 |
if test x$pt_cv_can_pass_fds = xyes; then |
8085 |
root |
1.83 |
|
8086 |
root |
1.166 |
printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
8087 |
root |
1.83 |
|
8088 |
sf-exg |
1.132 |
else |
8089 |
root |
1.137 |
as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
8090 |
sf-exg |
1.132 |
fi |
8091 |
root |
1.83 |
|
8092 |
|
|
|
8093 |
|
|
|
8094 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" |
8095 |
|
|
if test "x$ac_cv_header_pty_h" = xyes |
8096 |
|
|
then : |
8097 |
|
|
printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h |
8098 |
|
|
|
8099 |
|
|
fi |
8100 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
8101 |
|
|
if test "x$ac_cv_header_util_h" = xyes |
8102 |
|
|
then : |
8103 |
|
|
printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
8104 |
|
|
|
8105 |
|
|
fi |
8106 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
8107 |
|
|
if test "x$ac_cv_header_libutil_h" = xyes |
8108 |
|
|
then : |
8109 |
|
|
printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
8110 |
|
|
|
8111 |
|
|
fi |
8112 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
8113 |
|
|
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
8114 |
|
|
then : |
8115 |
|
|
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
8116 |
|
|
|
8117 |
|
|
fi |
8118 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
8119 |
|
|
if test "x$ac_cv_header_stropts_h" = xyes |
8120 |
|
|
then : |
8121 |
|
|
printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
8122 |
|
|
|
8123 |
|
|
fi |
8124 |
|
|
|
8125 |
|
|
|
8126 |
|
|
ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke" |
8127 |
|
|
if test "x$ac_cv_func_revoke" = xyes |
8128 |
|
|
then : |
8129 |
|
|
printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h |
8130 |
|
|
|
8131 |
|
|
fi |
8132 |
|
|
ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" |
8133 |
|
|
if test "x$ac_cv_func__getpty" = xyes |
8134 |
|
|
then : |
8135 |
|
|
printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h |
8136 |
|
|
|
8137 |
|
|
fi |
8138 |
|
|
ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
8139 |
|
|
if test "x$ac_cv_func_getpt" = xyes |
8140 |
|
|
then : |
8141 |
|
|
printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h |
8142 |
root |
1.83 |
|
8143 |
root |
1.166 |
fi |
8144 |
|
|
ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" |
8145 |
|
|
if test "x$ac_cv_func_posix_openpt" = xyes |
8146 |
|
|
then : |
8147 |
|
|
printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h |
8148 |
root |
1.94 |
|
8149 |
sf-exg |
1.132 |
fi |
8150 |
root |
1.166 |
ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream" |
8151 |
|
|
if test "x$ac_cv_func_isastream" = xyes |
8152 |
|
|
then : |
8153 |
|
|
printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h |
8154 |
root |
1.94 |
|
8155 |
root |
1.166 |
fi |
8156 |
|
|
ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
8157 |
|
|
if test "x$ac_cv_func_setuid" = xyes |
8158 |
|
|
then : |
8159 |
|
|
printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
8160 |
root |
1.94 |
|
8161 |
root |
1.166 |
fi |
8162 |
|
|
ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
8163 |
|
|
if test "x$ac_cv_func_seteuid" = xyes |
8164 |
|
|
then : |
8165 |
|
|
printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
8166 |
root |
1.94 |
|
8167 |
root |
1.166 |
fi |
8168 |
|
|
ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
8169 |
|
|
if test "x$ac_cv_func_setreuid" = xyes |
8170 |
|
|
then : |
8171 |
|
|
printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
8172 |
root |
1.83 |
|
8173 |
root |
1.166 |
fi |
8174 |
|
|
ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
8175 |
|
|
if test "x$ac_cv_func_setresuid" = xyes |
8176 |
|
|
then : |
8177 |
|
|
printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
8178 |
root |
1.88 |
|
8179 |
|
|
fi |
8180 |
|
|
|
8181 |
|
|
|
8182 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
8183 |
|
|
printf %s "checking for UNIX98 ptys... " >&6; } |
8184 |
sf-exg |
1.149 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8185 |
root |
1.83 |
/* end confdefs.h. */ |
8186 |
root |
1.88 |
#include <stdlib.h> |
8187 |
root |
1.83 |
int |
8188 |
root |
1.166 |
main (void) |
8189 |
root |
1.83 |
{ |
8190 |
root |
1.88 |
grantpt(0);unlockpt(0);ptsname(0); |
8191 |
root |
1.83 |
; |
8192 |
|
|
return 0; |
8193 |
root |
1.31 |
} |
8194 |
|
|
_ACEOF |
8195 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
8196 |
|
|
then : |
8197 |
root |
1.88 |
unix98_pty=yes |
8198 |
|
|
|
8199 |
root |
1.166 |
printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h |
8200 |
root |
1.88 |
|
8201 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8202 |
|
|
printf "%s\n" "yes" >&6; } |
8203 |
|
|
else $as_nop |
8204 |
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8205 |
|
|
printf "%s\n" "no" >&6; } |
8206 |
root |
1.31 |
fi |
8207 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8208 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
8209 |
root |
1.31 |
|
8210 |
root |
1.88 |
if test -z "$unix98_pty"; then |
8211 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
8212 |
|
|
printf %s "checking for library containing openpty... " >&6; } |
8213 |
|
|
if test ${ac_cv_search_openpty+y} |
8214 |
|
|
then : |
8215 |
|
|
printf %s "(cached) " >&6 |
8216 |
|
|
else $as_nop |
8217 |
sf-exg |
1.133 |
ac_func_search_save_LIBS=$LIBS |
8218 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8219 |
root |
1.88 |
/* end confdefs.h. */ |
8220 |
root |
1.87 |
|
8221 |
root |
1.166 |
namespace conftest { |
8222 |
|
|
extern "C" int openpty (); |
8223 |
|
|
} |
8224 |
root |
1.88 |
int |
8225 |
root |
1.166 |
main (void) |
8226 |
root |
1.88 |
{ |
8227 |
root |
1.166 |
return conftest::openpty (); |
8228 |
root |
1.88 |
; |
8229 |
|
|
return 0; |
8230 |
root |
1.66 |
} |
8231 |
|
|
_ACEOF |
8232 |
root |
1.166 |
for ac_lib in '' util |
8233 |
|
|
do |
8234 |
sf-exg |
1.133 |
if test -z "$ac_lib"; then |
8235 |
|
|
ac_res="none required" |
8236 |
|
|
else |
8237 |
|
|
ac_res=-l$ac_lib |
8238 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
8239 |
|
|
fi |
8240 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
8241 |
|
|
then : |
8242 |
sf-exg |
1.133 |
ac_cv_search_openpty=$ac_res |
8243 |
root |
1.88 |
fi |
8244 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8245 |
sf-exg |
1.133 |
conftest$ac_exeext |
8246 |
root |
1.166 |
if test ${ac_cv_search_openpty+y} |
8247 |
|
|
then : |
8248 |
sf-exg |
1.133 |
break |
8249 |
|
|
fi |
8250 |
|
|
done |
8251 |
root |
1.166 |
if test ${ac_cv_search_openpty+y} |
8252 |
|
|
then : |
8253 |
sf-exg |
1.133 |
|
8254 |
root |
1.166 |
else $as_nop |
8255 |
sf-exg |
1.133 |
ac_cv_search_openpty=no |
8256 |
root |
1.66 |
fi |
8257 |
sf-exg |
1.133 |
rm conftest.$ac_ext |
8258 |
|
|
LIBS=$ac_func_search_save_LIBS |
8259 |
root |
1.66 |
fi |
8260 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
8261 |
|
|
printf "%s\n" "$ac_cv_search_openpty" >&6; } |
8262 |
sf-exg |
1.133 |
ac_res=$ac_cv_search_openpty |
8263 |
root |
1.166 |
if test "$ac_res" != no |
8264 |
|
|
then : |
8265 |
sf-exg |
1.133 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
8266 |
|
|
|
8267 |
root |
1.166 |
printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
8268 |
root |
1.87 |
|
8269 |
root |
1.88 |
fi |
8270 |
pcg |
1.1 |
|
8271 |
|
|
fi |
8272 |
|
|
|
8273 |
|
|
|
8274 |
root |
1.90 |
|
8275 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
8276 |
|
|
printf %s "checking for tty group... " >&6; } |
8277 |
|
|
if test ${pt_cv_tty_group+y} |
8278 |
|
|
then : |
8279 |
|
|
printf %s "(cached) " >&6 |
8280 |
|
|
else $as_nop |
8281 |
|
|
if test "$cross_compiling" = yes |
8282 |
|
|
then : |
8283 |
sf-exg |
1.132 |
pt_cv_tty_group=no |
8284 |
root |
1.166 |
else $as_nop |
8285 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8286 |
root |
1.90 |
/* end confdefs.h. */ |
8287 |
|
|
|
8288 |
|
|
#include <sys/types.h> |
8289 |
|
|
#include <sys/stat.h> |
8290 |
|
|
#include <unistd.h> |
8291 |
|
|
#include <grp.h> |
8292 |
|
|
|
8293 |
sf-exg |
1.144 |
int main() |
8294 |
root |
1.90 |
{ |
8295 |
|
|
struct stat st; |
8296 |
|
|
struct group *gr; |
8297 |
|
|
char *tty; |
8298 |
|
|
gr = getgrnam("tty"); |
8299 |
|
|
tty = ttyname(0); |
8300 |
|
|
if (gr != 0 |
8301 |
|
|
&& tty != 0 |
8302 |
|
|
&& (stat(tty, &st)) == 0 |
8303 |
|
|
&& st.st_gid == gr->gr_gid) |
8304 |
|
|
return 0; |
8305 |
|
|
else |
8306 |
|
|
return 1; |
8307 |
|
|
} |
8308 |
|
|
_ACEOF |
8309 |
root |
1.166 |
if ac_fn_cxx_try_run "$LINENO" |
8310 |
|
|
then : |
8311 |
sf-exg |
1.132 |
pt_cv_tty_group=yes |
8312 |
root |
1.166 |
else $as_nop |
8313 |
sf-exg |
1.132 |
pt_cv_tty_group=no |
8314 |
root |
1.90 |
fi |
8315 |
sf-exg |
1.132 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8316 |
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext |
8317 |
root |
1.90 |
fi |
8318 |
ayin |
1.108 |
|
8319 |
root |
1.90 |
fi |
8320 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
8321 |
|
|
printf "%s\n" "$pt_cv_tty_group" >&6; } |
8322 |
sf-exg |
1.132 |
if test x$pt_cv_tty_group = xyes; then |
8323 |
root |
1.90 |
|
8324 |
root |
1.166 |
printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h |
8325 |
root |
1.90 |
|
8326 |
|
|
fi |
8327 |
|
|
|
8328 |
root |
1.155 |
support_image=no |
8329 |
|
|
if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
8330 |
|
|
support_image=yes |
8331 |
|
|
fi |
8332 |
|
|
if test x$support_xft = xyes || test x$support_image = xyes; then |
8333 |
sf-exg |
1.138 |
rxvt_have_xrender=no |
8334 |
|
|
|
8335 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 |
8336 |
|
|
printf %s "checking for xrender... " >&6; } |
8337 |
sf-exg |
1.162 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
8338 |
root |
1.163 |
XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
8339 |
|
|
XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
8340 |
sf-exg |
1.138 |
|
8341 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8342 |
|
|
printf "%s\n" "ok" >&6; } |
8343 |
sf-exg |
1.138 |
|
8344 |
sf-exg |
1.162 |
X_LIBS="$XRENDER_LIBS $X_LIBS" |
8345 |
|
|
CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" |
8346 |
sf-exg |
1.138 |
rxvt_have_xrender=yes |
8347 |
|
|
|
8348 |
|
|
save_LIBS="$LIBS" |
8349 |
|
|
LIBS="$LIBS $X_LIBS" |
8350 |
root |
1.166 |
ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
8351 |
|
|
if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes |
8352 |
|
|
then : |
8353 |
sf-exg |
1.138 |
|
8354 |
root |
1.166 |
else $as_nop |
8355 |
sf-exg |
1.138 |
rxvt_have_xrender=no |
8356 |
|
|
fi |
8357 |
|
|
|
8358 |
|
|
ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
8359 |
root |
1.166 |
if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes |
8360 |
|
|
then : |
8361 |
sf-exg |
1.138 |
|
8362 |
root |
1.166 |
else $as_nop |
8363 |
sf-exg |
1.138 |
rxvt_have_xrender=no |
8364 |
|
|
fi |
8365 |
|
|
|
8366 |
|
|
LIBS="$save_LIBS" |
8367 |
sf-exg |
1.162 |
|
8368 |
|
|
else |
8369 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8370 |
|
|
printf "%s\n" "no" >&6; } |
8371 |
sf-exg |
1.162 |
: |
8372 |
sf-exg |
1.138 |
fi |
8373 |
sf-exg |
1.162 |
|
8374 |
sf-exg |
1.138 |
fi |
8375 |
|
|
|
8376 |
|
|
if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
8377 |
root |
1.86 |
|
8378 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 |
8379 |
|
|
printf %s "checking for fontconfig xft... " >&6; } |
8380 |
sf-exg |
1.162 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
8381 |
root |
1.163 |
XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
8382 |
|
|
XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
8383 |
sf-exg |
1.162 |
|
8384 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8385 |
|
|
printf "%s\n" "ok" >&6; } |
8386 |
root |
1.86 |
|
8387 |
sf-exg |
1.162 |
X_LIBS="$XFT_LIBS $X_LIBS" |
8388 |
|
|
CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
8389 |
ayin |
1.108 |
|
8390 |
root |
1.90 |
else |
8391 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8392 |
|
|
printf "%s\n" "no" >&6; } |
8393 |
sf-exg |
1.162 |
|
8394 |
root |
1.90 |
# Extract the first word of "xft-config", so it can be a program name with args. |
8395 |
root |
1.86 |
set dummy xft-config; ac_word=$2 |
8396 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8397 |
|
|
printf %s "checking for $ac_word... " >&6; } |
8398 |
|
|
if test ${ac_cv_path_XFT_CONFIG+y} |
8399 |
|
|
then : |
8400 |
|
|
printf %s "(cached) " >&6 |
8401 |
|
|
else $as_nop |
8402 |
root |
1.86 |
case $XFT_CONFIG in |
8403 |
|
|
[\\/]* | ?:[\\/]*) |
8404 |
|
|
ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
8405 |
|
|
;; |
8406 |
|
|
*) |
8407 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8408 |
|
|
for as_dir in $PATH |
8409 |
|
|
do |
8410 |
|
|
IFS=$as_save_IFS |
8411 |
root |
1.166 |
case $as_dir in #((( |
8412 |
|
|
'') as_dir=./ ;; |
8413 |
|
|
*/) ;; |
8414 |
|
|
*) as_dir=$as_dir/ ;; |
8415 |
|
|
esac |
8416 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8417 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
8418 |
|
|
ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext" |
8419 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
8420 |
root |
1.86 |
break 2 |
8421 |
|
|
fi |
8422 |
|
|
done |
8423 |
sf-exg |
1.132 |
done |
8424 |
ayin |
1.108 |
IFS=$as_save_IFS |
8425 |
root |
1.86 |
|
8426 |
|
|
test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
8427 |
|
|
;; |
8428 |
|
|
esac |
8429 |
|
|
fi |
8430 |
|
|
XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
8431 |
|
|
if test -n "$XFT_CONFIG"; then |
8432 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
8433 |
|
|
printf "%s\n" "$XFT_CONFIG" >&6; } |
8434 |
root |
1.86 |
else |
8435 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8436 |
|
|
printf "%s\n" "no" >&6; } |
8437 |
root |
1.86 |
fi |
8438 |
|
|
|
8439 |
ayin |
1.108 |
|
8440 |
root |
1.86 |
if test $XFT_CONFIG != no; then |
8441 |
root |
1.117 |
X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
8442 |
root |
1.86 |
CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
8443 |
|
|
fi |
8444 |
sf-exg |
1.162 |
|
8445 |
root |
1.86 |
fi |
8446 |
root |
1.34 |
|
8447 |
sf-exg |
1.138 |
|
8448 |
root |
1.118 |
save_LIBS="$LIBS" |
8449 |
|
|
LIBS="$LIBS $X_LIBS" |
8450 |
root |
1.166 |
for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
8451 |
sf-exg |
1.132 |
do : |
8452 |
root |
1.166 |
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
8453 |
|
|
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
8454 |
|
|
if eval test \"x\$"$as_ac_Header"\" = x"yes" |
8455 |
|
|
then : |
8456 |
root |
1.39 |
cat >>confdefs.h <<_ACEOF |
8457 |
root |
1.166 |
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
8458 |
pcg |
1.11 |
_ACEOF |
8459 |
pcg |
1.1 |
|
8460 |
root |
1.166 |
else $as_nop |
8461 |
root |
1.39 |
support_xft=no |
8462 |
pcg |
1.1 |
fi |
8463 |
pcg |
1.11 |
|
8464 |
root |
1.39 |
done |
8465 |
pcg |
1.1 |
|
8466 |
root |
1.160 |
for ac_func in XftDrawString32 FcPatternGet |
8467 |
sf-exg |
1.138 |
do : |
8468 |
root |
1.166 |
as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
8469 |
root |
1.160 |
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
8470 |
root |
1.166 |
if eval test \"x\$"$as_ac_var"\" = x"yes" |
8471 |
|
|
then : |
8472 |
sf-exg |
1.138 |
cat >>confdefs.h <<_ACEOF |
8473 |
root |
1.166 |
#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
8474 |
sf-exg |
1.138 |
_ACEOF |
8475 |
root |
1.39 |
|
8476 |
root |
1.166 |
else $as_nop |
8477 |
sf-exg |
1.138 |
support_xft=no |
8478 |
|
|
fi |
8479 |
root |
1.166 |
|
8480 |
sf-exg |
1.138 |
done |
8481 |
|
|
LIBS="$save_LIBS" |
8482 |
sf-exg |
1.136 |
|
8483 |
sf-exg |
1.138 |
if test x$support_xft = xyes; then |
8484 |
sf-exg |
1.136 |
|
8485 |
root |
1.166 |
printf "%s\n" "#define XFT 1" >>confdefs.h |
8486 |
sf-exg |
1.136 |
|
8487 |
|
|
fi |
8488 |
|
|
fi |
8489 |
root |
1.155 |
|
8490 |
|
|
if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
8491 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5 |
8492 |
|
|
printf %s "checking for Render >= 0.11... " >&6; } |
8493 |
root |
1.161 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8494 |
|
|
/* end confdefs.h. */ |
8495 |
|
|
|
8496 |
|
|
#include <X11/extensions/Xrender.h> |
8497 |
|
|
#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
8498 |
|
|
error |
8499 |
|
|
#endif |
8500 |
|
|
|
8501 |
|
|
int |
8502 |
root |
1.166 |
main (void) |
8503 |
root |
1.161 |
{ |
8504 |
|
|
|
8505 |
|
|
; |
8506 |
|
|
return 0; |
8507 |
|
|
} |
8508 |
|
|
_ACEOF |
8509 |
root |
1.166 |
if ac_fn_cxx_try_compile "$LINENO" |
8510 |
|
|
then : |
8511 |
root |
1.161 |
|
8512 |
root |
1.166 |
else $as_nop |
8513 |
root |
1.161 |
support_image=no |
8514 |
|
|
fi |
8515 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8516 |
root |
1.161 |
if test x$support_image = xyes; then |
8517 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8518 |
|
|
printf "%s\n" "ok" >&6; } |
8519 |
root |
1.161 |
LIBS="$LIBS -lm" |
8520 |
root |
1.155 |
|
8521 |
root |
1.166 |
printf "%s\n" "#define XRENDER 1" >>confdefs.h |
8522 |
root |
1.155 |
|
8523 |
|
|
|
8524 |
root |
1.161 |
if test x$support_inheritpixmap = xyes; then |
8525 |
root |
1.155 |
|
8526 |
root |
1.166 |
printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
8527 |
root |
1.155 |
|
8528 |
root |
1.161 |
fi |
8529 |
|
|
else |
8530 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8531 |
|
|
printf "%s\n" "no" >&6; } |
8532 |
root |
1.155 |
fi |
8533 |
|
|
fi |
8534 |
|
|
|
8535 |
root |
1.39 |
if test x$support_styles = xyes; then |
8536 |
|
|
|
8537 |
root |
1.166 |
printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h |
8538 |
root |
1.39 |
|
8539 |
|
|
fi |
8540 |
|
|
if test x$support_iso14755 = xyes; then |
8541 |
|
|
|
8542 |
root |
1.166 |
printf "%s\n" "#define ISO_14755 1" >>confdefs.h |
8543 |
root |
1.39 |
|
8544 |
|
|
fi |
8545 |
|
|
if test x$support_8bitctrls = xyes; then |
8546 |
|
|
|
8547 |
root |
1.166 |
printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h |
8548 |
root |
1.39 |
|
8549 |
|
|
fi |
8550 |
|
|
if test x$support_fading = xyes; then |
8551 |
|
|
|
8552 |
root |
1.166 |
printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h |
8553 |
root |
1.39 |
|
8554 |
|
|
fi |
8555 |
|
|
if test x$support_keepscrolling = xno; then |
8556 |
|
|
|
8557 |
root |
1.166 |
printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
8558 |
root |
1.39 |
|
8559 |
|
|
fi |
8560 |
|
|
if test x$support_selectionscrolling = xyes; then |
8561 |
|
|
|
8562 |
root |
1.166 |
printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h |
8563 |
root |
1.39 |
|
8564 |
|
|
fi |
8565 |
ayin |
1.111 |
if test x$support_frills = xyes; then |
8566 |
|
|
|
8567 |
root |
1.166 |
printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h |
8568 |
ayin |
1.111 |
|
8569 |
|
|
fi |
8570 |
pcg |
1.1 |
if test x$support_mousewheel = xyes; then |
8571 |
pcg |
1.11 |
|
8572 |
root |
1.166 |
printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h |
8573 |
pcg |
1.1 |
|
8574 |
|
|
fi |
8575 |
|
|
if test x$support_mouseslipwheel = xyes; then |
8576 |
pcg |
1.11 |
|
8577 |
root |
1.166 |
printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h |
8578 |
pcg |
1.1 |
|
8579 |
|
|
fi |
8580 |
root |
1.103 |
|
8581 |
ayin |
1.126 |
scrolltypes=plain |
8582 |
|
|
|
8583 |
root |
1.166 |
printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h |
8584 |
ayin |
1.126 |
|
8585 |
|
|
|
8586 |
pcg |
1.1 |
if test x$support_scroll_rxvt = xyes; then |
8587 |
pcg |
1.11 |
|
8588 |
root |
1.166 |
printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h |
8589 |
pcg |
1.1 |
|
8590 |
ayin |
1.126 |
scrolltypes="$scrolltypes rxvt" |
8591 |
pcg |
1.1 |
fi |
8592 |
|
|
if test x$support_scroll_next = xyes; then |
8593 |
pcg |
1.11 |
|
8594 |
root |
1.166 |
printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h |
8595 |
pcg |
1.1 |
|
8596 |
|
|
scrolltypes="$scrolltypes next" |
8597 |
|
|
fi |
8598 |
|
|
if test x$support_scroll_xterm = xyes; then |
8599 |
pcg |
1.11 |
|
8600 |
root |
1.166 |
printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h |
8601 |
pcg |
1.1 |
|
8602 |
|
|
scrolltypes="$scrolltypes xterm" |
8603 |
|
|
fi |
8604 |
|
|
if test x$support_pointer_blank = xyes; then |
8605 |
pcg |
1.11 |
|
8606 |
root |
1.166 |
printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h |
8607 |
pcg |
1.1 |
|
8608 |
|
|
fi |
8609 |
pcg |
1.11 |
if test x$support_text_blink = xyes; then |
8610 |
|
|
|
8611 |
root |
1.166 |
printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h |
8612 |
pcg |
1.1 |
|
8613 |
|
|
fi |
8614 |
|
|
if test x$support_unicode3 = xyes; then |
8615 |
pcg |
1.11 |
|
8616 |
root |
1.166 |
printf "%s\n" "#define UNICODE_3 1" >>confdefs.h |
8617 |
pcg |
1.1 |
|
8618 |
|
|
fi |
8619 |
pcg |
1.18 |
if test x$support_combining = xyes; then |
8620 |
|
|
|
8621 |
root |
1.166 |
printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h |
8622 |
pcg |
1.18 |
|
8623 |
|
|
fi |
8624 |
pcg |
1.1 |
if test x$codesets = xall; then |
8625 |
root |
1.40 |
codesets=jp,jp-ext,kr,zh,zh-ext |
8626 |
pcg |
1.1 |
fi |
8627 |
pcg |
1.11 |
|
8628 |
root |
1.166 |
printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h |
8629 |
pcg |
1.1 |
|
8630 |
pcg |
1.13 |
|
8631 |
root |
1.166 |
printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h |
8632 |
pcg |
1.13 |
|
8633 |
root |
1.34 |
for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
8634 |
pcg |
1.13 |
case "$codeset" in |
8635 |
pcg |
1.11 |
JP ) |
8636 |
root |
1.166 |
printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h |
8637 |
pcg |
1.1 |
;; |
8638 |
pcg |
1.11 |
JP_EXT ) |
8639 |
root |
1.166 |
printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h |
8640 |
pcg |
1.1 |
;; |
8641 |
pcg |
1.11 |
KR ) |
8642 |
root |
1.166 |
printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h |
8643 |
pcg |
1.1 |
;; |
8644 |
root |
1.40 |
ZH ) |
8645 |
root |
1.166 |
printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h |
8646 |
pcg |
1.1 |
;; |
8647 |
root |
1.40 |
ZH_EXT ) |
8648 |
root |
1.166 |
printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h |
8649 |
pcg |
1.1 |
;; |
8650 |
|
|
esac |
8651 |
|
|
done |
8652 |
|
|
|
8653 |
root |
1.60 |
IF_PERL=\# |
8654 |
|
|
if test x$support_perl = xyes; then |
8655 |
|
|
# Extract the first word of "perl5", so it can be a program name with args. |
8656 |
|
|
set dummy perl5; ac_word=$2 |
8657 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8658 |
|
|
printf %s "checking for $ac_word... " >&6; } |
8659 |
|
|
if test ${ac_cv_path_PERL+y} |
8660 |
|
|
then : |
8661 |
|
|
printf %s "(cached) " >&6 |
8662 |
|
|
else $as_nop |
8663 |
root |
1.60 |
case $PERL in |
8664 |
|
|
[\\/]* | ?:[\\/]*) |
8665 |
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
8666 |
|
|
;; |
8667 |
|
|
*) |
8668 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8669 |
|
|
for as_dir in $PATH |
8670 |
|
|
do |
8671 |
|
|
IFS=$as_save_IFS |
8672 |
root |
1.166 |
case $as_dir in #((( |
8673 |
|
|
'') as_dir=./ ;; |
8674 |
|
|
*/) ;; |
8675 |
|
|
*) as_dir=$as_dir/ ;; |
8676 |
|
|
esac |
8677 |
sf-exg |
1.132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8678 |
root |
1.166 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
8679 |
|
|
ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" |
8680 |
|
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
8681 |
root |
1.60 |
break 2 |
8682 |
|
|
fi |
8683 |
|
|
done |
8684 |
sf-exg |
1.132 |
done |
8685 |
ayin |
1.108 |
IFS=$as_save_IFS |
8686 |
root |
1.60 |
|
8687 |
root |
1.154 |
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
8688 |
root |
1.60 |
;; |
8689 |
|
|
esac |
8690 |
|
|
fi |
8691 |
|
|
PERL=$ac_cv_path_PERL |
8692 |
|
|
if test -n "$PERL"; then |
8693 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
8694 |
|
|
printf "%s\n" "$PERL" >&6; } |
8695 |
root |
1.60 |
else |
8696 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8697 |
|
|
printf "%s\n" "no" >&6; } |
8698 |
root |
1.60 |
fi |
8699 |
|
|
|
8700 |
|
|
|
8701 |
ayin |
1.108 |
|
8702 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 |
8703 |
|
|
printf %s "checking for $PERL suitability... " >&6; } |
8704 |
root |
1.60 |
if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
8705 |
|
|
|
8706 |
root |
1.62 |
save_CXXFLAGS="$CXXFLAGS" |
8707 |
|
|
save_LIBS="$LIBS" |
8708 |
|
|
CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
8709 |
|
|
LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
8710 |
sf-exg |
1.132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8711 |
root |
1.62 |
/* end confdefs.h. */ |
8712 |
|
|
|
8713 |
|
|
#include <EXTERN.h> |
8714 |
|
|
#include <perl.h> |
8715 |
|
|
#include <XSUB.h> |
8716 |
|
|
|
8717 |
|
|
int |
8718 |
root |
1.166 |
main (void) |
8719 |
root |
1.62 |
{ |
8720 |
|
|
|
8721 |
|
|
PerlInterpreter *perl = perl_alloc (); |
8722 |
|
|
|
8723 |
|
|
; |
8724 |
|
|
return 0; |
8725 |
|
|
} |
8726 |
|
|
_ACEOF |
8727 |
root |
1.166 |
if ac_fn_cxx_try_link "$LINENO" |
8728 |
|
|
then : |
8729 |
root |
1.62 |
rxvt_perl_link=yes |
8730 |
root |
1.166 |
else $as_nop |
8731 |
sf-exg |
1.132 |
rxvt_perl_link=no |
8732 |
root |
1.62 |
fi |
8733 |
root |
1.166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
8734 |
sf-exg |
1.132 |
conftest$ac_exeext conftest.$ac_ext |
8735 |
root |
1.62 |
CXXFLAGS="$save_CXXFLAGS" |
8736 |
|
|
LIBS="$save_LIBS" |
8737 |
|
|
|
8738 |
|
|
if test x$rxvt_perl_link = xyes; then |
8739 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8740 |
|
|
printf "%s\n" "ok" >&6; } |
8741 |
root |
1.62 |
|
8742 |
root |
1.166 |
printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h |
8743 |
root |
1.60 |
|
8744 |
root |
1.62 |
IF_PERL= |
8745 |
|
|
PERL_O=rxvtperl.o |
8746 |
|
|
PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
8747 |
|
|
PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
8748 |
|
|
PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
8749 |
|
|
else |
8750 |
root |
1.137 |
as_fn_error $? "no, unable to link" "$LINENO" 5 |
8751 |
root |
1.62 |
fi |
8752 |
root |
1.60 |
else |
8753 |
root |
1.137 |
as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5 |
8754 |
root |
1.60 |
fi |
8755 |
|
|
fi |
8756 |
|
|
|
8757 |
|
|
|
8758 |
|
|
|
8759 |
|
|
|
8760 |
|
|
|
8761 |
|
|
|
8762 |
|
|
|
8763 |
pcg |
1.1 |
|
8764 |
ayin |
1.124 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
8765 |
root |
1.32 |
|
8766 |
pcg |
1.11 |
cat >confcache <<\_ACEOF |
8767 |
pcg |
1.1 |
# This file is a shell script that caches the results of configure |
8768 |
|
|
# tests run on this system so they can be shared between configure |
8769 |
pcg |
1.11 |
# scripts and configure runs, see configure's option --config-cache. |
8770 |
|
|
# It is not useful on other systems. If it contains results you don't |
8771 |
|
|
# want to keep, you may remove or edit it. |
8772 |
pcg |
1.1 |
# |
8773 |
pcg |
1.11 |
# config.status only pays attention to the cache file if you give it |
8774 |
|
|
# the --recheck option to rerun configure. |
8775 |
pcg |
1.1 |
# |
8776 |
pcg |
1.11 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
8777 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
8778 |
|
|
# following values. |
8779 |
|
|
|
8780 |
|
|
_ACEOF |
8781 |
|
|
|
8782 |
pcg |
1.1 |
# The following way of writing the cache mishandles newlines in values, |
8783 |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
8784 |
ayin |
1.108 |
# So, we kill variables containing newlines. |
8785 |
pcg |
1.1 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
8786 |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
8787 |
ayin |
1.108 |
( |
8788 |
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
8789 |
|
|
eval ac_val=\$$ac_var |
8790 |
|
|
case $ac_val in #( |
8791 |
|
|
*${as_nl}*) |
8792 |
|
|
case $ac_var in #( |
8793 |
root |
1.166 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8794 |
|
|
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
8795 |
ayin |
1.108 |
esac |
8796 |
|
|
case $ac_var in #( |
8797 |
|
|
_ | IFS | as_nl) ;; #( |
8798 |
sf-exg |
1.132 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
8799 |
|
|
*) { eval $ac_var=; unset $ac_var;} ;; |
8800 |
ayin |
1.108 |
esac ;; |
8801 |
|
|
esac |
8802 |
|
|
done |
8803 |
|
|
|
8804 |
pcg |
1.11 |
(set) 2>&1 | |
8805 |
ayin |
1.108 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8806 |
|
|
*${as_nl}ac_space=\ *) |
8807 |
sf-exg |
1.132 |
# `set' does not quote correctly, so add quotes: double-quote |
8808 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \. |
8809 |
pcg |
1.11 |
sed -n \ |
8810 |
|
|
"s/'/'\\\\''/g; |
8811 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
8812 |
ayin |
1.108 |
;; #( |
8813 |
pcg |
1.11 |
*) |
8814 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
8815 |
ayin |
1.108 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
8816 |
pcg |
1.11 |
;; |
8817 |
ayin |
1.108 |
esac | |
8818 |
|
|
sort |
8819 |
|
|
) | |
8820 |
pcg |
1.11 |
sed ' |
8821 |
ayin |
1.108 |
/^ac_cv_env_/b end |
8822 |
pcg |
1.11 |
t clear |
8823 |
ayin |
1.108 |
:clear |
8824 |
root |
1.166 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
8825 |
pcg |
1.11 |
t end |
8826 |
ayin |
1.108 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8827 |
|
|
:end' >>confcache |
8828 |
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
8829 |
|
|
if test -w "$cache_file"; then |
8830 |
root |
1.158 |
if test "x$cache_file" != "x/dev/null"; then |
8831 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
8832 |
|
|
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
8833 |
root |
1.158 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
8834 |
|
|
cat confcache >"$cache_file" |
8835 |
|
|
else |
8836 |
|
|
case $cache_file in #( |
8837 |
|
|
*/* | ?:*) |
8838 |
|
|
mv -f confcache "$cache_file"$$ && |
8839 |
|
|
mv -f "$cache_file"$$ "$cache_file" ;; #( |
8840 |
|
|
*) |
8841 |
|
|
mv -f confcache "$cache_file" ;; |
8842 |
|
|
esac |
8843 |
|
|
fi |
8844 |
|
|
fi |
8845 |
pcg |
1.1 |
else |
8846 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8847 |
|
|
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
8848 |
pcg |
1.1 |
fi |
8849 |
|
|
fi |
8850 |
|
|
rm -f confcache |
8851 |
|
|
|
8852 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8853 |
|
|
# Let make expand exec_prefix. |
8854 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
8855 |
|
|
|
8856 |
pcg |
1.11 |
DEFS=-DHAVE_CONFIG_H |
8857 |
|
|
|
8858 |
|
|
ac_libobjs= |
8859 |
|
|
ac_ltlibobjs= |
8860 |
root |
1.137 |
U= |
8861 |
pcg |
1.11 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8862 |
|
|
# 1. Remove the extension, and $U if already installed. |
8863 |
ayin |
1.108 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8864 |
root |
1.166 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
8865 |
ayin |
1.108 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8866 |
|
|
# will be set to the directory where LIBOBJS objects are built. |
8867 |
sf-exg |
1.132 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8868 |
|
|
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
8869 |
pcg |
1.11 |
done |
8870 |
|
|
LIBOBJS=$ac_libobjs |
8871 |
|
|
|
8872 |
|
|
LTLIBOBJS=$ac_ltlibobjs |
8873 |
|
|
|
8874 |
pcg |
1.1 |
|
8875 |
|
|
|
8876 |
root |
1.158 |
: "${CONFIG_STATUS=./config.status}" |
8877 |
sf-exg |
1.132 |
ac_write_fail=0 |
8878 |
pcg |
1.11 |
ac_clean_files_save=$ac_clean_files |
8879 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8880 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8881 |
|
|
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
8882 |
sf-exg |
1.132 |
as_write_fail=0 |
8883 |
|
|
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
8884 |
pcg |
1.11 |
#! $SHELL |
8885 |
|
|
# Generated by $as_me. |
8886 |
pcg |
1.1 |
# Run this file to recreate the current configuration. |
8887 |
|
|
# Compiler output produced by configure, useful for debugging |
8888 |
pcg |
1.11 |
# configure, is in config.log if it exists. |
8889 |
|
|
|
8890 |
|
|
debug=false |
8891 |
|
|
ac_cs_recheck=false |
8892 |
|
|
ac_cs_silent=false |
8893 |
sf-exg |
1.132 |
|
8894 |
pcg |
1.11 |
SHELL=\${CONFIG_SHELL-$SHELL} |
8895 |
sf-exg |
1.132 |
export SHELL |
8896 |
|
|
_ASEOF |
8897 |
|
|
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
8898 |
|
|
## -------------------- ## |
8899 |
|
|
## M4sh Initialization. ## |
8900 |
|
|
## -------------------- ## |
8901 |
pcg |
1.11 |
|
8902 |
ayin |
1.108 |
# Be more Bourne compatible |
8903 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
8904 |
root |
1.166 |
as_nop=: |
8905 |
|
|
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
8906 |
|
|
then : |
8907 |
pcg |
1.11 |
emulate sh |
8908 |
|
|
NULLCMD=: |
8909 |
sf-exg |
1.132 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
8910 |
pcg |
1.11 |
# is contrary to our usage. Disable this feature. |
8911 |
|
|
alias -g '${1+"$@"}'='"$@"' |
8912 |
ayin |
1.108 |
setopt NO_GLOB_SUBST |
8913 |
root |
1.166 |
else $as_nop |
8914 |
sf-exg |
1.132 |
case `(set -o) 2>/dev/null` in #( |
8915 |
|
|
*posix*) : |
8916 |
|
|
set -o posix ;; #( |
8917 |
|
|
*) : |
8918 |
|
|
;; |
8919 |
ayin |
1.108 |
esac |
8920 |
|
|
fi |
8921 |
|
|
|
8922 |
|
|
|
8923 |
root |
1.166 |
|
8924 |
|
|
# Reset variables that may have inherited troublesome values from |
8925 |
|
|
# the environment. |
8926 |
|
|
|
8927 |
|
|
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
8928 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
8929 |
|
|
# side effect of setting IFS to empty, thus disabling word splitting.) |
8930 |
|
|
# Quoting is to prevent editors from complaining about space-tab. |
8931 |
sf-exg |
1.132 |
as_nl=' |
8932 |
|
|
' |
8933 |
|
|
export as_nl |
8934 |
root |
1.166 |
IFS=" "" $as_nl" |
8935 |
|
|
|
8936 |
|
|
PS1='$ ' |
8937 |
|
|
PS2='> ' |
8938 |
|
|
PS4='+ ' |
8939 |
|
|
|
8940 |
|
|
# Ensure predictable behavior from utilities with locale-dependent output. |
8941 |
|
|
LC_ALL=C |
8942 |
|
|
export LC_ALL |
8943 |
|
|
LANGUAGE=C |
8944 |
|
|
export LANGUAGE |
8945 |
|
|
|
8946 |
|
|
# We cannot yet rely on "unset" to work, but we need these variables |
8947 |
|
|
# to be unset--not just set to an empty or harmless value--now, to |
8948 |
|
|
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
8949 |
|
|
# also avoids known problems related to "unset" and subshell syntax |
8950 |
|
|
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
8951 |
|
|
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
8952 |
|
|
do eval test \${$as_var+y} \ |
8953 |
|
|
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
8954 |
|
|
done |
8955 |
|
|
|
8956 |
|
|
# Ensure that fds 0, 1, and 2 are open. |
8957 |
|
|
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
8958 |
|
|
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
8959 |
|
|
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
8960 |
ayin |
1.106 |
|
8961 |
sf-exg |
1.132 |
# The user is always right. |
8962 |
root |
1.166 |
if ${PATH_SEPARATOR+false} :; then |
8963 |
sf-exg |
1.132 |
PATH_SEPARATOR=: |
8964 |
|
|
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
8965 |
|
|
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
8966 |
|
|
PATH_SEPARATOR=';' |
8967 |
|
|
} |
8968 |
pcg |
1.11 |
fi |
8969 |
|
|
|
8970 |
|
|
|
8971 |
ayin |
1.108 |
# Find who we are. Look in the path if we contain no directory separator. |
8972 |
root |
1.158 |
as_myself= |
8973 |
sf-exg |
1.132 |
case $0 in #(( |
8974 |
ayin |
1.108 |
*[\\/]* ) as_myself=$0 ;; |
8975 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8976 |
|
|
for as_dir in $PATH |
8977 |
|
|
do |
8978 |
|
|
IFS=$as_save_IFS |
8979 |
root |
1.166 |
case $as_dir in #((( |
8980 |
|
|
'') as_dir=./ ;; |
8981 |
|
|
*/) ;; |
8982 |
|
|
*) as_dir=$as_dir/ ;; |
8983 |
|
|
esac |
8984 |
|
|
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
8985 |
sf-exg |
1.132 |
done |
8986 |
ayin |
1.108 |
IFS=$as_save_IFS |
8987 |
|
|
|
8988 |
|
|
;; |
8989 |
|
|
esac |
8990 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
8991 |
|
|
# in which case we are not to be found in the path. |
8992 |
|
|
if test "x$as_myself" = x; then |
8993 |
|
|
as_myself=$0 |
8994 |
|
|
fi |
8995 |
|
|
if test ! -f "$as_myself"; then |
8996 |
root |
1.166 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
8997 |
sf-exg |
1.132 |
exit 1 |
8998 |
ayin |
1.108 |
fi |
8999 |
|
|
|
9000 |
sf-exg |
1.132 |
|
9001 |
|
|
|
9002 |
root |
1.137 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
9003 |
|
|
# ---------------------------------------- |
9004 |
sf-exg |
1.132 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9005 |
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
9006 |
root |
1.137 |
# script with STATUS, using 1 if that was 0. |
9007 |
sf-exg |
1.132 |
as_fn_error () |
9008 |
|
|
{ |
9009 |
root |
1.137 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
9010 |
|
|
if test "$4"; then |
9011 |
|
|
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
9012 |
root |
1.166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
9013 |
sf-exg |
1.132 |
fi |
9014 |
root |
1.166 |
printf "%s\n" "$as_me: error: $2" >&2 |
9015 |
sf-exg |
1.132 |
as_fn_exit $as_status |
9016 |
|
|
} # as_fn_error |
9017 |
|
|
|
9018 |
|
|
|
9019 |
root |
1.166 |
|
9020 |
sf-exg |
1.132 |
# as_fn_set_status STATUS |
9021 |
|
|
# ----------------------- |
9022 |
|
|
# Set $? to STATUS, without forking. |
9023 |
|
|
as_fn_set_status () |
9024 |
|
|
{ |
9025 |
|
|
return $1 |
9026 |
|
|
} # as_fn_set_status |
9027 |
|
|
|
9028 |
|
|
# as_fn_exit STATUS |
9029 |
|
|
# ----------------- |
9030 |
|
|
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
9031 |
|
|
as_fn_exit () |
9032 |
|
|
{ |
9033 |
|
|
set +e |
9034 |
|
|
as_fn_set_status $1 |
9035 |
|
|
exit $1 |
9036 |
|
|
} # as_fn_exit |
9037 |
|
|
|
9038 |
|
|
# as_fn_unset VAR |
9039 |
|
|
# --------------- |
9040 |
|
|
# Portably unset VAR. |
9041 |
|
|
as_fn_unset () |
9042 |
|
|
{ |
9043 |
|
|
{ eval $1=; unset $1;} |
9044 |
|
|
} |
9045 |
|
|
as_unset=as_fn_unset |
9046 |
root |
1.166 |
|
9047 |
sf-exg |
1.132 |
# as_fn_append VAR VALUE |
9048 |
|
|
# ---------------------- |
9049 |
|
|
# Append the text in VALUE to the end of the definition contained in VAR. Take |
9050 |
|
|
# advantage of any shell optimizations that allow amortized linear growth over |
9051 |
|
|
# repeated appends, instead of the typical quadratic growth present in naive |
9052 |
|
|
# implementations. |
9053 |
root |
1.166 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
9054 |
|
|
then : |
9055 |
sf-exg |
1.132 |
eval 'as_fn_append () |
9056 |
|
|
{ |
9057 |
|
|
eval $1+=\$2 |
9058 |
|
|
}' |
9059 |
root |
1.166 |
else $as_nop |
9060 |
sf-exg |
1.132 |
as_fn_append () |
9061 |
|
|
{ |
9062 |
|
|
eval $1=\$$1\$2 |
9063 |
|
|
} |
9064 |
|
|
fi # as_fn_append |
9065 |
|
|
|
9066 |
|
|
# as_fn_arith ARG... |
9067 |
|
|
# ------------------ |
9068 |
|
|
# Perform arithmetic evaluation on the ARGs, and store the result in the |
9069 |
|
|
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
9070 |
|
|
# must be portable across $(()) and expr. |
9071 |
root |
1.166 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
9072 |
|
|
then : |
9073 |
sf-exg |
1.132 |
eval 'as_fn_arith () |
9074 |
|
|
{ |
9075 |
|
|
as_val=$(( $* )) |
9076 |
|
|
}' |
9077 |
root |
1.166 |
else $as_nop |
9078 |
sf-exg |
1.132 |
as_fn_arith () |
9079 |
|
|
{ |
9080 |
|
|
as_val=`expr "$@" || test $? -eq 1` |
9081 |
|
|
} |
9082 |
|
|
fi # as_fn_arith |
9083 |
|
|
|
9084 |
root |
1.105 |
|
9085 |
ayin |
1.108 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
9086 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
9087 |
root |
1.105 |
as_expr=expr |
9088 |
|
|
else |
9089 |
|
|
as_expr=false |
9090 |
|
|
fi |
9091 |
|
|
|
9092 |
ayin |
1.108 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
9093 |
root |
1.105 |
as_basename=basename |
9094 |
|
|
else |
9095 |
|
|
as_basename=false |
9096 |
|
|
fi |
9097 |
|
|
|
9098 |
sf-exg |
1.132 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
9099 |
|
|
as_dirname=dirname |
9100 |
|
|
else |
9101 |
|
|
as_dirname=false |
9102 |
|
|
fi |
9103 |
root |
1.105 |
|
9104 |
ayin |
1.108 |
as_me=`$as_basename -- "$0" || |
9105 |
root |
1.105 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9106 |
|
|
X"$0" : 'X\(//\)$' \| \ |
9107 |
ayin |
1.108 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
9108 |
root |
1.166 |
printf "%s\n" X/"$0" | |
9109 |
ayin |
1.108 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9110 |
|
|
s//\1/ |
9111 |
|
|
q |
9112 |
|
|
} |
9113 |
|
|
/^X\/\(\/\/\)$/{ |
9114 |
|
|
s//\1/ |
9115 |
|
|
q |
9116 |
|
|
} |
9117 |
|
|
/^X\/\(\/\).*/{ |
9118 |
|
|
s//\1/ |
9119 |
|
|
q |
9120 |
|
|
} |
9121 |
|
|
s/.*/./; q'` |
9122 |
|
|
|
9123 |
sf-exg |
1.132 |
# Avoid depending upon Character Ranges. |
9124 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
9125 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
9126 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
9127 |
|
|
as_cr_digits='0123456789' |
9128 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
9129 |
ayin |
1.108 |
|
9130 |
root |
1.166 |
|
9131 |
|
|
# Determine whether it's possible to make 'echo' print without a newline. |
9132 |
|
|
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
9133 |
|
|
# for compatibility with existing Makefiles. |
9134 |
ayin |
1.108 |
ECHO_C= ECHO_N= ECHO_T= |
9135 |
sf-exg |
1.132 |
case `echo -n x` in #((((( |
9136 |
ayin |
1.108 |
-n*) |
9137 |
sf-exg |
1.132 |
case `echo 'xy\c'` in |
9138 |
ayin |
1.108 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
9139 |
sf-exg |
1.132 |
xy) ECHO_C='\c';; |
9140 |
|
|
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
9141 |
|
|
ECHO_T=' ';; |
9142 |
ayin |
1.108 |
esac;; |
9143 |
|
|
*) |
9144 |
|
|
ECHO_N='-n';; |
9145 |
pcg |
1.11 |
esac |
9146 |
|
|
|
9147 |
root |
1.166 |
# For backward compatibility with old third-party macros, we provide |
9148 |
|
|
# the shell variables $as_echo and $as_echo_n. New code should use |
9149 |
|
|
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
9150 |
|
|
as_echo='printf %s\n' |
9151 |
|
|
as_echo_n='printf %s' |
9152 |
|
|
|
9153 |
pcg |
1.11 |
rm -f conf$$ conf$$.exe conf$$.file |
9154 |
ayin |
1.108 |
if test -d conf$$.dir; then |
9155 |
|
|
rm -f conf$$.dir/conf$$.file |
9156 |
|
|
else |
9157 |
|
|
rm -f conf$$.dir |
9158 |
sf-exg |
1.132 |
mkdir conf$$.dir 2>/dev/null |
9159 |
ayin |
1.108 |
fi |
9160 |
sf-exg |
1.132 |
if (echo >conf$$.file) 2>/dev/null; then |
9161 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
9162 |
|
|
as_ln_s='ln -s' |
9163 |
|
|
# ... but there are two gotchas: |
9164 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
9165 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
9166 |
root |
1.158 |
# In both cases, we have to default to `cp -pR'. |
9167 |
sf-exg |
1.132 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
9168 |
root |
1.158 |
as_ln_s='cp -pR' |
9169 |
sf-exg |
1.132 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
9170 |
|
|
as_ln_s=ln |
9171 |
|
|
else |
9172 |
root |
1.158 |
as_ln_s='cp -pR' |
9173 |
sf-exg |
1.132 |
fi |
9174 |
pcg |
1.11 |
else |
9175 |
root |
1.158 |
as_ln_s='cp -pR' |
9176 |
pcg |
1.11 |
fi |
9177 |
ayin |
1.108 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9178 |
|
|
rmdir conf$$.dir 2>/dev/null |
9179 |
pcg |
1.11 |
|
9180 |
sf-exg |
1.132 |
|
9181 |
|
|
# as_fn_mkdir_p |
9182 |
|
|
# ------------- |
9183 |
|
|
# Create "$as_dir" as a directory, including parents if necessary. |
9184 |
|
|
as_fn_mkdir_p () |
9185 |
|
|
{ |
9186 |
|
|
|
9187 |
|
|
case $as_dir in #( |
9188 |
|
|
-*) as_dir=./$as_dir;; |
9189 |
|
|
esac |
9190 |
|
|
test -d "$as_dir" || eval $as_mkdir_p || { |
9191 |
|
|
as_dirs= |
9192 |
|
|
while :; do |
9193 |
|
|
case $as_dir in #( |
9194 |
root |
1.166 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
9195 |
sf-exg |
1.132 |
*) as_qdir=$as_dir;; |
9196 |
|
|
esac |
9197 |
|
|
as_dirs="'$as_qdir' $as_dirs" |
9198 |
|
|
as_dir=`$as_dirname -- "$as_dir" || |
9199 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9200 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
9201 |
|
|
X"$as_dir" : 'X\(//\)$' \| \ |
9202 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
9203 |
root |
1.166 |
printf "%s\n" X"$as_dir" | |
9204 |
sf-exg |
1.132 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9205 |
|
|
s//\1/ |
9206 |
|
|
q |
9207 |
|
|
} |
9208 |
|
|
/^X\(\/\/\)[^/].*/{ |
9209 |
|
|
s//\1/ |
9210 |
|
|
q |
9211 |
|
|
} |
9212 |
|
|
/^X\(\/\/\)$/{ |
9213 |
|
|
s//\1/ |
9214 |
|
|
q |
9215 |
|
|
} |
9216 |
|
|
/^X\(\/\).*/{ |
9217 |
|
|
s//\1/ |
9218 |
|
|
q |
9219 |
|
|
} |
9220 |
|
|
s/.*/./; q'` |
9221 |
|
|
test -d "$as_dir" && break |
9222 |
|
|
done |
9223 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs" |
9224 |
root |
1.137 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9225 |
sf-exg |
1.132 |
|
9226 |
|
|
|
9227 |
|
|
} # as_fn_mkdir_p |
9228 |
pcg |
1.11 |
if mkdir -p . 2>/dev/null; then |
9229 |
sf-exg |
1.132 |
as_mkdir_p='mkdir -p "$as_dir"' |
9230 |
pcg |
1.11 |
else |
9231 |
|
|
test -d ./-p && rmdir ./-p |
9232 |
|
|
as_mkdir_p=false |
9233 |
|
|
fi |
9234 |
|
|
|
9235 |
root |
1.158 |
|
9236 |
|
|
# as_fn_executable_p FILE |
9237 |
|
|
# ----------------------- |
9238 |
|
|
# Test if FILE is an executable regular file. |
9239 |
|
|
as_fn_executable_p () |
9240 |
|
|
{ |
9241 |
|
|
test -f "$1" && test -x "$1" |
9242 |
|
|
} # as_fn_executable_p |
9243 |
|
|
as_test_x='test -x' |
9244 |
|
|
as_executable_p=as_fn_executable_p |
9245 |
pcg |
1.11 |
|
9246 |
|
|
# Sed expression to map a string onto a valid CPP name. |
9247 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
9248 |
|
|
|
9249 |
|
|
# Sed expression to map a string onto a valid variable name. |
9250 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
9251 |
|
|
|
9252 |
|
|
|
9253 |
|
|
exec 6>&1 |
9254 |
sf-exg |
1.132 |
## ----------------------------------- ## |
9255 |
|
|
## Main body of $CONFIG_STATUS script. ## |
9256 |
|
|
## ----------------------------------- ## |
9257 |
|
|
_ASEOF |
9258 |
|
|
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
9259 |
pcg |
1.11 |
|
9260 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9261 |
|
|
# Save the log message, to keep $0 and so on meaningful, and to |
9262 |
pcg |
1.11 |
# report actual input values of CONFIG_FILES etc. instead of their |
9263 |
ayin |
1.108 |
# values after options handling. |
9264 |
|
|
ac_log=" |
9265 |
pcg |
1.11 |
This file was extended by $as_me, which was |
9266 |
root |
1.166 |
generated by GNU Autoconf 2.71. Invocation command line was |
9267 |
pcg |
1.11 |
|
9268 |
|
|
CONFIG_FILES = $CONFIG_FILES |
9269 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS |
9270 |
|
|
CONFIG_LINKS = $CONFIG_LINKS |
9271 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS |
9272 |
|
|
$ $0 $@ |
9273 |
|
|
|
9274 |
ayin |
1.108 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9275 |
|
|
" |
9276 |
|
|
|
9277 |
pcg |
1.11 |
_ACEOF |
9278 |
|
|
|
9279 |
sf-exg |
1.132 |
case $ac_config_files in *" |
9280 |
|
|
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
9281 |
|
|
esac |
9282 |
|
|
|
9283 |
|
|
case $ac_config_headers in *" |
9284 |
|
|
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
9285 |
|
|
esac |
9286 |
|
|
|
9287 |
|
|
|
9288 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9289 |
pcg |
1.11 |
# Files that config.status was made for. |
9290 |
ayin |
1.108 |
config_files="$ac_config_files" |
9291 |
|
|
config_headers="$ac_config_headers" |
9292 |
ayin |
1.106 |
|
9293 |
ayin |
1.108 |
_ACEOF |
9294 |
pcg |
1.11 |
|
9295 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9296 |
pcg |
1.11 |
ac_cs_usage="\ |
9297 |
sf-exg |
1.132 |
\`$as_me' instantiates files and other configuration actions |
9298 |
|
|
from templates according to the current configuration. Unless the files |
9299 |
|
|
and actions are specified as TAGs, all are instantiated by default. |
9300 |
pcg |
1.11 |
|
9301 |
sf-exg |
1.132 |
Usage: $0 [OPTION]... [TAG]... |
9302 |
pcg |
1.11 |
|
9303 |
|
|
-h, --help print this help, then exit |
9304 |
ayin |
1.108 |
-V, --version print version number and configuration settings, then exit |
9305 |
sf-exg |
1.132 |
--config print configuration, then exit |
9306 |
|
|
-q, --quiet, --silent |
9307 |
|
|
do not print progress messages |
9308 |
pcg |
1.11 |
-d, --debug don't remove temporary files |
9309 |
|
|
--recheck update $as_me by reconfiguring in the same conditions |
9310 |
sf-exg |
1.132 |
--file=FILE[:TEMPLATE] |
9311 |
|
|
instantiate the configuration file FILE |
9312 |
|
|
--header=FILE[:TEMPLATE] |
9313 |
|
|
instantiate the configuration header FILE |
9314 |
pcg |
1.11 |
|
9315 |
|
|
Configuration files: |
9316 |
|
|
$config_files |
9317 |
|
|
|
9318 |
|
|
Configuration headers: |
9319 |
|
|
$config_headers |
9320 |
|
|
|
9321 |
sf-exg |
1.132 |
Report bugs to the package provider." |
9322 |
ayin |
1.108 |
|
9323 |
ayin |
1.106 |
_ACEOF |
9324 |
root |
1.166 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
9325 |
|
|
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
9326 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9327 |
root |
1.166 |
ac_cs_config='$ac_cs_config_escaped' |
9328 |
pcg |
1.11 |
ac_cs_version="\\ |
9329 |
|
|
config.status |
9330 |
root |
1.166 |
configured by $0, generated by GNU Autoconf 2.71, |
9331 |
sf-exg |
1.132 |
with options \\"\$ac_cs_config\\" |
9332 |
pcg |
1.11 |
|
9333 |
root |
1.166 |
Copyright (C) 2021 Free Software Foundation, Inc. |
9334 |
pcg |
1.11 |
This config.status script is free software; the Free Software Foundation |
9335 |
|
|
gives unlimited permission to copy, distribute and modify it." |
9336 |
ayin |
1.108 |
|
9337 |
|
|
ac_pwd='$ac_pwd' |
9338 |
|
|
srcdir='$srcdir' |
9339 |
|
|
INSTALL='$INSTALL' |
9340 |
sf-exg |
1.132 |
test -n "\$AWK" || AWK=awk |
9341 |
pcg |
1.11 |
_ACEOF |
9342 |
|
|
|
9343 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9344 |
|
|
# The default lists apply if the user does not specify any file. |
9345 |
pcg |
1.11 |
ac_need_defaults=: |
9346 |
|
|
while test $# != 0 |
9347 |
pcg |
1.1 |
do |
9348 |
pcg |
1.11 |
case $1 in |
9349 |
root |
1.137 |
--*=?*) |
9350 |
ayin |
1.108 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9351 |
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
9352 |
pcg |
1.11 |
ac_shift=: |
9353 |
|
|
;; |
9354 |
root |
1.137 |
--*=) |
9355 |
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9356 |
|
|
ac_optarg= |
9357 |
|
|
ac_shift=: |
9358 |
|
|
;; |
9359 |
ayin |
1.108 |
*) |
9360 |
pcg |
1.11 |
ac_option=$1 |
9361 |
|
|
ac_optarg=$2 |
9362 |
|
|
ac_shift=shift |
9363 |
|
|
;; |
9364 |
|
|
esac |
9365 |
|
|
|
9366 |
|
|
case $ac_option in |
9367 |
|
|
# Handling of the options. |
9368 |
pcg |
1.1 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9369 |
pcg |
1.11 |
ac_cs_recheck=: ;; |
9370 |
ayin |
1.108 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
9371 |
root |
1.166 |
printf "%s\n" "$ac_cs_version"; exit ;; |
9372 |
sf-exg |
1.132 |
--config | --confi | --conf | --con | --co | --c ) |
9373 |
root |
1.166 |
printf "%s\n" "$ac_cs_config"; exit ;; |
9374 |
ayin |
1.108 |
--debug | --debu | --deb | --de | --d | -d ) |
9375 |
pcg |
1.11 |
debug=: ;; |
9376 |
|
|
--file | --fil | --fi | --f ) |
9377 |
|
|
$ac_shift |
9378 |
sf-exg |
1.132 |
case $ac_optarg in |
9379 |
root |
1.166 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9380 |
root |
1.137 |
'') as_fn_error $? "missing file argument" ;; |
9381 |
sf-exg |
1.132 |
esac |
9382 |
|
|
as_fn_append CONFIG_FILES " '$ac_optarg'" |
9383 |
pcg |
1.11 |
ac_need_defaults=false;; |
9384 |
|
|
--header | --heade | --head | --hea ) |
9385 |
|
|
$ac_shift |
9386 |
sf-exg |
1.132 |
case $ac_optarg in |
9387 |
root |
1.166 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9388 |
sf-exg |
1.132 |
esac |
9389 |
|
|
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
9390 |
pcg |
1.11 |
ac_need_defaults=false;; |
9391 |
ayin |
1.108 |
--he | --h) |
9392 |
|
|
# Conflict between --help and --header |
9393 |
root |
1.137 |
as_fn_error $? "ambiguous option: \`$1' |
9394 |
sf-exg |
1.132 |
Try \`$0 --help' for more information.";; |
9395 |
ayin |
1.108 |
--help | --hel | -h ) |
9396 |
root |
1.166 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
9397 |
pcg |
1.11 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9398 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
9399 |
|
|
ac_cs_silent=: ;; |
9400 |
|
|
|
9401 |
|
|
# This is an error. |
9402 |
root |
1.137 |
-*) as_fn_error $? "unrecognized option: \`$1' |
9403 |
sf-exg |
1.132 |
Try \`$0 --help' for more information." ;; |
9404 |
pcg |
1.11 |
|
9405 |
sf-exg |
1.132 |
*) as_fn_append ac_config_targets " $1" |
9406 |
ayin |
1.108 |
ac_need_defaults=false ;; |
9407 |
pcg |
1.11 |
|
9408 |
|
|
esac |
9409 |
|
|
shift |
9410 |
|
|
done |
9411 |
|
|
|
9412 |
|
|
ac_configure_extra_args= |
9413 |
|
|
|
9414 |
|
|
if $ac_cs_silent; then |
9415 |
|
|
exec 6>/dev/null |
9416 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent" |
9417 |
|
|
fi |
9418 |
|
|
|
9419 |
|
|
_ACEOF |
9420 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9421 |
pcg |
1.11 |
if \$ac_cs_recheck; then |
9422 |
root |
1.158 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9423 |
sf-exg |
1.132 |
shift |
9424 |
root |
1.166 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
9425 |
sf-exg |
1.132 |
CONFIG_SHELL='$SHELL' |
9426 |
ayin |
1.108 |
export CONFIG_SHELL |
9427 |
sf-exg |
1.132 |
exec "\$@" |
9428 |
pcg |
1.11 |
fi |
9429 |
|
|
|
9430 |
|
|
_ACEOF |
9431 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9432 |
ayin |
1.108 |
exec 5>>config.log |
9433 |
|
|
{ |
9434 |
|
|
echo |
9435 |
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
9436 |
|
|
## Running $as_me. ## |
9437 |
|
|
_ASBOX |
9438 |
root |
1.166 |
printf "%s\n" "$ac_log" |
9439 |
ayin |
1.108 |
} >&5 |
9440 |
pcg |
1.11 |
|
9441 |
ayin |
1.108 |
_ACEOF |
9442 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9443 |
ayin |
1.108 |
_ACEOF |
9444 |
ayin |
1.106 |
|
9445 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9446 |
ayin |
1.106 |
|
9447 |
ayin |
1.108 |
# Handling of arguments. |
9448 |
pcg |
1.11 |
for ac_config_target in $ac_config_targets |
9449 |
|
|
do |
9450 |
ayin |
1.108 |
case $ac_config_target in |
9451 |
|
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
9452 |
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9453 |
|
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
9454 |
|
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
9455 |
|
|
|
9456 |
root |
1.158 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9457 |
pcg |
1.1 |
esac |
9458 |
|
|
done |
9459 |
|
|
|
9460 |
ayin |
1.108 |
|
9461 |
pcg |
1.11 |
# If the user did not use the arguments to specify the items to instantiate, |
9462 |
|
|
# then the envvar interface is used. Set only those that are not. |
9463 |
|
|
# We use the long form for the default assignment because of an extremely |
9464 |
|
|
# bizarre bug on SunOS 4.1.3. |
9465 |
|
|
if $ac_need_defaults; then |
9466 |
root |
1.166 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
9467 |
|
|
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
9468 |
pcg |
1.11 |
fi |
9469 |
|
|
|
9470 |
|
|
# Have a temporary directory for convenience. Make it in the build tree |
9471 |
ayin |
1.108 |
# simply because there is no reason against having it here, and in addition, |
9472 |
pcg |
1.11 |
# creating and moving files from /tmp can sometimes cause problems. |
9473 |
ayin |
1.108 |
# Hook for its removal unless debugging. |
9474 |
|
|
# Note that there is a small window in which the directory will not be cleaned: |
9475 |
|
|
# after its creation but before its name has been assigned to `$tmp'. |
9476 |
pcg |
1.11 |
$debug || |
9477 |
|
|
{ |
9478 |
root |
1.158 |
tmp= ac_tmp= |
9479 |
ayin |
1.108 |
trap 'exit_status=$? |
9480 |
root |
1.158 |
: "${ac_tmp:=$tmp}" |
9481 |
|
|
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
9482 |
ayin |
1.108 |
' 0 |
9483 |
sf-exg |
1.132 |
trap 'as_fn_exit 1' 1 2 13 15 |
9484 |
pcg |
1.11 |
} |
9485 |
|
|
# Create a (secure) tmp directory for tmp files. |
9486 |
|
|
|
9487 |
|
|
{ |
9488 |
ayin |
1.108 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
9489 |
root |
1.158 |
test -d "$tmp" |
9490 |
pcg |
1.11 |
} || |
9491 |
|
|
{ |
9492 |
ayin |
1.108 |
tmp=./conf$$-$RANDOM |
9493 |
|
|
(umask 077 && mkdir "$tmp") |
9494 |
root |
1.137 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
9495 |
root |
1.158 |
ac_tmp=$tmp |
9496 |
sf-exg |
1.132 |
|
9497 |
|
|
# Set up the scripts for CONFIG_FILES section. |
9498 |
|
|
# No need to generate them if there are no CONFIG_FILES. |
9499 |
|
|
# This happens for instance with `./config.status config.h'. |
9500 |
|
|
if test -n "$CONFIG_FILES"; then |
9501 |
pcg |
1.11 |
|
9502 |
ayin |
1.108 |
|
9503 |
sf-exg |
1.132 |
ac_cr=`echo X | tr X '\015'` |
9504 |
|
|
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
9505 |
|
|
# But we know of no other shell where ac_cr would be empty at this |
9506 |
|
|
# point, so we can use a bashism as a fallback. |
9507 |
|
|
if test "x$ac_cr" = x; then |
9508 |
|
|
eval ac_cr=\$\'\\r\' |
9509 |
|
|
fi |
9510 |
|
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
9511 |
|
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
9512 |
root |
1.137 |
ac_cs_awk_cr='\\r' |
9513 |
sf-exg |
1.132 |
else |
9514 |
|
|
ac_cs_awk_cr=$ac_cr |
9515 |
|
|
fi |
9516 |
ayin |
1.108 |
|
9517 |
root |
1.158 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9518 |
ayin |
1.106 |
_ACEOF |
9519 |
|
|
|
9520 |
ayin |
1.108 |
|
9521 |
sf-exg |
1.132 |
{ |
9522 |
|
|
echo "cat >conf$$subs.awk <<_ACEOF" && |
9523 |
|
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
9524 |
|
|
echo "_ACEOF" |
9525 |
|
|
} >conf$$subs.sh || |
9526 |
root |
1.137 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9527 |
|
|
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
9528 |
ayin |
1.108 |
ac_delim='%!_!# ' |
9529 |
|
|
for ac_last_try in false false false false false :; do |
9530 |
sf-exg |
1.132 |
. ./conf$$subs.sh || |
9531 |
root |
1.137 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9532 |
root |
1.105 |
|
9533 |
sf-exg |
1.132 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
9534 |
|
|
if test $ac_delim_n = $ac_delim_num; then |
9535 |
ayin |
1.108 |
break |
9536 |
|
|
elif $ac_last_try; then |
9537 |
root |
1.137 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9538 |
ayin |
1.108 |
else |
9539 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
9540 |
root |
1.105 |
fi |
9541 |
ayin |
1.108 |
done |
9542 |
sf-exg |
1.132 |
rm -f conf$$subs.sh |
9543 |
ayin |
1.108 |
|
9544 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9545 |
root |
1.158 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9546 |
ayin |
1.108 |
_ACEOF |
9547 |
sf-exg |
1.132 |
sed -n ' |
9548 |
|
|
h |
9549 |
|
|
s/^/S["/; s/!.*/"]=/ |
9550 |
|
|
p |
9551 |
|
|
g |
9552 |
|
|
s/^[^!]*!// |
9553 |
|
|
:repl |
9554 |
|
|
t repl |
9555 |
|
|
s/'"$ac_delim"'$// |
9556 |
|
|
t delim |
9557 |
|
|
:nl |
9558 |
|
|
h |
9559 |
|
|
s/\(.\{148\}\)..*/\1/ |
9560 |
|
|
t more1 |
9561 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
9562 |
|
|
p |
9563 |
|
|
n |
9564 |
|
|
b repl |
9565 |
|
|
:more1 |
9566 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
9567 |
|
|
p |
9568 |
|
|
g |
9569 |
|
|
s/.\{148\}// |
9570 |
|
|
t nl |
9571 |
|
|
:delim |
9572 |
|
|
h |
9573 |
|
|
s/\(.\{148\}\)..*/\1/ |
9574 |
|
|
t more2 |
9575 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
9576 |
|
|
p |
9577 |
|
|
b |
9578 |
|
|
:more2 |
9579 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
9580 |
|
|
p |
9581 |
|
|
g |
9582 |
|
|
s/.\{148\}// |
9583 |
|
|
t delim |
9584 |
|
|
' <conf$$subs.awk | sed ' |
9585 |
|
|
/^[^""]/{ |
9586 |
|
|
N |
9587 |
|
|
s/\n// |
9588 |
|
|
} |
9589 |
|
|
' >>$CONFIG_STATUS || ac_write_fail=1 |
9590 |
|
|
rm -f conf$$subs.awk |
9591 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9592 |
|
|
_ACAWK |
9593 |
root |
1.158 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9594 |
sf-exg |
1.132 |
for (key in S) S_is_set[key] = 1 |
9595 |
|
|
FS = "" |
9596 |
ayin |
1.108 |
|
9597 |
sf-exg |
1.132 |
} |
9598 |
|
|
{ |
9599 |
|
|
line = $ 0 |
9600 |
|
|
nfields = split(line, field, "@") |
9601 |
|
|
substed = 0 |
9602 |
|
|
len = length(field[1]) |
9603 |
|
|
for (i = 2; i < nfields; i++) { |
9604 |
|
|
key = field[i] |
9605 |
|
|
keylen = length(key) |
9606 |
|
|
if (S_is_set[key]) { |
9607 |
|
|
value = S[key] |
9608 |
|
|
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
9609 |
|
|
len += length(value) + length(field[++i]) |
9610 |
|
|
substed = 1 |
9611 |
|
|
} else |
9612 |
|
|
len += 1 + keylen |
9613 |
|
|
} |
9614 |
|
|
|
9615 |
|
|
print line |
9616 |
|
|
} |
9617 |
|
|
|
9618 |
|
|
_ACAWK |
9619 |
|
|
_ACEOF |
9620 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9621 |
|
|
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
9622 |
|
|
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
9623 |
|
|
else |
9624 |
|
|
cat |
9625 |
root |
1.158 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
9626 |
root |
1.137 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9627 |
sf-exg |
1.132 |
_ACEOF |
9628 |
ayin |
1.108 |
|
9629 |
root |
1.137 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
9630 |
|
|
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
9631 |
ayin |
1.108 |
# trailing colons and then remove the whole line if VPATH becomes empty |
9632 |
|
|
# (actually we leave an empty line to preserve line numbers). |
9633 |
|
|
if test "x$srcdir" = x.; then |
9634 |
root |
1.137 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
9635 |
|
|
h |
9636 |
|
|
s/// |
9637 |
|
|
s/^/:/ |
9638 |
|
|
s/[ ]*$/:/ |
9639 |
|
|
s/:\$(srcdir):/:/g |
9640 |
|
|
s/:\${srcdir}:/:/g |
9641 |
|
|
s/:@srcdir@:/:/g |
9642 |
|
|
s/^:*// |
9643 |
ayin |
1.108 |
s/:*$// |
9644 |
root |
1.137 |
x |
9645 |
|
|
s/\(=[ ]*\).*/\1/ |
9646 |
|
|
G |
9647 |
|
|
s/\n// |
9648 |
ayin |
1.108 |
s/^[^=]*=[ ]*$// |
9649 |
|
|
}' |
9650 |
|
|
fi |
9651 |
|
|
|
9652 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9653 |
ayin |
1.108 |
fi # test -n "$CONFIG_FILES" |
9654 |
|
|
|
9655 |
sf-exg |
1.132 |
# Set up the scripts for CONFIG_HEADERS section. |
9656 |
|
|
# No need to generate them if there are no CONFIG_HEADERS. |
9657 |
|
|
# This happens for instance with `./config.status Makefile'. |
9658 |
|
|
if test -n "$CONFIG_HEADERS"; then |
9659 |
root |
1.158 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
9660 |
sf-exg |
1.132 |
BEGIN { |
9661 |
|
|
_ACEOF |
9662 |
|
|
|
9663 |
|
|
# Transform confdefs.h into an awk script `defines.awk', embedded as |
9664 |
|
|
# here-document in config.status, that substitutes the proper values into |
9665 |
|
|
# config.h.in to produce config.h. |
9666 |
|
|
|
9667 |
|
|
# Create a delimiter string that does not exist in confdefs.h, to ease |
9668 |
|
|
# handling of long lines. |
9669 |
|
|
ac_delim='%!_!# ' |
9670 |
|
|
for ac_last_try in false false :; do |
9671 |
root |
1.158 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
9672 |
|
|
if test -z "$ac_tt"; then |
9673 |
sf-exg |
1.132 |
break |
9674 |
|
|
elif $ac_last_try; then |
9675 |
root |
1.137 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
9676 |
sf-exg |
1.132 |
else |
9677 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
9678 |
|
|
fi |
9679 |
|
|
done |
9680 |
|
|
|
9681 |
|
|
# For the awk script, D is an array of macro values keyed by name, |
9682 |
|
|
# likewise P contains macro parameters if any. Preserve backslash |
9683 |
|
|
# newline sequences. |
9684 |
|
|
|
9685 |
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
9686 |
|
|
sed -n ' |
9687 |
|
|
s/.\{148\}/&'"$ac_delim"'/g |
9688 |
|
|
t rset |
9689 |
|
|
:rset |
9690 |
|
|
s/^[ ]*#[ ]*define[ ][ ]*/ / |
9691 |
|
|
t def |
9692 |
|
|
d |
9693 |
|
|
:def |
9694 |
|
|
s/\\$// |
9695 |
|
|
t bsnl |
9696 |
|
|
s/["\\]/\\&/g |
9697 |
|
|
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
9698 |
|
|
D["\1"]=" \3"/p |
9699 |
|
|
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
9700 |
|
|
d |
9701 |
|
|
:bsnl |
9702 |
|
|
s/["\\]/\\&/g |
9703 |
|
|
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
9704 |
|
|
D["\1"]=" \3\\\\\\n"\\/p |
9705 |
|
|
t cont |
9706 |
|
|
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
9707 |
|
|
t cont |
9708 |
|
|
d |
9709 |
|
|
:cont |
9710 |
|
|
n |
9711 |
|
|
s/.\{148\}/&'"$ac_delim"'/g |
9712 |
|
|
t clear |
9713 |
|
|
:clear |
9714 |
|
|
s/\\$// |
9715 |
|
|
t bsnlc |
9716 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
9717 |
|
|
d |
9718 |
|
|
:bsnlc |
9719 |
|
|
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
9720 |
|
|
b cont |
9721 |
|
|
' <confdefs.h | sed ' |
9722 |
|
|
s/'"$ac_delim"'/"\\\ |
9723 |
|
|
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
9724 |
|
|
|
9725 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9726 |
|
|
for (key in D) D_is_set[key] = 1 |
9727 |
|
|
FS = "" |
9728 |
|
|
} |
9729 |
|
|
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
9730 |
|
|
line = \$ 0 |
9731 |
|
|
split(line, arg, " ") |
9732 |
|
|
if (arg[1] == "#") { |
9733 |
|
|
defundef = arg[2] |
9734 |
|
|
mac1 = arg[3] |
9735 |
|
|
} else { |
9736 |
|
|
defundef = substr(arg[1], 2) |
9737 |
|
|
mac1 = arg[2] |
9738 |
|
|
} |
9739 |
|
|
split(mac1, mac2, "(") #) |
9740 |
|
|
macro = mac2[1] |
9741 |
|
|
prefix = substr(line, 1, index(line, defundef) - 1) |
9742 |
|
|
if (D_is_set[macro]) { |
9743 |
|
|
# Preserve the white space surrounding the "#". |
9744 |
|
|
print prefix "define", macro P[macro] D[macro] |
9745 |
|
|
next |
9746 |
|
|
} else { |
9747 |
|
|
# Replace #undef with comments. This is necessary, for example, |
9748 |
|
|
# in the case of _POSIX_SOURCE, which is predefined and required |
9749 |
|
|
# on some systems where configure will not decide to define it. |
9750 |
|
|
if (defundef == "undef") { |
9751 |
|
|
print "/*", prefix defundef, macro, "*/" |
9752 |
|
|
next |
9753 |
|
|
} |
9754 |
|
|
} |
9755 |
|
|
} |
9756 |
|
|
{ print } |
9757 |
|
|
_ACAWK |
9758 |
|
|
_ACEOF |
9759 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9760 |
root |
1.137 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
9761 |
sf-exg |
1.132 |
fi # test -n "$CONFIG_HEADERS" |
9762 |
|
|
|
9763 |
ayin |
1.108 |
|
9764 |
sf-exg |
1.132 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
9765 |
|
|
shift |
9766 |
|
|
for ac_tag |
9767 |
ayin |
1.108 |
do |
9768 |
|
|
case $ac_tag in |
9769 |
|
|
:[FHLC]) ac_mode=$ac_tag; continue;; |
9770 |
|
|
esac |
9771 |
|
|
case $ac_mode$ac_tag in |
9772 |
|
|
:[FHL]*:*);; |
9773 |
root |
1.158 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9774 |
ayin |
1.108 |
:[FH]-) ac_tag=-:-;; |
9775 |
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
9776 |
|
|
esac |
9777 |
|
|
ac_save_IFS=$IFS |
9778 |
|
|
IFS=: |
9779 |
|
|
set x $ac_tag |
9780 |
|
|
IFS=$ac_save_IFS |
9781 |
|
|
shift |
9782 |
|
|
ac_file=$1 |
9783 |
|
|
shift |
9784 |
|
|
|
9785 |
|
|
case $ac_mode in |
9786 |
|
|
:L) ac_source=$1;; |
9787 |
|
|
:[FH]) |
9788 |
|
|
ac_file_inputs= |
9789 |
|
|
for ac_f |
9790 |
|
|
do |
9791 |
|
|
case $ac_f in |
9792 |
root |
1.158 |
-) ac_f="$ac_tmp/stdin";; |
9793 |
ayin |
1.108 |
*) # Look for the file first in the build tree, then in the source tree |
9794 |
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style, |
9795 |
|
|
# because $ac_f cannot contain `:'. |
9796 |
|
|
test -f "$ac_f" || |
9797 |
|
|
case $ac_f in |
9798 |
|
|
[\\/$]*) false;; |
9799 |
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
9800 |
|
|
esac || |
9801 |
root |
1.158 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9802 |
ayin |
1.108 |
esac |
9803 |
root |
1.166 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9804 |
sf-exg |
1.132 |
as_fn_append ac_file_inputs " '$ac_f'" |
9805 |
ayin |
1.108 |
done |
9806 |
|
|
|
9807 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
9808 |
|
|
# use $as_me), people would be surprised to read: |
9809 |
|
|
# /* config.h. Generated by config.status. */ |
9810 |
sf-exg |
1.132 |
configure_input='Generated from '` |
9811 |
root |
1.166 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
9812 |
sf-exg |
1.132 |
`' by configure.' |
9813 |
ayin |
1.108 |
if test x"$ac_file" != x-; then |
9814 |
|
|
configure_input="$ac_file. $configure_input" |
9815 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9816 |
|
|
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
9817 |
ayin |
1.108 |
fi |
9818 |
sf-exg |
1.132 |
# Neutralize special characters interpreted by sed in replacement strings. |
9819 |
|
|
case $configure_input in #( |
9820 |
|
|
*\&* | *\|* | *\\* ) |
9821 |
root |
1.166 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
9822 |
sf-exg |
1.132 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9823 |
|
|
*) ac_sed_conf_input=$configure_input;; |
9824 |
|
|
esac |
9825 |
ayin |
1.108 |
|
9826 |
|
|
case $ac_tag in |
9827 |
root |
1.158 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
9828 |
|
|
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
9829 |
ayin |
1.108 |
esac |
9830 |
|
|
;; |
9831 |
ayin |
1.102 |
esac |
9832 |
|
|
|
9833 |
ayin |
1.108 |
ac_dir=`$as_dirname -- "$ac_file" || |
9834 |
pcg |
1.11 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9835 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
9836 |
|
|
X"$ac_file" : 'X\(//\)$' \| \ |
9837 |
ayin |
1.108 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9838 |
root |
1.166 |
printf "%s\n" X"$ac_file" | |
9839 |
ayin |
1.108 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9840 |
|
|
s//\1/ |
9841 |
|
|
q |
9842 |
|
|
} |
9843 |
|
|
/^X\(\/\/\)[^/].*/{ |
9844 |
|
|
s//\1/ |
9845 |
|
|
q |
9846 |
|
|
} |
9847 |
|
|
/^X\(\/\/\)$/{ |
9848 |
|
|
s//\1/ |
9849 |
|
|
q |
9850 |
|
|
} |
9851 |
|
|
/^X\(\/\).*/{ |
9852 |
|
|
s//\1/ |
9853 |
|
|
q |
9854 |
|
|
} |
9855 |
|
|
s/.*/./; q'` |
9856 |
sf-exg |
1.132 |
as_dir="$ac_dir"; as_fn_mkdir_p |
9857 |
pcg |
1.11 |
ac_builddir=. |
9858 |
|
|
|
9859 |
ayin |
1.108 |
case "$ac_dir" in |
9860 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9861 |
|
|
*) |
9862 |
root |
1.166 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
9863 |
ayin |
1.108 |
# A ".." for each directory in $ac_dir_suffix. |
9864 |
root |
1.166 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
9865 |
ayin |
1.108 |
case $ac_top_builddir_sub in |
9866 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9867 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9868 |
|
|
esac ;; |
9869 |
|
|
esac |
9870 |
|
|
ac_abs_top_builddir=$ac_pwd |
9871 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
9872 |
|
|
# for backward compatibility: |
9873 |
|
|
ac_top_builddir=$ac_top_build_prefix |
9874 |
pcg |
1.11 |
|
9875 |
|
|
case $srcdir in |
9876 |
ayin |
1.108 |
.) # We are building in place. |
9877 |
pcg |
1.11 |
ac_srcdir=. |
9878 |
ayin |
1.108 |
ac_top_srcdir=$ac_top_builddir_sub |
9879 |
|
|
ac_abs_top_srcdir=$ac_pwd ;; |
9880 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name. |
9881 |
pcg |
1.11 |
ac_srcdir=$srcdir$ac_dir_suffix; |
9882 |
ayin |
1.108 |
ac_top_srcdir=$srcdir |
9883 |
|
|
ac_abs_top_srcdir=$srcdir ;; |
9884 |
|
|
*) # Relative name. |
9885 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
9886 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir |
9887 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
9888 |
pcg |
1.11 |
esac |
9889 |
ayin |
1.108 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9890 |
pcg |
1.11 |
|
9891 |
|
|
|
9892 |
ayin |
1.108 |
case $ac_mode in |
9893 |
|
|
:F) |
9894 |
|
|
# |
9895 |
|
|
# CONFIG_FILE |
9896 |
|
|
# |
9897 |
pcg |
1.1 |
|
9898 |
pcg |
1.11 |
case $INSTALL in |
9899 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
9900 |
ayin |
1.108 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9901 |
pcg |
1.1 |
esac |
9902 |
ayin |
1.108 |
_ACEOF |
9903 |
pcg |
1.1 |
|
9904 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9905 |
ayin |
1.108 |
# If the template does not know about datarootdir, expand it. |
9906 |
|
|
# FIXME: This hack should be removed a few years after 2.60. |
9907 |
|
|
ac_datarootdir_hack=; ac_datarootdir_seen= |
9908 |
sf-exg |
1.132 |
ac_sed_dataroot=' |
9909 |
|
|
/datarootdir/ { |
9910 |
ayin |
1.108 |
p |
9911 |
|
|
q |
9912 |
|
|
} |
9913 |
|
|
/@datadir@/p |
9914 |
|
|
/@docdir@/p |
9915 |
|
|
/@infodir@/p |
9916 |
|
|
/@localedir@/p |
9917 |
sf-exg |
1.132 |
/@mandir@/p' |
9918 |
|
|
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
9919 |
ayin |
1.108 |
*datarootdir*) ac_datarootdir_seen=yes;; |
9920 |
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9921 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9922 |
|
|
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9923 |
ayin |
1.108 |
_ACEOF |
9924 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9925 |
ayin |
1.108 |
ac_datarootdir_hack=' |
9926 |
|
|
s&@datadir@&$datadir&g |
9927 |
|
|
s&@docdir@&$docdir&g |
9928 |
|
|
s&@infodir@&$infodir&g |
9929 |
|
|
s&@localedir@&$localedir&g |
9930 |
|
|
s&@mandir@&$mandir&g |
9931 |
sf-exg |
1.132 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
9932 |
ayin |
1.108 |
esac |
9933 |
root |
1.105 |
_ACEOF |
9934 |
ayin |
1.108 |
|
9935 |
|
|
# Neutralize VPATH when `$srcdir' = `.'. |
9936 |
|
|
# Shell code in configure.ac might set extrasub. |
9937 |
|
|
# FIXME: do we really want to maintain this feature? |
9938 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9939 |
|
|
ac_sed_extra="$ac_vpsub |
9940 |
pcg |
1.11 |
$extrasub |
9941 |
|
|
_ACEOF |
9942 |
sf-exg |
1.132 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9943 |
pcg |
1.11 |
:t |
9944 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
9945 |
sf-exg |
1.132 |
s|@configure_input@|$ac_sed_conf_input|;t t |
9946 |
ayin |
1.108 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
9947 |
sf-exg |
1.132 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
9948 |
ayin |
1.108 |
s&@srcdir@&$ac_srcdir&;t t |
9949 |
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
9950 |
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t |
9951 |
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
9952 |
|
|
s&@builddir@&$ac_builddir&;t t |
9953 |
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t |
9954 |
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
9955 |
|
|
s&@INSTALL@&$ac_INSTALL&;t t |
9956 |
|
|
$ac_datarootdir_hack |
9957 |
sf-exg |
1.132 |
" |
9958 |
root |
1.158 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9959 |
|
|
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9960 |
ayin |
1.108 |
|
9961 |
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9962 |
root |
1.158 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9963 |
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
9964 |
|
|
"$ac_tmp/out"`; test -z "$ac_out"; } && |
9965 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9966 |
root |
1.137 |
which seems to be undefined. Please make sure it is defined" >&5 |
9967 |
root |
1.166 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9968 |
root |
1.137 |
which seems to be undefined. Please make sure it is defined" >&2;} |
9969 |
ayin |
1.106 |
|
9970 |
root |
1.158 |
rm -f "$ac_tmp/stdin" |
9971 |
pcg |
1.11 |
case $ac_file in |
9972 |
root |
1.158 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9973 |
|
|
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
9974 |
sf-exg |
1.132 |
esac \ |
9975 |
root |
1.137 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9976 |
ayin |
1.108 |
;; |
9977 |
|
|
:H) |
9978 |
|
|
# |
9979 |
|
|
# CONFIG_HEADER |
9980 |
|
|
# |
9981 |
pcg |
1.11 |
if test x"$ac_file" != x-; then |
9982 |
sf-exg |
1.132 |
{ |
9983 |
root |
1.166 |
printf "%s\n" "/* $configure_input */" >&1 \ |
9984 |
root |
1.158 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9985 |
|
|
} >"$ac_tmp/config.h" \ |
9986 |
root |
1.137 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9987 |
root |
1.158 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
9988 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9989 |
|
|
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
9990 |
pcg |
1.11 |
else |
9991 |
sf-exg |
1.132 |
rm -f "$ac_file" |
9992 |
root |
1.158 |
mv "$ac_tmp/config.h" "$ac_file" \ |
9993 |
root |
1.137 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9994 |
pcg |
1.1 |
fi |
9995 |
pcg |
1.11 |
else |
9996 |
root |
1.166 |
printf "%s\n" "/* $configure_input */" >&1 \ |
9997 |
root |
1.158 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9998 |
root |
1.137 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
9999 |
pcg |
1.1 |
fi |
10000 |
ayin |
1.108 |
;; |
10001 |
|
|
|
10002 |
|
|
|
10003 |
|
|
esac |
10004 |
|
|
|
10005 |
|
|
done # for ac_tag |
10006 |
pcg |
1.11 |
|
10007 |
pcg |
1.1 |
|
10008 |
sf-exg |
1.132 |
as_fn_exit 0 |
10009 |
pcg |
1.11 |
_ACEOF |
10010 |
|
|
ac_clean_files=$ac_clean_files_save |
10011 |
pcg |
1.1 |
|
10012 |
sf-exg |
1.132 |
test $ac_write_fail = 0 || |
10013 |
root |
1.137 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
10014 |
sf-exg |
1.132 |
|
10015 |
pcg |
1.1 |
|
10016 |
pcg |
1.11 |
# configure is writing to config.log, and then calls config.status. |
10017 |
|
|
# config.status does its own redirection, appending to config.log. |
10018 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open |
10019 |
|
|
# by configure, so config.status won't be able to write to it; its |
10020 |
|
|
# output is simply discarded. So we exec the FD to /dev/null, |
10021 |
|
|
# effectively closing config.log, so it can be properly (re)opened and |
10022 |
|
|
# appended to by config.status. When coming back to configure, we |
10023 |
|
|
# need to make the FD available again. |
10024 |
|
|
if test "$no_create" != yes; then |
10025 |
|
|
ac_cs_success=: |
10026 |
|
|
ac_config_status_args= |
10027 |
|
|
test "$silent" = yes && |
10028 |
|
|
ac_config_status_args="$ac_config_status_args --quiet" |
10029 |
|
|
exec 5>/dev/null |
10030 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
10031 |
|
|
exec 5>>config.log |
10032 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
10033 |
|
|
# would make configure fail if this is the last instruction. |
10034 |
root |
1.137 |
$ac_cs_success || as_fn_exit 1 |
10035 |
sf-exg |
1.132 |
fi |
10036 |
|
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10037 |
root |
1.166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
10038 |
|
|
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
10039 |
pcg |
1.11 |
fi |
10040 |
pcg |
1.1 |
|
10041 |
|
|
|
10042 |
|
|
echo "Configuration: |
10043 |
|
|
|
10044 |
|
|
Rxvt version: $VERSION : $DATE |
10045 |
|
|
Source code location: $srcdir |
10046 |
|
|
Install path: ${prefix}/bin |
10047 |
pcg |
1.13 |
Compiler: $CXX |
10048 |
root |
1.100 |
Compiler flags: $CXXFLAGS |
10049 |
pcg |
1.13 |
Linker: $LINKER" |
10050 |
pcg |
1.1 |
|
10051 |
|
|
if test x$term != x; then |
10052 |
pcg |
1.18 |
echo " set TERM to: $term" |
10053 |
pcg |
1.1 |
fi |
10054 |
|
|
if test x$terminfo != x; then |
10055 |
pcg |
1.18 |
echo " set TERMINFO to: $terminfo" |
10056 |
|
|
fi |
10057 |
|
|
echo " default resource name: $RESNAME" |
10058 |
|
|
echo " resource class: $RESCLASS" |
10059 |
|
|
if test x$RESFALLBACK != x; then |
10060 |
|
|
echo " resource class fallback: $RESFALLBACK" |
10061 |
pcg |
1.1 |
fi |
10062 |
pcg |
1.18 |
echo |
10063 |
root |
1.89 |
echo " embedded perl: $support_perl" |
10064 |
sf-exg |
1.135 |
echo " image library: $image_lib" |
10065 |
root |
1.89 |
echo |
10066 |
pcg |
1.1 |
if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
10067 |
|
|
echo ".----------------------------------------------------------------." |
10068 |
|
|
echo ". WARNING: --enable-xim was specified however the locale support ." |
10069 |
|
|
echo ". functions could not be found. ." |
10070 |
|
|
echo ". XIM is now being DISABLED! ." |
10071 |
|
|
echo ".----------------------------------------------------------------." |
10072 |
|
|
fi |
10073 |
pcg |
1.20 |
|
10074 |
root |
1.96 |
echo "*** Optionally check src/feature.h for further, rarely used options ***" |
10075 |
pcg |
1.20 |
echo |
10076 |
|
|
|
10077 |
root |
1.166 |
|