1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.68 for rdesktop 1.7.0.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
---|
8 | # Foundation, Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
20 | emulate sh
|
---|
21 | NULLCMD=:
|
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
23 | # is contrary to our usage. Disable this feature.
|
---|
24 | alias -g '${1+"$@"}'='"$@"'
|
---|
25 | setopt NO_GLOB_SUBST
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
44 | # but without wasting forks for bash or zsh.
|
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
47 | as_echo='print -r --'
|
---|
48 | as_echo_n='print -rn --'
|
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
50 | as_echo='printf %s\n'
|
---|
51 | as_echo_n='printf %s'
|
---|
52 | else
|
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
55 | as_echo_n='/usr/ucb/echo -n'
|
---|
56 | else
|
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
58 | as_echo_n_body='eval
|
---|
59 | arg=$1;
|
---|
60 | case $arg in #(
|
---|
61 | *"$as_nl"*)
|
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
64 | esac;
|
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
66 | '
|
---|
67 | export as_echo_n_body
|
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
69 | fi
|
---|
70 | export as_echo_body
|
---|
71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
76 | PATH_SEPARATOR=:
|
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
79 | PATH_SEPARATOR=';'
|
---|
80 | }
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | # IFS
|
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
86 | # there to prevent editors from complaining about space-tab.
|
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
88 | # splitting by setting IFS to empty value.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | as_myself=
|
---|
93 | case $0 in #((
|
---|
94 | *[\\/]* ) as_myself=$0 ;;
|
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
96 | for as_dir in $PATH
|
---|
97 | do
|
---|
98 | IFS=$as_save_IFS
|
---|
99 | test -z "$as_dir" && as_dir=.
|
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
101 | done
|
---|
102 | IFS=$as_save_IFS
|
---|
103 |
|
---|
104 | ;;
|
---|
105 | esac
|
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
107 | # in which case we are not to be found in the path.
|
---|
108 | if test "x$as_myself" = x; then
|
---|
109 | as_myself=$0
|
---|
110 | fi
|
---|
111 | if test ! -f "$as_myself"; then
|
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
115 |
|
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
119 | # trigger a bug in pdksh 5.2.14.
|
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
121 | do eval test x\${$as_var+set} = xset \
|
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
123 | done
|
---|
124 | PS1='$ '
|
---|
125 | PS2='> '
|
---|
126 | PS4='+ '
|
---|
127 |
|
---|
128 | # NLS nuisances.
|
---|
129 | LC_ALL=C
|
---|
130 | export LC_ALL
|
---|
131 | LANGUAGE=C
|
---|
132 | export LANGUAGE
|
---|
133 |
|
---|
134 | # CDPATH.
|
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
136 |
|
---|
137 | if test "x$CONFIG_SHELL" = x; then
|
---|
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
139 | emulate sh
|
---|
140 | NULLCMD=:
|
---|
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
142 | # is contrary to our usage. Disable this feature.
|
---|
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
144 | setopt NO_GLOB_SUBST
|
---|
145 | else
|
---|
146 | case \`(set -o) 2>/dev/null\` in #(
|
---|
147 | *posix*) :
|
---|
148 | set -o posix ;; #(
|
---|
149 | *) :
|
---|
150 | ;;
|
---|
151 | esac
|
---|
152 | fi
|
---|
153 | "
|
---|
154 | as_required="as_fn_return () { (exit \$1); }
|
---|
155 | as_fn_success () { as_fn_return 0; }
|
---|
156 | as_fn_failure () { as_fn_return 1; }
|
---|
157 | as_fn_ret_success () { return 0; }
|
---|
158 | as_fn_ret_failure () { return 1; }
|
---|
159 |
|
---|
160 | exitcode=0
|
---|
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
166 |
|
---|
167 | else
|
---|
168 | exitcode=1; echo positional parameters were not saved.
|
---|
169 | fi
|
---|
170 | test x\$exitcode = x0 || exit 1"
|
---|
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
175 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
176 | if (eval "$as_required") 2>/dev/null; then :
|
---|
177 | as_have_required=yes
|
---|
178 | else
|
---|
179 | as_have_required=no
|
---|
180 | fi
|
---|
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
182 |
|
---|
183 | else
|
---|
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
185 | as_found=false
|
---|
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
187 | do
|
---|
188 | IFS=$as_save_IFS
|
---|
189 | test -z "$as_dir" && as_dir=.
|
---|
190 | as_found=:
|
---|
191 | case $as_dir in #(
|
---|
192 | /*)
|
---|
193 | for as_base in sh bash ksh sh5; do
|
---|
194 | # Try only shells that exist, to save several forks.
|
---|
195 | as_shell=$as_dir/$as_base
|
---|
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
198 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
200 | break 2
|
---|
201 | fi
|
---|
202 | fi
|
---|
203 | done;;
|
---|
204 | esac
|
---|
205 | as_found=false
|
---|
206 | done
|
---|
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
209 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
210 | fi; }
|
---|
211 | IFS=$as_save_IFS
|
---|
212 |
|
---|
213 |
|
---|
214 | if test "x$CONFIG_SHELL" != x; then :
|
---|
215 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
216 | # neutralization value for shells without unset; and this also
|
---|
217 | # works around shells that cannot unset nonexistent variables.
|
---|
218 | # Preserve -v and -x to the replacement shell.
|
---|
219 | BASH_ENV=/dev/null
|
---|
220 | ENV=/dev/null
|
---|
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
222 | export CONFIG_SHELL
|
---|
223 | case $- in # ((((
|
---|
224 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
225 | *v* ) as_opts=-v ;;
|
---|
226 | *x* ) as_opts=-x ;;
|
---|
227 | * ) as_opts= ;;
|
---|
228 | esac
|
---|
229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
---|
230 | fi
|
---|
231 |
|
---|
232 | if test x$as_have_required = xno; then :
|
---|
233 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
234 | $as_echo "$0: the shells that I found on your system."
|
---|
235 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
238 | else
|
---|
239 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
240 | $0: including any error possibly output before this
|
---|
241 | $0: message. Then install a modern shell, or manually run
|
---|
242 | $0: the script under such a shell if you do have one."
|
---|
243 | fi
|
---|
244 | exit 1
|
---|
245 | fi
|
---|
246 | fi
|
---|
247 | fi
|
---|
248 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
249 | export SHELL
|
---|
250 | # Unset more variables known to interfere with behavior of common tools.
|
---|
251 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
252 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
253 |
|
---|
254 | ## --------------------- ##
|
---|
255 | ## M4sh Shell Functions. ##
|
---|
256 | ## --------------------- ##
|
---|
257 | # as_fn_unset VAR
|
---|
258 | # ---------------
|
---|
259 | # Portably unset VAR.
|
---|
260 | as_fn_unset ()
|
---|
261 | {
|
---|
262 | { eval $1=; unset $1;}
|
---|
263 | }
|
---|
264 | as_unset=as_fn_unset
|
---|
265 |
|
---|
266 | # as_fn_set_status STATUS
|
---|
267 | # -----------------------
|
---|
268 | # Set $? to STATUS, without forking.
|
---|
269 | as_fn_set_status ()
|
---|
270 | {
|
---|
271 | return $1
|
---|
272 | } # as_fn_set_status
|
---|
273 |
|
---|
274 | # as_fn_exit STATUS
|
---|
275 | # -----------------
|
---|
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
277 | as_fn_exit ()
|
---|
278 | {
|
---|
279 | set +e
|
---|
280 | as_fn_set_status $1
|
---|
281 | exit $1
|
---|
282 | } # as_fn_exit
|
---|
283 |
|
---|
284 | # as_fn_mkdir_p
|
---|
285 | # -------------
|
---|
286 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
287 | as_fn_mkdir_p ()
|
---|
288 | {
|
---|
289 |
|
---|
290 | case $as_dir in #(
|
---|
291 | -*) as_dir=./$as_dir;;
|
---|
292 | esac
|
---|
293 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
294 | as_dirs=
|
---|
295 | while :; do
|
---|
296 | case $as_dir in #(
|
---|
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
298 | *) as_qdir=$as_dir;;
|
---|
299 | esac
|
---|
300 | as_dirs="'$as_qdir' $as_dirs"
|
---|
301 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
303 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
304 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
306 | $as_echo X"$as_dir" |
|
---|
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
308 | s//\1/
|
---|
309 | q
|
---|
310 | }
|
---|
311 | /^X\(\/\/\)[^/].*/{
|
---|
312 | s//\1/
|
---|
313 | q
|
---|
314 | }
|
---|
315 | /^X\(\/\/\)$/{
|
---|
316 | s//\1/
|
---|
317 | q
|
---|
318 | }
|
---|
319 | /^X\(\/\).*/{
|
---|
320 | s//\1/
|
---|
321 | q
|
---|
322 | }
|
---|
323 | s/.*/./; q'`
|
---|
324 | test -d "$as_dir" && break
|
---|
325 | done
|
---|
326 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
328 |
|
---|
329 |
|
---|
330 | } # as_fn_mkdir_p
|
---|
331 | # as_fn_append VAR VALUE
|
---|
332 | # ----------------------
|
---|
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
334 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
335 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
336 | # implementations.
|
---|
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
338 | eval 'as_fn_append ()
|
---|
339 | {
|
---|
340 | eval $1+=\$2
|
---|
341 | }'
|
---|
342 | else
|
---|
343 | as_fn_append ()
|
---|
344 | {
|
---|
345 | eval $1=\$$1\$2
|
---|
346 | }
|
---|
347 | fi # as_fn_append
|
---|
348 |
|
---|
349 | # as_fn_arith ARG...
|
---|
350 | # ------------------
|
---|
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
353 | # must be portable across $(()) and expr.
|
---|
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
355 | eval 'as_fn_arith ()
|
---|
356 | {
|
---|
357 | as_val=$(( $* ))
|
---|
358 | }'
|
---|
359 | else
|
---|
360 | as_fn_arith ()
|
---|
361 | {
|
---|
362 | as_val=`expr "$@" || test $? -eq 1`
|
---|
363 | }
|
---|
364 | fi # as_fn_arith
|
---|
365 |
|
---|
366 |
|
---|
367 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
368 | # ----------------------------------------
|
---|
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
371 | # script with STATUS, using 1 if that was 0.
|
---|
372 | as_fn_error ()
|
---|
373 | {
|
---|
374 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
375 | if test "$4"; then
|
---|
376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
378 | fi
|
---|
379 | $as_echo "$as_me: error: $2" >&2
|
---|
380 | as_fn_exit $as_status
|
---|
381 | } # as_fn_error
|
---|
382 |
|
---|
383 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
385 | as_expr=expr
|
---|
386 | else
|
---|
387 | as_expr=false
|
---|
388 | fi
|
---|
389 |
|
---|
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
391 | as_basename=basename
|
---|
392 | else
|
---|
393 | as_basename=false
|
---|
394 | fi
|
---|
395 |
|
---|
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
397 | as_dirname=dirname
|
---|
398 | else
|
---|
399 | as_dirname=false
|
---|
400 | fi
|
---|
401 |
|
---|
402 | as_me=`$as_basename -- "$0" ||
|
---|
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
404 | X"$0" : 'X\(//\)$' \| \
|
---|
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
406 | $as_echo X/"$0" |
|
---|
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | /^X\/\(\/\/\)$/{
|
---|
412 | s//\1/
|
---|
413 | q
|
---|
414 | }
|
---|
415 | /^X\/\(\/\).*/{
|
---|
416 | s//\1/
|
---|
417 | q
|
---|
418 | }
|
---|
419 | s/.*/./; q'`
|
---|
420 |
|
---|
421 | # Avoid depending upon Character Ranges.
|
---|
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
425 | as_cr_digits='0123456789'
|
---|
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
427 |
|
---|
428 |
|
---|
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
434 | sed -n '
|
---|
435 | p
|
---|
436 | /[$]LINENO/=
|
---|
437 | ' <$as_myself |
|
---|
438 | sed '
|
---|
439 | s/[$]LINENO.*/&-/
|
---|
440 | t lineno
|
---|
441 | b
|
---|
442 | :lineno
|
---|
443 | N
|
---|
444 | :loop
|
---|
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
446 | t loop
|
---|
447 | s/-\n.*//
|
---|
448 | ' >$as_me.lineno &&
|
---|
449 | chmod +x "$as_me.lineno" ||
|
---|
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
451 |
|
---|
452 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
453 | # (the dirname of $[0] is not the place where we might find the
|
---|
454 | # original and so on. Autoconf is especially sensitive to this).
|
---|
455 | . "./$as_me.lineno"
|
---|
456 | # Exit status is that of the last command.
|
---|
457 | exit
|
---|
458 | }
|
---|
459 |
|
---|
460 | ECHO_C= ECHO_N= ECHO_T=
|
---|
461 | case `echo -n x` in #(((((
|
---|
462 | -n*)
|
---|
463 | case `echo 'xy\c'` in
|
---|
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
465 | xy) ECHO_C='\c';;
|
---|
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
467 | ECHO_T=' ';;
|
---|
468 | esac;;
|
---|
469 | *)
|
---|
470 | ECHO_N='-n';;
|
---|
471 | esac
|
---|
472 |
|
---|
473 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
474 | if test -d conf$$.dir; then
|
---|
475 | rm -f conf$$.dir/conf$$.file
|
---|
476 | else
|
---|
477 | rm -f conf$$.dir
|
---|
478 | mkdir conf$$.dir 2>/dev/null
|
---|
479 | fi
|
---|
480 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s='ln -s'
|
---|
483 | # ... but there are two gotchas:
|
---|
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
486 | # In both cases, we have to default to `cp -p'.
|
---|
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
488 | as_ln_s='cp -p'
|
---|
489 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
490 | as_ln_s=ln
|
---|
491 | else
|
---|
492 | as_ln_s='cp -p'
|
---|
493 | fi
|
---|
494 | else
|
---|
495 | as_ln_s='cp -p'
|
---|
496 | fi
|
---|
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
498 | rmdir conf$$.dir 2>/dev/null
|
---|
499 |
|
---|
500 | if mkdir -p . 2>/dev/null; then
|
---|
501 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
502 | else
|
---|
503 | test -d ./-p && rmdir ./-p
|
---|
504 | as_mkdir_p=false
|
---|
505 | fi
|
---|
506 |
|
---|
507 | if test -x / >/dev/null 2>&1; then
|
---|
508 | as_test_x='test -x'
|
---|
509 | else
|
---|
510 | if ls -dL / >/dev/null 2>&1; then
|
---|
511 | as_ls_L_option=L
|
---|
512 | else
|
---|
513 | as_ls_L_option=
|
---|
514 | fi
|
---|
515 | as_test_x='
|
---|
516 | eval sh -c '\''
|
---|
517 | if test -d "$1"; then
|
---|
518 | test -d "$1/.";
|
---|
519 | else
|
---|
520 | case $1 in #(
|
---|
521 | -*)set "./$1";;
|
---|
522 | esac;
|
---|
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
524 | ???[sx]*):;;*)false;;esac;fi
|
---|
525 | '\'' sh
|
---|
526 | '
|
---|
527 | fi
|
---|
528 | as_executable_p=$as_test_x
|
---|
529 |
|
---|
530 | # Sed expression to map a string onto a valid CPP name.
|
---|
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
532 |
|
---|
533 | # Sed expression to map a string onto a valid variable name.
|
---|
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
535 |
|
---|
536 |
|
---|
537 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
538 | exec 6>&1
|
---|
539 |
|
---|
540 | # Name of the host.
|
---|
541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
542 | # so uname gets run too.
|
---|
543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
544 |
|
---|
545 | #
|
---|
546 | # Initializations.
|
---|
547 | #
|
---|
548 | ac_default_prefix=/usr/local
|
---|
549 | ac_clean_files=
|
---|
550 | ac_config_libobj_dir=.
|
---|
551 | LIBOBJS=
|
---|
552 | cross_compiling=no
|
---|
553 | subdirs=
|
---|
554 | MFLAGS=
|
---|
555 | MAKEFLAGS=
|
---|
556 |
|
---|
557 | # Identity of this package.
|
---|
558 | PACKAGE_NAME='rdesktop'
|
---|
559 | PACKAGE_TARNAME='rdesktop'
|
---|
560 | PACKAGE_VERSION='1.7.0'
|
---|
561 | PACKAGE_STRING='rdesktop 1.7.0'
|
---|
562 | PACKAGE_BUGREPORT=''
|
---|
563 | PACKAGE_URL=''
|
---|
564 |
|
---|
565 | ac_unique_file="rdesktop.c"
|
---|
566 | # Factoring default headers for most tests.
|
---|
567 | ac_includes_default="\
|
---|
568 | #include <stdio.h>
|
---|
569 | #ifdef HAVE_SYS_TYPES_H
|
---|
570 | # include <sys/types.h>
|
---|
571 | #endif
|
---|
572 | #ifdef HAVE_SYS_STAT_H
|
---|
573 | # include <sys/stat.h>
|
---|
574 | #endif
|
---|
575 | #ifdef STDC_HEADERS
|
---|
576 | # include <stdlib.h>
|
---|
577 | # include <stddef.h>
|
---|
578 | #else
|
---|
579 | # ifdef HAVE_STDLIB_H
|
---|
580 | # include <stdlib.h>
|
---|
581 | # endif
|
---|
582 | #endif
|
---|
583 | #ifdef HAVE_STRING_H
|
---|
584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
585 | # include <memory.h>
|
---|
586 | # endif
|
---|
587 | # include <string.h>
|
---|
588 | #endif
|
---|
589 | #ifdef HAVE_STRINGS_H
|
---|
590 | # include <strings.h>
|
---|
591 | #endif
|
---|
592 | #ifdef HAVE_INTTYPES_H
|
---|
593 | # include <inttypes.h>
|
---|
594 | #endif
|
---|
595 | #ifdef HAVE_STDINT_H
|
---|
596 | # include <stdint.h>
|
---|
597 | #endif
|
---|
598 | #ifdef HAVE_UNISTD_H
|
---|
599 | # include <unistd.h>
|
---|
600 | #endif"
|
---|
601 |
|
---|
602 | ac_subst_vars='LTLIBOBJS
|
---|
603 | host_os
|
---|
604 | host_vendor
|
---|
605 | host_cpu
|
---|
606 | host
|
---|
607 | build_os
|
---|
608 | build_vendor
|
---|
609 | build_cpu
|
---|
610 | build
|
---|
611 | LIBICONV
|
---|
612 | LIBOBJS
|
---|
613 | SOUNDOBJ
|
---|
614 | RDP2VNCTARGET
|
---|
615 | VNCLINK
|
---|
616 | LDVNC
|
---|
617 | VNCINC
|
---|
618 | SCARDOBJ
|
---|
619 | ssldir
|
---|
620 | STRIP
|
---|
621 | PKG_CONFIG
|
---|
622 | X_EXTRA_LIBS
|
---|
623 | X_LIBS
|
---|
624 | X_PRE_LIBS
|
---|
625 | X_CFLAGS
|
---|
626 | XMKMF
|
---|
627 | EGREP
|
---|
628 | GREP
|
---|
629 | CPP
|
---|
630 | INSTALL_DATA
|
---|
631 | INSTALL_SCRIPT
|
---|
632 | INSTALL_PROGRAM
|
---|
633 | ac_ct_CXX
|
---|
634 | CXXFLAGS
|
---|
635 | CXX
|
---|
636 | OBJEXT
|
---|
637 | EXEEXT
|
---|
638 | ac_ct_CC
|
---|
639 | CPPFLAGS
|
---|
640 | LDFLAGS
|
---|
641 | CFLAGS
|
---|
642 | CC
|
---|
643 | target_alias
|
---|
644 | host_alias
|
---|
645 | build_alias
|
---|
646 | LIBS
|
---|
647 | ECHO_T
|
---|
648 | ECHO_N
|
---|
649 | ECHO_C
|
---|
650 | DEFS
|
---|
651 | mandir
|
---|
652 | localedir
|
---|
653 | libdir
|
---|
654 | psdir
|
---|
655 | pdfdir
|
---|
656 | dvidir
|
---|
657 | htmldir
|
---|
658 | infodir
|
---|
659 | docdir
|
---|
660 | oldincludedir
|
---|
661 | includedir
|
---|
662 | localstatedir
|
---|
663 | sharedstatedir
|
---|
664 | sysconfdir
|
---|
665 | datadir
|
---|
666 | datarootdir
|
---|
667 | libexecdir
|
---|
668 | sbindir
|
---|
669 | bindir
|
---|
670 | program_transform_name
|
---|
671 | prefix
|
---|
672 | exec_prefix
|
---|
673 | PACKAGE_URL
|
---|
674 | PACKAGE_BUGREPORT
|
---|
675 | PACKAGE_STRING
|
---|
676 | PACKAGE_VERSION
|
---|
677 | PACKAGE_TARNAME
|
---|
678 | PACKAGE_NAME
|
---|
679 | PATH_SEPARATOR
|
---|
680 | SHELL'
|
---|
681 | ac_subst_files=''
|
---|
682 | ac_user_opts='
|
---|
683 | enable_option_checking
|
---|
684 | with_x
|
---|
685 | with_openssl
|
---|
686 | enable_static_openssl
|
---|
687 | enable_smartcard
|
---|
688 | with_egd_socket
|
---|
689 | with_libvncserver_config
|
---|
690 | with_libvncserver
|
---|
691 | with_sound
|
---|
692 | enable_static_libsamplerate
|
---|
693 | with_libiconv_prefix
|
---|
694 | enable_largefile
|
---|
695 | with_ipv6
|
---|
696 | with_debug
|
---|
697 | with_debug_kbd
|
---|
698 | with_debug_rdp5
|
---|
699 | with_debug_clipboard
|
---|
700 | with_debug_sound
|
---|
701 | with_debug_channel
|
---|
702 | with_debug_seamless
|
---|
703 | with_debug_smartcard
|
---|
704 | '
|
---|
705 | ac_precious_vars='build_alias
|
---|
706 | host_alias
|
---|
707 | target_alias
|
---|
708 | CC
|
---|
709 | CFLAGS
|
---|
710 | LDFLAGS
|
---|
711 | LIBS
|
---|
712 | CPPFLAGS
|
---|
713 | CXX
|
---|
714 | CXXFLAGS
|
---|
715 | CCC
|
---|
716 | CPP
|
---|
717 | XMKMF'
|
---|
718 |
|
---|
719 |
|
---|
720 | # Initialize some variables set by options.
|
---|
721 | ac_init_help=
|
---|
722 | ac_init_version=false
|
---|
723 | ac_unrecognized_opts=
|
---|
724 | ac_unrecognized_sep=
|
---|
725 | # The variables have the same names as the options, with
|
---|
726 | # dashes changed to underlines.
|
---|
727 | cache_file=/dev/null
|
---|
728 | exec_prefix=NONE
|
---|
729 | no_create=
|
---|
730 | no_recursion=
|
---|
731 | prefix=NONE
|
---|
732 | program_prefix=NONE
|
---|
733 | program_suffix=NONE
|
---|
734 | program_transform_name=s,x,x,
|
---|
735 | silent=
|
---|
736 | site=
|
---|
737 | srcdir=
|
---|
738 | verbose=
|
---|
739 | x_includes=NONE
|
---|
740 | x_libraries=NONE
|
---|
741 |
|
---|
742 | # Installation directory options.
|
---|
743 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
744 | # and all the variables that are supposed to be based on exec_prefix
|
---|
745 | # by default will actually change.
|
---|
746 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
747 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
748 | bindir='${exec_prefix}/bin'
|
---|
749 | sbindir='${exec_prefix}/sbin'
|
---|
750 | libexecdir='${exec_prefix}/libexec'
|
---|
751 | datarootdir='${prefix}/share'
|
---|
752 | datadir='${datarootdir}'
|
---|
753 | sysconfdir='${prefix}/etc'
|
---|
754 | sharedstatedir='${prefix}/com'
|
---|
755 | localstatedir='${prefix}/var'
|
---|
756 | includedir='${prefix}/include'
|
---|
757 | oldincludedir='/usr/include'
|
---|
758 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
759 | infodir='${datarootdir}/info'
|
---|
760 | htmldir='${docdir}'
|
---|
761 | dvidir='${docdir}'
|
---|
762 | pdfdir='${docdir}'
|
---|
763 | psdir='${docdir}'
|
---|
764 | libdir='${exec_prefix}/lib'
|
---|
765 | localedir='${datarootdir}/locale'
|
---|
766 | mandir='${datarootdir}/man'
|
---|
767 |
|
---|
768 | ac_prev=
|
---|
769 | ac_dashdash=
|
---|
770 | for ac_option
|
---|
771 | do
|
---|
772 | # If the previous option needs an argument, assign it.
|
---|
773 | if test -n "$ac_prev"; then
|
---|
774 | eval $ac_prev=\$ac_option
|
---|
775 | ac_prev=
|
---|
776 | continue
|
---|
777 | fi
|
---|
778 |
|
---|
779 | case $ac_option in
|
---|
780 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
781 | *=) ac_optarg= ;;
|
---|
782 | *) ac_optarg=yes ;;
|
---|
783 | esac
|
---|
784 |
|
---|
785 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
786 |
|
---|
787 | case $ac_dashdash$ac_option in
|
---|
788 | --)
|
---|
789 | ac_dashdash=yes ;;
|
---|
790 |
|
---|
791 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
792 | ac_prev=bindir ;;
|
---|
793 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
794 | bindir=$ac_optarg ;;
|
---|
795 |
|
---|
796 | -build | --build | --buil | --bui | --bu)
|
---|
797 | ac_prev=build_alias ;;
|
---|
798 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
799 | build_alias=$ac_optarg ;;
|
---|
800 |
|
---|
801 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
802 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
803 | ac_prev=cache_file ;;
|
---|
804 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
805 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
806 | cache_file=$ac_optarg ;;
|
---|
807 |
|
---|
808 | --config-cache | -C)
|
---|
809 | cache_file=config.cache ;;
|
---|
810 |
|
---|
811 | -datadir | --datadir | --datadi | --datad)
|
---|
812 | ac_prev=datadir ;;
|
---|
813 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
814 | datadir=$ac_optarg ;;
|
---|
815 |
|
---|
816 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
817 | | --dataroo | --dataro | --datar)
|
---|
818 | ac_prev=datarootdir ;;
|
---|
819 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
820 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
821 | datarootdir=$ac_optarg ;;
|
---|
822 |
|
---|
823 | -disable-* | --disable-*)
|
---|
824 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
825 | # Reject names that are not valid shell variable names.
|
---|
826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
827 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
828 | ac_useropt_orig=$ac_useropt
|
---|
829 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
830 | case $ac_user_opts in
|
---|
831 | *"
|
---|
832 | "enable_$ac_useropt"
|
---|
833 | "*) ;;
|
---|
834 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
835 | ac_unrecognized_sep=', ';;
|
---|
836 | esac
|
---|
837 | eval enable_$ac_useropt=no ;;
|
---|
838 |
|
---|
839 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
840 | ac_prev=docdir ;;
|
---|
841 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
842 | docdir=$ac_optarg ;;
|
---|
843 |
|
---|
844 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
845 | ac_prev=dvidir ;;
|
---|
846 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
847 | dvidir=$ac_optarg ;;
|
---|
848 |
|
---|
849 | -enable-* | --enable-*)
|
---|
850 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
851 | # Reject names that are not valid shell variable names.
|
---|
852 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
853 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
854 | ac_useropt_orig=$ac_useropt
|
---|
855 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
856 | case $ac_user_opts in
|
---|
857 | *"
|
---|
858 | "enable_$ac_useropt"
|
---|
859 | "*) ;;
|
---|
860 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
861 | ac_unrecognized_sep=', ';;
|
---|
862 | esac
|
---|
863 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
864 |
|
---|
865 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
866 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
867 | | --exec | --exe | --ex)
|
---|
868 | ac_prev=exec_prefix ;;
|
---|
869 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
870 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
871 | | --exec=* | --exe=* | --ex=*)
|
---|
872 | exec_prefix=$ac_optarg ;;
|
---|
873 |
|
---|
874 | -gas | --gas | --ga | --g)
|
---|
875 | # Obsolete; use --with-gas.
|
---|
876 | with_gas=yes ;;
|
---|
877 |
|
---|
878 | -help | --help | --hel | --he | -h)
|
---|
879 | ac_init_help=long ;;
|
---|
880 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
881 | ac_init_help=recursive ;;
|
---|
882 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
883 | ac_init_help=short ;;
|
---|
884 |
|
---|
885 | -host | --host | --hos | --ho)
|
---|
886 | ac_prev=host_alias ;;
|
---|
887 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
888 | host_alias=$ac_optarg ;;
|
---|
889 |
|
---|
890 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
891 | ac_prev=htmldir ;;
|
---|
892 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
893 | | --ht=*)
|
---|
894 | htmldir=$ac_optarg ;;
|
---|
895 |
|
---|
896 | -includedir | --includedir | --includedi | --included | --include \
|
---|
897 | | --includ | --inclu | --incl | --inc)
|
---|
898 | ac_prev=includedir ;;
|
---|
899 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
900 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
901 | includedir=$ac_optarg ;;
|
---|
902 |
|
---|
903 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
904 | ac_prev=infodir ;;
|
---|
905 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
906 | infodir=$ac_optarg ;;
|
---|
907 |
|
---|
908 | -libdir | --libdir | --libdi | --libd)
|
---|
909 | ac_prev=libdir ;;
|
---|
910 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
911 | libdir=$ac_optarg ;;
|
---|
912 |
|
---|
913 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
914 | | --libexe | --libex | --libe)
|
---|
915 | ac_prev=libexecdir ;;
|
---|
916 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
917 | | --libexe=* | --libex=* | --libe=*)
|
---|
918 | libexecdir=$ac_optarg ;;
|
---|
919 |
|
---|
920 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
921 | ac_prev=localedir ;;
|
---|
922 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
923 | localedir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
926 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
927 | ac_prev=localstatedir ;;
|
---|
928 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
929 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
930 | localstatedir=$ac_optarg ;;
|
---|
931 |
|
---|
932 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
933 | ac_prev=mandir ;;
|
---|
934 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
935 | mandir=$ac_optarg ;;
|
---|
936 |
|
---|
937 | -nfp | --nfp | --nf)
|
---|
938 | # Obsolete; use --without-fp.
|
---|
939 | with_fp=no ;;
|
---|
940 |
|
---|
941 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
942 | | --no-cr | --no-c | -n)
|
---|
943 | no_create=yes ;;
|
---|
944 |
|
---|
945 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
946 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
947 | no_recursion=yes ;;
|
---|
948 |
|
---|
949 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
950 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
951 | | --oldin | --oldi | --old | --ol | --o)
|
---|
952 | ac_prev=oldincludedir ;;
|
---|
953 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
954 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
955 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
956 | oldincludedir=$ac_optarg ;;
|
---|
957 |
|
---|
958 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
959 | ac_prev=prefix ;;
|
---|
960 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
961 | prefix=$ac_optarg ;;
|
---|
962 |
|
---|
963 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
964 | | --program-pre | --program-pr | --program-p)
|
---|
965 | ac_prev=program_prefix ;;
|
---|
966 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
967 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
968 | program_prefix=$ac_optarg ;;
|
---|
969 |
|
---|
970 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
971 | | --program-suf | --program-su | --program-s)
|
---|
972 | ac_prev=program_suffix ;;
|
---|
973 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
974 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
975 | program_suffix=$ac_optarg ;;
|
---|
976 |
|
---|
977 | -program-transform-name | --program-transform-name \
|
---|
978 | | --program-transform-nam | --program-transform-na \
|
---|
979 | | --program-transform-n | --program-transform- \
|
---|
980 | | --program-transform | --program-transfor \
|
---|
981 | | --program-transfo | --program-transf \
|
---|
982 | | --program-trans | --program-tran \
|
---|
983 | | --progr-tra | --program-tr | --program-t)
|
---|
984 | ac_prev=program_transform_name ;;
|
---|
985 | -program-transform-name=* | --program-transform-name=* \
|
---|
986 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
987 | | --program-transform-n=* | --program-transform-=* \
|
---|
988 | | --program-transform=* | --program-transfor=* \
|
---|
989 | | --program-transfo=* | --program-transf=* \
|
---|
990 | | --program-trans=* | --program-tran=* \
|
---|
991 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
992 | program_transform_name=$ac_optarg ;;
|
---|
993 |
|
---|
994 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
995 | ac_prev=pdfdir ;;
|
---|
996 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
997 | pdfdir=$ac_optarg ;;
|
---|
998 |
|
---|
999 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1000 | ac_prev=psdir ;;
|
---|
1001 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1002 | psdir=$ac_optarg ;;
|
---|
1003 |
|
---|
1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1005 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1006 | silent=yes ;;
|
---|
1007 |
|
---|
1008 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1009 | ac_prev=sbindir ;;
|
---|
1010 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1011 | | --sbi=* | --sb=*)
|
---|
1012 | sbindir=$ac_optarg ;;
|
---|
1013 |
|
---|
1014 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1015 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1016 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1017 | | --sha | --sh)
|
---|
1018 | ac_prev=sharedstatedir ;;
|
---|
1019 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1020 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1021 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1022 | | --sha=* | --sh=*)
|
---|
1023 | sharedstatedir=$ac_optarg ;;
|
---|
1024 |
|
---|
1025 | -site | --site | --sit)
|
---|
1026 | ac_prev=site ;;
|
---|
1027 | -site=* | --site=* | --sit=*)
|
---|
1028 | site=$ac_optarg ;;
|
---|
1029 |
|
---|
1030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1031 | ac_prev=srcdir ;;
|
---|
1032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1033 | srcdir=$ac_optarg ;;
|
---|
1034 |
|
---|
1035 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1036 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1037 | ac_prev=sysconfdir ;;
|
---|
1038 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1039 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1040 | sysconfdir=$ac_optarg ;;
|
---|
1041 |
|
---|
1042 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1043 | ac_prev=target_alias ;;
|
---|
1044 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1045 | target_alias=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1048 | verbose=yes ;;
|
---|
1049 |
|
---|
1050 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1051 | ac_init_version=: ;;
|
---|
1052 |
|
---|
1053 | -with-* | --with-*)
|
---|
1054 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1055 | # Reject names that are not valid shell variable names.
|
---|
1056 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1057 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1058 | ac_useropt_orig=$ac_useropt
|
---|
1059 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1060 | case $ac_user_opts in
|
---|
1061 | *"
|
---|
1062 | "with_$ac_useropt"
|
---|
1063 | "*) ;;
|
---|
1064 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1065 | ac_unrecognized_sep=', ';;
|
---|
1066 | esac
|
---|
1067 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1068 |
|
---|
1069 | -without-* | --without-*)
|
---|
1070 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1071 | # Reject names that are not valid shell variable names.
|
---|
1072 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1073 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1074 | ac_useropt_orig=$ac_useropt
|
---|
1075 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1076 | case $ac_user_opts in
|
---|
1077 | *"
|
---|
1078 | "with_$ac_useropt"
|
---|
1079 | "*) ;;
|
---|
1080 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1081 | ac_unrecognized_sep=', ';;
|
---|
1082 | esac
|
---|
1083 | eval with_$ac_useropt=no ;;
|
---|
1084 |
|
---|
1085 | --x)
|
---|
1086 | # Obsolete; use --with-x.
|
---|
1087 | with_x=yes ;;
|
---|
1088 |
|
---|
1089 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1090 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1091 | ac_prev=x_includes ;;
|
---|
1092 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1093 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1094 | x_includes=$ac_optarg ;;
|
---|
1095 |
|
---|
1096 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1097 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1098 | ac_prev=x_libraries ;;
|
---|
1099 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1100 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1101 | x_libraries=$ac_optarg ;;
|
---|
1102 |
|
---|
1103 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1104 | Try \`$0 --help' for more information"
|
---|
1105 | ;;
|
---|
1106 |
|
---|
1107 | *=*)
|
---|
1108 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1109 | # Reject names that are not valid shell variable names.
|
---|
1110 | case $ac_envvar in #(
|
---|
1111 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1112 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1113 | esac
|
---|
1114 | eval $ac_envvar=\$ac_optarg
|
---|
1115 | export $ac_envvar ;;
|
---|
1116 |
|
---|
1117 | *)
|
---|
1118 | # FIXME: should be removed in autoconf 3.0.
|
---|
1119 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1120 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1121 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1122 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1123 | ;;
|
---|
1124 |
|
---|
1125 | esac
|
---|
1126 | done
|
---|
1127 |
|
---|
1128 | if test -n "$ac_prev"; then
|
---|
1129 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1130 | as_fn_error $? "missing argument to $ac_option"
|
---|
1131 | fi
|
---|
1132 |
|
---|
1133 | if test -n "$ac_unrecognized_opts"; then
|
---|
1134 | case $enable_option_checking in
|
---|
1135 | no) ;;
|
---|
1136 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1137 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1138 | esac
|
---|
1139 | fi
|
---|
1140 |
|
---|
1141 | # Check all directory arguments for consistency.
|
---|
1142 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1143 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1144 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1145 | libdir localedir mandir
|
---|
1146 | do
|
---|
1147 | eval ac_val=\$$ac_var
|
---|
1148 | # Remove trailing slashes.
|
---|
1149 | case $ac_val in
|
---|
1150 | */ )
|
---|
1151 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1152 | eval $ac_var=\$ac_val;;
|
---|
1153 | esac
|
---|
1154 | # Be sure to have absolute directory names.
|
---|
1155 | case $ac_val in
|
---|
1156 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1157 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1158 | esac
|
---|
1159 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1160 | done
|
---|
1161 |
|
---|
1162 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1163 | # used to hold the argument of --host etc.
|
---|
1164 | # FIXME: To remove some day.
|
---|
1165 | build=$build_alias
|
---|
1166 | host=$host_alias
|
---|
1167 | target=$target_alias
|
---|
1168 |
|
---|
1169 | # FIXME: To remove some day.
|
---|
1170 | if test "x$host_alias" != x; then
|
---|
1171 | if test "x$build_alias" = x; then
|
---|
1172 | cross_compiling=maybe
|
---|
1173 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
1174 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
1175 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1176 | cross_compiling=yes
|
---|
1177 | fi
|
---|
1178 | fi
|
---|
1179 |
|
---|
1180 | ac_tool_prefix=
|
---|
1181 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1182 |
|
---|
1183 | test "$silent" = yes && exec 6>/dev/null
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1187 | ac_ls_di=`ls -di .` &&
|
---|
1188 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1189 | as_fn_error $? "working directory cannot be determined"
|
---|
1190 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1191 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1192 |
|
---|
1193 |
|
---|
1194 | # Find the source files, if location was not specified.
|
---|
1195 | if test -z "$srcdir"; then
|
---|
1196 | ac_srcdir_defaulted=yes
|
---|
1197 | # Try the directory containing this script, then the parent directory.
|
---|
1198 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1199 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1200 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1201 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1202 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1203 | $as_echo X"$as_myself" |
|
---|
1204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1205 | s//\1/
|
---|
1206 | q
|
---|
1207 | }
|
---|
1208 | /^X\(\/\/\)[^/].*/{
|
---|
1209 | s//\1/
|
---|
1210 | q
|
---|
1211 | }
|
---|
1212 | /^X\(\/\/\)$/{
|
---|
1213 | s//\1/
|
---|
1214 | q
|
---|
1215 | }
|
---|
1216 | /^X\(\/\).*/{
|
---|
1217 | s//\1/
|
---|
1218 | q
|
---|
1219 | }
|
---|
1220 | s/.*/./; q'`
|
---|
1221 | srcdir=$ac_confdir
|
---|
1222 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1223 | srcdir=..
|
---|
1224 | fi
|
---|
1225 | else
|
---|
1226 | ac_srcdir_defaulted=no
|
---|
1227 | fi
|
---|
1228 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1229 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1230 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1231 | fi
|
---|
1232 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1233 | ac_abs_confdir=`(
|
---|
1234 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1235 | pwd)`
|
---|
1236 | # When building in place, set srcdir=.
|
---|
1237 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1238 | srcdir=.
|
---|
1239 | fi
|
---|
1240 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1241 | # Double slashes in file names in object file debugging info
|
---|
1242 | # mess up M-x gdb in Emacs.
|
---|
1243 | case $srcdir in
|
---|
1244 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1245 | esac
|
---|
1246 | for ac_var in $ac_precious_vars; do
|
---|
1247 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1248 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1249 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1250 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1251 | done
|
---|
1252 |
|
---|
1253 | #
|
---|
1254 | # Report the --help message.
|
---|
1255 | #
|
---|
1256 | if test "$ac_init_help" = "long"; then
|
---|
1257 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1258 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1259 | cat <<_ACEOF
|
---|
1260 | \`configure' configures rdesktop 1.7.0 to adapt to many kinds of systems.
|
---|
1261 |
|
---|
1262 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1263 |
|
---|
1264 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1265 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1266 |
|
---|
1267 | Defaults for the options are specified in brackets.
|
---|
1268 |
|
---|
1269 | Configuration:
|
---|
1270 | -h, --help display this help and exit
|
---|
1271 | --help=short display options specific to this package
|
---|
1272 | --help=recursive display the short help of all the included packages
|
---|
1273 | -V, --version display version information and exit
|
---|
1274 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1275 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1276 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1277 | -n, --no-create do not create output files
|
---|
1278 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1279 |
|
---|
1280 | Installation directories:
|
---|
1281 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1282 | [$ac_default_prefix]
|
---|
1283 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1284 | [PREFIX]
|
---|
1285 |
|
---|
1286 | By default, \`make install' will install all the files in
|
---|
1287 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1288 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1289 | for instance \`--prefix=\$HOME'.
|
---|
1290 |
|
---|
1291 | For better control, use the options below.
|
---|
1292 |
|
---|
1293 | Fine tuning of the installation directories:
|
---|
1294 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1295 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1296 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1297 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1298 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1299 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1300 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1301 | --includedir=DIR C header files [PREFIX/include]
|
---|
1302 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1303 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1304 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1305 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1306 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1307 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1308 | --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
|
---|
1309 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1310 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1311 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1312 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1313 | _ACEOF
|
---|
1314 |
|
---|
1315 | cat <<\_ACEOF
|
---|
1316 |
|
---|
1317 | X features:
|
---|
1318 | --x-includes=DIR X include files are in DIR
|
---|
1319 | --x-libraries=DIR X library files are in DIR
|
---|
1320 |
|
---|
1321 | System types:
|
---|
1322 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1323 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1324 | _ACEOF
|
---|
1325 | fi
|
---|
1326 |
|
---|
1327 | if test -n "$ac_init_help"; then
|
---|
1328 | case $ac_init_help in
|
---|
1329 | short | recursive ) echo "Configuration of rdesktop 1.7.0:";;
|
---|
1330 | esac
|
---|
1331 | cat <<\_ACEOF
|
---|
1332 |
|
---|
1333 | Optional Features:
|
---|
1334 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1335 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1336 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1337 | --enable-static-openssl link OpenSSL statically
|
---|
1338 | --enable-smartcard Enables smart-card support.
|
---|
1339 |
|
---|
1340 | --enable-static-libsamplerate link libsamplerate statically
|
---|
1341 | --disable-largefile omit support for large files
|
---|
1342 |
|
---|
1343 | Optional Packages:
|
---|
1344 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1345 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1346 | --with-x use the X Window System
|
---|
1347 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
1348 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
1349 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
1350 | --with-libvncserver make rdp2vnc
|
---|
1351 | --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
|
---|
1352 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
1353 | --with-ipv6 enable IPv6-support
|
---|
1354 | --with-debug enable protocol debugging output
|
---|
1355 | --with-debug-kbd enable debugging of keyboard handling
|
---|
1356 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
1357 | --with-debug-clipboard enable debugging of clipboard code
|
---|
1358 | --with-debug-sound enable debugging of sound code
|
---|
1359 | --with-debug-channel enable debugging of virtual channel code
|
---|
1360 | --with-debug-seamless enable debugging of SeamlessRDP code
|
---|
1361 | --with-debug-smartcard enable debugging of smart-card code
|
---|
1362 |
|
---|
1363 | Some influential environment variables:
|
---|
1364 | CC C compiler command
|
---|
1365 | CFLAGS C compiler flags
|
---|
1366 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1367 | nonstandard directory <lib dir>
|
---|
1368 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1369 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1370 | you have headers in a nonstandard directory <include dir>
|
---|
1371 | CXX C++ compiler command
|
---|
1372 | CXXFLAGS C++ compiler flags
|
---|
1373 | CPP C preprocessor
|
---|
1374 | XMKMF Path to xmkmf, Makefile generator for X Window System
|
---|
1375 |
|
---|
1376 | Use these variables to override the choices made by `configure' or to help
|
---|
1377 | it to find libraries and programs with nonstandard names/locations.
|
---|
1378 |
|
---|
1379 | Report bugs to the package provider.
|
---|
1380 | _ACEOF
|
---|
1381 | ac_status=$?
|
---|
1382 | fi
|
---|
1383 |
|
---|
1384 | if test "$ac_init_help" = "recursive"; then
|
---|
1385 | # If there are subdirs, report their specific --help.
|
---|
1386 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1387 | test -d "$ac_dir" ||
|
---|
1388 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1389 | continue
|
---|
1390 | ac_builddir=.
|
---|
1391 |
|
---|
1392 | case "$ac_dir" in
|
---|
1393 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1394 | *)
|
---|
1395 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1396 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1397 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1398 | case $ac_top_builddir_sub in
|
---|
1399 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1400 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1401 | esac ;;
|
---|
1402 | esac
|
---|
1403 | ac_abs_top_builddir=$ac_pwd
|
---|
1404 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1405 | # for backward compatibility:
|
---|
1406 | ac_top_builddir=$ac_top_build_prefix
|
---|
1407 |
|
---|
1408 | case $srcdir in
|
---|
1409 | .) # We are building in place.
|
---|
1410 | ac_srcdir=.
|
---|
1411 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1412 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1413 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1414 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1415 | ac_top_srcdir=$srcdir
|
---|
1416 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1417 | *) # Relative name.
|
---|
1418 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1419 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1420 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1421 | esac
|
---|
1422 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1423 |
|
---|
1424 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1425 | # Check for guested configure.
|
---|
1426 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1427 | echo &&
|
---|
1428 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1429 | elif test -f "$ac_srcdir/configure"; then
|
---|
1430 | echo &&
|
---|
1431 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1432 | else
|
---|
1433 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1434 | fi || ac_status=$?
|
---|
1435 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1436 | done
|
---|
1437 | fi
|
---|
1438 |
|
---|
1439 | test -n "$ac_init_help" && exit $ac_status
|
---|
1440 | if $ac_init_version; then
|
---|
1441 | cat <<\_ACEOF
|
---|
1442 | rdesktop configure 1.7.0
|
---|
1443 | generated by GNU Autoconf 2.68
|
---|
1444 |
|
---|
1445 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
1446 | This configure script is free software; the Free Software Foundation
|
---|
1447 | gives unlimited permission to copy, distribute and modify it.
|
---|
1448 | _ACEOF
|
---|
1449 | exit
|
---|
1450 | fi
|
---|
1451 |
|
---|
1452 | ## ------------------------ ##
|
---|
1453 | ## Autoconf initialization. ##
|
---|
1454 | ## ------------------------ ##
|
---|
1455 |
|
---|
1456 | # ac_fn_c_try_compile LINENO
|
---|
1457 | # --------------------------
|
---|
1458 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1459 | ac_fn_c_try_compile ()
|
---|
1460 | {
|
---|
1461 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1462 | rm -f conftest.$ac_objext
|
---|
1463 | if { { ac_try="$ac_compile"
|
---|
1464 | case "(($ac_try" in
|
---|
1465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1466 | *) ac_try_echo=$ac_try;;
|
---|
1467 | esac
|
---|
1468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1469 | $as_echo "$ac_try_echo"; } >&5
|
---|
1470 | (eval "$ac_compile") 2>conftest.err
|
---|
1471 | ac_status=$?
|
---|
1472 | if test -s conftest.err; then
|
---|
1473 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1474 | cat conftest.er1 >&5
|
---|
1475 | mv -f conftest.er1 conftest.err
|
---|
1476 | fi
|
---|
1477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1478 | test $ac_status = 0; } && {
|
---|
1479 | test -z "$ac_c_werror_flag" ||
|
---|
1480 | test ! -s conftest.err
|
---|
1481 | } && test -s conftest.$ac_objext; then :
|
---|
1482 | ac_retval=0
|
---|
1483 | else
|
---|
1484 | $as_echo "$as_me: failed program was:" >&5
|
---|
1485 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1486 |
|
---|
1487 | ac_retval=1
|
---|
1488 | fi
|
---|
1489 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1490 | as_fn_set_status $ac_retval
|
---|
1491 |
|
---|
1492 | } # ac_fn_c_try_compile
|
---|
1493 |
|
---|
1494 | # ac_fn_cxx_try_compile LINENO
|
---|
1495 | # ----------------------------
|
---|
1496 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1497 | ac_fn_cxx_try_compile ()
|
---|
1498 | {
|
---|
1499 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1500 | rm -f conftest.$ac_objext
|
---|
1501 | if { { ac_try="$ac_compile"
|
---|
1502 | case "(($ac_try" in
|
---|
1503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1504 | *) ac_try_echo=$ac_try;;
|
---|
1505 | esac
|
---|
1506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1507 | $as_echo "$ac_try_echo"; } >&5
|
---|
1508 | (eval "$ac_compile") 2>conftest.err
|
---|
1509 | ac_status=$?
|
---|
1510 | if test -s conftest.err; then
|
---|
1511 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1512 | cat conftest.er1 >&5
|
---|
1513 | mv -f conftest.er1 conftest.err
|
---|
1514 | fi
|
---|
1515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1516 | test $ac_status = 0; } && {
|
---|
1517 | test -z "$ac_cxx_werror_flag" ||
|
---|
1518 | test ! -s conftest.err
|
---|
1519 | } && test -s conftest.$ac_objext; then :
|
---|
1520 | ac_retval=0
|
---|
1521 | else
|
---|
1522 | $as_echo "$as_me: failed program was:" >&5
|
---|
1523 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1524 |
|
---|
1525 | ac_retval=1
|
---|
1526 | fi
|
---|
1527 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1528 | as_fn_set_status $ac_retval
|
---|
1529 |
|
---|
1530 | } # ac_fn_cxx_try_compile
|
---|
1531 |
|
---|
1532 | # ac_fn_c_try_cpp LINENO
|
---|
1533 | # ----------------------
|
---|
1534 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1535 | ac_fn_c_try_cpp ()
|
---|
1536 | {
|
---|
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1538 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1539 | case "(($ac_try" in
|
---|
1540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1541 | *) ac_try_echo=$ac_try;;
|
---|
1542 | esac
|
---|
1543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1544 | $as_echo "$ac_try_echo"; } >&5
|
---|
1545 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1546 | ac_status=$?
|
---|
1547 | if test -s conftest.err; then
|
---|
1548 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1549 | cat conftest.er1 >&5
|
---|
1550 | mv -f conftest.er1 conftest.err
|
---|
1551 | fi
|
---|
1552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1553 | test $ac_status = 0; } > conftest.i && {
|
---|
1554 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1555 | test ! -s conftest.err
|
---|
1556 | }; then :
|
---|
1557 | ac_retval=0
|
---|
1558 | else
|
---|
1559 | $as_echo "$as_me: failed program was:" >&5
|
---|
1560 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1561 |
|
---|
1562 | ac_retval=1
|
---|
1563 | fi
|
---|
1564 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1565 | as_fn_set_status $ac_retval
|
---|
1566 |
|
---|
1567 | } # ac_fn_c_try_cpp
|
---|
1568 |
|
---|
1569 | # ac_fn_c_try_run LINENO
|
---|
1570 | # ----------------------
|
---|
1571 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1572 | # that executables *can* be run.
|
---|
1573 | ac_fn_c_try_run ()
|
---|
1574 | {
|
---|
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1576 | if { { ac_try="$ac_link"
|
---|
1577 | case "(($ac_try" in
|
---|
1578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1579 | *) ac_try_echo=$ac_try;;
|
---|
1580 | esac
|
---|
1581 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1582 | $as_echo "$ac_try_echo"; } >&5
|
---|
1583 | (eval "$ac_link") 2>&5
|
---|
1584 | ac_status=$?
|
---|
1585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1586 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1587 | { { case "(($ac_try" in
|
---|
1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1589 | *) ac_try_echo=$ac_try;;
|
---|
1590 | esac
|
---|
1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1592 | $as_echo "$ac_try_echo"; } >&5
|
---|
1593 | (eval "$ac_try") 2>&5
|
---|
1594 | ac_status=$?
|
---|
1595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1596 | test $ac_status = 0; }; }; then :
|
---|
1597 | ac_retval=0
|
---|
1598 | else
|
---|
1599 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1600 | $as_echo "$as_me: failed program was:" >&5
|
---|
1601 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1602 |
|
---|
1603 | ac_retval=$ac_status
|
---|
1604 | fi
|
---|
1605 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1606 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1607 | as_fn_set_status $ac_retval
|
---|
1608 |
|
---|
1609 | } # ac_fn_c_try_run
|
---|
1610 |
|
---|
1611 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1612 | # -------------------------------------------------------
|
---|
1613 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1614 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1615 | ac_fn_c_check_header_compile ()
|
---|
1616 | {
|
---|
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1619 | $as_echo_n "checking for $2... " >&6; }
|
---|
1620 | if eval \${$3+:} false; then :
|
---|
1621 | $as_echo_n "(cached) " >&6
|
---|
1622 | else
|
---|
1623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1624 | /* end confdefs.h. */
|
---|
1625 | $4
|
---|
1626 | #include <$2>
|
---|
1627 | _ACEOF
|
---|
1628 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1629 | eval "$3=yes"
|
---|
1630 | else
|
---|
1631 | eval "$3=no"
|
---|
1632 | fi
|
---|
1633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1634 | fi
|
---|
1635 | eval ac_res=\$$3
|
---|
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1637 | $as_echo "$ac_res" >&6; }
|
---|
1638 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1639 |
|
---|
1640 | } # ac_fn_c_check_header_compile
|
---|
1641 |
|
---|
1642 | # ac_fn_c_try_link LINENO
|
---|
1643 | # -----------------------
|
---|
1644 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1645 | ac_fn_c_try_link ()
|
---|
1646 | {
|
---|
1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1648 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1649 | if { { ac_try="$ac_link"
|
---|
1650 | case "(($ac_try" in
|
---|
1651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1652 | *) ac_try_echo=$ac_try;;
|
---|
1653 | esac
|
---|
1654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1655 | $as_echo "$ac_try_echo"; } >&5
|
---|
1656 | (eval "$ac_link") 2>conftest.err
|
---|
1657 | ac_status=$?
|
---|
1658 | if test -s conftest.err; then
|
---|
1659 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1660 | cat conftest.er1 >&5
|
---|
1661 | mv -f conftest.er1 conftest.err
|
---|
1662 | fi
|
---|
1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1664 | test $ac_status = 0; } && {
|
---|
1665 | test -z "$ac_c_werror_flag" ||
|
---|
1666 | test ! -s conftest.err
|
---|
1667 | } && test -s conftest$ac_exeext && {
|
---|
1668 | test "$cross_compiling" = yes ||
|
---|
1669 | $as_test_x conftest$ac_exeext
|
---|
1670 | }; then :
|
---|
1671 | ac_retval=0
|
---|
1672 | else
|
---|
1673 | $as_echo "$as_me: failed program was:" >&5
|
---|
1674 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1675 |
|
---|
1676 | ac_retval=1
|
---|
1677 | fi
|
---|
1678 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1679 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1680 | # interfere with the next link command; also delete a directory that is
|
---|
1681 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1682 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1683 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1684 | as_fn_set_status $ac_retval
|
---|
1685 |
|
---|
1686 | } # ac_fn_c_try_link
|
---|
1687 |
|
---|
1688 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1689 | # ----------------------------------
|
---|
1690 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1691 | ac_fn_c_check_func ()
|
---|
1692 | {
|
---|
1693 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1695 | $as_echo_n "checking for $2... " >&6; }
|
---|
1696 | if eval \${$3+:} false; then :
|
---|
1697 | $as_echo_n "(cached) " >&6
|
---|
1698 | else
|
---|
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1700 | /* end confdefs.h. */
|
---|
1701 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1703 | #define $2 innocuous_$2
|
---|
1704 |
|
---|
1705 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1706 | which can conflict with char $2 (); below.
|
---|
1707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1708 | <limits.h> exists even on freestanding compilers. */
|
---|
1709 |
|
---|
1710 | #ifdef __STDC__
|
---|
1711 | # include <limits.h>
|
---|
1712 | #else
|
---|
1713 | # include <assert.h>
|
---|
1714 | #endif
|
---|
1715 |
|
---|
1716 | #undef $2
|
---|
1717 |
|
---|
1718 | /* Override any GCC internal prototype to avoid an error.
|
---|
1719 | Use char because int might match the return type of a GCC
|
---|
1720 | builtin and then its argument prototype would still apply. */
|
---|
1721 | #ifdef __cplusplus
|
---|
1722 | extern "C"
|
---|
1723 | #endif
|
---|
1724 | char $2 ();
|
---|
1725 | /* The GNU C library defines this for functions which it implements
|
---|
1726 | to always fail with ENOSYS. Some functions are actually named
|
---|
1727 | something starting with __ and the normal name is an alias. */
|
---|
1728 | #if defined __stub_$2 || defined __stub___$2
|
---|
1729 | choke me
|
---|
1730 | #endif
|
---|
1731 |
|
---|
1732 | int
|
---|
1733 | main ()
|
---|
1734 | {
|
---|
1735 | return $2 ();
|
---|
1736 | ;
|
---|
1737 | return 0;
|
---|
1738 | }
|
---|
1739 | _ACEOF
|
---|
1740 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1741 | eval "$3=yes"
|
---|
1742 | else
|
---|
1743 | eval "$3=no"
|
---|
1744 | fi
|
---|
1745 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1746 | conftest$ac_exeext conftest.$ac_ext
|
---|
1747 | fi
|
---|
1748 | eval ac_res=\$$3
|
---|
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1750 | $as_echo "$ac_res" >&6; }
|
---|
1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1752 |
|
---|
1753 | } # ac_fn_c_check_func
|
---|
1754 |
|
---|
1755 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1756 | # -------------------------------------------------------
|
---|
1757 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1758 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1759 | # accordingly.
|
---|
1760 | ac_fn_c_check_header_mongrel ()
|
---|
1761 | {
|
---|
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1763 | if eval \${$3+:} false; then :
|
---|
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1765 | $as_echo_n "checking for $2... " >&6; }
|
---|
1766 | if eval \${$3+:} false; then :
|
---|
1767 | $as_echo_n "(cached) " >&6
|
---|
1768 | fi
|
---|
1769 | eval ac_res=\$$3
|
---|
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1771 | $as_echo "$ac_res" >&6; }
|
---|
1772 | else
|
---|
1773 | # Is the header compilable?
|
---|
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1775 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1777 | /* end confdefs.h. */
|
---|
1778 | $4
|
---|
1779 | #include <$2>
|
---|
1780 | _ACEOF
|
---|
1781 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1782 | ac_header_compiler=yes
|
---|
1783 | else
|
---|
1784 | ac_header_compiler=no
|
---|
1785 | fi
|
---|
1786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1788 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1789 |
|
---|
1790 | # Is the header present?
|
---|
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1792 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1794 | /* end confdefs.h. */
|
---|
1795 | #include <$2>
|
---|
1796 | _ACEOF
|
---|
1797 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1798 | ac_header_preproc=yes
|
---|
1799 | else
|
---|
1800 | ac_header_preproc=no
|
---|
1801 | fi
|
---|
1802 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1804 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1805 |
|
---|
1806 | # So? What about this header?
|
---|
1807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1808 | yes:no: )
|
---|
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1810 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1812 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1813 | ;;
|
---|
1814 | no:yes:* )
|
---|
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1816 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1818 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1820 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1822 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1824 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1825 | ;;
|
---|
1826 | esac
|
---|
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1828 | $as_echo_n "checking for $2... " >&6; }
|
---|
1829 | if eval \${$3+:} false; then :
|
---|
1830 | $as_echo_n "(cached) " >&6
|
---|
1831 | else
|
---|
1832 | eval "$3=\$ac_header_compiler"
|
---|
1833 | fi
|
---|
1834 | eval ac_res=\$$3
|
---|
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1836 | $as_echo "$ac_res" >&6; }
|
---|
1837 | fi
|
---|
1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1839 |
|
---|
1840 | } # ac_fn_c_check_header_mongrel
|
---|
1841 |
|
---|
1842 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
---|
1843 | # ---------------------------------------------
|
---|
1844 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
---|
1845 | # accordingly.
|
---|
1846 | ac_fn_c_check_decl ()
|
---|
1847 | {
|
---|
1848 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1849 | as_decl_name=`echo $2|sed 's/ *(.*//'`
|
---|
1850 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
---|
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
---|
1852 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
---|
1853 | if eval \${$3+:} false; then :
|
---|
1854 | $as_echo_n "(cached) " >&6
|
---|
1855 | else
|
---|
1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1857 | /* end confdefs.h. */
|
---|
1858 | $4
|
---|
1859 | int
|
---|
1860 | main ()
|
---|
1861 | {
|
---|
1862 | #ifndef $as_decl_name
|
---|
1863 | #ifdef __cplusplus
|
---|
1864 | (void) $as_decl_use;
|
---|
1865 | #else
|
---|
1866 | (void) $as_decl_name;
|
---|
1867 | #endif
|
---|
1868 | #endif
|
---|
1869 |
|
---|
1870 | ;
|
---|
1871 | return 0;
|
---|
1872 | }
|
---|
1873 | _ACEOF
|
---|
1874 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1875 | eval "$3=yes"
|
---|
1876 | else
|
---|
1877 | eval "$3=no"
|
---|
1878 | fi
|
---|
1879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1880 | fi
|
---|
1881 | eval ac_res=\$$3
|
---|
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1883 | $as_echo "$ac_res" >&6; }
|
---|
1884 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1885 |
|
---|
1886 | } # ac_fn_c_check_decl
|
---|
1887 |
|
---|
1888 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1889 | # -------------------------------------------
|
---|
1890 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1891 | # variable VAR accordingly.
|
---|
1892 | ac_fn_c_check_type ()
|
---|
1893 | {
|
---|
1894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1896 | $as_echo_n "checking for $2... " >&6; }
|
---|
1897 | if eval \${$3+:} false; then :
|
---|
1898 | $as_echo_n "(cached) " >&6
|
---|
1899 | else
|
---|
1900 | eval "$3=no"
|
---|
1901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1902 | /* end confdefs.h. */
|
---|
1903 | $4
|
---|
1904 | int
|
---|
1905 | main ()
|
---|
1906 | {
|
---|
1907 | if (sizeof ($2))
|
---|
1908 | return 0;
|
---|
1909 | ;
|
---|
1910 | return 0;
|
---|
1911 | }
|
---|
1912 | _ACEOF
|
---|
1913 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1915 | /* end confdefs.h. */
|
---|
1916 | $4
|
---|
1917 | int
|
---|
1918 | main ()
|
---|
1919 | {
|
---|
1920 | if (sizeof (($2)))
|
---|
1921 | return 0;
|
---|
1922 | ;
|
---|
1923 | return 0;
|
---|
1924 | }
|
---|
1925 | _ACEOF
|
---|
1926 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1927 |
|
---|
1928 | else
|
---|
1929 | eval "$3=yes"
|
---|
1930 | fi
|
---|
1931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1932 | fi
|
---|
1933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1934 | fi
|
---|
1935 | eval ac_res=\$$3
|
---|
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1937 | $as_echo "$ac_res" >&6; }
|
---|
1938 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1939 |
|
---|
1940 | } # ac_fn_c_check_type
|
---|
1941 |
|
---|
1942 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
---|
1943 | # ----------------------------------------------------
|
---|
1944 | # Tries to find if the field MEMBER exists in type AGGR, after including
|
---|
1945 | # INCLUDES, setting cache variable VAR accordingly.
|
---|
1946 | ac_fn_c_check_member ()
|
---|
1947 | {
|
---|
1948 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
---|
1950 | $as_echo_n "checking for $2.$3... " >&6; }
|
---|
1951 | if eval \${$4+:} false; then :
|
---|
1952 | $as_echo_n "(cached) " >&6
|
---|
1953 | else
|
---|
1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1955 | /* end confdefs.h. */
|
---|
1956 | $5
|
---|
1957 | int
|
---|
1958 | main ()
|
---|
1959 | {
|
---|
1960 | static $2 ac_aggr;
|
---|
1961 | if (ac_aggr.$3)
|
---|
1962 | return 0;
|
---|
1963 | ;
|
---|
1964 | return 0;
|
---|
1965 | }
|
---|
1966 | _ACEOF
|
---|
1967 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1968 | eval "$4=yes"
|
---|
1969 | else
|
---|
1970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1971 | /* end confdefs.h. */
|
---|
1972 | $5
|
---|
1973 | int
|
---|
1974 | main ()
|
---|
1975 | {
|
---|
1976 | static $2 ac_aggr;
|
---|
1977 | if (sizeof ac_aggr.$3)
|
---|
1978 | return 0;
|
---|
1979 | ;
|
---|
1980 | return 0;
|
---|
1981 | }
|
---|
1982 | _ACEOF
|
---|
1983 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1984 | eval "$4=yes"
|
---|
1985 | else
|
---|
1986 | eval "$4=no"
|
---|
1987 | fi
|
---|
1988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1989 | fi
|
---|
1990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1991 | fi
|
---|
1992 | eval ac_res=\$$4
|
---|
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1994 | $as_echo "$ac_res" >&6; }
|
---|
1995 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1996 |
|
---|
1997 | } # ac_fn_c_check_member
|
---|
1998 | cat >config.log <<_ACEOF
|
---|
1999 | This file contains any messages produced by compilers while
|
---|
2000 | running configure, to aid debugging if configure makes a mistake.
|
---|
2001 |
|
---|
2002 | It was created by rdesktop $as_me 1.7.0, which was
|
---|
2003 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
2004 |
|
---|
2005 | $ $0 $@
|
---|
2006 |
|
---|
2007 | _ACEOF
|
---|
2008 | exec 5>>config.log
|
---|
2009 | {
|
---|
2010 | cat <<_ASUNAME
|
---|
2011 | ## --------- ##
|
---|
2012 | ## Platform. ##
|
---|
2013 | ## --------- ##
|
---|
2014 |
|
---|
2015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2016 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2017 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2018 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2019 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2020 |
|
---|
2021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2023 |
|
---|
2024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2027 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2031 |
|
---|
2032 | _ASUNAME
|
---|
2033 |
|
---|
2034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2035 | for as_dir in $PATH
|
---|
2036 | do
|
---|
2037 | IFS=$as_save_IFS
|
---|
2038 | test -z "$as_dir" && as_dir=.
|
---|
2039 | $as_echo "PATH: $as_dir"
|
---|
2040 | done
|
---|
2041 | IFS=$as_save_IFS
|
---|
2042 |
|
---|
2043 | } >&5
|
---|
2044 |
|
---|
2045 | cat >&5 <<_ACEOF
|
---|
2046 |
|
---|
2047 |
|
---|
2048 | ## ----------- ##
|
---|
2049 | ## Core tests. ##
|
---|
2050 | ## ----------- ##
|
---|
2051 |
|
---|
2052 | _ACEOF
|
---|
2053 |
|
---|
2054 |
|
---|
2055 | # Keep a trace of the command line.
|
---|
2056 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2057 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2058 | # Also quote any args containing shell meta-characters.
|
---|
2059 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2060 | ac_configure_args=
|
---|
2061 | ac_configure_args0=
|
---|
2062 | ac_configure_args1=
|
---|
2063 | ac_must_keep_next=false
|
---|
2064 | for ac_pass in 1 2
|
---|
2065 | do
|
---|
2066 | for ac_arg
|
---|
2067 | do
|
---|
2068 | case $ac_arg in
|
---|
2069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2071 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2072 | continue ;;
|
---|
2073 | *\'*)
|
---|
2074 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2075 | esac
|
---|
2076 | case $ac_pass in
|
---|
2077 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2078 | 2)
|
---|
2079 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2080 | if test $ac_must_keep_next = true; then
|
---|
2081 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2082 | else
|
---|
2083 | case $ac_arg in
|
---|
2084 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2087 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2088 | case "$ac_configure_args0 " in
|
---|
2089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2090 | esac
|
---|
2091 | ;;
|
---|
2092 | -* ) ac_must_keep_next=true ;;
|
---|
2093 | esac
|
---|
2094 | fi
|
---|
2095 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2096 | ;;
|
---|
2097 | esac
|
---|
2098 | done
|
---|
2099 | done
|
---|
2100 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2101 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2102 |
|
---|
2103 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2104 | # config.log. We remove comments because anyway the quotes in there
|
---|
2105 | # would cause problems or look ugly.
|
---|
2106 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2107 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2108 | trap 'exit_status=$?
|
---|
2109 | # Save into config.log some information that might help in debugging.
|
---|
2110 | {
|
---|
2111 | echo
|
---|
2112 |
|
---|
2113 | $as_echo "## ---------------- ##
|
---|
2114 | ## Cache variables. ##
|
---|
2115 | ## ---------------- ##"
|
---|
2116 | echo
|
---|
2117 | # The following way of writing the cache mishandles newlines in values,
|
---|
2118 | (
|
---|
2119 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2120 | eval ac_val=\$$ac_var
|
---|
2121 | case $ac_val in #(
|
---|
2122 | *${as_nl}*)
|
---|
2123 | case $ac_var in #(
|
---|
2124 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2125 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2126 | esac
|
---|
2127 | case $ac_var in #(
|
---|
2128 | _ | IFS | as_nl) ;; #(
|
---|
2129 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2130 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2131 | esac ;;
|
---|
2132 | esac
|
---|
2133 | done
|
---|
2134 | (set) 2>&1 |
|
---|
2135 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2136 | *${as_nl}ac_space=\ *)
|
---|
2137 | sed -n \
|
---|
2138 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2139 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2140 | ;; #(
|
---|
2141 | *)
|
---|
2142 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2143 | ;;
|
---|
2144 | esac |
|
---|
2145 | sort
|
---|
2146 | )
|
---|
2147 | echo
|
---|
2148 |
|
---|
2149 | $as_echo "## ----------------- ##
|
---|
2150 | ## Output variables. ##
|
---|
2151 | ## ----------------- ##"
|
---|
2152 | echo
|
---|
2153 | for ac_var in $ac_subst_vars
|
---|
2154 | do
|
---|
2155 | eval ac_val=\$$ac_var
|
---|
2156 | case $ac_val in
|
---|
2157 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2158 | esac
|
---|
2159 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2160 | done | sort
|
---|
2161 | echo
|
---|
2162 |
|
---|
2163 | if test -n "$ac_subst_files"; then
|
---|
2164 | $as_echo "## ------------------- ##
|
---|
2165 | ## File substitutions. ##
|
---|
2166 | ## ------------------- ##"
|
---|
2167 | echo
|
---|
2168 | for ac_var in $ac_subst_files
|
---|
2169 | do
|
---|
2170 | eval ac_val=\$$ac_var
|
---|
2171 | case $ac_val in
|
---|
2172 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2173 | esac
|
---|
2174 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2175 | done | sort
|
---|
2176 | echo
|
---|
2177 | fi
|
---|
2178 |
|
---|
2179 | if test -s confdefs.h; then
|
---|
2180 | $as_echo "## ----------- ##
|
---|
2181 | ## confdefs.h. ##
|
---|
2182 | ## ----------- ##"
|
---|
2183 | echo
|
---|
2184 | cat confdefs.h
|
---|
2185 | echo
|
---|
2186 | fi
|
---|
2187 | test "$ac_signal" != 0 &&
|
---|
2188 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2189 | $as_echo "$as_me: exit $exit_status"
|
---|
2190 | } >&5
|
---|
2191 | rm -f core *.core core.conftest.* &&
|
---|
2192 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2193 | exit $exit_status
|
---|
2194 | ' 0
|
---|
2195 | for ac_signal in 1 2 13 15; do
|
---|
2196 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2197 | done
|
---|
2198 | ac_signal=0
|
---|
2199 |
|
---|
2200 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2201 | rm -f -r conftest* confdefs.h
|
---|
2202 |
|
---|
2203 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2204 |
|
---|
2205 | # Predefined preprocessor variables.
|
---|
2206 |
|
---|
2207 | cat >>confdefs.h <<_ACEOF
|
---|
2208 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2209 | _ACEOF
|
---|
2210 |
|
---|
2211 | cat >>confdefs.h <<_ACEOF
|
---|
2212 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2213 | _ACEOF
|
---|
2214 |
|
---|
2215 | cat >>confdefs.h <<_ACEOF
|
---|
2216 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2217 | _ACEOF
|
---|
2218 |
|
---|
2219 | cat >>confdefs.h <<_ACEOF
|
---|
2220 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2221 | _ACEOF
|
---|
2222 |
|
---|
2223 | cat >>confdefs.h <<_ACEOF
|
---|
2224 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2225 | _ACEOF
|
---|
2226 |
|
---|
2227 | cat >>confdefs.h <<_ACEOF
|
---|
2228 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2229 | _ACEOF
|
---|
2230 |
|
---|
2231 |
|
---|
2232 | # Let the site file select an alternate cache file if it wants to.
|
---|
2233 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2234 | ac_site_file1=NONE
|
---|
2235 | ac_site_file2=NONE
|
---|
2236 | if test -n "$CONFIG_SITE"; then
|
---|
2237 | # We do not want a PATH search for config.site.
|
---|
2238 | case $CONFIG_SITE in #((
|
---|
2239 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2240 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2241 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2242 | esac
|
---|
2243 | elif test "x$prefix" != xNONE; then
|
---|
2244 | ac_site_file1=$prefix/share/config.site
|
---|
2245 | ac_site_file2=$prefix/etc/config.site
|
---|
2246 | else
|
---|
2247 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2248 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2249 | fi
|
---|
2250 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2251 | do
|
---|
2252 | test "x$ac_site_file" = xNONE && continue
|
---|
2253 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2255 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2256 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2257 | . "$ac_site_file" \
|
---|
2258 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2259 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2260 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2261 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2262 | fi
|
---|
2263 | done
|
---|
2264 |
|
---|
2265 | if test -r "$cache_file"; then
|
---|
2266 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2267 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2268 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2270 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2271 | case $cache_file in
|
---|
2272 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2273 | *) . "./$cache_file";;
|
---|
2274 | esac
|
---|
2275 | fi
|
---|
2276 | else
|
---|
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2278 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2279 | >$cache_file
|
---|
2280 | fi
|
---|
2281 |
|
---|
2282 | # Check that the precious variables saved in the cache have kept the same
|
---|
2283 | # value.
|
---|
2284 | ac_cache_corrupted=false
|
---|
2285 | for ac_var in $ac_precious_vars; do
|
---|
2286 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2287 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2288 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2289 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2290 | case $ac_old_set,$ac_new_set in
|
---|
2291 | set,)
|
---|
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2293 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2294 | ac_cache_corrupted=: ;;
|
---|
2295 | ,set)
|
---|
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2297 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2298 | ac_cache_corrupted=: ;;
|
---|
2299 | ,);;
|
---|
2300 | *)
|
---|
2301 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2302 | # differences in whitespace do not lead to failure.
|
---|
2303 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2304 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2305 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2307 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2308 | ac_cache_corrupted=:
|
---|
2309 | else
|
---|
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2311 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2312 | eval $ac_var=\$ac_old_val
|
---|
2313 | fi
|
---|
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2315 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2317 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2318 | fi;;
|
---|
2319 | esac
|
---|
2320 | # Pass precious variables to config.status.
|
---|
2321 | if test "$ac_new_set" = set; then
|
---|
2322 | case $ac_new_val in
|
---|
2323 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2324 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2325 | esac
|
---|
2326 | case " $ac_configure_args " in
|
---|
2327 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2328 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2329 | esac
|
---|
2330 | fi
|
---|
2331 | done
|
---|
2332 | if $ac_cache_corrupted; then
|
---|
2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2336 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2337 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2338 | fi
|
---|
2339 | ## -------------------- ##
|
---|
2340 | ## Main body of script. ##
|
---|
2341 | ## -------------------- ##
|
---|
2342 |
|
---|
2343 | ac_ext=c
|
---|
2344 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2348 |
|
---|
2349 |
|
---|
2350 |
|
---|
2351 |
|
---|
2352 |
|
---|
2353 | ac_ext=c
|
---|
2354 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2358 | if test -n "$ac_tool_prefix"; then
|
---|
2359 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2360 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2362 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2363 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2364 | $as_echo_n "(cached) " >&6
|
---|
2365 | else
|
---|
2366 | if test -n "$CC"; then
|
---|
2367 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2368 | else
|
---|
2369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2370 | for as_dir in $PATH
|
---|
2371 | do
|
---|
2372 | IFS=$as_save_IFS
|
---|
2373 | test -z "$as_dir" && as_dir=.
|
---|
2374 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2376 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2378 | break 2
|
---|
2379 | fi
|
---|
2380 | done
|
---|
2381 | done
|
---|
2382 | IFS=$as_save_IFS
|
---|
2383 |
|
---|
2384 | fi
|
---|
2385 | fi
|
---|
2386 | CC=$ac_cv_prog_CC
|
---|
2387 | if test -n "$CC"; then
|
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2389 | $as_echo "$CC" >&6; }
|
---|
2390 | else
|
---|
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2392 | $as_echo "no" >&6; }
|
---|
2393 | fi
|
---|
2394 |
|
---|
2395 |
|
---|
2396 | fi
|
---|
2397 | if test -z "$ac_cv_prog_CC"; then
|
---|
2398 | ac_ct_CC=$CC
|
---|
2399 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2400 | set dummy gcc; ac_word=$2
|
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2402 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2403 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2404 | $as_echo_n "(cached) " >&6
|
---|
2405 | else
|
---|
2406 | if test -n "$ac_ct_CC"; then
|
---|
2407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2408 | else
|
---|
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2410 | for as_dir in $PATH
|
---|
2411 | do
|
---|
2412 | IFS=$as_save_IFS
|
---|
2413 | test -z "$as_dir" && as_dir=.
|
---|
2414 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2416 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2418 | break 2
|
---|
2419 | fi
|
---|
2420 | done
|
---|
2421 | done
|
---|
2422 | IFS=$as_save_IFS
|
---|
2423 |
|
---|
2424 | fi
|
---|
2425 | fi
|
---|
2426 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2427 | if test -n "$ac_ct_CC"; then
|
---|
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2429 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2430 | else
|
---|
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2432 | $as_echo "no" >&6; }
|
---|
2433 | fi
|
---|
2434 |
|
---|
2435 | if test "x$ac_ct_CC" = x; then
|
---|
2436 | CC=""
|
---|
2437 | else
|
---|
2438 | case $cross_compiling:$ac_tool_warned in
|
---|
2439 | yes:)
|
---|
2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2442 | ac_tool_warned=yes ;;
|
---|
2443 | esac
|
---|
2444 | CC=$ac_ct_CC
|
---|
2445 | fi
|
---|
2446 | else
|
---|
2447 | CC="$ac_cv_prog_CC"
|
---|
2448 | fi
|
---|
2449 |
|
---|
2450 | if test -z "$CC"; then
|
---|
2451 | if test -n "$ac_tool_prefix"; then
|
---|
2452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2453 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2455 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2456 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2457 | $as_echo_n "(cached) " >&6
|
---|
2458 | else
|
---|
2459 | if test -n "$CC"; then
|
---|
2460 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2461 | else
|
---|
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2463 | for as_dir in $PATH
|
---|
2464 | do
|
---|
2465 | IFS=$as_save_IFS
|
---|
2466 | test -z "$as_dir" && as_dir=.
|
---|
2467 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2469 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2471 | break 2
|
---|
2472 | fi
|
---|
2473 | done
|
---|
2474 | done
|
---|
2475 | IFS=$as_save_IFS
|
---|
2476 |
|
---|
2477 | fi
|
---|
2478 | fi
|
---|
2479 | CC=$ac_cv_prog_CC
|
---|
2480 | if test -n "$CC"; then
|
---|
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2482 | $as_echo "$CC" >&6; }
|
---|
2483 | else
|
---|
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2485 | $as_echo "no" >&6; }
|
---|
2486 | fi
|
---|
2487 |
|
---|
2488 |
|
---|
2489 | fi
|
---|
2490 | fi
|
---|
2491 | if test -z "$CC"; then
|
---|
2492 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2493 | set dummy cc; ac_word=$2
|
---|
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2495 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2496 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2497 | $as_echo_n "(cached) " >&6
|
---|
2498 | else
|
---|
2499 | if test -n "$CC"; then
|
---|
2500 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2501 | else
|
---|
2502 | ac_prog_rejected=no
|
---|
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2504 | for as_dir in $PATH
|
---|
2505 | do
|
---|
2506 | IFS=$as_save_IFS
|
---|
2507 | test -z "$as_dir" && as_dir=.
|
---|
2508 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2510 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2511 | ac_prog_rejected=yes
|
---|
2512 | continue
|
---|
2513 | fi
|
---|
2514 | ac_cv_prog_CC="cc"
|
---|
2515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2516 | break 2
|
---|
2517 | fi
|
---|
2518 | done
|
---|
2519 | done
|
---|
2520 | IFS=$as_save_IFS
|
---|
2521 |
|
---|
2522 | if test $ac_prog_rejected = yes; then
|
---|
2523 | # We found a bogon in the path, so make sure we never use it.
|
---|
2524 | set dummy $ac_cv_prog_CC
|
---|
2525 | shift
|
---|
2526 | if test $# != 0; then
|
---|
2527 | # We chose a different compiler from the bogus one.
|
---|
2528 | # However, it has the same basename, so the bogon will be chosen
|
---|
2529 | # first if we set CC to just the basename; use the full file name.
|
---|
2530 | shift
|
---|
2531 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2532 | fi
|
---|
2533 | fi
|
---|
2534 | fi
|
---|
2535 | fi
|
---|
2536 | CC=$ac_cv_prog_CC
|
---|
2537 | if test -n "$CC"; then
|
---|
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2539 | $as_echo "$CC" >&6; }
|
---|
2540 | else
|
---|
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2542 | $as_echo "no" >&6; }
|
---|
2543 | fi
|
---|
2544 |
|
---|
2545 |
|
---|
2546 | fi
|
---|
2547 | if test -z "$CC"; then
|
---|
2548 | if test -n "$ac_tool_prefix"; then
|
---|
2549 | for ac_prog in cl.exe
|
---|
2550 | do
|
---|
2551 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2552 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2554 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2555 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2556 | $as_echo_n "(cached) " >&6
|
---|
2557 | else
|
---|
2558 | if test -n "$CC"; then
|
---|
2559 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2560 | else
|
---|
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2562 | for as_dir in $PATH
|
---|
2563 | do
|
---|
2564 | IFS=$as_save_IFS
|
---|
2565 | test -z "$as_dir" && as_dir=.
|
---|
2566 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2570 | break 2
|
---|
2571 | fi
|
---|
2572 | done
|
---|
2573 | done
|
---|
2574 | IFS=$as_save_IFS
|
---|
2575 |
|
---|
2576 | fi
|
---|
2577 | fi
|
---|
2578 | CC=$ac_cv_prog_CC
|
---|
2579 | if test -n "$CC"; then
|
---|
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2581 | $as_echo "$CC" >&6; }
|
---|
2582 | else
|
---|
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2584 | $as_echo "no" >&6; }
|
---|
2585 | fi
|
---|
2586 |
|
---|
2587 |
|
---|
2588 | test -n "$CC" && break
|
---|
2589 | done
|
---|
2590 | fi
|
---|
2591 | if test -z "$CC"; then
|
---|
2592 | ac_ct_CC=$CC
|
---|
2593 | for ac_prog in cl.exe
|
---|
2594 | do
|
---|
2595 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2596 | set dummy $ac_prog; ac_word=$2
|
---|
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2598 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2599 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2600 | $as_echo_n "(cached) " >&6
|
---|
2601 | else
|
---|
2602 | if test -n "$ac_ct_CC"; then
|
---|
2603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2604 | else
|
---|
2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2606 | for as_dir in $PATH
|
---|
2607 | do
|
---|
2608 | IFS=$as_save_IFS
|
---|
2609 | test -z "$as_dir" && as_dir=.
|
---|
2610 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2612 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2614 | break 2
|
---|
2615 | fi
|
---|
2616 | done
|
---|
2617 | done
|
---|
2618 | IFS=$as_save_IFS
|
---|
2619 |
|
---|
2620 | fi
|
---|
2621 | fi
|
---|
2622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2623 | if test -n "$ac_ct_CC"; then
|
---|
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2625 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2626 | else
|
---|
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2628 | $as_echo "no" >&6; }
|
---|
2629 | fi
|
---|
2630 |
|
---|
2631 |
|
---|
2632 | test -n "$ac_ct_CC" && break
|
---|
2633 | done
|
---|
2634 |
|
---|
2635 | if test "x$ac_ct_CC" = x; then
|
---|
2636 | CC=""
|
---|
2637 | else
|
---|
2638 | case $cross_compiling:$ac_tool_warned in
|
---|
2639 | yes:)
|
---|
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2642 | ac_tool_warned=yes ;;
|
---|
2643 | esac
|
---|
2644 | CC=$ac_ct_CC
|
---|
2645 | fi
|
---|
2646 | fi
|
---|
2647 |
|
---|
2648 | fi
|
---|
2649 |
|
---|
2650 |
|
---|
2651 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2653 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2654 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2655 |
|
---|
2656 | # Provide some information about the compiler.
|
---|
2657 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2658 | set X $ac_compile
|
---|
2659 | ac_compiler=$2
|
---|
2660 | for ac_option in --version -v -V -qversion; do
|
---|
2661 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2662 | case "(($ac_try" in
|
---|
2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2664 | *) ac_try_echo=$ac_try;;
|
---|
2665 | esac
|
---|
2666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2667 | $as_echo "$ac_try_echo"; } >&5
|
---|
2668 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2669 | ac_status=$?
|
---|
2670 | if test -s conftest.err; then
|
---|
2671 | sed '10a\
|
---|
2672 | ... rest of stderr output deleted ...
|
---|
2673 | 10q' conftest.err >conftest.er1
|
---|
2674 | cat conftest.er1 >&5
|
---|
2675 | fi
|
---|
2676 | rm -f conftest.er1 conftest.err
|
---|
2677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2678 | test $ac_status = 0; }
|
---|
2679 | done
|
---|
2680 |
|
---|
2681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2682 | /* end confdefs.h. */
|
---|
2683 |
|
---|
2684 | int
|
---|
2685 | main ()
|
---|
2686 | {
|
---|
2687 |
|
---|
2688 | ;
|
---|
2689 | return 0;
|
---|
2690 | }
|
---|
2691 | _ACEOF
|
---|
2692 | ac_clean_files_save=$ac_clean_files
|
---|
2693 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2694 | # Try to create an executable without -o first, disregard a.out.
|
---|
2695 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2696 | # of exeext.
|
---|
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2698 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2699 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2700 |
|
---|
2701 | # The possible output files:
|
---|
2702 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2703 |
|
---|
2704 | ac_rmfiles=
|
---|
2705 | for ac_file in $ac_files
|
---|
2706 | do
|
---|
2707 | case $ac_file in
|
---|
2708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2709 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2710 | esac
|
---|
2711 | done
|
---|
2712 | rm -f $ac_rmfiles
|
---|
2713 |
|
---|
2714 | if { { ac_try="$ac_link_default"
|
---|
2715 | case "(($ac_try" in
|
---|
2716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2717 | *) ac_try_echo=$ac_try;;
|
---|
2718 | esac
|
---|
2719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2720 | $as_echo "$ac_try_echo"; } >&5
|
---|
2721 | (eval "$ac_link_default") 2>&5
|
---|
2722 | ac_status=$?
|
---|
2723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2724 | test $ac_status = 0; }; then :
|
---|
2725 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2726 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2727 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2728 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2729 | # Autoconf.
|
---|
2730 | for ac_file in $ac_files ''
|
---|
2731 | do
|
---|
2732 | test -f "$ac_file" || continue
|
---|
2733 | case $ac_file in
|
---|
2734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2735 | ;;
|
---|
2736 | [ab].out )
|
---|
2737 | # We found the default executable, but exeext='' is most
|
---|
2738 | # certainly right.
|
---|
2739 | break;;
|
---|
2740 | *.* )
|
---|
2741 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2742 | then :; else
|
---|
2743 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2744 | fi
|
---|
2745 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2746 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2747 | # argument, so we may need to know it at that point already.
|
---|
2748 | # Even if this section looks crufty: it has the advantage of
|
---|
2749 | # actually working.
|
---|
2750 | break;;
|
---|
2751 | * )
|
---|
2752 | break;;
|
---|
2753 | esac
|
---|
2754 | done
|
---|
2755 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2756 |
|
---|
2757 | else
|
---|
2758 | ac_file=''
|
---|
2759 | fi
|
---|
2760 | if test -z "$ac_file"; then :
|
---|
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2762 | $as_echo "no" >&6; }
|
---|
2763 | $as_echo "$as_me: failed program was:" >&5
|
---|
2764 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2765 |
|
---|
2766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2768 | as_fn_error 77 "C compiler cannot create executables
|
---|
2769 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2770 | else
|
---|
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2772 | $as_echo "yes" >&6; }
|
---|
2773 | fi
|
---|
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2775 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2777 | $as_echo "$ac_file" >&6; }
|
---|
2778 | ac_exeext=$ac_cv_exeext
|
---|
2779 |
|
---|
2780 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2781 | ac_clean_files=$ac_clean_files_save
|
---|
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2783 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2784 | if { { ac_try="$ac_link"
|
---|
2785 | case "(($ac_try" in
|
---|
2786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2787 | *) ac_try_echo=$ac_try;;
|
---|
2788 | esac
|
---|
2789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2790 | $as_echo "$ac_try_echo"; } >&5
|
---|
2791 | (eval "$ac_link") 2>&5
|
---|
2792 | ac_status=$?
|
---|
2793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2794 | test $ac_status = 0; }; then :
|
---|
2795 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2796 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2797 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2798 | # `rm'.
|
---|
2799 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2800 | test -f "$ac_file" || continue
|
---|
2801 | case $ac_file in
|
---|
2802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2803 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2804 | break;;
|
---|
2805 | * ) break;;
|
---|
2806 | esac
|
---|
2807 | done
|
---|
2808 | else
|
---|
2809 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2810 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2811 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2812 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2813 | fi
|
---|
2814 | rm -f conftest conftest$ac_cv_exeext
|
---|
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2816 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2817 |
|
---|
2818 | rm -f conftest.$ac_ext
|
---|
2819 | EXEEXT=$ac_cv_exeext
|
---|
2820 | ac_exeext=$EXEEXT
|
---|
2821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2822 | /* end confdefs.h. */
|
---|
2823 | #include <stdio.h>
|
---|
2824 | int
|
---|
2825 | main ()
|
---|
2826 | {
|
---|
2827 | FILE *f = fopen ("conftest.out", "w");
|
---|
2828 | return ferror (f) || fclose (f) != 0;
|
---|
2829 |
|
---|
2830 | ;
|
---|
2831 | return 0;
|
---|
2832 | }
|
---|
2833 | _ACEOF
|
---|
2834 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2835 | # Check that the compiler produces executables we can run. If not, either
|
---|
2836 | # the compiler is broken, or we cross compile.
|
---|
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2838 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2839 | if test "$cross_compiling" != yes; then
|
---|
2840 | { { ac_try="$ac_link"
|
---|
2841 | case "(($ac_try" in
|
---|
2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2843 | *) ac_try_echo=$ac_try;;
|
---|
2844 | esac
|
---|
2845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2846 | $as_echo "$ac_try_echo"; } >&5
|
---|
2847 | (eval "$ac_link") 2>&5
|
---|
2848 | ac_status=$?
|
---|
2849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2850 | test $ac_status = 0; }
|
---|
2851 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2852 | { { case "(($ac_try" in
|
---|
2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2854 | *) ac_try_echo=$ac_try;;
|
---|
2855 | esac
|
---|
2856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2857 | $as_echo "$ac_try_echo"; } >&5
|
---|
2858 | (eval "$ac_try") 2>&5
|
---|
2859 | ac_status=$?
|
---|
2860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2861 | test $ac_status = 0; }; }; then
|
---|
2862 | cross_compiling=no
|
---|
2863 | else
|
---|
2864 | if test "$cross_compiling" = maybe; then
|
---|
2865 | cross_compiling=yes
|
---|
2866 | else
|
---|
2867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2869 | as_fn_error $? "cannot run C compiled programs.
|
---|
2870 | If you meant to cross compile, use \`--host'.
|
---|
2871 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2872 | fi
|
---|
2873 | fi
|
---|
2874 | fi
|
---|
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2876 | $as_echo "$cross_compiling" >&6; }
|
---|
2877 |
|
---|
2878 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2879 | ac_clean_files=$ac_clean_files_save
|
---|
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2881 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2882 | if ${ac_cv_objext+:} false; then :
|
---|
2883 | $as_echo_n "(cached) " >&6
|
---|
2884 | else
|
---|
2885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2886 | /* end confdefs.h. */
|
---|
2887 |
|
---|
2888 | int
|
---|
2889 | main ()
|
---|
2890 | {
|
---|
2891 |
|
---|
2892 | ;
|
---|
2893 | return 0;
|
---|
2894 | }
|
---|
2895 | _ACEOF
|
---|
2896 | rm -f conftest.o conftest.obj
|
---|
2897 | if { { ac_try="$ac_compile"
|
---|
2898 | case "(($ac_try" in
|
---|
2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2900 | *) ac_try_echo=$ac_try;;
|
---|
2901 | esac
|
---|
2902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2903 | $as_echo "$ac_try_echo"; } >&5
|
---|
2904 | (eval "$ac_compile") 2>&5
|
---|
2905 | ac_status=$?
|
---|
2906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2907 | test $ac_status = 0; }; then :
|
---|
2908 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2909 | test -f "$ac_file" || continue;
|
---|
2910 | case $ac_file in
|
---|
2911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2912 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2913 | break;;
|
---|
2914 | esac
|
---|
2915 | done
|
---|
2916 | else
|
---|
2917 | $as_echo "$as_me: failed program was:" >&5
|
---|
2918 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2919 |
|
---|
2920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2922 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
2923 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2924 | fi
|
---|
2925 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2926 | fi
|
---|
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
2928 | $as_echo "$ac_cv_objext" >&6; }
|
---|
2929 | OBJEXT=$ac_cv_objext
|
---|
2930 | ac_objext=$OBJEXT
|
---|
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
2932 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
2933 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
2934 | $as_echo_n "(cached) " >&6
|
---|
2935 | else
|
---|
2936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2937 | /* end confdefs.h. */
|
---|
2938 |
|
---|
2939 | int
|
---|
2940 | main ()
|
---|
2941 | {
|
---|
2942 | #ifndef __GNUC__
|
---|
2943 | choke me
|
---|
2944 | #endif
|
---|
2945 |
|
---|
2946 | ;
|
---|
2947 | return 0;
|
---|
2948 | }
|
---|
2949 | _ACEOF
|
---|
2950 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2951 | ac_compiler_gnu=yes
|
---|
2952 | else
|
---|
2953 | ac_compiler_gnu=no
|
---|
2954 | fi
|
---|
2955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2956 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2957 |
|
---|
2958 | fi
|
---|
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2960 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
2961 | if test $ac_compiler_gnu = yes; then
|
---|
2962 | GCC=yes
|
---|
2963 | else
|
---|
2964 | GCC=
|
---|
2965 | fi
|
---|
2966 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2967 | ac_save_CFLAGS=$CFLAGS
|
---|
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
2969 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
2970 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
2971 | $as_echo_n "(cached) " >&6
|
---|
2972 | else
|
---|
2973 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2974 | ac_c_werror_flag=yes
|
---|
2975 | ac_cv_prog_cc_g=no
|
---|
2976 | CFLAGS="-g"
|
---|
2977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2978 | /* end confdefs.h. */
|
---|
2979 |
|
---|
2980 | int
|
---|
2981 | main ()
|
---|
2982 | {
|
---|
2983 |
|
---|
2984 | ;
|
---|
2985 | return 0;
|
---|
2986 | }
|
---|
2987 | _ACEOF
|
---|
2988 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2989 | ac_cv_prog_cc_g=yes
|
---|
2990 | else
|
---|
2991 | CFLAGS=""
|
---|
2992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2993 | /* end confdefs.h. */
|
---|
2994 |
|
---|
2995 | int
|
---|
2996 | main ()
|
---|
2997 | {
|
---|
2998 |
|
---|
2999 | ;
|
---|
3000 | return 0;
|
---|
3001 | }
|
---|
3002 | _ACEOF
|
---|
3003 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3004 |
|
---|
3005 | else
|
---|
3006 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3007 | CFLAGS="-g"
|
---|
3008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3009 | /* end confdefs.h. */
|
---|
3010 |
|
---|
3011 | int
|
---|
3012 | main ()
|
---|
3013 | {
|
---|
3014 |
|
---|
3015 | ;
|
---|
3016 | return 0;
|
---|
3017 | }
|
---|
3018 | _ACEOF
|
---|
3019 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3020 | ac_cv_prog_cc_g=yes
|
---|
3021 | fi
|
---|
3022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3023 | fi
|
---|
3024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3025 | fi
|
---|
3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3027 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3028 | fi
|
---|
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3030 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3031 | if test "$ac_test_CFLAGS" = set; then
|
---|
3032 | CFLAGS=$ac_save_CFLAGS
|
---|
3033 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3034 | if test "$GCC" = yes; then
|
---|
3035 | CFLAGS="-g -O2"
|
---|
3036 | else
|
---|
3037 | CFLAGS="-g"
|
---|
3038 | fi
|
---|
3039 | else
|
---|
3040 | if test "$GCC" = yes; then
|
---|
3041 | CFLAGS="-O2"
|
---|
3042 | else
|
---|
3043 | CFLAGS=
|
---|
3044 | fi
|
---|
3045 | fi
|
---|
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3047 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3048 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3049 | $as_echo_n "(cached) " >&6
|
---|
3050 | else
|
---|
3051 | ac_cv_prog_cc_c89=no
|
---|
3052 | ac_save_CC=$CC
|
---|
3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3054 | /* end confdefs.h. */
|
---|
3055 | #include <stdarg.h>
|
---|
3056 | #include <stdio.h>
|
---|
3057 | #include <sys/types.h>
|
---|
3058 | #include <sys/stat.h>
|
---|
3059 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3060 | struct buf { int x; };
|
---|
3061 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3062 | static char *e (p, i)
|
---|
3063 | char **p;
|
---|
3064 | int i;
|
---|
3065 | {
|
---|
3066 | return p[i];
|
---|
3067 | }
|
---|
3068 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3069 | {
|
---|
3070 | char *s;
|
---|
3071 | va_list v;
|
---|
3072 | va_start (v,p);
|
---|
3073 | s = g (p, va_arg (v,int));
|
---|
3074 | va_end (v);
|
---|
3075 | return s;
|
---|
3076 | }
|
---|
3077 |
|
---|
3078 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3079 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3080 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3081 | as 'x'. The following induces an error, until -std is added to get
|
---|
3082 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3083 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3084 | that's true only with -std. */
|
---|
3085 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3086 |
|
---|
3087 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3088 | inside strings and character constants. */
|
---|
3089 | #define FOO(x) 'x'
|
---|
3090 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3091 |
|
---|
3092 | int test (int i, double x);
|
---|
3093 | struct s1 {int (*f) (int a);};
|
---|
3094 | struct s2 {int (*f) (double a);};
|
---|
3095 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3096 | int argc;
|
---|
3097 | char **argv;
|
---|
3098 | int
|
---|
3099 | main ()
|
---|
3100 | {
|
---|
3101 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3102 | ;
|
---|
3103 | return 0;
|
---|
3104 | }
|
---|
3105 | _ACEOF
|
---|
3106 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3107 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3108 | do
|
---|
3109 | CC="$ac_save_CC $ac_arg"
|
---|
3110 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3111 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3112 | fi
|
---|
3113 | rm -f core conftest.err conftest.$ac_objext
|
---|
3114 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3115 | done
|
---|
3116 | rm -f conftest.$ac_ext
|
---|
3117 | CC=$ac_save_CC
|
---|
3118 |
|
---|
3119 | fi
|
---|
3120 | # AC_CACHE_VAL
|
---|
3121 | case "x$ac_cv_prog_cc_c89" in
|
---|
3122 | x)
|
---|
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3124 | $as_echo "none needed" >&6; } ;;
|
---|
3125 | xno)
|
---|
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3127 | $as_echo "unsupported" >&6; } ;;
|
---|
3128 | *)
|
---|
3129 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3131 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3132 | esac
|
---|
3133 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3134 |
|
---|
3135 | fi
|
---|
3136 |
|
---|
3137 | ac_ext=c
|
---|
3138 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3142 |
|
---|
3143 | if test "$GCC" = yes; then
|
---|
3144 | CFLAGS="$CFLAGS -Wall"
|
---|
3145 | fi
|
---|
3146 | ac_ext=cpp
|
---|
3147 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3151 | if test -z "$CXX"; then
|
---|
3152 | if test -n "$CCC"; then
|
---|
3153 | CXX=$CCC
|
---|
3154 | else
|
---|
3155 | if test -n "$ac_tool_prefix"; then
|
---|
3156 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3157 | do
|
---|
3158 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3161 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3162 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
3163 | $as_echo_n "(cached) " >&6
|
---|
3164 | else
|
---|
3165 | if test -n "$CXX"; then
|
---|
3166 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3167 | else
|
---|
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3169 | for as_dir in $PATH
|
---|
3170 | do
|
---|
3171 | IFS=$as_save_IFS
|
---|
3172 | test -z "$as_dir" && as_dir=.
|
---|
3173 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3175 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3177 | break 2
|
---|
3178 | fi
|
---|
3179 | done
|
---|
3180 | done
|
---|
3181 | IFS=$as_save_IFS
|
---|
3182 |
|
---|
3183 | fi
|
---|
3184 | fi
|
---|
3185 | CXX=$ac_cv_prog_CXX
|
---|
3186 | if test -n "$CXX"; then
|
---|
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3188 | $as_echo "$CXX" >&6; }
|
---|
3189 | else
|
---|
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3191 | $as_echo "no" >&6; }
|
---|
3192 | fi
|
---|
3193 |
|
---|
3194 |
|
---|
3195 | test -n "$CXX" && break
|
---|
3196 | done
|
---|
3197 | fi
|
---|
3198 | if test -z "$CXX"; then
|
---|
3199 | ac_ct_CXX=$CXX
|
---|
3200 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3201 | do
|
---|
3202 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3203 | set dummy $ac_prog; ac_word=$2
|
---|
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3205 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3206 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
3207 | $as_echo_n "(cached) " >&6
|
---|
3208 | else
|
---|
3209 | if test -n "$ac_ct_CXX"; then
|
---|
3210 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3211 | else
|
---|
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3213 | for as_dir in $PATH
|
---|
3214 | do
|
---|
3215 | IFS=$as_save_IFS
|
---|
3216 | test -z "$as_dir" && as_dir=.
|
---|
3217 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3219 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3221 | break 2
|
---|
3222 | fi
|
---|
3223 | done
|
---|
3224 | done
|
---|
3225 | IFS=$as_save_IFS
|
---|
3226 |
|
---|
3227 | fi
|
---|
3228 | fi
|
---|
3229 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3230 | if test -n "$ac_ct_CXX"; then
|
---|
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3232 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3233 | else
|
---|
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3235 | $as_echo "no" >&6; }
|
---|
3236 | fi
|
---|
3237 |
|
---|
3238 |
|
---|
3239 | test -n "$ac_ct_CXX" && break
|
---|
3240 | done
|
---|
3241 |
|
---|
3242 | if test "x$ac_ct_CXX" = x; then
|
---|
3243 | CXX="g++"
|
---|
3244 | else
|
---|
3245 | case $cross_compiling:$ac_tool_warned in
|
---|
3246 | yes:)
|
---|
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3249 | ac_tool_warned=yes ;;
|
---|
3250 | esac
|
---|
3251 | CXX=$ac_ct_CXX
|
---|
3252 | fi
|
---|
3253 | fi
|
---|
3254 |
|
---|
3255 | fi
|
---|
3256 | fi
|
---|
3257 | # Provide some information about the compiler.
|
---|
3258 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3259 | set X $ac_compile
|
---|
3260 | ac_compiler=$2
|
---|
3261 | for ac_option in --version -v -V -qversion; do
|
---|
3262 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3263 | case "(($ac_try" in
|
---|
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3265 | *) ac_try_echo=$ac_try;;
|
---|
3266 | esac
|
---|
3267 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3268 | $as_echo "$ac_try_echo"; } >&5
|
---|
3269 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3270 | ac_status=$?
|
---|
3271 | if test -s conftest.err; then
|
---|
3272 | sed '10a\
|
---|
3273 | ... rest of stderr output deleted ...
|
---|
3274 | 10q' conftest.err >conftest.er1
|
---|
3275 | cat conftest.er1 >&5
|
---|
3276 | fi
|
---|
3277 | rm -f conftest.er1 conftest.err
|
---|
3278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3279 | test $ac_status = 0; }
|
---|
3280 | done
|
---|
3281 |
|
---|
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3283 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3284 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
3285 | $as_echo_n "(cached) " >&6
|
---|
3286 | else
|
---|
3287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3288 | /* end confdefs.h. */
|
---|
3289 |
|
---|
3290 | int
|
---|
3291 | main ()
|
---|
3292 | {
|
---|
3293 | #ifndef __GNUC__
|
---|
3294 | choke me
|
---|
3295 | #endif
|
---|
3296 |
|
---|
3297 | ;
|
---|
3298 | return 0;
|
---|
3299 | }
|
---|
3300 | _ACEOF
|
---|
3301 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3302 | ac_compiler_gnu=yes
|
---|
3303 | else
|
---|
3304 | ac_compiler_gnu=no
|
---|
3305 | fi
|
---|
3306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3307 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3308 |
|
---|
3309 | fi
|
---|
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3311 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3312 | if test $ac_compiler_gnu = yes; then
|
---|
3313 | GXX=yes
|
---|
3314 | else
|
---|
3315 | GXX=
|
---|
3316 | fi
|
---|
3317 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3318 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3320 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3321 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
3322 | $as_echo_n "(cached) " >&6
|
---|
3323 | else
|
---|
3324 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3325 | ac_cxx_werror_flag=yes
|
---|
3326 | ac_cv_prog_cxx_g=no
|
---|
3327 | CXXFLAGS="-g"
|
---|
3328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3329 | /* end confdefs.h. */
|
---|
3330 |
|
---|
3331 | int
|
---|
3332 | main ()
|
---|
3333 | {
|
---|
3334 |
|
---|
3335 | ;
|
---|
3336 | return 0;
|
---|
3337 | }
|
---|
3338 | _ACEOF
|
---|
3339 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3340 | ac_cv_prog_cxx_g=yes
|
---|
3341 | else
|
---|
3342 | CXXFLAGS=""
|
---|
3343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3344 | /* end confdefs.h. */
|
---|
3345 |
|
---|
3346 | int
|
---|
3347 | main ()
|
---|
3348 | {
|
---|
3349 |
|
---|
3350 | ;
|
---|
3351 | return 0;
|
---|
3352 | }
|
---|
3353 | _ACEOF
|
---|
3354 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3355 |
|
---|
3356 | else
|
---|
3357 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3358 | CXXFLAGS="-g"
|
---|
3359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3360 | /* end confdefs.h. */
|
---|
3361 |
|
---|
3362 | int
|
---|
3363 | main ()
|
---|
3364 | {
|
---|
3365 |
|
---|
3366 | ;
|
---|
3367 | return 0;
|
---|
3368 | }
|
---|
3369 | _ACEOF
|
---|
3370 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3371 | ac_cv_prog_cxx_g=yes
|
---|
3372 | fi
|
---|
3373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3374 | fi
|
---|
3375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3376 | fi
|
---|
3377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3378 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3379 | fi
|
---|
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3381 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3382 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3383 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3384 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3385 | if test "$GXX" = yes; then
|
---|
3386 | CXXFLAGS="-g -O2"
|
---|
3387 | else
|
---|
3388 | CXXFLAGS="-g"
|
---|
3389 | fi
|
---|
3390 | else
|
---|
3391 | if test "$GXX" = yes; then
|
---|
3392 | CXXFLAGS="-O2"
|
---|
3393 | else
|
---|
3394 | CXXFLAGS=
|
---|
3395 | fi
|
---|
3396 | fi
|
---|
3397 | ac_ext=c
|
---|
3398 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3402 |
|
---|
3403 |
|
---|
3404 | ac_aux_dir=
|
---|
3405 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
3406 | if test -f "$ac_dir/install-sh"; then
|
---|
3407 | ac_aux_dir=$ac_dir
|
---|
3408 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
3409 | break
|
---|
3410 | elif test -f "$ac_dir/install.sh"; then
|
---|
3411 | ac_aux_dir=$ac_dir
|
---|
3412 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
3413 | break
|
---|
3414 | elif test -f "$ac_dir/shtool"; then
|
---|
3415 | ac_aux_dir=$ac_dir
|
---|
3416 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
3417 | break
|
---|
3418 | fi
|
---|
3419 | done
|
---|
3420 | if test -z "$ac_aux_dir"; then
|
---|
3421 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
3422 | fi
|
---|
3423 |
|
---|
3424 | # These three variables are undocumented and unsupported,
|
---|
3425 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
3426 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
3427 | # whose full name contains unusual characters.
|
---|
3428 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
3429 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
3430 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
3431 |
|
---|
3432 |
|
---|
3433 | # Find a good install program. We prefer a C program (faster),
|
---|
3434 | # so one script is as good as another. But avoid the broken or
|
---|
3435 | # incompatible versions:
|
---|
3436 | # SysV /etc/install, /usr/sbin/install
|
---|
3437 | # SunOS /usr/etc/install
|
---|
3438 | # IRIX /sbin/install
|
---|
3439 | # AIX /bin/install
|
---|
3440 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3441 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3442 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3443 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3444 | # OS/2's system install, which has a completely different semantic
|
---|
3445 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3446 | # Reject install programs that cannot install multiple files.
|
---|
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3448 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3449 | if test -z "$INSTALL"; then
|
---|
3450 | if ${ac_cv_path_install+:} false; then :
|
---|
3451 | $as_echo_n "(cached) " >&6
|
---|
3452 | else
|
---|
3453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3454 | for as_dir in $PATH
|
---|
3455 | do
|
---|
3456 | IFS=$as_save_IFS
|
---|
3457 | test -z "$as_dir" && as_dir=.
|
---|
3458 | # Account for people who put trailing slashes in PATH elements.
|
---|
3459 | case $as_dir/ in #((
|
---|
3460 | ./ | .// | /[cC]/* | \
|
---|
3461 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3462 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3463 | /usr/ucb/* ) ;;
|
---|
3464 | *)
|
---|
3465 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3466 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3467 | # by default.
|
---|
3468 | for ac_prog in ginstall scoinst install; do
|
---|
3469 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3470 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3471 | if test $ac_prog = install &&
|
---|
3472 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3473 | # AIX install. It has an incompatible calling convention.
|
---|
3474 | :
|
---|
3475 | elif test $ac_prog = install &&
|
---|
3476 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3477 | # program-specific install script used by HP pwplus--don't use.
|
---|
3478 | :
|
---|
3479 | else
|
---|
3480 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3481 | echo one > conftest.one
|
---|
3482 | echo two > conftest.two
|
---|
3483 | mkdir conftest.dir
|
---|
3484 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3485 | test -s conftest.one && test -s conftest.two &&
|
---|
3486 | test -s conftest.dir/conftest.one &&
|
---|
3487 | test -s conftest.dir/conftest.two
|
---|
3488 | then
|
---|
3489 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3490 | break 3
|
---|
3491 | fi
|
---|
3492 | fi
|
---|
3493 | fi
|
---|
3494 | done
|
---|
3495 | done
|
---|
3496 | ;;
|
---|
3497 | esac
|
---|
3498 |
|
---|
3499 | done
|
---|
3500 | IFS=$as_save_IFS
|
---|
3501 |
|
---|
3502 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3503 |
|
---|
3504 | fi
|
---|
3505 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3506 | INSTALL=$ac_cv_path_install
|
---|
3507 | else
|
---|
3508 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3509 | # value for INSTALL within a source directory, because that will
|
---|
3510 | # break other packages using the cache if that directory is
|
---|
3511 | # removed, or if the value is a relative name.
|
---|
3512 | INSTALL=$ac_install_sh
|
---|
3513 | fi
|
---|
3514 | fi
|
---|
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3516 | $as_echo "$INSTALL" >&6; }
|
---|
3517 |
|
---|
3518 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3519 | # It thinks the first close brace ends the variable substitution.
|
---|
3520 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3521 |
|
---|
3522 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3523 |
|
---|
3524 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3525 |
|
---|
3526 | ac_ext=c
|
---|
3527 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3531 |
|
---|
3532 |
|
---|
3533 | ac_ext=c
|
---|
3534 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
3539 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
3540 | # On Suns, sometimes $CPP names a directory.
|
---|
3541 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3542 | CPP=
|
---|
3543 | fi
|
---|
3544 | if test -z "$CPP"; then
|
---|
3545 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
3546 | $as_echo_n "(cached) " >&6
|
---|
3547 | else
|
---|
3548 | # Double quotes because CPP needs to be expanded
|
---|
3549 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3550 | do
|
---|
3551 | ac_preproc_ok=false
|
---|
3552 | for ac_c_preproc_warn_flag in '' yes
|
---|
3553 | do
|
---|
3554 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3555 | # with a fresh cross-compiler works.
|
---|
3556 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3557 | # <limits.h> exists even on freestanding compilers.
|
---|
3558 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3559 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3561 | /* end confdefs.h. */
|
---|
3562 | #ifdef __STDC__
|
---|
3563 | # include <limits.h>
|
---|
3564 | #else
|
---|
3565 | # include <assert.h>
|
---|
3566 | #endif
|
---|
3567 | Syntax error
|
---|
3568 | _ACEOF
|
---|
3569 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3570 |
|
---|
3571 | else
|
---|
3572 | # Broken: fails on valid input.
|
---|
3573 | continue
|
---|
3574 | fi
|
---|
3575 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3576 |
|
---|
3577 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3578 | # can be detected and how.
|
---|
3579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3580 | /* end confdefs.h. */
|
---|
3581 | #include <ac_nonexistent.h>
|
---|
3582 | _ACEOF
|
---|
3583 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3584 | # Broken: success on invalid input.
|
---|
3585 | continue
|
---|
3586 | else
|
---|
3587 | # Passes both tests.
|
---|
3588 | ac_preproc_ok=:
|
---|
3589 | break
|
---|
3590 | fi
|
---|
3591 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3592 |
|
---|
3593 | done
|
---|
3594 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3595 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3596 | if $ac_preproc_ok; then :
|
---|
3597 | break
|
---|
3598 | fi
|
---|
3599 |
|
---|
3600 | done
|
---|
3601 | ac_cv_prog_CPP=$CPP
|
---|
3602 |
|
---|
3603 | fi
|
---|
3604 | CPP=$ac_cv_prog_CPP
|
---|
3605 | else
|
---|
3606 | ac_cv_prog_CPP=$CPP
|
---|
3607 | fi
|
---|
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
3609 | $as_echo "$CPP" >&6; }
|
---|
3610 | ac_preproc_ok=false
|
---|
3611 | for ac_c_preproc_warn_flag in '' yes
|
---|
3612 | do
|
---|
3613 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3614 | # with a fresh cross-compiler works.
|
---|
3615 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3616 | # <limits.h> exists even on freestanding compilers.
|
---|
3617 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3618 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3620 | /* end confdefs.h. */
|
---|
3621 | #ifdef __STDC__
|
---|
3622 | # include <limits.h>
|
---|
3623 | #else
|
---|
3624 | # include <assert.h>
|
---|
3625 | #endif
|
---|
3626 | Syntax error
|
---|
3627 | _ACEOF
|
---|
3628 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3629 |
|
---|
3630 | else
|
---|
3631 | # Broken: fails on valid input.
|
---|
3632 | continue
|
---|
3633 | fi
|
---|
3634 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3635 |
|
---|
3636 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3637 | # can be detected and how.
|
---|
3638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3639 | /* end confdefs.h. */
|
---|
3640 | #include <ac_nonexistent.h>
|
---|
3641 | _ACEOF
|
---|
3642 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3643 | # Broken: success on invalid input.
|
---|
3644 | continue
|
---|
3645 | else
|
---|
3646 | # Passes both tests.
|
---|
3647 | ac_preproc_ok=:
|
---|
3648 | break
|
---|
3649 | fi
|
---|
3650 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3651 |
|
---|
3652 | done
|
---|
3653 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3654 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3655 | if $ac_preproc_ok; then :
|
---|
3656 |
|
---|
3657 | else
|
---|
3658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3660 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
3661 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3662 | fi
|
---|
3663 |
|
---|
3664 | ac_ext=c
|
---|
3665 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3669 |
|
---|
3670 |
|
---|
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3672 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3673 | if ${ac_cv_path_GREP+:} false; then :
|
---|
3674 | $as_echo_n "(cached) " >&6
|
---|
3675 | else
|
---|
3676 | if test -z "$GREP"; then
|
---|
3677 | ac_path_GREP_found=false
|
---|
3678 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3680 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3681 | do
|
---|
3682 | IFS=$as_save_IFS
|
---|
3683 | test -z "$as_dir" && as_dir=.
|
---|
3684 | for ac_prog in grep ggrep; do
|
---|
3685 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3686 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3687 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
3688 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3689 | # Check for GNU $ac_path_GREP
|
---|
3690 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3691 | *GNU*)
|
---|
3692 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3693 | *)
|
---|
3694 | ac_count=0
|
---|
3695 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3696 | while :
|
---|
3697 | do
|
---|
3698 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3699 | mv "conftest.tmp" "conftest.in"
|
---|
3700 | cp "conftest.in" "conftest.nl"
|
---|
3701 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3702 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3703 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3704 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3705 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3706 | # Best one so far, save it but keep looking for a better one
|
---|
3707 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3708 | ac_path_GREP_max=$ac_count
|
---|
3709 | fi
|
---|
3710 | # 10*(2^10) chars as input seems more than enough
|
---|
3711 | test $ac_count -gt 10 && break
|
---|
3712 | done
|
---|
3713 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3714 | esac
|
---|
3715 |
|
---|
3716 | $ac_path_GREP_found && break 3
|
---|
3717 | done
|
---|
3718 | done
|
---|
3719 | done
|
---|
3720 | IFS=$as_save_IFS
|
---|
3721 | if test -z "$ac_cv_path_GREP"; then
|
---|
3722 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3723 | fi
|
---|
3724 | else
|
---|
3725 | ac_cv_path_GREP=$GREP
|
---|
3726 | fi
|
---|
3727 |
|
---|
3728 | fi
|
---|
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3730 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3731 | GREP="$ac_cv_path_GREP"
|
---|
3732 |
|
---|
3733 |
|
---|
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3735 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3736 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
3737 | $as_echo_n "(cached) " >&6
|
---|
3738 | else
|
---|
3739 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3740 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3741 | else
|
---|
3742 | if test -z "$EGREP"; then
|
---|
3743 | ac_path_EGREP_found=false
|
---|
3744 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3746 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3747 | do
|
---|
3748 | IFS=$as_save_IFS
|
---|
3749 | test -z "$as_dir" && as_dir=.
|
---|
3750 | for ac_prog in egrep; do
|
---|
3751 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3752 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3753 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
3754 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3755 | # Check for GNU $ac_path_EGREP
|
---|
3756 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3757 | *GNU*)
|
---|
3758 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3759 | *)
|
---|
3760 | ac_count=0
|
---|
3761 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3762 | while :
|
---|
3763 | do
|
---|
3764 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3765 | mv "conftest.tmp" "conftest.in"
|
---|
3766 | cp "conftest.in" "conftest.nl"
|
---|
3767 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3768 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3769 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3770 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3771 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3772 | # Best one so far, save it but keep looking for a better one
|
---|
3773 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3774 | ac_path_EGREP_max=$ac_count
|
---|
3775 | fi
|
---|
3776 | # 10*(2^10) chars as input seems more than enough
|
---|
3777 | test $ac_count -gt 10 && break
|
---|
3778 | done
|
---|
3779 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3780 | esac
|
---|
3781 |
|
---|
3782 | $ac_path_EGREP_found && break 3
|
---|
3783 | done
|
---|
3784 | done
|
---|
3785 | done
|
---|
3786 | IFS=$as_save_IFS
|
---|
3787 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3788 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3789 | fi
|
---|
3790 | else
|
---|
3791 | ac_cv_path_EGREP=$EGREP
|
---|
3792 | fi
|
---|
3793 |
|
---|
3794 | fi
|
---|
3795 | fi
|
---|
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3797 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3798 | EGREP="$ac_cv_path_EGREP"
|
---|
3799 |
|
---|
3800 |
|
---|
3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
3802 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
3803 | if ${ac_cv_header_stdc+:} false; then :
|
---|
3804 | $as_echo_n "(cached) " >&6
|
---|
3805 | else
|
---|
3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3807 | /* end confdefs.h. */
|
---|
3808 | #include <stdlib.h>
|
---|
3809 | #include <stdarg.h>
|
---|
3810 | #include <string.h>
|
---|
3811 | #include <float.h>
|
---|
3812 |
|
---|
3813 | int
|
---|
3814 | main ()
|
---|
3815 | {
|
---|
3816 |
|
---|
3817 | ;
|
---|
3818 | return 0;
|
---|
3819 | }
|
---|
3820 | _ACEOF
|
---|
3821 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3822 | ac_cv_header_stdc=yes
|
---|
3823 | else
|
---|
3824 | ac_cv_header_stdc=no
|
---|
3825 | fi
|
---|
3826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3827 |
|
---|
3828 | if test $ac_cv_header_stdc = yes; then
|
---|
3829 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3831 | /* end confdefs.h. */
|
---|
3832 | #include <string.h>
|
---|
3833 |
|
---|
3834 | _ACEOF
|
---|
3835 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3836 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
3837 |
|
---|
3838 | else
|
---|
3839 | ac_cv_header_stdc=no
|
---|
3840 | fi
|
---|
3841 | rm -f conftest*
|
---|
3842 |
|
---|
3843 | fi
|
---|
3844 |
|
---|
3845 | if test $ac_cv_header_stdc = yes; then
|
---|
3846 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3848 | /* end confdefs.h. */
|
---|
3849 | #include <stdlib.h>
|
---|
3850 |
|
---|
3851 | _ACEOF
|
---|
3852 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3853 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
3854 |
|
---|
3855 | else
|
---|
3856 | ac_cv_header_stdc=no
|
---|
3857 | fi
|
---|
3858 | rm -f conftest*
|
---|
3859 |
|
---|
3860 | fi
|
---|
3861 |
|
---|
3862 | if test $ac_cv_header_stdc = yes; then
|
---|
3863 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3864 | if test "$cross_compiling" = yes; then :
|
---|
3865 | :
|
---|
3866 | else
|
---|
3867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3868 | /* end confdefs.h. */
|
---|
3869 | #include <ctype.h>
|
---|
3870 | #include <stdlib.h>
|
---|
3871 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3872 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3873 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3874 | #else
|
---|
3875 | # define ISLOWER(c) \
|
---|
3876 | (('a' <= (c) && (c) <= 'i') \
|
---|
3877 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3878 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3879 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3880 | #endif
|
---|
3881 |
|
---|
3882 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3883 | int
|
---|
3884 | main ()
|
---|
3885 | {
|
---|
3886 | int i;
|
---|
3887 | for (i = 0; i < 256; i++)
|
---|
3888 | if (XOR (islower (i), ISLOWER (i))
|
---|
3889 | || toupper (i) != TOUPPER (i))
|
---|
3890 | return 2;
|
---|
3891 | return 0;
|
---|
3892 | }
|
---|
3893 | _ACEOF
|
---|
3894 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
3895 |
|
---|
3896 | else
|
---|
3897 | ac_cv_header_stdc=no
|
---|
3898 | fi
|
---|
3899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
3900 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
3901 | fi
|
---|
3902 |
|
---|
3903 | fi
|
---|
3904 | fi
|
---|
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
3906 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
3907 | if test $ac_cv_header_stdc = yes; then
|
---|
3908 |
|
---|
3909 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
3910 |
|
---|
3911 | fi
|
---|
3912 |
|
---|
3913 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3914 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3915 | inttypes.h stdint.h unistd.h
|
---|
3916 | do :
|
---|
3917 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3918 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
3919 | "
|
---|
3920 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
3921 | cat >>confdefs.h <<_ACEOF
|
---|
3922 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3923 | _ACEOF
|
---|
3924 |
|
---|
3925 | fi
|
---|
3926 |
|
---|
3927 | done
|
---|
3928 |
|
---|
3929 |
|
---|
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
3931 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
3932 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
3933 | $as_echo_n "(cached) " >&6
|
---|
3934 | else
|
---|
3935 | ac_cv_c_bigendian=unknown
|
---|
3936 | # See if we're dealing with a universal compiler.
|
---|
3937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3938 | /* end confdefs.h. */
|
---|
3939 | #ifndef __APPLE_CC__
|
---|
3940 | not a universal capable compiler
|
---|
3941 | #endif
|
---|
3942 | typedef int dummy;
|
---|
3943 |
|
---|
3944 | _ACEOF
|
---|
3945 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3946 |
|
---|
3947 | # Check for potential -arch flags. It is not universal unless
|
---|
3948 | # there are at least two -arch flags with different values.
|
---|
3949 | ac_arch=
|
---|
3950 | ac_prev=
|
---|
3951 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
3952 | if test -n "$ac_prev"; then
|
---|
3953 | case $ac_word in
|
---|
3954 | i?86 | x86_64 | ppc | ppc64)
|
---|
3955 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
3956 | ac_arch=$ac_word
|
---|
3957 | else
|
---|
3958 | ac_cv_c_bigendian=universal
|
---|
3959 | break
|
---|
3960 | fi
|
---|
3961 | ;;
|
---|
3962 | esac
|
---|
3963 | ac_prev=
|
---|
3964 | elif test "x$ac_word" = "x-arch"; then
|
---|
3965 | ac_prev=arch
|
---|
3966 | fi
|
---|
3967 | done
|
---|
3968 | fi
|
---|
3969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3970 | if test $ac_cv_c_bigendian = unknown; then
|
---|
3971 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3973 | /* end confdefs.h. */
|
---|
3974 | #include <sys/types.h>
|
---|
3975 | #include <sys/param.h>
|
---|
3976 |
|
---|
3977 | int
|
---|
3978 | main ()
|
---|
3979 | {
|
---|
3980 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
3981 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
3982 | && LITTLE_ENDIAN)
|
---|
3983 | bogus endian macros
|
---|
3984 | #endif
|
---|
3985 |
|
---|
3986 | ;
|
---|
3987 | return 0;
|
---|
3988 | }
|
---|
3989 | _ACEOF
|
---|
3990 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3991 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3993 | /* end confdefs.h. */
|
---|
3994 | #include <sys/types.h>
|
---|
3995 | #include <sys/param.h>
|
---|
3996 |
|
---|
3997 | int
|
---|
3998 | main ()
|
---|
3999 | {
|
---|
4000 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
4001 | not big endian
|
---|
4002 | #endif
|
---|
4003 |
|
---|
4004 | ;
|
---|
4005 | return 0;
|
---|
4006 | }
|
---|
4007 | _ACEOF
|
---|
4008 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4009 | ac_cv_c_bigendian=yes
|
---|
4010 | else
|
---|
4011 | ac_cv_c_bigendian=no
|
---|
4012 | fi
|
---|
4013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4014 | fi
|
---|
4015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4016 | fi
|
---|
4017 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4018 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
4019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4020 | /* end confdefs.h. */
|
---|
4021 | #include <limits.h>
|
---|
4022 |
|
---|
4023 | int
|
---|
4024 | main ()
|
---|
4025 | {
|
---|
4026 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
4027 | bogus endian macros
|
---|
4028 | #endif
|
---|
4029 |
|
---|
4030 | ;
|
---|
4031 | return 0;
|
---|
4032 | }
|
---|
4033 | _ACEOF
|
---|
4034 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4035 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4037 | /* end confdefs.h. */
|
---|
4038 | #include <limits.h>
|
---|
4039 |
|
---|
4040 | int
|
---|
4041 | main ()
|
---|
4042 | {
|
---|
4043 | #ifndef _BIG_ENDIAN
|
---|
4044 | not big endian
|
---|
4045 | #endif
|
---|
4046 |
|
---|
4047 | ;
|
---|
4048 | return 0;
|
---|
4049 | }
|
---|
4050 | _ACEOF
|
---|
4051 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4052 | ac_cv_c_bigendian=yes
|
---|
4053 | else
|
---|
4054 | ac_cv_c_bigendian=no
|
---|
4055 | fi
|
---|
4056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4057 | fi
|
---|
4058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4059 | fi
|
---|
4060 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4061 | # Compile a test program.
|
---|
4062 | if test "$cross_compiling" = yes; then :
|
---|
4063 | # Try to guess by grepping values from an object file.
|
---|
4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4065 | /* end confdefs.h. */
|
---|
4066 | short int ascii_mm[] =
|
---|
4067 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
4068 | short int ascii_ii[] =
|
---|
4069 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
4070 | int use_ascii (int i) {
|
---|
4071 | return ascii_mm[i] + ascii_ii[i];
|
---|
4072 | }
|
---|
4073 | short int ebcdic_ii[] =
|
---|
4074 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
4075 | short int ebcdic_mm[] =
|
---|
4076 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
4077 | int use_ebcdic (int i) {
|
---|
4078 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
4079 | }
|
---|
4080 | extern int foo;
|
---|
4081 |
|
---|
4082 | int
|
---|
4083 | main ()
|
---|
4084 | {
|
---|
4085 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
4086 | ;
|
---|
4087 | return 0;
|
---|
4088 | }
|
---|
4089 | _ACEOF
|
---|
4090 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4091 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
4092 | ac_cv_c_bigendian=yes
|
---|
4093 | fi
|
---|
4094 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
4095 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
4096 | ac_cv_c_bigendian=no
|
---|
4097 | else
|
---|
4098 | # finding both strings is unlikely to happen, but who knows?
|
---|
4099 | ac_cv_c_bigendian=unknown
|
---|
4100 | fi
|
---|
4101 | fi
|
---|
4102 | fi
|
---|
4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4104 | else
|
---|
4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4106 | /* end confdefs.h. */
|
---|
4107 | $ac_includes_default
|
---|
4108 | int
|
---|
4109 | main ()
|
---|
4110 | {
|
---|
4111 |
|
---|
4112 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
4113 | union
|
---|
4114 | {
|
---|
4115 | long int l;
|
---|
4116 | char c[sizeof (long int)];
|
---|
4117 | } u;
|
---|
4118 | u.l = 1;
|
---|
4119 | return u.c[sizeof (long int) - 1] == 1;
|
---|
4120 |
|
---|
4121 | ;
|
---|
4122 | return 0;
|
---|
4123 | }
|
---|
4124 | _ACEOF
|
---|
4125 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4126 | ac_cv_c_bigendian=no
|
---|
4127 | else
|
---|
4128 | ac_cv_c_bigendian=yes
|
---|
4129 | fi
|
---|
4130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4131 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4132 | fi
|
---|
4133 |
|
---|
4134 | fi
|
---|
4135 | fi
|
---|
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
4137 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
4138 | case $ac_cv_c_bigendian in #(
|
---|
4139 | yes)
|
---|
4140 | $as_echo "#define B_ENDIAN 1" >>confdefs.h
|
---|
4141 | ;; #(
|
---|
4142 | no)
|
---|
4143 | $as_echo "#define L_ENDIAN 1" >>confdefs.h
|
---|
4144 | ;; #(
|
---|
4145 | universal)
|
---|
4146 |
|
---|
4147 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
4148 |
|
---|
4149 | ;; #(
|
---|
4150 | *)
|
---|
4151 | as_fn_error $? "unknown endianness
|
---|
4152 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
4153 | esac
|
---|
4154 |
|
---|
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
|
---|
4156 | $as_echo_n "checking for X... " >&6; }
|
---|
4157 |
|
---|
4158 |
|
---|
4159 | # Check whether --with-x was given.
|
---|
4160 | if test "${with_x+set}" = set; then :
|
---|
4161 | withval=$with_x;
|
---|
4162 | fi
|
---|
4163 |
|
---|
4164 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
4165 | if test "x$with_x" = xno; then
|
---|
4166 | # The user explicitly disabled X.
|
---|
4167 | have_x=disabled
|
---|
4168 | else
|
---|
4169 | case $x_includes,$x_libraries in #(
|
---|
4170 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
|
---|
4171 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
|
---|
4172 | $as_echo_n "(cached) " >&6
|
---|
4173 | else
|
---|
4174 | # One or both of the vars are not set, and there is no cached value.
|
---|
4175 | ac_x_includes=no ac_x_libraries=no
|
---|
4176 | rm -f -r conftest.dir
|
---|
4177 | if mkdir conftest.dir; then
|
---|
4178 | cd conftest.dir
|
---|
4179 | cat >Imakefile <<'_ACEOF'
|
---|
4180 | incroot:
|
---|
4181 | @echo incroot='${INCROOT}'
|
---|
4182 | usrlibdir:
|
---|
4183 | @echo usrlibdir='${USRLIBDIR}'
|
---|
4184 | libdir:
|
---|
4185 | @echo libdir='${LIBDIR}'
|
---|
4186 | _ACEOF
|
---|
4187 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
4188 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4189 | for ac_var in incroot usrlibdir libdir; do
|
---|
4190 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
|
---|
4191 | done
|
---|
4192 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
4193 | for ac_extension in a so sl dylib la dll; do
|
---|
4194 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
|
---|
4195 | test -f "$ac_im_libdir/libX11.$ac_extension"; then
|
---|
4196 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
4197 | fi
|
---|
4198 | done
|
---|
4199 | # Screen out bogus values from the imake configuration. They are
|
---|
4200 | # bogus both because they are the default anyway, and because
|
---|
4201 | # using them would break gcc on systems where it needs fixed includes.
|
---|
4202 | case $ac_im_incroot in
|
---|
4203 | /usr/include) ac_x_includes= ;;
|
---|
4204 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
4205 | esac
|
---|
4206 | case $ac_im_usrlibdir in
|
---|
4207 | /usr/lib | /usr/lib64 | /lib | /lib64) ;;
|
---|
4208 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
4209 | esac
|
---|
4210 | fi
|
---|
4211 | cd ..
|
---|
4212 | rm -f -r conftest.dir
|
---|
4213 | fi
|
---|
4214 |
|
---|
4215 | # Standard set of common directories for X headers.
|
---|
4216 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4217 | ac_x_header_dirs='
|
---|
4218 | /usr/X11/include
|
---|
4219 | /usr/X11R7/include
|
---|
4220 | /usr/X11R6/include
|
---|
4221 | /usr/X11R5/include
|
---|
4222 | /usr/X11R4/include
|
---|
4223 |
|
---|
4224 | /usr/include/X11
|
---|
4225 | /usr/include/X11R7
|
---|
4226 | /usr/include/X11R6
|
---|
4227 | /usr/include/X11R5
|
---|
4228 | /usr/include/X11R4
|
---|
4229 |
|
---|
4230 | /usr/local/X11/include
|
---|
4231 | /usr/local/X11R7/include
|
---|
4232 | /usr/local/X11R6/include
|
---|
4233 | /usr/local/X11R5/include
|
---|
4234 | /usr/local/X11R4/include
|
---|
4235 |
|
---|
4236 | /usr/local/include/X11
|
---|
4237 | /usr/local/include/X11R7
|
---|
4238 | /usr/local/include/X11R6
|
---|
4239 | /usr/local/include/X11R5
|
---|
4240 | /usr/local/include/X11R4
|
---|
4241 |
|
---|
4242 | /usr/X386/include
|
---|
4243 | /usr/x386/include
|
---|
4244 | /usr/XFree86/include/X11
|
---|
4245 |
|
---|
4246 | /usr/include
|
---|
4247 | /usr/local/include
|
---|
4248 | /usr/unsupported/include
|
---|
4249 | /usr/athena/include
|
---|
4250 | /usr/local/x11r5/include
|
---|
4251 | /usr/lpp/Xamples/include
|
---|
4252 |
|
---|
4253 | /usr/openwin/include
|
---|
4254 | /usr/openwin/share/include'
|
---|
4255 |
|
---|
4256 | if test "$ac_x_includes" = no; then
|
---|
4257 | # Guess where to find include files, by looking for Xlib.h.
|
---|
4258 | # First, try using that file with no special directory specified.
|
---|
4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4260 | /* end confdefs.h. */
|
---|
4261 | #include <X11/Xlib.h>
|
---|
4262 | _ACEOF
|
---|
4263 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4264 | # We can compile using X headers with no special include directory.
|
---|
4265 | ac_x_includes=
|
---|
4266 | else
|
---|
4267 | for ac_dir in $ac_x_header_dirs; do
|
---|
4268 | if test -r "$ac_dir/X11/Xlib.h"; then
|
---|
4269 | ac_x_includes=$ac_dir
|
---|
4270 | break
|
---|
4271 | fi
|
---|
4272 | done
|
---|
4273 | fi
|
---|
4274 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4275 | fi # $ac_x_includes = no
|
---|
4276 |
|
---|
4277 | if test "$ac_x_libraries" = no; then
|
---|
4278 | # Check for the libraries.
|
---|
4279 | # See if we find them without any special options.
|
---|
4280 | # Don't add to $LIBS permanently.
|
---|
4281 | ac_save_LIBS=$LIBS
|
---|
4282 | LIBS="-lX11 $LIBS"
|
---|
4283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4284 | /* end confdefs.h. */
|
---|
4285 | #include <X11/Xlib.h>
|
---|
4286 | int
|
---|
4287 | main ()
|
---|
4288 | {
|
---|
4289 | XrmInitialize ()
|
---|
4290 | ;
|
---|
4291 | return 0;
|
---|
4292 | }
|
---|
4293 | _ACEOF
|
---|
4294 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4295 | LIBS=$ac_save_LIBS
|
---|
4296 | # We can link X programs with no special library path.
|
---|
4297 | ac_x_libraries=
|
---|
4298 | else
|
---|
4299 | LIBS=$ac_save_LIBS
|
---|
4300 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
4301 | do
|
---|
4302 | # Don't even attempt the hair of trying to link an X program!
|
---|
4303 | for ac_extension in a so sl dylib la dll; do
|
---|
4304 | if test -r "$ac_dir/libX11.$ac_extension"; then
|
---|
4305 | ac_x_libraries=$ac_dir
|
---|
4306 | break 2
|
---|
4307 | fi
|
---|
4308 | done
|
---|
4309 | done
|
---|
4310 | fi
|
---|
4311 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4312 | conftest$ac_exeext conftest.$ac_ext
|
---|
4313 | fi # $ac_x_libraries = no
|
---|
4314 |
|
---|
4315 | case $ac_x_includes,$ac_x_libraries in #(
|
---|
4316 | no,* | *,no | *\'*)
|
---|
4317 | # Didn't find X, or a directory has "'" in its name.
|
---|
4318 | ac_cv_have_x="have_x=no";; #(
|
---|
4319 | *)
|
---|
4320 | # Record where we found X for the cache.
|
---|
4321 | ac_cv_have_x="have_x=yes\
|
---|
4322 | ac_x_includes='$ac_x_includes'\
|
---|
4323 | ac_x_libraries='$ac_x_libraries'"
|
---|
4324 | esac
|
---|
4325 | fi
|
---|
4326 | ;; #(
|
---|
4327 | *) have_x=yes;;
|
---|
4328 | esac
|
---|
4329 | eval "$ac_cv_have_x"
|
---|
4330 | fi # $with_x != no
|
---|
4331 |
|
---|
4332 | if test "$have_x" != yes; then
|
---|
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
|
---|
4334 | $as_echo "$have_x" >&6; }
|
---|
4335 | no_x=yes
|
---|
4336 | else
|
---|
4337 | # If each of the values was on the command line, it overrides each guess.
|
---|
4338 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
4339 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
4340 | # Update the cache value to reflect the command line values.
|
---|
4341 | ac_cv_have_x="have_x=yes\
|
---|
4342 | ac_x_includes='$x_includes'\
|
---|
4343 | ac_x_libraries='$x_libraries'"
|
---|
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
4345 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
|
---|
4346 | fi
|
---|
4347 |
|
---|
4348 | if test "$no_x" = yes; then
|
---|
4349 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
4350 |
|
---|
4351 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
|
---|
4352 |
|
---|
4353 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
4354 | else
|
---|
4355 | if test -n "$x_includes"; then
|
---|
4356 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
4357 | fi
|
---|
4358 |
|
---|
4359 | # It would also be nice to do this for all -L options, not just this one.
|
---|
4360 | if test -n "$x_libraries"; then
|
---|
4361 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
4362 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
4363 | # others require no space. Words are not sufficient . . . .
|
---|
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
|
---|
4365 | $as_echo_n "checking whether -R must be followed by a space... " >&6; }
|
---|
4366 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
4367 | ac_xsave_c_werror_flag=$ac_c_werror_flag
|
---|
4368 | ac_c_werror_flag=yes
|
---|
4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4370 | /* end confdefs.h. */
|
---|
4371 |
|
---|
4372 | int
|
---|
4373 | main ()
|
---|
4374 | {
|
---|
4375 |
|
---|
4376 | ;
|
---|
4377 | return 0;
|
---|
4378 | }
|
---|
4379 | _ACEOF
|
---|
4380 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4382 | $as_echo "no" >&6; }
|
---|
4383 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
4384 | else
|
---|
4385 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4387 | /* end confdefs.h. */
|
---|
4388 |
|
---|
4389 | int
|
---|
4390 | main ()
|
---|
4391 | {
|
---|
4392 |
|
---|
4393 | ;
|
---|
4394 | return 0;
|
---|
4395 | }
|
---|
4396 | _ACEOF
|
---|
4397 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4399 | $as_echo "yes" >&6; }
|
---|
4400 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
4401 | else
|
---|
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
|
---|
4403 | $as_echo "neither works" >&6; }
|
---|
4404 | fi
|
---|
4405 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4406 | conftest$ac_exeext conftest.$ac_ext
|
---|
4407 | fi
|
---|
4408 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4409 | conftest$ac_exeext conftest.$ac_ext
|
---|
4410 | ac_c_werror_flag=$ac_xsave_c_werror_flag
|
---|
4411 | LIBS=$ac_xsave_LIBS
|
---|
4412 | fi
|
---|
4413 |
|
---|
4414 | # Check for system-dependent libraries X programs must link with.
|
---|
4415 | # Do this before checking for the system-independent R6 libraries
|
---|
4416 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
4417 |
|
---|
4418 | if test "$ISC" = yes; then
|
---|
4419 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
4420 | else
|
---|
4421 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
4422 | # libraries were built with DECnet support. And Karl Berry says
|
---|
4423 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
4424 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
4425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4426 | /* end confdefs.h. */
|
---|
4427 |
|
---|
4428 | /* Override any GCC internal prototype to avoid an error.
|
---|
4429 | Use char because int might match the return type of a GCC
|
---|
4430 | builtin and then its argument prototype would still apply. */
|
---|
4431 | #ifdef __cplusplus
|
---|
4432 | extern "C"
|
---|
4433 | #endif
|
---|
4434 | char XOpenDisplay ();
|
---|
4435 | int
|
---|
4436 | main ()
|
---|
4437 | {
|
---|
4438 | return XOpenDisplay ();
|
---|
4439 | ;
|
---|
4440 | return 0;
|
---|
4441 | }
|
---|
4442 | _ACEOF
|
---|
4443 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4444 |
|
---|
4445 | else
|
---|
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
|
---|
4447 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
|
---|
4448 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
|
---|
4449 | $as_echo_n "(cached) " >&6
|
---|
4450 | else
|
---|
4451 | ac_check_lib_save_LIBS=$LIBS
|
---|
4452 | LIBS="-ldnet $LIBS"
|
---|
4453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4454 | /* end confdefs.h. */
|
---|
4455 |
|
---|
4456 | /* Override any GCC internal prototype to avoid an error.
|
---|
4457 | Use char because int might match the return type of a GCC
|
---|
4458 | builtin and then its argument prototype would still apply. */
|
---|
4459 | #ifdef __cplusplus
|
---|
4460 | extern "C"
|
---|
4461 | #endif
|
---|
4462 | char dnet_ntoa ();
|
---|
4463 | int
|
---|
4464 | main ()
|
---|
4465 | {
|
---|
4466 | return dnet_ntoa ();
|
---|
4467 | ;
|
---|
4468 | return 0;
|
---|
4469 | }
|
---|
4470 | _ACEOF
|
---|
4471 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4472 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
4473 | else
|
---|
4474 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
4475 | fi
|
---|
4476 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4477 | conftest$ac_exeext conftest.$ac_ext
|
---|
4478 | LIBS=$ac_check_lib_save_LIBS
|
---|
4479 | fi
|
---|
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
4481 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
|
---|
4482 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
|
---|
4483 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
4484 | fi
|
---|
4485 |
|
---|
4486 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
4488 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
|
---|
4489 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
|
---|
4490 | $as_echo_n "(cached) " >&6
|
---|
4491 | else
|
---|
4492 | ac_check_lib_save_LIBS=$LIBS
|
---|
4493 | LIBS="-ldnet_stub $LIBS"
|
---|
4494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4495 | /* end confdefs.h. */
|
---|
4496 |
|
---|
4497 | /* Override any GCC internal prototype to avoid an error.
|
---|
4498 | Use char because int might match the return type of a GCC
|
---|
4499 | builtin and then its argument prototype would still apply. */
|
---|
4500 | #ifdef __cplusplus
|
---|
4501 | extern "C"
|
---|
4502 | #endif
|
---|
4503 | char dnet_ntoa ();
|
---|
4504 | int
|
---|
4505 | main ()
|
---|
4506 | {
|
---|
4507 | return dnet_ntoa ();
|
---|
4508 | ;
|
---|
4509 | return 0;
|
---|
4510 | }
|
---|
4511 | _ACEOF
|
---|
4512 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4513 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
4514 | else
|
---|
4515 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
4516 | fi
|
---|
4517 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4518 | conftest$ac_exeext conftest.$ac_ext
|
---|
4519 | LIBS=$ac_check_lib_save_LIBS
|
---|
4520 | fi
|
---|
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
4522 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
|
---|
4523 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
|
---|
4524 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
4525 | fi
|
---|
4526 |
|
---|
4527 | fi
|
---|
4528 | fi
|
---|
4529 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4530 | conftest$ac_exeext conftest.$ac_ext
|
---|
4531 | LIBS="$ac_xsave_LIBS"
|
---|
4532 |
|
---|
4533 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
4534 | # to get the SysV transport functions.
|
---|
4535 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
4536 | # needs -lnsl.
|
---|
4537 | # The nsl library prevents programs from opening the X display
|
---|
4538 | # on Irix 5.2, according to T.E. Dickey.
|
---|
4539 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
4540 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
4541 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
|
---|
4542 | if test "x$ac_cv_func_gethostbyname" = xyes; then :
|
---|
4543 |
|
---|
4544 | fi
|
---|
4545 |
|
---|
4546 | if test $ac_cv_func_gethostbyname = no; then
|
---|
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
|
---|
4548 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
|
---|
4549 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
|
---|
4550 | $as_echo_n "(cached) " >&6
|
---|
4551 | else
|
---|
4552 | ac_check_lib_save_LIBS=$LIBS
|
---|
4553 | LIBS="-lnsl $LIBS"
|
---|
4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4555 | /* end confdefs.h. */
|
---|
4556 |
|
---|
4557 | /* Override any GCC internal prototype to avoid an error.
|
---|
4558 | Use char because int might match the return type of a GCC
|
---|
4559 | builtin and then its argument prototype would still apply. */
|
---|
4560 | #ifdef __cplusplus
|
---|
4561 | extern "C"
|
---|
4562 | #endif
|
---|
4563 | char gethostbyname ();
|
---|
4564 | int
|
---|
4565 | main ()
|
---|
4566 | {
|
---|
4567 | return gethostbyname ();
|
---|
4568 | ;
|
---|
4569 | return 0;
|
---|
4570 | }
|
---|
4571 | _ACEOF
|
---|
4572 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4573 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
4574 | else
|
---|
4575 | ac_cv_lib_nsl_gethostbyname=no
|
---|
4576 | fi
|
---|
4577 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4578 | conftest$ac_exeext conftest.$ac_ext
|
---|
4579 | LIBS=$ac_check_lib_save_LIBS
|
---|
4580 | fi
|
---|
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
4582 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
|
---|
4583 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
|
---|
4584 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
4585 | fi
|
---|
4586 |
|
---|
4587 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
|
---|
4589 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
|
---|
4590 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
|
---|
4591 | $as_echo_n "(cached) " >&6
|
---|
4592 | else
|
---|
4593 | ac_check_lib_save_LIBS=$LIBS
|
---|
4594 | LIBS="-lbsd $LIBS"
|
---|
4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4596 | /* end confdefs.h. */
|
---|
4597 |
|
---|
4598 | /* Override any GCC internal prototype to avoid an error.
|
---|
4599 | Use char because int might match the return type of a GCC
|
---|
4600 | builtin and then its argument prototype would still apply. */
|
---|
4601 | #ifdef __cplusplus
|
---|
4602 | extern "C"
|
---|
4603 | #endif
|
---|
4604 | char gethostbyname ();
|
---|
4605 | int
|
---|
4606 | main ()
|
---|
4607 | {
|
---|
4608 | return gethostbyname ();
|
---|
4609 | ;
|
---|
4610 | return 0;
|
---|
4611 | }
|
---|
4612 | _ACEOF
|
---|
4613 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4614 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
4615 | else
|
---|
4616 | ac_cv_lib_bsd_gethostbyname=no
|
---|
4617 | fi
|
---|
4618 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4619 | conftest$ac_exeext conftest.$ac_ext
|
---|
4620 | LIBS=$ac_check_lib_save_LIBS
|
---|
4621 | fi
|
---|
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
4623 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
|
---|
4624 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
|
---|
4625 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
4626 | fi
|
---|
4627 |
|
---|
4628 | fi
|
---|
4629 | fi
|
---|
4630 |
|
---|
4631 | # [email protected] says without -lsocket,
|
---|
4632 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
4633 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
4634 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
4635 | # variants that don't use the name server (or something). -lsocket
|
---|
4636 | # must be given before -lnsl if both are needed. We assume that
|
---|
4637 | # if connect needs -lnsl, so does gethostbyname.
|
---|
4638 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
|
---|
4639 | if test "x$ac_cv_func_connect" = xyes; then :
|
---|
4640 |
|
---|
4641 | fi
|
---|
4642 |
|
---|
4643 | if test $ac_cv_func_connect = no; then
|
---|
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
|
---|
4645 | $as_echo_n "checking for connect in -lsocket... " >&6; }
|
---|
4646 | if ${ac_cv_lib_socket_connect+:} false; then :
|
---|
4647 | $as_echo_n "(cached) " >&6
|
---|
4648 | else
|
---|
4649 | ac_check_lib_save_LIBS=$LIBS
|
---|
4650 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4652 | /* end confdefs.h. */
|
---|
4653 |
|
---|
4654 | /* Override any GCC internal prototype to avoid an error.
|
---|
4655 | Use char because int might match the return type of a GCC
|
---|
4656 | builtin and then its argument prototype would still apply. */
|
---|
4657 | #ifdef __cplusplus
|
---|
4658 | extern "C"
|
---|
4659 | #endif
|
---|
4660 | char connect ();
|
---|
4661 | int
|
---|
4662 | main ()
|
---|
4663 | {
|
---|
4664 | return connect ();
|
---|
4665 | ;
|
---|
4666 | return 0;
|
---|
4667 | }
|
---|
4668 | _ACEOF
|
---|
4669 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4670 | ac_cv_lib_socket_connect=yes
|
---|
4671 | else
|
---|
4672 | ac_cv_lib_socket_connect=no
|
---|
4673 | fi
|
---|
4674 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4675 | conftest$ac_exeext conftest.$ac_ext
|
---|
4676 | LIBS=$ac_check_lib_save_LIBS
|
---|
4677 | fi
|
---|
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
|
---|
4679 | $as_echo "$ac_cv_lib_socket_connect" >&6; }
|
---|
4680 | if test "x$ac_cv_lib_socket_connect" = xyes; then :
|
---|
4681 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4682 | fi
|
---|
4683 |
|
---|
4684 | fi
|
---|
4685 |
|
---|
4686 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4687 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
|
---|
4688 | if test "x$ac_cv_func_remove" = xyes; then :
|
---|
4689 |
|
---|
4690 | fi
|
---|
4691 |
|
---|
4692 | if test $ac_cv_func_remove = no; then
|
---|
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
|
---|
4694 | $as_echo_n "checking for remove in -lposix... " >&6; }
|
---|
4695 | if ${ac_cv_lib_posix_remove+:} false; then :
|
---|
4696 | $as_echo_n "(cached) " >&6
|
---|
4697 | else
|
---|
4698 | ac_check_lib_save_LIBS=$LIBS
|
---|
4699 | LIBS="-lposix $LIBS"
|
---|
4700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4701 | /* end confdefs.h. */
|
---|
4702 |
|
---|
4703 | /* Override any GCC internal prototype to avoid an error.
|
---|
4704 | Use char because int might match the return type of a GCC
|
---|
4705 | builtin and then its argument prototype would still apply. */
|
---|
4706 | #ifdef __cplusplus
|
---|
4707 | extern "C"
|
---|
4708 | #endif
|
---|
4709 | char remove ();
|
---|
4710 | int
|
---|
4711 | main ()
|
---|
4712 | {
|
---|
4713 | return remove ();
|
---|
4714 | ;
|
---|
4715 | return 0;
|
---|
4716 | }
|
---|
4717 | _ACEOF
|
---|
4718 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4719 | ac_cv_lib_posix_remove=yes
|
---|
4720 | else
|
---|
4721 | ac_cv_lib_posix_remove=no
|
---|
4722 | fi
|
---|
4723 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4724 | conftest$ac_exeext conftest.$ac_ext
|
---|
4725 | LIBS=$ac_check_lib_save_LIBS
|
---|
4726 | fi
|
---|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
|
---|
4728 | $as_echo "$ac_cv_lib_posix_remove" >&6; }
|
---|
4729 | if test "x$ac_cv_lib_posix_remove" = xyes; then :
|
---|
4730 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4731 | fi
|
---|
4732 |
|
---|
4733 | fi
|
---|
4734 |
|
---|
4735 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4736 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
|
---|
4737 | if test "x$ac_cv_func_shmat" = xyes; then :
|
---|
4738 |
|
---|
4739 | fi
|
---|
4740 |
|
---|
4741 | if test $ac_cv_func_shmat = no; then
|
---|
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
|
---|
4743 | $as_echo_n "checking for shmat in -lipc... " >&6; }
|
---|
4744 | if ${ac_cv_lib_ipc_shmat+:} false; then :
|
---|
4745 | $as_echo_n "(cached) " >&6
|
---|
4746 | else
|
---|
4747 | ac_check_lib_save_LIBS=$LIBS
|
---|
4748 | LIBS="-lipc $LIBS"
|
---|
4749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4750 | /* end confdefs.h. */
|
---|
4751 |
|
---|
4752 | /* Override any GCC internal prototype to avoid an error.
|
---|
4753 | Use char because int might match the return type of a GCC
|
---|
4754 | builtin and then its argument prototype would still apply. */
|
---|
4755 | #ifdef __cplusplus
|
---|
4756 | extern "C"
|
---|
4757 | #endif
|
---|
4758 | char shmat ();
|
---|
4759 | int
|
---|
4760 | main ()
|
---|
4761 | {
|
---|
4762 | return shmat ();
|
---|
4763 | ;
|
---|
4764 | return 0;
|
---|
4765 | }
|
---|
4766 | _ACEOF
|
---|
4767 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4768 | ac_cv_lib_ipc_shmat=yes
|
---|
4769 | else
|
---|
4770 | ac_cv_lib_ipc_shmat=no
|
---|
4771 | fi
|
---|
4772 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4773 | conftest$ac_exeext conftest.$ac_ext
|
---|
4774 | LIBS=$ac_check_lib_save_LIBS
|
---|
4775 | fi
|
---|
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4777 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
|
---|
4778 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
|
---|
4779 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4780 | fi
|
---|
4781 |
|
---|
4782 | fi
|
---|
4783 | fi
|
---|
4784 |
|
---|
4785 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4786 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4787 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4788 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4789 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4790 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4791 | # These have to be linked with before -lX11, unlike the other
|
---|
4792 | # libraries we check for below, so use a different variable.
|
---|
4793 | # John Interrante, Karl Berry
|
---|
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
|
---|
4795 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
|
---|
4796 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
|
---|
4797 | $as_echo_n "(cached) " >&6
|
---|
4798 | else
|
---|
4799 | ac_check_lib_save_LIBS=$LIBS
|
---|
4800 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4802 | /* end confdefs.h. */
|
---|
4803 |
|
---|
4804 | /* Override any GCC internal prototype to avoid an error.
|
---|
4805 | Use char because int might match the return type of a GCC
|
---|
4806 | builtin and then its argument prototype would still apply. */
|
---|
4807 | #ifdef __cplusplus
|
---|
4808 | extern "C"
|
---|
4809 | #endif
|
---|
4810 | char IceConnectionNumber ();
|
---|
4811 | int
|
---|
4812 | main ()
|
---|
4813 | {
|
---|
4814 | return IceConnectionNumber ();
|
---|
4815 | ;
|
---|
4816 | return 0;
|
---|
4817 | }
|
---|
4818 | _ACEOF
|
---|
4819 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4820 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4821 | else
|
---|
4822 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4823 | fi
|
---|
4824 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4825 | conftest$ac_exeext conftest.$ac_ext
|
---|
4826 | LIBS=$ac_check_lib_save_LIBS
|
---|
4827 | fi
|
---|
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
4829 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
|
---|
4830 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
|
---|
4831 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
4832 | fi
|
---|
4833 |
|
---|
4834 | LDFLAGS=$ac_save_LDFLAGS
|
---|
4835 |
|
---|
4836 | fi
|
---|
4837 |
|
---|
4838 | if test "$no_x" = "yes"; then
|
---|
4839 | echo
|
---|
4840 | echo "ERROR: Could not find X Window System headers/libraries."
|
---|
4841 | if test -f /etc/debian_version; then
|
---|
4842 | echo "Probably you need to install the libx11-dev package."
|
---|
4843 | elif test -f /etc/redhat-release; then
|
---|
4844 | echo "Probably you need to install the libX11-devel package."
|
---|
4845 | fi
|
---|
4846 | echo "To specify paths manually, use the options --x-includes and --x-libraries."
|
---|
4847 | echo
|
---|
4848 | exit 1
|
---|
4849 | fi
|
---|
4850 |
|
---|
4851 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
4852 | set dummy pkg-config; ac_word=$2
|
---|
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4854 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4855 | if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
---|
4856 | $as_echo_n "(cached) " >&6
|
---|
4857 | else
|
---|
4858 | case $PKG_CONFIG in
|
---|
4859 | [\\/]* | ?:[\\/]*)
|
---|
4860 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
4861 | ;;
|
---|
4862 | *)
|
---|
4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4864 | for as_dir in $PATH
|
---|
4865 | do
|
---|
4866 | IFS=$as_save_IFS
|
---|
4867 | test -z "$as_dir" && as_dir=.
|
---|
4868 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4870 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
4871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4872 | break 2
|
---|
4873 | fi
|
---|
4874 | done
|
---|
4875 | done
|
---|
4876 | IFS=$as_save_IFS
|
---|
4877 |
|
---|
4878 | ;;
|
---|
4879 | esac
|
---|
4880 | fi
|
---|
4881 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
4882 | if test -n "$PKG_CONFIG"; then
|
---|
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
4884 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
4885 | else
|
---|
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4887 | $as_echo "no" >&6; }
|
---|
4888 | fi
|
---|
4889 |
|
---|
4890 |
|
---|
4891 |
|
---|
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
|
---|
4893 | $as_echo_n "checking for library containing socket... " >&6; }
|
---|
4894 | if ${ac_cv_search_socket+:} false; then :
|
---|
4895 | $as_echo_n "(cached) " >&6
|
---|
4896 | else
|
---|
4897 | ac_func_search_save_LIBS=$LIBS
|
---|
4898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4899 | /* end confdefs.h. */
|
---|
4900 |
|
---|
4901 | /* Override any GCC internal prototype to avoid an error.
|
---|
4902 | Use char because int might match the return type of a GCC
|
---|
4903 | builtin and then its argument prototype would still apply. */
|
---|
4904 | #ifdef __cplusplus
|
---|
4905 | extern "C"
|
---|
4906 | #endif
|
---|
4907 | char socket ();
|
---|
4908 | int
|
---|
4909 | main ()
|
---|
4910 | {
|
---|
4911 | return socket ();
|
---|
4912 | ;
|
---|
4913 | return 0;
|
---|
4914 | }
|
---|
4915 | _ACEOF
|
---|
4916 | for ac_lib in '' socket; do
|
---|
4917 | if test -z "$ac_lib"; then
|
---|
4918 | ac_res="none required"
|
---|
4919 | else
|
---|
4920 | ac_res=-l$ac_lib
|
---|
4921 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4922 | fi
|
---|
4923 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4924 | ac_cv_search_socket=$ac_res
|
---|
4925 | fi
|
---|
4926 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4927 | conftest$ac_exeext
|
---|
4928 | if ${ac_cv_search_socket+:} false; then :
|
---|
4929 | break
|
---|
4930 | fi
|
---|
4931 | done
|
---|
4932 | if ${ac_cv_search_socket+:} false; then :
|
---|
4933 |
|
---|
4934 | else
|
---|
4935 | ac_cv_search_socket=no
|
---|
4936 | fi
|
---|
4937 | rm conftest.$ac_ext
|
---|
4938 | LIBS=$ac_func_search_save_LIBS
|
---|
4939 | fi
|
---|
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
|
---|
4941 | $as_echo "$ac_cv_search_socket" >&6; }
|
---|
4942 | ac_res=$ac_cv_search_socket
|
---|
4943 | if test "$ac_res" != no; then :
|
---|
4944 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4945 |
|
---|
4946 | fi
|
---|
4947 |
|
---|
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
|
---|
4949 | $as_echo_n "checking for library containing inet_aton... " >&6; }
|
---|
4950 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4951 | $as_echo_n "(cached) " >&6
|
---|
4952 | else
|
---|
4953 | ac_func_search_save_LIBS=$LIBS
|
---|
4954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4955 | /* end confdefs.h. */
|
---|
4956 |
|
---|
4957 | /* Override any GCC internal prototype to avoid an error.
|
---|
4958 | Use char because int might match the return type of a GCC
|
---|
4959 | builtin and then its argument prototype would still apply. */
|
---|
4960 | #ifdef __cplusplus
|
---|
4961 | extern "C"
|
---|
4962 | #endif
|
---|
4963 | char inet_aton ();
|
---|
4964 | int
|
---|
4965 | main ()
|
---|
4966 | {
|
---|
4967 | return inet_aton ();
|
---|
4968 | ;
|
---|
4969 | return 0;
|
---|
4970 | }
|
---|
4971 | _ACEOF
|
---|
4972 | for ac_lib in '' resolv; do
|
---|
4973 | if test -z "$ac_lib"; then
|
---|
4974 | ac_res="none required"
|
---|
4975 | else
|
---|
4976 | ac_res=-l$ac_lib
|
---|
4977 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4978 | fi
|
---|
4979 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4980 | ac_cv_search_inet_aton=$ac_res
|
---|
4981 | fi
|
---|
4982 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4983 | conftest$ac_exeext
|
---|
4984 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4985 | break
|
---|
4986 | fi
|
---|
4987 | done
|
---|
4988 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4989 |
|
---|
4990 | else
|
---|
4991 | ac_cv_search_inet_aton=no
|
---|
4992 | fi
|
---|
4993 | rm conftest.$ac_ext
|
---|
4994 | LIBS=$ac_func_search_save_LIBS
|
---|
4995 | fi
|
---|
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
|
---|
4997 | $as_echo "$ac_cv_search_inet_aton" >&6; }
|
---|
4998 | ac_res=$ac_cv_search_inet_aton
|
---|
4999 | if test "$ac_res" != no; then :
|
---|
5000 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5001 |
|
---|
5002 | fi
|
---|
5003 |
|
---|
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
|
---|
5005 | $as_echo_n "checking for library containing clock_gettime... " >&6; }
|
---|
5006 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5007 | $as_echo_n "(cached) " >&6
|
---|
5008 | else
|
---|
5009 | ac_func_search_save_LIBS=$LIBS
|
---|
5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5011 | /* end confdefs.h. */
|
---|
5012 |
|
---|
5013 | /* Override any GCC internal prototype to avoid an error.
|
---|
5014 | Use char because int might match the return type of a GCC
|
---|
5015 | builtin and then its argument prototype would still apply. */
|
---|
5016 | #ifdef __cplusplus
|
---|
5017 | extern "C"
|
---|
5018 | #endif
|
---|
5019 | char clock_gettime ();
|
---|
5020 | int
|
---|
5021 | main ()
|
---|
5022 | {
|
---|
5023 | return clock_gettime ();
|
---|
5024 | ;
|
---|
5025 | return 0;
|
---|
5026 | }
|
---|
5027 | _ACEOF
|
---|
5028 | for ac_lib in '' rt; do
|
---|
5029 | if test -z "$ac_lib"; then
|
---|
5030 | ac_res="none required"
|
---|
5031 | else
|
---|
5032 | ac_res=-l$ac_lib
|
---|
5033 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5034 | fi
|
---|
5035 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5036 | ac_cv_search_clock_gettime=$ac_res
|
---|
5037 | fi
|
---|
5038 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5039 | conftest$ac_exeext
|
---|
5040 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5041 | break
|
---|
5042 | fi
|
---|
5043 | done
|
---|
5044 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5045 |
|
---|
5046 | else
|
---|
5047 | ac_cv_search_clock_gettime=no
|
---|
5048 | fi
|
---|
5049 | rm conftest.$ac_ext
|
---|
5050 | LIBS=$ac_func_search_save_LIBS
|
---|
5051 | fi
|
---|
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
|
---|
5053 | $as_echo "$ac_cv_search_clock_gettime" >&6; }
|
---|
5054 | ac_res=$ac_cv_search_clock_gettime
|
---|
5055 | if test "$ac_res" != no; then :
|
---|
5056 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5057 |
|
---|
5058 | fi
|
---|
5059 |
|
---|
5060 |
|
---|
5061 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
|
---|
5062 | if test "x$ac_cv_header_sys_select_h" = xyes; then :
|
---|
5063 | $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
|
---|
5064 |
|
---|
5065 | fi
|
---|
5066 |
|
---|
5067 |
|
---|
5068 | ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
|
---|
5069 | if test "x$ac_cv_header_sys_modem_h" = xyes; then :
|
---|
5070 | $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
|
---|
5071 |
|
---|
5072 | fi
|
---|
5073 |
|
---|
5074 |
|
---|
5075 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
|
---|
5076 | if test "x$ac_cv_header_sys_filio_h" = xyes; then :
|
---|
5077 | $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
|
---|
5078 |
|
---|
5079 | fi
|
---|
5080 |
|
---|
5081 |
|
---|
5082 | ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
|
---|
5083 | if test "x$ac_cv_header_sys_strtio_h" = xyes; then :
|
---|
5084 | $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
|
---|
5085 |
|
---|
5086 | fi
|
---|
5087 |
|
---|
5088 |
|
---|
5089 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
---|
5090 | if test "x$ac_cv_header_locale_h" = xyes; then :
|
---|
5091 | $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
|
---|
5092 |
|
---|
5093 | fi
|
---|
5094 |
|
---|
5095 |
|
---|
5096 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
|
---|
5097 | if test "x$ac_cv_header_langinfo_h" = xyes; then :
|
---|
5098 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
|
---|
5099 |
|
---|
5100 | fi
|
---|
5101 |
|
---|
5102 |
|
---|
5103 | ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
|
---|
5104 | if test "x$ac_cv_header_sysexits_h" = xyes; then :
|
---|
5105 | $as_echo "#define HAVE_SYSEXITS_H 1" >>confdefs.h
|
---|
5106 |
|
---|
5107 | fi
|
---|
5108 |
|
---|
5109 |
|
---|
5110 |
|
---|
5111 | if test -n "$ac_tool_prefix"; then
|
---|
5112 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
5113 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5115 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5116 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
5117 | $as_echo_n "(cached) " >&6
|
---|
5118 | else
|
---|
5119 | if test -n "$STRIP"; then
|
---|
5120 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
5121 | else
|
---|
5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5123 | for as_dir in $PATH
|
---|
5124 | do
|
---|
5125 | IFS=$as_save_IFS
|
---|
5126 | test -z "$as_dir" && as_dir=.
|
---|
5127 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
5129 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
5130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5131 | break 2
|
---|
5132 | fi
|
---|
5133 | done
|
---|
5134 | done
|
---|
5135 | IFS=$as_save_IFS
|
---|
5136 |
|
---|
5137 | fi
|
---|
5138 | fi
|
---|
5139 | STRIP=$ac_cv_prog_STRIP
|
---|
5140 | if test -n "$STRIP"; then
|
---|
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
5142 | $as_echo "$STRIP" >&6; }
|
---|
5143 | else
|
---|
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5145 | $as_echo "no" >&6; }
|
---|
5146 | fi
|
---|
5147 |
|
---|
5148 |
|
---|
5149 | fi
|
---|
5150 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
5151 | ac_ct_STRIP=$STRIP
|
---|
5152 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5153 | set dummy strip; ac_word=$2
|
---|
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5155 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5156 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
5157 | $as_echo_n "(cached) " >&6
|
---|
5158 | else
|
---|
5159 | if test -n "$ac_ct_STRIP"; then
|
---|
5160 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5161 | else
|
---|
5162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5163 | for as_dir in $PATH
|
---|
5164 | do
|
---|
5165 | IFS=$as_save_IFS
|
---|
5166 | test -z "$as_dir" && as_dir=.
|
---|
5167 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
5169 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5171 | break 2
|
---|
5172 | fi
|
---|
5173 | done
|
---|
5174 | done
|
---|
5175 | IFS=$as_save_IFS
|
---|
5176 |
|
---|
5177 | fi
|
---|
5178 | fi
|
---|
5179 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5180 | if test -n "$ac_ct_STRIP"; then
|
---|
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
5182 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
5183 | else
|
---|
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5185 | $as_echo "no" >&6; }
|
---|
5186 | fi
|
---|
5187 |
|
---|
5188 | if test "x$ac_ct_STRIP" = x; then
|
---|
5189 | STRIP=":"
|
---|
5190 | else
|
---|
5191 | case $cross_compiling:$ac_tool_warned in
|
---|
5192 | yes:)
|
---|
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5195 | ac_tool_warned=yes ;;
|
---|
5196 | esac
|
---|
5197 | STRIP=$ac_ct_STRIP
|
---|
5198 | fi
|
---|
5199 | else
|
---|
5200 | STRIP="$ac_cv_prog_STRIP"
|
---|
5201 | fi
|
---|
5202 |
|
---|
5203 |
|
---|
5204 |
|
---|
5205 |
|
---|
5206 |
|
---|
5207 |
|
---|
5208 |
|
---|
5209 | rpath=""
|
---|
5210 |
|
---|
5211 | #
|
---|
5212 | # OpenSSL detection borrowed from stunnel
|
---|
5213 | #
|
---|
5214 | checkssldir() { :
|
---|
5215 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
5216 | ssldir="$1"
|
---|
5217 | return 0
|
---|
5218 | fi
|
---|
5219 | return 1
|
---|
5220 | }
|
---|
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
|
---|
5222 | $as_echo_n "checking for OpenSSL directory... " >&6; }
|
---|
5223 |
|
---|
5224 | # Check whether --with-openssl was given.
|
---|
5225 | if test "${with_openssl+set}" = set; then :
|
---|
5226 | withval=$with_openssl;
|
---|
5227 | checkssldir "$withval"
|
---|
5228 |
|
---|
5229 | else
|
---|
5230 |
|
---|
5231 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
5232 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
5233 | checkssldir $dir && break 2
|
---|
5234 | done
|
---|
5235 | done
|
---|
5236 |
|
---|
5237 |
|
---|
5238 | fi
|
---|
5239 |
|
---|
5240 | if test -z "$ssldir"; then
|
---|
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
|
---|
5242 | $as_echo "Not found" >&6; }
|
---|
5243 | echo
|
---|
5244 | echo "ERROR: Could not find OpenSSL headers/libraries."
|
---|
5245 | if test -f /etc/debian_version; then
|
---|
5246 | echo "Probably you need to install the libssl-dev package."
|
---|
5247 | elif test -f /etc/redhat-release; then
|
---|
5248 | echo "Probably you need to install the openssl-devel package."
|
---|
5249 | fi
|
---|
5250 | echo "To specify a path manually, use the --with-openssl option."
|
---|
5251 | echo
|
---|
5252 | exit 1
|
---|
5253 | fi
|
---|
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
|
---|
5255 | $as_echo "$ssldir" >&6; }
|
---|
5256 |
|
---|
5257 | cat >>confdefs.h <<_ACEOF
|
---|
5258 | #define ssldir "$ssldir"
|
---|
5259 | _ACEOF
|
---|
5260 |
|
---|
5261 |
|
---|
5262 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
5263 | # Check whether --enable-static-openssl was given.
|
---|
5264 | if test "${enable_static_openssl+set}" = set; then :
|
---|
5265 | enableval=$enable_static_openssl;
|
---|
5266 | LIBS="$LIBS $ssldir/lib/libcrypto.a"
|
---|
5267 |
|
---|
5268 | else
|
---|
5269 |
|
---|
5270 | LIBS="$LIBS -L$ssldir/lib -lcrypto"
|
---|
5271 | rpath="$rpath:$ssldir/lib"
|
---|
5272 |
|
---|
5273 | fi
|
---|
5274 |
|
---|
5275 | # xrandr
|
---|
5276 | if test -n "$PKG_CONFIG"; then
|
---|
5277 |
|
---|
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for xrandr" >&5
|
---|
5279 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for xrandr" >&2;}
|
---|
5280 | HAVE_XRANDR=0
|
---|
5281 |
|
---|
5282 | fi
|
---|
5283 | if test x"$HAVE_XRANDR" = "x1"; then
|
---|
5284 | CFLAGS="$CFLAGS $XRANDR_CFLAGS"
|
---|
5285 | LIBS="$LIBS $XRANDR_LIBS"
|
---|
5286 | $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
|
---|
5287 |
|
---|
5288 | fi
|
---|
5289 |
|
---|
5290 | # Check whether --enable-smartcard was given.
|
---|
5291 | if test "${enable_smartcard+set}" = set; then :
|
---|
5292 | enableval=$enable_smartcard;
|
---|
5293 | case "$OSTYPE" in
|
---|
5294 | darwin*)
|
---|
5295 | ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
|
---|
5296 | if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes; then :
|
---|
5297 | WITH_SCARD=1
|
---|
5298 | else
|
---|
5299 | WITH_SCARD=0
|
---|
5300 | fi
|
---|
5301 |
|
---|
5302 |
|
---|
5303 | PCSCLITE_CFLAGS=""
|
---|
5304 | PCSCLITE_LIBS="-framework PCSC"
|
---|
5305 | ;;
|
---|
5306 | *)
|
---|
5307 | if test -n "$PKG_CONFIG"; then
|
---|
5308 |
|
---|
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for libpcsclite" >&5
|
---|
5310 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for libpcsclite" >&2;}
|
---|
5311 | WITH_SCARD=0
|
---|
5312 |
|
---|
5313 | fi
|
---|
5314 | ;;
|
---|
5315 | esac
|
---|
5316 |
|
---|
5317 | if test x"$WITH_SCARD" = "x1"; then
|
---|
5318 | SCARDOBJ="scard.o"
|
---|
5319 | CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
|
---|
5320 | LIBS="$LIBS $PCSCLITE_LIBS"
|
---|
5321 | $as_echo "#define WITH_SCARD 1" >>confdefs.h
|
---|
5322 |
|
---|
5323 | fi
|
---|
5324 |
|
---|
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
|
---|
5326 | $as_echo_n "checking for old version of PCSC... " >&6; }
|
---|
5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5328 | /* end confdefs.h. */
|
---|
5329 |
|
---|
5330 | #include <stdlib.h>
|
---|
5331 | #ifdef __APPLE__
|
---|
5332 | #include <PCSC/wintypes.h>
|
---|
5333 | #include <PCSC/winscard.h>
|
---|
5334 | #else
|
---|
5335 | #include <winscard.h>
|
---|
5336 | #endif
|
---|
5337 |
|
---|
5338 | int
|
---|
5339 | main ()
|
---|
5340 | {
|
---|
5341 | SCardControl(NULL, NULL, 0, NULL, NULL);
|
---|
5342 | ;
|
---|
5343 | return 0;
|
---|
5344 | }
|
---|
5345 | _ACEOF
|
---|
5346 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5348 | $as_echo "yes" >&6; }
|
---|
5349 | $as_echo "#define WITH_PCSC120 1" >>confdefs.h
|
---|
5350 |
|
---|
5351 | else
|
---|
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5353 | $as_echo "no" >&6; }
|
---|
5354 |
|
---|
5355 | fi
|
---|
5356 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5357 | conftest$ac_exeext conftest.$ac_ext
|
---|
5358 |
|
---|
5359 | fi
|
---|
5360 |
|
---|
5361 |
|
---|
5362 |
|
---|
5363 |
|
---|
5364 | #
|
---|
5365 | # Alignment
|
---|
5366 | #
|
---|
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
|
---|
5368 | $as_echo_n "checking if architecture needs alignment... " >&6; }
|
---|
5369 | if test "$cross_compiling" = yes; then :
|
---|
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
|
---|
5371 | $as_echo "assuming yes" >&6; }
|
---|
5372 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5373 |
|
---|
5374 | else
|
---|
5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5376 | /* end confdefs.h. */
|
---|
5377 |
|
---|
5378 | #include <stdlib.h>
|
---|
5379 | #include <signal.h>
|
---|
5380 | int main(int argc, char **argv)
|
---|
5381 | {
|
---|
5382 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
5383 | signal(SIGBUS, exit);
|
---|
5384 | signal(SIGABRT, exit);
|
---|
5385 | signal(SIGSEGV, exit);
|
---|
5386 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
5387 | return 1;
|
---|
5388 | }
|
---|
5389 | return 0;
|
---|
5390 | }
|
---|
5391 | _ACEOF
|
---|
5392 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5394 | $as_echo "no" >&6; }
|
---|
5395 | else
|
---|
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5397 | $as_echo "yes" >&6; }
|
---|
5398 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5399 |
|
---|
5400 | fi
|
---|
5401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5402 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5403 | fi
|
---|
5404 |
|
---|
5405 |
|
---|
5406 | #
|
---|
5407 | # linux/compiler.h
|
---|
5408 | #
|
---|
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
|
---|
5410 | $as_echo_n "checking if linux/compiler.h is required... " >&6; }
|
---|
5411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5412 | /* end confdefs.h. */
|
---|
5413 |
|
---|
5414 | #include <linux/compiler.h>
|
---|
5415 |
|
---|
5416 | int
|
---|
5417 | main ()
|
---|
5418 | {
|
---|
5419 |
|
---|
5420 | ;
|
---|
5421 | return 0;
|
---|
5422 | }
|
---|
5423 | _ACEOF
|
---|
5424 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5426 | $as_echo "yes" >&6; }
|
---|
5427 | $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
|
---|
5428 |
|
---|
5429 | else
|
---|
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5431 | $as_echo "no" >&6; }
|
---|
5432 | fi
|
---|
5433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5434 |
|
---|
5435 |
|
---|
5436 | #
|
---|
5437 | # EGD
|
---|
5438 | #
|
---|
5439 |
|
---|
5440 | # Check whether --with-egd-socket was given.
|
---|
5441 | if test "${with_egd_socket+set}" = set; then :
|
---|
5442 | withval=$with_egd_socket; EGD_SOCKET="$withval"
|
---|
5443 | else
|
---|
5444 | EGD_SOCKET="/var/run/egd-pool"
|
---|
5445 |
|
---|
5446 | fi
|
---|
5447 |
|
---|
5448 | cat >>confdefs.h <<_ACEOF
|
---|
5449 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
5450 | _ACEOF
|
---|
5451 |
|
---|
5452 |
|
---|
5453 |
|
---|
5454 | #
|
---|
5455 | # rdp2vnc
|
---|
5456 | #
|
---|
5457 | vncserverconfig=libvncserver-config
|
---|
5458 |
|
---|
5459 | # Check whether --with-libvncserver-config was given.
|
---|
5460 | if test "${with_libvncserver_config+set}" = set; then :
|
---|
5461 | withval=$with_libvncserver_config; vncserverconfig="$withval"
|
---|
5462 |
|
---|
5463 | fi
|
---|
5464 |
|
---|
5465 |
|
---|
5466 | # Check whether --with-libvncserver was given.
|
---|
5467 | if test "${with_libvncserver+set}" = set; then :
|
---|
5468 | withval=$with_libvncserver;
|
---|
5469 | VNCINC=`$vncserverconfig --cflags`
|
---|
5470 |
|
---|
5471 | LDVNC=`$vncserverconfig --libs`
|
---|
5472 |
|
---|
5473 | VNCLINK=`$vncserverconfig --link`
|
---|
5474 |
|
---|
5475 | RDP2VNCTARGET="rdp2vnc"
|
---|
5476 |
|
---|
5477 |
|
---|
5478 |
|
---|
5479 | fi
|
---|
5480 |
|
---|
5481 |
|
---|
5482 | #
|
---|
5483 | # sound
|
---|
5484 | #
|
---|
5485 |
|
---|
5486 | sound="yes"
|
---|
5487 |
|
---|
5488 | # Check whether --with-sound was given.
|
---|
5489 | if test "${with_sound+set}" = set; then :
|
---|
5490 | withval=$with_sound;
|
---|
5491 | sound="$withval"
|
---|
5492 |
|
---|
5493 | fi
|
---|
5494 |
|
---|
5495 |
|
---|
5496 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
|
---|
5497 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
|
---|
5498 | HAVE_OSS=1
|
---|
5499 | else
|
---|
5500 | HAVE_OSS=0
|
---|
5501 | fi
|
---|
5502 |
|
---|
5503 |
|
---|
5504 | ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
|
---|
5505 | if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
|
---|
5506 | HAVE_SGI=1
|
---|
5507 | else
|
---|
5508 | HAVE_SGI=0
|
---|
5509 | fi
|
---|
5510 |
|
---|
5511 |
|
---|
5512 | ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
|
---|
5513 | if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
|
---|
5514 | HAVE_SUN=1
|
---|
5515 | else
|
---|
5516 | HAVE_SUN=0
|
---|
5517 | fi
|
---|
5518 |
|
---|
5519 |
|
---|
5520 |
|
---|
5521 | # Check whether --enable-static-libsamplerate was given.
|
---|
5522 | if test "${enable_static_libsamplerate+set}" = set; then :
|
---|
5523 | enableval=$enable_static_libsamplerate; static_libsamplerate=yes
|
---|
5524 | else
|
---|
5525 | static_libsamplerate=no
|
---|
5526 | fi
|
---|
5527 |
|
---|
5528 |
|
---|
5529 | if test -n "$PKG_CONFIG"; then
|
---|
5530 |
|
---|
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for ao" >&5
|
---|
5532 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for ao" >&2;}
|
---|
5533 | HAVE_LIBAO=0
|
---|
5534 |
|
---|
5535 |
|
---|
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for alsa" >&5
|
---|
5537 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for alsa" >&2;}
|
---|
5538 | HAVE_ALSA=0
|
---|
5539 |
|
---|
5540 |
|
---|
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for samplerate" >&5
|
---|
5542 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for samplerate" >&2;}
|
---|
5543 | HAVE_LIBSAMPLERATE=0
|
---|
5544 |
|
---|
5545 | if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
|
---|
5546 | $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
|
---|
5547 |
|
---|
5548 | if test x"$static_libsamplerate" = "xyes"; then
|
---|
5549 | _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
|
---|
5550 | LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
|
---|
5551 | fi
|
---|
5552 | LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
|
---|
5553 | fi
|
---|
5554 | fi
|
---|
5555 |
|
---|
5556 | if test "$sound" != "no"; then
|
---|
5557 | SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
|
---|
5558 | CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
|
---|
5559 | LIBS="$LIBS $LIBSAMPLERATE_LIBS"
|
---|
5560 | $as_echo "#define WITH_RDPSND 1" >>confdefs.h
|
---|
5561 |
|
---|
5562 | fi
|
---|
5563 |
|
---|
5564 | case $sound in
|
---|
5565 | yes)
|
---|
5566 | if test x"$HAVE_OSS" = "x1"; then
|
---|
5567 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
5568 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
5569 |
|
---|
5570 | fi
|
---|
5571 |
|
---|
5572 | if test x"$HAVE_SGI" = "x1"; then
|
---|
5573 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
5574 | LIBS="$LIBS -laudio"
|
---|
5575 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
5576 |
|
---|
5577 | fi
|
---|
5578 |
|
---|
5579 | if test x"$HAVE_SUN" = "x1"; then
|
---|
5580 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
5581 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
5582 |
|
---|
5583 | fi
|
---|
5584 |
|
---|
5585 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
5586 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
5587 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
5588 | LIBS="$LIBS $ALSA_LIBS"
|
---|
5589 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
5590 |
|
---|
5591 | fi
|
---|
5592 |
|
---|
5593 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
5594 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
5595 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
5596 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
5597 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
5598 |
|
---|
5599 | fi
|
---|
5600 |
|
---|
5601 | ;;
|
---|
5602 |
|
---|
5603 | oss)
|
---|
5604 | if test x"$HAVE_OSS" = "x1"; then
|
---|
5605 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
5606 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
5607 |
|
---|
5608 | else
|
---|
5609 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5610 | fi
|
---|
5611 | ;;
|
---|
5612 |
|
---|
5613 | sgi)
|
---|
5614 | if test x"$HAVE_SGI" = "x1"; then
|
---|
5615 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
5616 | LIBS="$LIBS -laudio"
|
---|
5617 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
5618 |
|
---|
5619 | else
|
---|
5620 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5621 | fi
|
---|
5622 | ;;
|
---|
5623 |
|
---|
5624 | sun)
|
---|
5625 | if test x"$HAVE_SUN" = "x1"; then
|
---|
5626 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
5627 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
5628 |
|
---|
5629 | else
|
---|
5630 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5631 | fi
|
---|
5632 | ;;
|
---|
5633 |
|
---|
5634 | alsa)
|
---|
5635 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
5636 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
5637 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
5638 | LIBS="$LIBS $ALSA_LIBS"
|
---|
5639 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
5640 |
|
---|
5641 | else
|
---|
5642 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5643 | fi
|
---|
5644 | ;;
|
---|
5645 |
|
---|
5646 | libao)
|
---|
5647 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
5648 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
5649 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
5650 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
5651 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
5652 |
|
---|
5653 | else
|
---|
5654 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5655 | fi
|
---|
5656 | ;;
|
---|
5657 |
|
---|
5658 | no)
|
---|
5659 | ;;
|
---|
5660 |
|
---|
5661 | *)
|
---|
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
|
---|
5663 | $as_echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
|
---|
5665 | $as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
|
---|
5666 | ;;
|
---|
5667 | esac
|
---|
5668 |
|
---|
5669 |
|
---|
5670 |
|
---|
5671 | #
|
---|
5672 | # dirfd
|
---|
5673 | #
|
---|
5674 |
|
---|
5675 |
|
---|
5676 |
|
---|
5677 |
|
---|
5678 |
|
---|
5679 | ac_header_dirent=no
|
---|
5680 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5681 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5683 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5684 | if eval \${$as_ac_Header+:} false; then :
|
---|
5685 | $as_echo_n "(cached) " >&6
|
---|
5686 | else
|
---|
5687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5688 | /* end confdefs.h. */
|
---|
5689 | #include <sys/types.h>
|
---|
5690 | #include <$ac_hdr>
|
---|
5691 |
|
---|
5692 | int
|
---|
5693 | main ()
|
---|
5694 | {
|
---|
5695 | if ((DIR *) 0)
|
---|
5696 | return 0;
|
---|
5697 | ;
|
---|
5698 | return 0;
|
---|
5699 | }
|
---|
5700 | _ACEOF
|
---|
5701 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5702 | eval "$as_ac_Header=yes"
|
---|
5703 | else
|
---|
5704 | eval "$as_ac_Header=no"
|
---|
5705 | fi
|
---|
5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5707 | fi
|
---|
5708 | eval ac_res=\$$as_ac_Header
|
---|
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5710 | $as_echo "$ac_res" >&6; }
|
---|
5711 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5712 | cat >>confdefs.h <<_ACEOF
|
---|
5713 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5714 | _ACEOF
|
---|
5715 |
|
---|
5716 | ac_header_dirent=$ac_hdr; break
|
---|
5717 | fi
|
---|
5718 |
|
---|
5719 | done
|
---|
5720 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5721 | if test $ac_header_dirent = dirent.h; then
|
---|
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5723 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5724 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5725 | $as_echo_n "(cached) " >&6
|
---|
5726 | else
|
---|
5727 | ac_func_search_save_LIBS=$LIBS
|
---|
5728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5729 | /* end confdefs.h. */
|
---|
5730 |
|
---|
5731 | /* Override any GCC internal prototype to avoid an error.
|
---|
5732 | Use char because int might match the return type of a GCC
|
---|
5733 | builtin and then its argument prototype would still apply. */
|
---|
5734 | #ifdef __cplusplus
|
---|
5735 | extern "C"
|
---|
5736 | #endif
|
---|
5737 | char opendir ();
|
---|
5738 | int
|
---|
5739 | main ()
|
---|
5740 | {
|
---|
5741 | return opendir ();
|
---|
5742 | ;
|
---|
5743 | return 0;
|
---|
5744 | }
|
---|
5745 | _ACEOF
|
---|
5746 | for ac_lib in '' dir; do
|
---|
5747 | if test -z "$ac_lib"; then
|
---|
5748 | ac_res="none required"
|
---|
5749 | else
|
---|
5750 | ac_res=-l$ac_lib
|
---|
5751 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5752 | fi
|
---|
5753 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5754 | ac_cv_search_opendir=$ac_res
|
---|
5755 | fi
|
---|
5756 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5757 | conftest$ac_exeext
|
---|
5758 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5759 | break
|
---|
5760 | fi
|
---|
5761 | done
|
---|
5762 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5763 |
|
---|
5764 | else
|
---|
5765 | ac_cv_search_opendir=no
|
---|
5766 | fi
|
---|
5767 | rm conftest.$ac_ext
|
---|
5768 | LIBS=$ac_func_search_save_LIBS
|
---|
5769 | fi
|
---|
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5771 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5772 | ac_res=$ac_cv_search_opendir
|
---|
5773 | if test "$ac_res" != no; then :
|
---|
5774 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5775 |
|
---|
5776 | fi
|
---|
5777 |
|
---|
5778 | else
|
---|
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5780 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5781 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5782 | $as_echo_n "(cached) " >&6
|
---|
5783 | else
|
---|
5784 | ac_func_search_save_LIBS=$LIBS
|
---|
5785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5786 | /* end confdefs.h. */
|
---|
5787 |
|
---|
5788 | /* Override any GCC internal prototype to avoid an error.
|
---|
5789 | Use char because int might match the return type of a GCC
|
---|
5790 | builtin and then its argument prototype would still apply. */
|
---|
5791 | #ifdef __cplusplus
|
---|
5792 | extern "C"
|
---|
5793 | #endif
|
---|
5794 | char opendir ();
|
---|
5795 | int
|
---|
5796 | main ()
|
---|
5797 | {
|
---|
5798 | return opendir ();
|
---|
5799 | ;
|
---|
5800 | return 0;
|
---|
5801 | }
|
---|
5802 | _ACEOF
|
---|
5803 | for ac_lib in '' x; do
|
---|
5804 | if test -z "$ac_lib"; then
|
---|
5805 | ac_res="none required"
|
---|
5806 | else
|
---|
5807 | ac_res=-l$ac_lib
|
---|
5808 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5809 | fi
|
---|
5810 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5811 | ac_cv_search_opendir=$ac_res
|
---|
5812 | fi
|
---|
5813 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5814 | conftest$ac_exeext
|
---|
5815 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5816 | break
|
---|
5817 | fi
|
---|
5818 | done
|
---|
5819 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5820 |
|
---|
5821 | else
|
---|
5822 | ac_cv_search_opendir=no
|
---|
5823 | fi
|
---|
5824 | rm conftest.$ac_ext
|
---|
5825 | LIBS=$ac_func_search_save_LIBS
|
---|
5826 | fi
|
---|
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5828 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5829 | ac_res=$ac_cv_search_opendir
|
---|
5830 | if test "$ac_res" != no; then :
|
---|
5831 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5832 |
|
---|
5833 | fi
|
---|
5834 |
|
---|
5835 | fi
|
---|
5836 |
|
---|
5837 | dirfd_headers='
|
---|
5838 | #if HAVE_DIRENT_H
|
---|
5839 | # include <dirent.h>
|
---|
5840 | #else /* not HAVE_DIRENT_H */
|
---|
5841 | # define dirent direct
|
---|
5842 | # if HAVE_SYS_NDIR_H
|
---|
5843 | # include <sys/ndir.h>
|
---|
5844 | # endif /* HAVE_SYS_NDIR_H */
|
---|
5845 | # if HAVE_SYS_DIR_H
|
---|
5846 | # include <sys/dir.h>
|
---|
5847 | # endif /* HAVE_SYS_DIR_H */
|
---|
5848 | # if HAVE_NDIR_H
|
---|
5849 | # include <ndir.h>
|
---|
5850 | # endif /* HAVE_NDIR_H */
|
---|
5851 | #endif /* HAVE_DIRENT_H */
|
---|
5852 | '
|
---|
5853 | for ac_func in dirfd
|
---|
5854 | do :
|
---|
5855 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
5856 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
5857 | cat >>confdefs.h <<_ACEOF
|
---|
5858 | #define HAVE_DIRFD 1
|
---|
5859 | _ACEOF
|
---|
5860 |
|
---|
5861 | fi
|
---|
5862 | done
|
---|
5863 |
|
---|
5864 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
|
---|
5865 | "
|
---|
5866 | if test "x$ac_cv_have_decl_dirfd" = xyes; then :
|
---|
5867 | ac_have_decl=1
|
---|
5868 | else
|
---|
5869 | ac_have_decl=0
|
---|
5870 | fi
|
---|
5871 |
|
---|
5872 | cat >>confdefs.h <<_ACEOF
|
---|
5873 | #define HAVE_DECL_DIRFD $ac_have_decl
|
---|
5874 | _ACEOF
|
---|
5875 |
|
---|
5876 |
|
---|
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
|
---|
5878 | $as_echo_n "checking whether dirfd is a macro... " >&6; }
|
---|
5879 | if ${jm_cv_func_dirfd_macro+:} false; then :
|
---|
5880 | $as_echo_n "(cached) " >&6
|
---|
5881 | else
|
---|
5882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5883 | /* end confdefs.h. */
|
---|
5884 | $dirfd_headers
|
---|
5885 | #ifdef dirfd
|
---|
5886 | dirent_header_defines_dirfd
|
---|
5887 | #endif
|
---|
5888 | _ACEOF
|
---|
5889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5890 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
|
---|
5891 | jm_cv_func_dirfd_macro=yes
|
---|
5892 | else
|
---|
5893 | jm_cv_func_dirfd_macro=no
|
---|
5894 | fi
|
---|
5895 | rm -f conftest*
|
---|
5896 |
|
---|
5897 | fi
|
---|
5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
|
---|
5899 | $as_echo "$jm_cv_func_dirfd_macro" >&6; }
|
---|
5900 |
|
---|
5901 | # Use the replacement only if we have no function, macro,
|
---|
5902 | # or declaration with that name.
|
---|
5903 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
5904 | = no,no,no; then
|
---|
5905 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
5906 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
5907 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
|
---|
5908 |
|
---|
5909 | else
|
---|
5910 | case " $LIBOBJS " in
|
---|
5911 | *" dirfd.$ac_objext "* ) ;;
|
---|
5912 | *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
|
---|
5913 | ;;
|
---|
5914 | esac
|
---|
5915 |
|
---|
5916 | fi
|
---|
5917 |
|
---|
5918 |
|
---|
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
5920 | $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
|
---|
5921 | if ${gl_cv_sys_dir_fd_member_name+:} false; then :
|
---|
5922 | $as_echo_n "(cached) " >&6
|
---|
5923 | else
|
---|
5924 |
|
---|
5925 | dirfd_save_CFLAGS=$CFLAGS
|
---|
5926 | for ac_expr in d_fd dd_fd; do
|
---|
5927 |
|
---|
5928 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
5929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5930 | /* end confdefs.h. */
|
---|
5931 | $dirfd_headers
|
---|
5932 |
|
---|
5933 | int
|
---|
5934 | main ()
|
---|
5935 | {
|
---|
5936 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
5937 | ;
|
---|
5938 | return 0;
|
---|
5939 | }
|
---|
5940 | _ACEOF
|
---|
5941 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5942 | dir_fd_found=yes
|
---|
5943 |
|
---|
5944 | fi
|
---|
5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5946 | CFLAGS=$dirfd_save_CFLAGS
|
---|
5947 | test "$dir_fd_found" = yes && break
|
---|
5948 | done
|
---|
5949 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
5950 |
|
---|
5951 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
5952 |
|
---|
5953 |
|
---|
5954 | fi
|
---|
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
5956 | $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
|
---|
5957 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
5958 |
|
---|
5959 | cat >>confdefs.h <<_ACEOF
|
---|
5960 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
5961 | _ACEOF
|
---|
5962 |
|
---|
5963 | fi
|
---|
5964 |
|
---|
5965 | fi
|
---|
5966 |
|
---|
5967 |
|
---|
5968 | #
|
---|
5969 | # iconv
|
---|
5970 | #
|
---|
5971 |
|
---|
5972 |
|
---|
5973 |
|
---|
5974 |
|
---|
5975 |
|
---|
5976 |
|
---|
5977 |
|
---|
5978 | # Check whether --with-libiconv-prefix was given.
|
---|
5979 | if test "${with_libiconv_prefix+set}" = set; then :
|
---|
5980 | withval=$with_libiconv_prefix;
|
---|
5981 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
5982 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
5983 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
5984 | done
|
---|
5985 |
|
---|
5986 | fi
|
---|
5987 |
|
---|
5988 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
|
---|
5989 | if test "x$ac_cv_header_iconv_h" = xyes; then :
|
---|
5990 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
|
---|
5991 |
|
---|
5992 | fi
|
---|
5993 |
|
---|
5994 |
|
---|
5995 |
|
---|
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
---|
5997 | $as_echo_n "checking for iconv... " >&6; }
|
---|
5998 | if ${am_cv_func_iconv+:} false; then :
|
---|
5999 | $as_echo_n "(cached) " >&6
|
---|
6000 | else
|
---|
6001 |
|
---|
6002 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
6003 | am_cv_lib_iconv=no
|
---|
6004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6005 | /* end confdefs.h. */
|
---|
6006 | #include <stdlib.h>
|
---|
6007 | #include <iconv.h>
|
---|
6008 | int
|
---|
6009 | main ()
|
---|
6010 | {
|
---|
6011 | iconv_t cd = iconv_open("","");
|
---|
6012 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6013 | iconv_close(cd);
|
---|
6014 | ;
|
---|
6015 | return 0;
|
---|
6016 | }
|
---|
6017 | _ACEOF
|
---|
6018 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6019 | am_cv_func_iconv=yes
|
---|
6020 | fi
|
---|
6021 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6022 | conftest$ac_exeext conftest.$ac_ext
|
---|
6023 | if test "$am_cv_func_iconv" != yes; then
|
---|
6024 | am_save_LIBS="$LIBS"
|
---|
6025 | LIBS="$LIBS -liconv"
|
---|
6026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6027 | /* end confdefs.h. */
|
---|
6028 | #include <stdlib.h>
|
---|
6029 | #include <iconv.h>
|
---|
6030 | int
|
---|
6031 | main ()
|
---|
6032 | {
|
---|
6033 | iconv_t cd = iconv_open("","");
|
---|
6034 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6035 | iconv_close(cd);
|
---|
6036 | ;
|
---|
6037 | return 0;
|
---|
6038 | }
|
---|
6039 | _ACEOF
|
---|
6040 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6041 | am_cv_lib_iconv=yes
|
---|
6042 | am_cv_func_iconv=yes
|
---|
6043 | fi
|
---|
6044 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6045 | conftest$ac_exeext conftest.$ac_ext
|
---|
6046 | LIBS="$am_save_LIBS"
|
---|
6047 | fi
|
---|
6048 |
|
---|
6049 | fi
|
---|
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
---|
6051 | $as_echo "$am_cv_func_iconv" >&6; }
|
---|
6052 | if test "$am_cv_func_iconv" = yes; then
|
---|
6053 |
|
---|
6054 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h
|
---|
6055 |
|
---|
6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
---|
6057 | $as_echo_n "checking for iconv declaration... " >&6; }
|
---|
6058 | if ${am_cv_proto_iconv+:} false; then :
|
---|
6059 | $as_echo_n "(cached) " >&6
|
---|
6060 | else
|
---|
6061 |
|
---|
6062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6063 | /* end confdefs.h. */
|
---|
6064 |
|
---|
6065 | #include <stdlib.h>
|
---|
6066 | #include <iconv.h>
|
---|
6067 | extern
|
---|
6068 | #ifdef __cplusplus
|
---|
6069 | "C"
|
---|
6070 | #endif
|
---|
6071 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
6072 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
6073 | #else
|
---|
6074 | size_t iconv();
|
---|
6075 | #endif
|
---|
6076 |
|
---|
6077 | int
|
---|
6078 | main ()
|
---|
6079 | {
|
---|
6080 |
|
---|
6081 | ;
|
---|
6082 | return 0;
|
---|
6083 | }
|
---|
6084 | _ACEOF
|
---|
6085 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6086 | am_cv_proto_iconv_arg1=""
|
---|
6087 | else
|
---|
6088 | am_cv_proto_iconv_arg1="const"
|
---|
6089 | fi
|
---|
6090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6091 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
---|
6092 | fi
|
---|
6093 |
|
---|
6094 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
|
---|
6096 | }$am_cv_proto_iconv" >&5
|
---|
6097 | $as_echo "${ac_t:-
|
---|
6098 | }$am_cv_proto_iconv" >&6; }
|
---|
6099 |
|
---|
6100 | cat >>confdefs.h <<_ACEOF
|
---|
6101 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
6102 | _ACEOF
|
---|
6103 |
|
---|
6104 | fi
|
---|
6105 | LIBICONV=
|
---|
6106 | if test "$am_cv_lib_iconv" = yes; then
|
---|
6107 | LIBICONV="-liconv"
|
---|
6108 | fi
|
---|
6109 |
|
---|
6110 |
|
---|
6111 | LIBS="$LIBS $LIBICONV"
|
---|
6112 |
|
---|
6113 | #
|
---|
6114 | # socklen_t
|
---|
6115 | # from curl
|
---|
6116 |
|
---|
6117 |
|
---|
6118 |
|
---|
6119 |
|
---|
6120 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
|
---|
6121 | #include <sys/socket.h>
|
---|
6122 | "
|
---|
6123 | if test "x$ac_cv_type_socklen_t" = xyes; then :
|
---|
6124 |
|
---|
6125 | else
|
---|
6126 |
|
---|
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
|
---|
6128 | $as_echo_n "checking for socklen_t equivalent... " >&6; }
|
---|
6129 | if ${socklen_t_cv_equiv+:} false; then :
|
---|
6130 | $as_echo_n "(cached) " >&6
|
---|
6131 | else
|
---|
6132 |
|
---|
6133 | # Systems have either "struct sockaddr *" or
|
---|
6134 | # "void *" as the second argument to getpeername
|
---|
6135 | socklen_t_cv_equiv=
|
---|
6136 | for arg2 in "struct sockaddr" void; do
|
---|
6137 | for t in int size_t unsigned long "unsigned long"; do
|
---|
6138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6139 | /* end confdefs.h. */
|
---|
6140 |
|
---|
6141 | #include <sys/types.h>
|
---|
6142 | #include <sys/socket.h>
|
---|
6143 |
|
---|
6144 | int getpeername (int, $arg2 *, $t *);
|
---|
6145 |
|
---|
6146 | int
|
---|
6147 | main ()
|
---|
6148 | {
|
---|
6149 |
|
---|
6150 | $t len;
|
---|
6151 | getpeername(0,0,&len);
|
---|
6152 |
|
---|
6153 | ;
|
---|
6154 | return 0;
|
---|
6155 | }
|
---|
6156 | _ACEOF
|
---|
6157 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6158 |
|
---|
6159 | socklen_t_cv_equiv="$t"
|
---|
6160 | break
|
---|
6161 |
|
---|
6162 | fi
|
---|
6163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6164 | done
|
---|
6165 | done
|
---|
6166 |
|
---|
6167 | if test "x$socklen_t_cv_equiv" = x; then
|
---|
6168 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
|
---|
6169 | fi
|
---|
6170 |
|
---|
6171 | fi
|
---|
6172 |
|
---|
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_cv_equiv" >&5
|
---|
6174 | $as_echo "$socklen_t_cv_equiv" >&6; }
|
---|
6175 |
|
---|
6176 | cat >>confdefs.h <<_ACEOF
|
---|
6177 | #define socklen_t $socklen_t_cv_equiv
|
---|
6178 | _ACEOF
|
---|
6179 |
|
---|
6180 | fi
|
---|
6181 |
|
---|
6182 |
|
---|
6183 |
|
---|
6184 | #
|
---|
6185 | # statfs stuff
|
---|
6186 | #
|
---|
6187 | for ac_header in sys/vfs.h
|
---|
6188 | do :
|
---|
6189 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
|
---|
6190 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
|
---|
6191 | cat >>confdefs.h <<_ACEOF
|
---|
6192 | #define HAVE_SYS_VFS_H 1
|
---|
6193 | _ACEOF
|
---|
6194 |
|
---|
6195 | fi
|
---|
6196 |
|
---|
6197 | done
|
---|
6198 |
|
---|
6199 | for ac_header in sys/statvfs.h
|
---|
6200 | do :
|
---|
6201 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
|
---|
6202 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
|
---|
6203 | cat >>confdefs.h <<_ACEOF
|
---|
6204 | #define HAVE_SYS_STATVFS_H 1
|
---|
6205 | _ACEOF
|
---|
6206 |
|
---|
6207 | fi
|
---|
6208 |
|
---|
6209 | done
|
---|
6210 |
|
---|
6211 | for ac_header in sys/statfs.h
|
---|
6212 | do :
|
---|
6213 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
|
---|
6214 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
|
---|
6215 | cat >>confdefs.h <<_ACEOF
|
---|
6216 | #define HAVE_SYS_STATFS_H 1
|
---|
6217 | _ACEOF
|
---|
6218 |
|
---|
6219 | fi
|
---|
6220 |
|
---|
6221 | done
|
---|
6222 |
|
---|
6223 | for ac_header in sys/param.h
|
---|
6224 | do :
|
---|
6225 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
|
---|
6226 | if test "x$ac_cv_header_sys_param_h" = xyes; then :
|
---|
6227 | cat >>confdefs.h <<_ACEOF
|
---|
6228 | #define HAVE_SYS_PARAM_H 1
|
---|
6229 | _ACEOF
|
---|
6230 |
|
---|
6231 | fi
|
---|
6232 |
|
---|
6233 | done
|
---|
6234 |
|
---|
6235 |
|
---|
6236 | mount_includes="\
|
---|
6237 | $ac_includes_default
|
---|
6238 | #if HAVE_SYS_PARAM_H
|
---|
6239 | # include <sys/param.h>
|
---|
6240 | #endif
|
---|
6241 | "
|
---|
6242 |
|
---|
6243 | for ac_header in sys/mount.h
|
---|
6244 | do :
|
---|
6245 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
|
---|
6246 | "
|
---|
6247 | if test "x$ac_cv_header_sys_mount_h" = xyes; then :
|
---|
6248 | cat >>confdefs.h <<_ACEOF
|
---|
6249 | #define HAVE_SYS_MOUNT_H 1
|
---|
6250 | _ACEOF
|
---|
6251 |
|
---|
6252 | fi
|
---|
6253 |
|
---|
6254 | done
|
---|
6255 |
|
---|
6256 |
|
---|
6257 | #################################################
|
---|
6258 | # these tests are taken from the GNU fileutils package
|
---|
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
|
---|
6260 | $as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
6261 | space=no
|
---|
6262 |
|
---|
6263 | # Test for statvfs64.
|
---|
6264 | if test $space = no; then
|
---|
6265 | # SVR4
|
---|
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
|
---|
6267 | $as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
|
---|
6268 | if ${fu_cv_sys_stat_statvfs64+:} false; then :
|
---|
6269 | $as_echo_n "(cached) " >&6
|
---|
6270 | else
|
---|
6271 | if test "$cross_compiling" = yes; then :
|
---|
6272 | fu_cv_sys_stat_statvfs64=cross
|
---|
6273 | else
|
---|
6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6275 | /* end confdefs.h. */
|
---|
6276 |
|
---|
6277 | #if defined(HAVE_UNISTD_H)
|
---|
6278 | #include <unistd.h>
|
---|
6279 | #endif
|
---|
6280 | #include <sys/types.h>
|
---|
6281 | #include <sys/statvfs.h>
|
---|
6282 | main ()
|
---|
6283 | {
|
---|
6284 | struct statvfs64 fsd;
|
---|
6285 | exit (statvfs64 (".", &fsd));
|
---|
6286 | }
|
---|
6287 | _ACEOF
|
---|
6288 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6289 | fu_cv_sys_stat_statvfs64=yes
|
---|
6290 | else
|
---|
6291 | fu_cv_sys_stat_statvfs64=no
|
---|
6292 | fi
|
---|
6293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6294 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6295 | fi
|
---|
6296 |
|
---|
6297 | fi
|
---|
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
6299 | $as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
|
---|
6300 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
6301 | space=yes
|
---|
6302 |
|
---|
6303 | $as_echo "#define STAT_STATVFS64 1" >>confdefs.h
|
---|
6304 |
|
---|
6305 | fi
|
---|
6306 | fi
|
---|
6307 |
|
---|
6308 | # Perform only the link test since it seems there are no variants of the
|
---|
6309 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
6310 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
6311 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
6312 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
6313 | # is what it gets when this test fails.
|
---|
6314 | if test $space = no; then
|
---|
6315 | # SVR4
|
---|
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
|
---|
6317 | $as_echo_n "checking statvfs function (SVR4)... " >&6; }
|
---|
6318 | if ${fu_cv_sys_stat_statvfs+:} false; then :
|
---|
6319 | $as_echo_n "(cached) " >&6
|
---|
6320 | else
|
---|
6321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6322 | /* end confdefs.h. */
|
---|
6323 | #include <sys/types.h>
|
---|
6324 | #include <sys/statvfs.h>
|
---|
6325 | int
|
---|
6326 | main ()
|
---|
6327 | {
|
---|
6328 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
6329 | ;
|
---|
6330 | return 0;
|
---|
6331 | }
|
---|
6332 | _ACEOF
|
---|
6333 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6334 | fu_cv_sys_stat_statvfs=yes
|
---|
6335 | else
|
---|
6336 | fu_cv_sys_stat_statvfs=no
|
---|
6337 | fi
|
---|
6338 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6339 | conftest$ac_exeext conftest.$ac_ext
|
---|
6340 | fi
|
---|
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
6342 | $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
|
---|
6343 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
6344 | space=yes
|
---|
6345 |
|
---|
6346 | $as_echo "#define STAT_STATVFS 1" >>confdefs.h
|
---|
6347 |
|
---|
6348 | fi
|
---|
6349 | fi
|
---|
6350 |
|
---|
6351 | if test $space = no; then
|
---|
6352 | # DEC Alpha running OSF/1
|
---|
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
6354 | $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
|
---|
6355 | if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
|
---|
6356 | $as_echo_n "(cached) " >&6
|
---|
6357 | else
|
---|
6358 | if test "$cross_compiling" = yes; then :
|
---|
6359 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6360 | else
|
---|
6361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6362 | /* end confdefs.h. */
|
---|
6363 |
|
---|
6364 | #include <sys/param.h>
|
---|
6365 | #include <sys/types.h>
|
---|
6366 | #include <sys/mount.h>
|
---|
6367 | main ()
|
---|
6368 | {
|
---|
6369 | struct statfs fsd;
|
---|
6370 | fsd.f_fsize = 0;
|
---|
6371 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
6372 | }
|
---|
6373 | _ACEOF
|
---|
6374 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6375 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
6376 | else
|
---|
6377 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6378 | fi
|
---|
6379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6380 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6381 | fi
|
---|
6382 |
|
---|
6383 | fi
|
---|
6384 |
|
---|
6385 |
|
---|
6386 |
|
---|
6387 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
6388 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
6389 | space=yes
|
---|
6390 |
|
---|
6391 | $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
|
---|
6392 |
|
---|
6393 | fi
|
---|
6394 | fi
|
---|
6395 |
|
---|
6396 | if test $space = no; then
|
---|
6397 | # AIX
|
---|
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
6399 | $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
|
---|
6400 | if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
|
---|
6401 | $as_echo_n "(cached) " >&6
|
---|
6402 | else
|
---|
6403 | if test "$cross_compiling" = yes; then :
|
---|
6404 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6405 | else
|
---|
6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6407 | /* end confdefs.h. */
|
---|
6408 |
|
---|
6409 | #ifdef HAVE_SYS_PARAM_H
|
---|
6410 | #include <sys/param.h>
|
---|
6411 | #endif
|
---|
6412 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6413 | #include <sys/mount.h>
|
---|
6414 | #endif
|
---|
6415 | #ifdef HAVE_SYS_VFS_H
|
---|
6416 | #include <sys/vfs.h>
|
---|
6417 | #endif
|
---|
6418 | main ()
|
---|
6419 | {
|
---|
6420 | struct statfs fsd;
|
---|
6421 | fsd.f_bsize = 0;
|
---|
6422 | exit (statfs (".", &fsd));
|
---|
6423 | }
|
---|
6424 | _ACEOF
|
---|
6425 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6426 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
6427 | else
|
---|
6428 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6429 | fi
|
---|
6430 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6431 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6432 | fi
|
---|
6433 |
|
---|
6434 | fi
|
---|
6435 |
|
---|
6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
6437 | $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
|
---|
6438 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
6439 | space=yes
|
---|
6440 |
|
---|
6441 | $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
|
---|
6442 |
|
---|
6443 | fi
|
---|
6444 | fi
|
---|
6445 |
|
---|
6446 | if test $space = no; then
|
---|
6447 | # SVR3
|
---|
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
6449 | $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
|
---|
6450 | if ${fu_cv_sys_stat_statfs4+:} false; then :
|
---|
6451 | $as_echo_n "(cached) " >&6
|
---|
6452 | else
|
---|
6453 | if test "$cross_compiling" = yes; then :
|
---|
6454 | fu_cv_sys_stat_statfs4=no
|
---|
6455 | else
|
---|
6456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6457 | /* end confdefs.h. */
|
---|
6458 | #include <sys/types.h>
|
---|
6459 | #include <sys/statfs.h>
|
---|
6460 | main ()
|
---|
6461 | {
|
---|
6462 | struct statfs fsd;
|
---|
6463 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
6464 | }
|
---|
6465 | _ACEOF
|
---|
6466 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6467 | fu_cv_sys_stat_statfs4=yes
|
---|
6468 | else
|
---|
6469 | fu_cv_sys_stat_statfs4=no
|
---|
6470 | fi
|
---|
6471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6472 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6473 | fi
|
---|
6474 |
|
---|
6475 | fi
|
---|
6476 |
|
---|
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
6478 | $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
|
---|
6479 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
6480 | space=yes
|
---|
6481 |
|
---|
6482 | $as_echo "#define STAT_STATFS4 1" >>confdefs.h
|
---|
6483 |
|
---|
6484 | fi
|
---|
6485 | fi
|
---|
6486 |
|
---|
6487 | if test $space = no; then
|
---|
6488 | # 4.4BSD and NetBSD
|
---|
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
6490 | $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
|
---|
6491 | if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
|
---|
6492 | $as_echo_n "(cached) " >&6
|
---|
6493 | else
|
---|
6494 | if test "$cross_compiling" = yes; then :
|
---|
6495 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6496 | else
|
---|
6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6498 | /* end confdefs.h. */
|
---|
6499 | #include <sys/types.h>
|
---|
6500 | #ifdef HAVE_SYS_PARAM_H
|
---|
6501 | #include <sys/param.h>
|
---|
6502 | #endif
|
---|
6503 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6504 | #include <sys/mount.h>
|
---|
6505 | #endif
|
---|
6506 | main ()
|
---|
6507 | {
|
---|
6508 | struct statfs fsd;
|
---|
6509 | fsd.f_fsize = 0;
|
---|
6510 | exit (statfs (".", &fsd));
|
---|
6511 | }
|
---|
6512 | _ACEOF
|
---|
6513 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6514 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
6515 | else
|
---|
6516 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6517 | fi
|
---|
6518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6519 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6520 | fi
|
---|
6521 |
|
---|
6522 | fi
|
---|
6523 |
|
---|
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
6525 | $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
|
---|
6526 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
6527 | space=yes
|
---|
6528 |
|
---|
6529 | $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
|
---|
6530 |
|
---|
6531 | fi
|
---|
6532 | fi
|
---|
6533 |
|
---|
6534 | if test $space = no; then
|
---|
6535 | # Ultrix
|
---|
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
6537 | $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
|
---|
6538 | if ${fu_cv_sys_stat_fs_data+:} false; then :
|
---|
6539 | $as_echo_n "(cached) " >&6
|
---|
6540 | else
|
---|
6541 | if test "$cross_compiling" = yes; then :
|
---|
6542 | fu_cv_sys_stat_fs_data=no
|
---|
6543 | else
|
---|
6544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6545 | /* end confdefs.h. */
|
---|
6546 | #include <sys/types.h>
|
---|
6547 | #ifdef HAVE_SYS_PARAM_H
|
---|
6548 | #include <sys/param.h>
|
---|
6549 | #endif
|
---|
6550 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6551 | #include <sys/mount.h>
|
---|
6552 | #endif
|
---|
6553 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
6554 | #include <sys/fs_types.h>
|
---|
6555 | #endif
|
---|
6556 | main ()
|
---|
6557 | {
|
---|
6558 | struct fs_data fsd;
|
---|
6559 | /* Ultrix's statfs returns 1 for success,
|
---|
6560 | 0 for not mounted, -1 for failure. */
|
---|
6561 | exit (statfs (".", &fsd) != 1);
|
---|
6562 | }
|
---|
6563 | _ACEOF
|
---|
6564 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6565 | fu_cv_sys_stat_fs_data=yes
|
---|
6566 | else
|
---|
6567 | fu_cv_sys_stat_fs_data=no
|
---|
6568 | fi
|
---|
6569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6570 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6571 | fi
|
---|
6572 |
|
---|
6573 | fi
|
---|
6574 |
|
---|
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
6576 | $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
|
---|
6577 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
6578 | space=yes
|
---|
6579 |
|
---|
6580 | $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
|
---|
6581 |
|
---|
6582 | fi
|
---|
6583 | fi
|
---|
6584 |
|
---|
6585 | statxfs_includes="\
|
---|
6586 | $ac_includes_default
|
---|
6587 | #if HAVE_SYS_STATVFS_H
|
---|
6588 | # include <sys/statvfs.h>
|
---|
6589 | #endif
|
---|
6590 | #if HAVE_SYS_VFS_H
|
---|
6591 | # include <sys/vfs.h>
|
---|
6592 | #endif
|
---|
6593 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
6594 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
6595 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
6596 | # include <sys/param.h>
|
---|
6597 | # include <sys/mount.h>
|
---|
6598 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
6599 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
6600 | # include <netinet/in.h>
|
---|
6601 | # include <nfs/nfs_clnt.h>
|
---|
6602 | # include <nfs/vfs.h>
|
---|
6603 | # endif
|
---|
6604 | #endif
|
---|
6605 | "
|
---|
6606 |
|
---|
6607 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
|
---|
6608 | "
|
---|
6609 | if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
|
---|
6610 |
|
---|
6611 | cat >>confdefs.h <<_ACEOF
|
---|
6612 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
6613 | _ACEOF
|
---|
6614 |
|
---|
6615 |
|
---|
6616 | fi
|
---|
6617 |
|
---|
6618 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
|
---|
6619 | "
|
---|
6620 | if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes; then :
|
---|
6621 |
|
---|
6622 | cat >>confdefs.h <<_ACEOF
|
---|
6623 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
6624 | _ACEOF
|
---|
6625 |
|
---|
6626 |
|
---|
6627 | fi
|
---|
6628 |
|
---|
6629 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
|
---|
6630 | "
|
---|
6631 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
|
---|
6632 |
|
---|
6633 | cat >>confdefs.h <<_ACEOF
|
---|
6634 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
6635 | _ACEOF
|
---|
6636 |
|
---|
6637 |
|
---|
6638 | fi
|
---|
6639 |
|
---|
6640 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
|
---|
6641 | "
|
---|
6642 | if test "x$ac_cv_member_struct_statvfs_f_namelen" = xyes; then :
|
---|
6643 |
|
---|
6644 | cat >>confdefs.h <<_ACEOF
|
---|
6645 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
6646 | _ACEOF
|
---|
6647 |
|
---|
6648 |
|
---|
6649 | fi
|
---|
6650 |
|
---|
6651 |
|
---|
6652 | #
|
---|
6653 | # Large file support
|
---|
6654 | #
|
---|
6655 | # Check whether --enable-largefile was given.
|
---|
6656 | if test "${enable_largefile+set}" = set; then :
|
---|
6657 | enableval=$enable_largefile;
|
---|
6658 | fi
|
---|
6659 |
|
---|
6660 | if test "$enable_largefile" != no; then
|
---|
6661 |
|
---|
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
---|
6663 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
---|
6664 | if ${ac_cv_sys_largefile_CC+:} false; then :
|
---|
6665 | $as_echo_n "(cached) " >&6
|
---|
6666 | else
|
---|
6667 | ac_cv_sys_largefile_CC=no
|
---|
6668 | if test "$GCC" != yes; then
|
---|
6669 | ac_save_CC=$CC
|
---|
6670 | while :; do
|
---|
6671 | # IRIX 6.2 and later do not support large files by default,
|
---|
6672 | # so use the C compiler's -n32 option if that helps.
|
---|
6673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6674 | /* end confdefs.h. */
|
---|
6675 | #include <sys/types.h>
|
---|
6676 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6677 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6678 | since some C++ compilers masquerading as C compilers
|
---|
6679 | incorrectly reject 9223372036854775807. */
|
---|
6680 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6681 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6682 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6683 | ? 1 : -1];
|
---|
6684 | int
|
---|
6685 | main ()
|
---|
6686 | {
|
---|
6687 |
|
---|
6688 | ;
|
---|
6689 | return 0;
|
---|
6690 | }
|
---|
6691 | _ACEOF
|
---|
6692 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6693 | break
|
---|
6694 | fi
|
---|
6695 | rm -f core conftest.err conftest.$ac_objext
|
---|
6696 | CC="$CC -n32"
|
---|
6697 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6698 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
6699 | fi
|
---|
6700 | rm -f core conftest.err conftest.$ac_objext
|
---|
6701 | break
|
---|
6702 | done
|
---|
6703 | CC=$ac_save_CC
|
---|
6704 | rm -f conftest.$ac_ext
|
---|
6705 | fi
|
---|
6706 | fi
|
---|
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
---|
6708 | $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
---|
6709 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
6710 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
6711 | fi
|
---|
6712 |
|
---|
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
6714 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
---|
6715 | if ${ac_cv_sys_file_offset_bits+:} false; then :
|
---|
6716 | $as_echo_n "(cached) " >&6
|
---|
6717 | else
|
---|
6718 | while :; do
|
---|
6719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6720 | /* end confdefs.h. */
|
---|
6721 | #include <sys/types.h>
|
---|
6722 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6723 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6724 | since some C++ compilers masquerading as C compilers
|
---|
6725 | incorrectly reject 9223372036854775807. */
|
---|
6726 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6727 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6728 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6729 | ? 1 : -1];
|
---|
6730 | int
|
---|
6731 | main ()
|
---|
6732 | {
|
---|
6733 |
|
---|
6734 | ;
|
---|
6735 | return 0;
|
---|
6736 | }
|
---|
6737 | _ACEOF
|
---|
6738 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6739 | ac_cv_sys_file_offset_bits=no; break
|
---|
6740 | fi
|
---|
6741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6743 | /* end confdefs.h. */
|
---|
6744 | #define _FILE_OFFSET_BITS 64
|
---|
6745 | #include <sys/types.h>
|
---|
6746 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6747 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6748 | since some C++ compilers masquerading as C compilers
|
---|
6749 | incorrectly reject 9223372036854775807. */
|
---|
6750 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6751 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6752 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6753 | ? 1 : -1];
|
---|
6754 | int
|
---|
6755 | main ()
|
---|
6756 | {
|
---|
6757 |
|
---|
6758 | ;
|
---|
6759 | return 0;
|
---|
6760 | }
|
---|
6761 | _ACEOF
|
---|
6762 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6763 | ac_cv_sys_file_offset_bits=64; break
|
---|
6764 | fi
|
---|
6765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6766 | ac_cv_sys_file_offset_bits=unknown
|
---|
6767 | break
|
---|
6768 | done
|
---|
6769 | fi
|
---|
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
6771 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
---|
6772 | case $ac_cv_sys_file_offset_bits in #(
|
---|
6773 | no | unknown) ;;
|
---|
6774 | *)
|
---|
6775 | cat >>confdefs.h <<_ACEOF
|
---|
6776 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
6777 | _ACEOF
|
---|
6778 | ;;
|
---|
6779 | esac
|
---|
6780 | rm -rf conftest*
|
---|
6781 | if test $ac_cv_sys_file_offset_bits = unknown; then
|
---|
6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
---|
6783 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
---|
6784 | if ${ac_cv_sys_large_files+:} false; then :
|
---|
6785 | $as_echo_n "(cached) " >&6
|
---|
6786 | else
|
---|
6787 | while :; do
|
---|
6788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6789 | /* end confdefs.h. */
|
---|
6790 | #include <sys/types.h>
|
---|
6791 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6792 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6793 | since some C++ compilers masquerading as C compilers
|
---|
6794 | incorrectly reject 9223372036854775807. */
|
---|
6795 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6796 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6797 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6798 | ? 1 : -1];
|
---|
6799 | int
|
---|
6800 | main ()
|
---|
6801 | {
|
---|
6802 |
|
---|
6803 | ;
|
---|
6804 | return 0;
|
---|
6805 | }
|
---|
6806 | _ACEOF
|
---|
6807 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6808 | ac_cv_sys_large_files=no; break
|
---|
6809 | fi
|
---|
6810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6812 | /* end confdefs.h. */
|
---|
6813 | #define _LARGE_FILES 1
|
---|
6814 | #include <sys/types.h>
|
---|
6815 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6816 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6817 | since some C++ compilers masquerading as C compilers
|
---|
6818 | incorrectly reject 9223372036854775807. */
|
---|
6819 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6820 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6821 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6822 | ? 1 : -1];
|
---|
6823 | int
|
---|
6824 | main ()
|
---|
6825 | {
|
---|
6826 |
|
---|
6827 | ;
|
---|
6828 | return 0;
|
---|
6829 | }
|
---|
6830 | _ACEOF
|
---|
6831 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6832 | ac_cv_sys_large_files=1; break
|
---|
6833 | fi
|
---|
6834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6835 | ac_cv_sys_large_files=unknown
|
---|
6836 | break
|
---|
6837 | done
|
---|
6838 | fi
|
---|
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
---|
6840 | $as_echo "$ac_cv_sys_large_files" >&6; }
|
---|
6841 | case $ac_cv_sys_large_files in #(
|
---|
6842 | no | unknown) ;;
|
---|
6843 | *)
|
---|
6844 | cat >>confdefs.h <<_ACEOF
|
---|
6845 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
6846 | _ACEOF
|
---|
6847 | ;;
|
---|
6848 | esac
|
---|
6849 | rm -rf conftest*
|
---|
6850 | fi
|
---|
6851 | fi
|
---|
6852 |
|
---|
6853 |
|
---|
6854 | #
|
---|
6855 | # mntent
|
---|
6856 | #
|
---|
6857 | ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
|
---|
6858 | if test "x$ac_cv_header_mntent_h" = xyes; then :
|
---|
6859 | $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
|
---|
6860 |
|
---|
6861 | fi
|
---|
6862 |
|
---|
6863 |
|
---|
6864 | for ac_func in setmntent
|
---|
6865 | do :
|
---|
6866 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
|
---|
6867 | if test "x$ac_cv_func_setmntent" = xyes; then :
|
---|
6868 | cat >>confdefs.h <<_ACEOF
|
---|
6869 | #define HAVE_SETMNTENT 1
|
---|
6870 | _ACEOF
|
---|
6871 |
|
---|
6872 | fi
|
---|
6873 | done
|
---|
6874 |
|
---|
6875 |
|
---|
6876 | #
|
---|
6877 | # IPv6
|
---|
6878 | #
|
---|
6879 |
|
---|
6880 | # Check whether --with-ipv6 was given.
|
---|
6881 | if test "${with_ipv6+set}" = set; then :
|
---|
6882 | withval=$with_ipv6;
|
---|
6883 | if test $withval != "no";
|
---|
6884 | then
|
---|
6885 | $as_echo "#define IPv6 1" >>confdefs.h
|
---|
6886 |
|
---|
6887 | fi
|
---|
6888 |
|
---|
6889 | fi
|
---|
6890 |
|
---|
6891 |
|
---|
6892 |
|
---|
6893 | #
|
---|
6894 | # debugging
|
---|
6895 | #
|
---|
6896 |
|
---|
6897 | # Check whether --with-debug was given.
|
---|
6898 | if test "${with_debug+set}" = set; then :
|
---|
6899 | withval=$with_debug;
|
---|
6900 | if test $withval != "no";
|
---|
6901 | then
|
---|
6902 | $as_echo "#define WITH_DEBUG 1" >>confdefs.h
|
---|
6903 |
|
---|
6904 | fi
|
---|
6905 |
|
---|
6906 | fi
|
---|
6907 |
|
---|
6908 |
|
---|
6909 |
|
---|
6910 | # Check whether --with-debug-kbd was given.
|
---|
6911 | if test "${with_debug_kbd+set}" = set; then :
|
---|
6912 | withval=$with_debug_kbd;
|
---|
6913 | if test $withval != "no";
|
---|
6914 | then
|
---|
6915 | $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
|
---|
6916 |
|
---|
6917 | fi
|
---|
6918 |
|
---|
6919 | fi
|
---|
6920 |
|
---|
6921 |
|
---|
6922 |
|
---|
6923 | # Check whether --with-debug-rdp5 was given.
|
---|
6924 | if test "${with_debug_rdp5+set}" = set; then :
|
---|
6925 | withval=$with_debug_rdp5;
|
---|
6926 | if test $withval != "no";
|
---|
6927 | then
|
---|
6928 | $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
|
---|
6929 |
|
---|
6930 | fi
|
---|
6931 |
|
---|
6932 | fi
|
---|
6933 |
|
---|
6934 |
|
---|
6935 |
|
---|
6936 | # Check whether --with-debug-clipboard was given.
|
---|
6937 | if test "${with_debug_clipboard+set}" = set; then :
|
---|
6938 | withval=$with_debug_clipboard;
|
---|
6939 | if test $withval != "no";
|
---|
6940 | then
|
---|
6941 | $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
|
---|
6942 |
|
---|
6943 | fi
|
---|
6944 |
|
---|
6945 | fi
|
---|
6946 |
|
---|
6947 |
|
---|
6948 |
|
---|
6949 | # Check whether --with-debug-sound was given.
|
---|
6950 | if test "${with_debug_sound+set}" = set; then :
|
---|
6951 | withval=$with_debug_sound;
|
---|
6952 | if test $withval != "no";
|
---|
6953 | then
|
---|
6954 | $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
|
---|
6955 |
|
---|
6956 | fi
|
---|
6957 |
|
---|
6958 | fi
|
---|
6959 |
|
---|
6960 |
|
---|
6961 |
|
---|
6962 | # Check whether --with-debug-channel was given.
|
---|
6963 | if test "${with_debug_channel+set}" = set; then :
|
---|
6964 | withval=$with_debug_channel;
|
---|
6965 | if test $withval != "no";
|
---|
6966 | then
|
---|
6967 | $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
|
---|
6968 |
|
---|
6969 | fi
|
---|
6970 |
|
---|
6971 | fi
|
---|
6972 |
|
---|
6973 |
|
---|
6974 |
|
---|
6975 | # Check whether --with-debug-seamless was given.
|
---|
6976 | if test "${with_debug_seamless+set}" = set; then :
|
---|
6977 | withval=$with_debug_seamless;
|
---|
6978 | if test $withval != "no";
|
---|
6979 | then
|
---|
6980 | $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
|
---|
6981 |
|
---|
6982 | fi
|
---|
6983 |
|
---|
6984 | fi
|
---|
6985 |
|
---|
6986 |
|
---|
6987 |
|
---|
6988 | # Check whether --with-debug-smartcard was given.
|
---|
6989 | if test "${with_debug_smartcard+set}" = set; then :
|
---|
6990 | withval=$with_debug_smartcard;
|
---|
6991 | if test $withval != "no";
|
---|
6992 | then
|
---|
6993 | if test x"$WITH_SCARD" = "x1"; then
|
---|
6994 | $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
|
---|
6995 |
|
---|
6996 | fi
|
---|
6997 | fi
|
---|
6998 |
|
---|
6999 | fi
|
---|
7000 |
|
---|
7001 |
|
---|
7002 | #
|
---|
7003 | # target-specific stuff
|
---|
7004 | #
|
---|
7005 | # strip leading colon from rpath
|
---|
7006 | rpath=`echo $rpath |sed 's/^://'`
|
---|
7007 | # Make sure we can run config.sub.
|
---|
7008 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
7009 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
7010 |
|
---|
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
7012 | $as_echo_n "checking build system type... " >&6; }
|
---|
7013 | if ${ac_cv_build+:} false; then :
|
---|
7014 | $as_echo_n "(cached) " >&6
|
---|
7015 | else
|
---|
7016 | ac_build_alias=$build_alias
|
---|
7017 | test "x$ac_build_alias" = x &&
|
---|
7018 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
7019 | test "x$ac_build_alias" = x &&
|
---|
7020 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
7021 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
7022 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
7023 |
|
---|
7024 | fi
|
---|
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
7026 | $as_echo "$ac_cv_build" >&6; }
|
---|
7027 | case $ac_cv_build in
|
---|
7028 | *-*-*) ;;
|
---|
7029 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
7030 | esac
|
---|
7031 | build=$ac_cv_build
|
---|
7032 | ac_save_IFS=$IFS; IFS='-'
|
---|
7033 | set x $ac_cv_build
|
---|
7034 | shift
|
---|
7035 | build_cpu=$1
|
---|
7036 | build_vendor=$2
|
---|
7037 | shift; shift
|
---|
7038 | # Remember, the first character of IFS is used to create $*,
|
---|
7039 | # except with old shells:
|
---|
7040 | build_os=$*
|
---|
7041 | IFS=$ac_save_IFS
|
---|
7042 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
7043 |
|
---|
7044 |
|
---|
7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
7046 | $as_echo_n "checking host system type... " >&6; }
|
---|
7047 | if ${ac_cv_host+:} false; then :
|
---|
7048 | $as_echo_n "(cached) " >&6
|
---|
7049 | else
|
---|
7050 | if test "x$host_alias" = x; then
|
---|
7051 | ac_cv_host=$ac_cv_build
|
---|
7052 | else
|
---|
7053 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
7054 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
7055 | fi
|
---|
7056 |
|
---|
7057 | fi
|
---|
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
7059 | $as_echo "$ac_cv_host" >&6; }
|
---|
7060 | case $ac_cv_host in
|
---|
7061 | *-*-*) ;;
|
---|
7062 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
7063 | esac
|
---|
7064 | host=$ac_cv_host
|
---|
7065 | ac_save_IFS=$IFS; IFS='-'
|
---|
7066 | set x $ac_cv_host
|
---|
7067 | shift
|
---|
7068 | host_cpu=$1
|
---|
7069 | host_vendor=$2
|
---|
7070 | shift; shift
|
---|
7071 | # Remember, the first character of IFS is used to create $*,
|
---|
7072 | # except with old shells:
|
---|
7073 | host_os=$*
|
---|
7074 | IFS=$ac_save_IFS
|
---|
7075 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
7076 |
|
---|
7077 |
|
---|
7078 | case "$host" in
|
---|
7079 | *-*-solaris*)
|
---|
7080 | LDFLAGS="$LDFLAGS -R$rpath"
|
---|
7081 | ;;
|
---|
7082 | *-dec-osf*)
|
---|
7083 | LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
|
---|
7084 | ;;
|
---|
7085 | *-*-hpux*)
|
---|
7086 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
7087 | ;;
|
---|
7088 | *-*-irix6.5*)
|
---|
7089 | LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
|
---|
7090 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
7091 | ;;
|
---|
7092 | esac
|
---|
7093 |
|
---|
7094 |
|
---|
7095 | ac_config_files="$ac_config_files Makefile"
|
---|
7096 |
|
---|
7097 | cat >confcache <<\_ACEOF
|
---|
7098 | # This file is a shell script that caches the results of configure
|
---|
7099 | # tests run on this system so they can be shared between configure
|
---|
7100 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7101 | # It is not useful on other systems. If it contains results you don't
|
---|
7102 | # want to keep, you may remove or edit it.
|
---|
7103 | #
|
---|
7104 | # config.status only pays attention to the cache file if you give it
|
---|
7105 | # the --recheck option to rerun configure.
|
---|
7106 | #
|
---|
7107 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7108 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7109 | # following values.
|
---|
7110 |
|
---|
7111 | _ACEOF
|
---|
7112 |
|
---|
7113 | # The following way of writing the cache mishandles newlines in values,
|
---|
7114 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7115 | # So, we kill variables containing newlines.
|
---|
7116 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7117 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7118 | (
|
---|
7119 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
7120 | eval ac_val=\$$ac_var
|
---|
7121 | case $ac_val in #(
|
---|
7122 | *${as_nl}*)
|
---|
7123 | case $ac_var in #(
|
---|
7124 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
7125 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
7126 | esac
|
---|
7127 | case $ac_var in #(
|
---|
7128 | _ | IFS | as_nl) ;; #(
|
---|
7129 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
7130 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
7131 | esac ;;
|
---|
7132 | esac
|
---|
7133 | done
|
---|
7134 |
|
---|
7135 | (set) 2>&1 |
|
---|
7136 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
7137 | *${as_nl}ac_space=\ *)
|
---|
7138 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
7139 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
7140 | sed -n \
|
---|
7141 | "s/'/'\\\\''/g;
|
---|
7142 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7143 | ;; #(
|
---|
7144 | *)
|
---|
7145 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7146 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
7147 | ;;
|
---|
7148 | esac |
|
---|
7149 | sort
|
---|
7150 | ) |
|
---|
7151 | sed '
|
---|
7152 | /^ac_cv_env_/b end
|
---|
7153 | t clear
|
---|
7154 | :clear
|
---|
7155 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7156 | t end
|
---|
7157 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7158 | :end' >>confcache
|
---|
7159 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
7160 | if test -w "$cache_file"; then
|
---|
7161 | if test "x$cache_file" != "x/dev/null"; then
|
---|
7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
7163 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
7164 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
7165 | cat confcache >"$cache_file"
|
---|
7166 | else
|
---|
7167 | case $cache_file in #(
|
---|
7168 | */* | ?:*)
|
---|
7169 | mv -f confcache "$cache_file"$$ &&
|
---|
7170 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
7171 | *)
|
---|
7172 | mv -f confcache "$cache_file" ;;
|
---|
7173 | esac
|
---|
7174 | fi
|
---|
7175 | fi
|
---|
7176 | else
|
---|
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
7178 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
7179 | fi
|
---|
7180 | fi
|
---|
7181 | rm -f confcache
|
---|
7182 |
|
---|
7183 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7184 | # Let make expand exec_prefix.
|
---|
7185 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7186 |
|
---|
7187 | # Transform confdefs.h into DEFS.
|
---|
7188 | # Protect against shell expansion while executing Makefile rules.
|
---|
7189 | # Protect against Makefile macro expansion.
|
---|
7190 | #
|
---|
7191 | # If the first sed substitution is executed (which looks for macros that
|
---|
7192 | # take arguments), then branch to the quote section. Otherwise,
|
---|
7193 | # look for a macro that doesn't take arguments.
|
---|
7194 | ac_script='
|
---|
7195 | :mline
|
---|
7196 | /\\$/{
|
---|
7197 | N
|
---|
7198 | s,\\\n,,
|
---|
7199 | b mline
|
---|
7200 | }
|
---|
7201 | t clear
|
---|
7202 | :clear
|
---|
7203 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7204 | t quote
|
---|
7205 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7206 | t quote
|
---|
7207 | b any
|
---|
7208 | :quote
|
---|
7209 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
7210 | s/\[/\\&/g
|
---|
7211 | s/\]/\\&/g
|
---|
7212 | s/\$/$$/g
|
---|
7213 | H
|
---|
7214 | :any
|
---|
7215 | ${
|
---|
7216 | g
|
---|
7217 | s/^\n//
|
---|
7218 | s/\n/ /g
|
---|
7219 | p
|
---|
7220 | }
|
---|
7221 | '
|
---|
7222 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
7223 |
|
---|
7224 |
|
---|
7225 | ac_libobjs=
|
---|
7226 | ac_ltlibobjs=
|
---|
7227 | U=
|
---|
7228 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7229 | # 1. Remove the extension, and $U if already installed.
|
---|
7230 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
7231 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
7232 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
7233 | # will be set to the directory where LIBOBJS objects are built.
|
---|
7234 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
7235 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
7236 | done
|
---|
7237 | LIBOBJS=$ac_libobjs
|
---|
7238 |
|
---|
7239 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7240 |
|
---|
7241 |
|
---|
7242 |
|
---|
7243 |
|
---|
7244 | : "${CONFIG_STATUS=./config.status}"
|
---|
7245 | ac_write_fail=0
|
---|
7246 | ac_clean_files_save=$ac_clean_files
|
---|
7247 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
7249 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7250 | as_write_fail=0
|
---|
7251 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
7252 | #! $SHELL
|
---|
7253 | # Generated by $as_me.
|
---|
7254 | # Run this file to recreate the current configuration.
|
---|
7255 | # Compiler output produced by configure, useful for debugging
|
---|
7256 | # configure, is in config.log if it exists.
|
---|
7257 |
|
---|
7258 | debug=false
|
---|
7259 | ac_cs_recheck=false
|
---|
7260 | ac_cs_silent=false
|
---|
7261 |
|
---|
7262 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7263 | export SHELL
|
---|
7264 | _ASEOF
|
---|
7265 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
7266 | ## -------------------- ##
|
---|
7267 | ## M4sh Initialization. ##
|
---|
7268 | ## -------------------- ##
|
---|
7269 |
|
---|
7270 | # Be more Bourne compatible
|
---|
7271 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7272 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
7273 | emulate sh
|
---|
7274 | NULLCMD=:
|
---|
7275 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
7276 | # is contrary to our usage. Disable this feature.
|
---|
7277 | alias -g '${1+"$@"}'='"$@"'
|
---|
7278 | setopt NO_GLOB_SUBST
|
---|
7279 | else
|
---|
7280 | case `(set -o) 2>/dev/null` in #(
|
---|
7281 | *posix*) :
|
---|
7282 | set -o posix ;; #(
|
---|
7283 | *) :
|
---|
7284 | ;;
|
---|
7285 | esac
|
---|
7286 | fi
|
---|
7287 |
|
---|
7288 |
|
---|
7289 | as_nl='
|
---|
7290 | '
|
---|
7291 | export as_nl
|
---|
7292 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
7293 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
7294 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7295 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7296 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
7297 | # but without wasting forks for bash or zsh.
|
---|
7298 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
7299 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7300 | as_echo='print -r --'
|
---|
7301 | as_echo_n='print -rn --'
|
---|
7302 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7303 | as_echo='printf %s\n'
|
---|
7304 | as_echo_n='printf %s'
|
---|
7305 | else
|
---|
7306 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
7307 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
7308 | as_echo_n='/usr/ucb/echo -n'
|
---|
7309 | else
|
---|
7310 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
7311 | as_echo_n_body='eval
|
---|
7312 | arg=$1;
|
---|
7313 | case $arg in #(
|
---|
7314 | *"$as_nl"*)
|
---|
7315 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
7316 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
7317 | esac;
|
---|
7318 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
7319 | '
|
---|
7320 | export as_echo_n_body
|
---|
7321 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
7322 | fi
|
---|
7323 | export as_echo_body
|
---|
7324 | as_echo='sh -c $as_echo_body as_echo'
|
---|
7325 | fi
|
---|
7326 |
|
---|
7327 | # The user is always right.
|
---|
7328 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7329 | PATH_SEPARATOR=:
|
---|
7330 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
7331 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
7332 | PATH_SEPARATOR=';'
|
---|
7333 | }
|
---|
7334 | fi
|
---|
7335 |
|
---|
7336 |
|
---|
7337 | # IFS
|
---|
7338 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
7339 | # there to prevent editors from complaining about space-tab.
|
---|
7340 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
7341 | # splitting by setting IFS to empty value.)
|
---|
7342 | IFS=" "" $as_nl"
|
---|
7343 |
|
---|
7344 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
7345 | as_myself=
|
---|
7346 | case $0 in #((
|
---|
7347 | *[\\/]* ) as_myself=$0 ;;
|
---|
7348 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7349 | for as_dir in $PATH
|
---|
7350 | do
|
---|
7351 | IFS=$as_save_IFS
|
---|
7352 | test -z "$as_dir" && as_dir=.
|
---|
7353 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7354 | done
|
---|
7355 | IFS=$as_save_IFS
|
---|
7356 |
|
---|
7357 | ;;
|
---|
7358 | esac
|
---|
7359 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7360 | # in which case we are not to be found in the path.
|
---|
7361 | if test "x$as_myself" = x; then
|
---|
7362 | as_myself=$0
|
---|
7363 | fi
|
---|
7364 | if test ! -f "$as_myself"; then
|
---|
7365 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
7366 | exit 1
|
---|
7367 | fi
|
---|
7368 |
|
---|
7369 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
7370 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
7371 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
7372 | # trigger a bug in pdksh 5.2.14.
|
---|
7373 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
7374 | do eval test x\${$as_var+set} = xset \
|
---|
7375 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
7376 | done
|
---|
7377 | PS1='$ '
|
---|
7378 | PS2='> '
|
---|
7379 | PS4='+ '
|
---|
7380 |
|
---|
7381 | # NLS nuisances.
|
---|
7382 | LC_ALL=C
|
---|
7383 | export LC_ALL
|
---|
7384 | LANGUAGE=C
|
---|
7385 | export LANGUAGE
|
---|
7386 |
|
---|
7387 | # CDPATH.
|
---|
7388 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
7389 |
|
---|
7390 |
|
---|
7391 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
7392 | # ----------------------------------------
|
---|
7393 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
7394 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
7395 | # script with STATUS, using 1 if that was 0.
|
---|
7396 | as_fn_error ()
|
---|
7397 | {
|
---|
7398 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
7399 | if test "$4"; then
|
---|
7400 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
7401 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
7402 | fi
|
---|
7403 | $as_echo "$as_me: error: $2" >&2
|
---|
7404 | as_fn_exit $as_status
|
---|
7405 | } # as_fn_error
|
---|
7406 |
|
---|
7407 |
|
---|
7408 | # as_fn_set_status STATUS
|
---|
7409 | # -----------------------
|
---|
7410 | # Set $? to STATUS, without forking.
|
---|
7411 | as_fn_set_status ()
|
---|
7412 | {
|
---|
7413 | return $1
|
---|
7414 | } # as_fn_set_status
|
---|
7415 |
|
---|
7416 | # as_fn_exit STATUS
|
---|
7417 | # -----------------
|
---|
7418 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
7419 | as_fn_exit ()
|
---|
7420 | {
|
---|
7421 | set +e
|
---|
7422 | as_fn_set_status $1
|
---|
7423 | exit $1
|
---|
7424 | } # as_fn_exit
|
---|
7425 |
|
---|
7426 | # as_fn_unset VAR
|
---|
7427 | # ---------------
|
---|
7428 | # Portably unset VAR.
|
---|
7429 | as_fn_unset ()
|
---|
7430 | {
|
---|
7431 | { eval $1=; unset $1;}
|
---|
7432 | }
|
---|
7433 | as_unset=as_fn_unset
|
---|
7434 | # as_fn_append VAR VALUE
|
---|
7435 | # ----------------------
|
---|
7436 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
7437 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
7438 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
7439 | # implementations.
|
---|
7440 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
7441 | eval 'as_fn_append ()
|
---|
7442 | {
|
---|
7443 | eval $1+=\$2
|
---|
7444 | }'
|
---|
7445 | else
|
---|
7446 | as_fn_append ()
|
---|
7447 | {
|
---|
7448 | eval $1=\$$1\$2
|
---|
7449 | }
|
---|
7450 | fi # as_fn_append
|
---|
7451 |
|
---|
7452 | # as_fn_arith ARG...
|
---|
7453 | # ------------------
|
---|
7454 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
7455 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
7456 | # must be portable across $(()) and expr.
|
---|
7457 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
7458 | eval 'as_fn_arith ()
|
---|
7459 | {
|
---|
7460 | as_val=$(( $* ))
|
---|
7461 | }'
|
---|
7462 | else
|
---|
7463 | as_fn_arith ()
|
---|
7464 | {
|
---|
7465 | as_val=`expr "$@" || test $? -eq 1`
|
---|
7466 | }
|
---|
7467 | fi # as_fn_arith
|
---|
7468 |
|
---|
7469 |
|
---|
7470 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7471 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7472 | as_expr=expr
|
---|
7473 | else
|
---|
7474 | as_expr=false
|
---|
7475 | fi
|
---|
7476 |
|
---|
7477 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7478 | as_basename=basename
|
---|
7479 | else
|
---|
7480 | as_basename=false
|
---|
7481 | fi
|
---|
7482 |
|
---|
7483 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7484 | as_dirname=dirname
|
---|
7485 | else
|
---|
7486 | as_dirname=false
|
---|
7487 | fi
|
---|
7488 |
|
---|
7489 | as_me=`$as_basename -- "$0" ||
|
---|
7490 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7491 | X"$0" : 'X\(//\)$' \| \
|
---|
7492 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7493 | $as_echo X/"$0" |
|
---|
7494 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7495 | s//\1/
|
---|
7496 | q
|
---|
7497 | }
|
---|
7498 | /^X\/\(\/\/\)$/{
|
---|
7499 | s//\1/
|
---|
7500 | q
|
---|
7501 | }
|
---|
7502 | /^X\/\(\/\).*/{
|
---|
7503 | s//\1/
|
---|
7504 | q
|
---|
7505 | }
|
---|
7506 | s/.*/./; q'`
|
---|
7507 |
|
---|
7508 | # Avoid depending upon Character Ranges.
|
---|
7509 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7510 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7511 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7512 | as_cr_digits='0123456789'
|
---|
7513 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7514 |
|
---|
7515 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7516 | case `echo -n x` in #(((((
|
---|
7517 | -n*)
|
---|
7518 | case `echo 'xy\c'` in
|
---|
7519 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7520 | xy) ECHO_C='\c';;
|
---|
7521 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7522 | ECHO_T=' ';;
|
---|
7523 | esac;;
|
---|
7524 | *)
|
---|
7525 | ECHO_N='-n';;
|
---|
7526 | esac
|
---|
7527 |
|
---|
7528 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7529 | if test -d conf$$.dir; then
|
---|
7530 | rm -f conf$$.dir/conf$$.file
|
---|
7531 | else
|
---|
7532 | rm -f conf$$.dir
|
---|
7533 | mkdir conf$$.dir 2>/dev/null
|
---|
7534 | fi
|
---|
7535 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7536 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7537 | as_ln_s='ln -s'
|
---|
7538 | # ... but there are two gotchas:
|
---|
7539 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7540 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7541 | # In both cases, we have to default to `cp -p'.
|
---|
7542 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7543 | as_ln_s='cp -p'
|
---|
7544 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7545 | as_ln_s=ln
|
---|
7546 | else
|
---|
7547 | as_ln_s='cp -p'
|
---|
7548 | fi
|
---|
7549 | else
|
---|
7550 | as_ln_s='cp -p'
|
---|
7551 | fi
|
---|
7552 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7553 | rmdir conf$$.dir 2>/dev/null
|
---|
7554 |
|
---|
7555 |
|
---|
7556 | # as_fn_mkdir_p
|
---|
7557 | # -------------
|
---|
7558 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7559 | as_fn_mkdir_p ()
|
---|
7560 | {
|
---|
7561 |
|
---|
7562 | case $as_dir in #(
|
---|
7563 | -*) as_dir=./$as_dir;;
|
---|
7564 | esac
|
---|
7565 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7566 | as_dirs=
|
---|
7567 | while :; do
|
---|
7568 | case $as_dir in #(
|
---|
7569 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7570 | *) as_qdir=$as_dir;;
|
---|
7571 | esac
|
---|
7572 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7573 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7574 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7575 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7576 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7577 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7578 | $as_echo X"$as_dir" |
|
---|
7579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7580 | s//\1/
|
---|
7581 | q
|
---|
7582 | }
|
---|
7583 | /^X\(\/\/\)[^/].*/{
|
---|
7584 | s//\1/
|
---|
7585 | q
|
---|
7586 | }
|
---|
7587 | /^X\(\/\/\)$/{
|
---|
7588 | s//\1/
|
---|
7589 | q
|
---|
7590 | }
|
---|
7591 | /^X\(\/\).*/{
|
---|
7592 | s//\1/
|
---|
7593 | q
|
---|
7594 | }
|
---|
7595 | s/.*/./; q'`
|
---|
7596 | test -d "$as_dir" && break
|
---|
7597 | done
|
---|
7598 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7599 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7600 |
|
---|
7601 |
|
---|
7602 | } # as_fn_mkdir_p
|
---|
7603 | if mkdir -p . 2>/dev/null; then
|
---|
7604 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7605 | else
|
---|
7606 | test -d ./-p && rmdir ./-p
|
---|
7607 | as_mkdir_p=false
|
---|
7608 | fi
|
---|
7609 |
|
---|
7610 | if test -x / >/dev/null 2>&1; then
|
---|
7611 | as_test_x='test -x'
|
---|
7612 | else
|
---|
7613 | if ls -dL / >/dev/null 2>&1; then
|
---|
7614 | as_ls_L_option=L
|
---|
7615 | else
|
---|
7616 | as_ls_L_option=
|
---|
7617 | fi
|
---|
7618 | as_test_x='
|
---|
7619 | eval sh -c '\''
|
---|
7620 | if test -d "$1"; then
|
---|
7621 | test -d "$1/.";
|
---|
7622 | else
|
---|
7623 | case $1 in #(
|
---|
7624 | -*)set "./$1";;
|
---|
7625 | esac;
|
---|
7626 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
7627 | ???[sx]*):;;*)false;;esac;fi
|
---|
7628 | '\'' sh
|
---|
7629 | '
|
---|
7630 | fi
|
---|
7631 | as_executable_p=$as_test_x
|
---|
7632 |
|
---|
7633 | # Sed expression to map a string onto a valid CPP name.
|
---|
7634 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7635 |
|
---|
7636 | # Sed expression to map a string onto a valid variable name.
|
---|
7637 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7638 |
|
---|
7639 |
|
---|
7640 | exec 6>&1
|
---|
7641 | ## ----------------------------------- ##
|
---|
7642 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7643 | ## ----------------------------------- ##
|
---|
7644 | _ASEOF
|
---|
7645 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7646 |
|
---|
7647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7648 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7649 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7650 | # values after options handling.
|
---|
7651 | ac_log="
|
---|
7652 | This file was extended by rdesktop $as_me 1.7.0, which was
|
---|
7653 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
7654 |
|
---|
7655 | CONFIG_FILES = $CONFIG_FILES
|
---|
7656 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7657 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7658 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7659 | $ $0 $@
|
---|
7660 |
|
---|
7661 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7662 | "
|
---|
7663 |
|
---|
7664 | _ACEOF
|
---|
7665 |
|
---|
7666 | case $ac_config_files in *"
|
---|
7667 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7668 | esac
|
---|
7669 |
|
---|
7670 |
|
---|
7671 |
|
---|
7672 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7673 | # Files that config.status was made for.
|
---|
7674 | config_files="$ac_config_files"
|
---|
7675 |
|
---|
7676 | _ACEOF
|
---|
7677 |
|
---|
7678 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7679 | ac_cs_usage="\
|
---|
7680 | \`$as_me' instantiates files and other configuration actions
|
---|
7681 | from templates according to the current configuration. Unless the files
|
---|
7682 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7683 |
|
---|
7684 | Usage: $0 [OPTION]... [TAG]...
|
---|
7685 |
|
---|
7686 | -h, --help print this help, then exit
|
---|
7687 | -V, --version print version number and configuration settings, then exit
|
---|
7688 | --config print configuration, then exit
|
---|
7689 | -q, --quiet, --silent
|
---|
7690 | do not print progress messages
|
---|
7691 | -d, --debug don't remove temporary files
|
---|
7692 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7693 | --file=FILE[:TEMPLATE]
|
---|
7694 | instantiate the configuration file FILE
|
---|
7695 |
|
---|
7696 | Configuration files:
|
---|
7697 | $config_files
|
---|
7698 |
|
---|
7699 | Report bugs to the package provider."
|
---|
7700 |
|
---|
7701 | _ACEOF
|
---|
7702 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7703 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7704 | ac_cs_version="\\
|
---|
7705 | rdesktop config.status 1.7.0
|
---|
7706 | configured by $0, generated by GNU Autoconf 2.68,
|
---|
7707 | with options \\"\$ac_cs_config\\"
|
---|
7708 |
|
---|
7709 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
7710 | This config.status script is free software; the Free Software Foundation
|
---|
7711 | gives unlimited permission to copy, distribute and modify it."
|
---|
7712 |
|
---|
7713 | ac_pwd='$ac_pwd'
|
---|
7714 | srcdir='$srcdir'
|
---|
7715 | INSTALL='$INSTALL'
|
---|
7716 | test -n "\$AWK" || AWK=awk
|
---|
7717 | _ACEOF
|
---|
7718 |
|
---|
7719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7720 | # The default lists apply if the user does not specify any file.
|
---|
7721 | ac_need_defaults=:
|
---|
7722 | while test $# != 0
|
---|
7723 | do
|
---|
7724 | case $1 in
|
---|
7725 | --*=?*)
|
---|
7726 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7727 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7728 | ac_shift=:
|
---|
7729 | ;;
|
---|
7730 | --*=)
|
---|
7731 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7732 | ac_optarg=
|
---|
7733 | ac_shift=:
|
---|
7734 | ;;
|
---|
7735 | *)
|
---|
7736 | ac_option=$1
|
---|
7737 | ac_optarg=$2
|
---|
7738 | ac_shift=shift
|
---|
7739 | ;;
|
---|
7740 | esac
|
---|
7741 |
|
---|
7742 | case $ac_option in
|
---|
7743 | # Handling of the options.
|
---|
7744 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7745 | ac_cs_recheck=: ;;
|
---|
7746 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7747 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7748 | --config | --confi | --conf | --con | --co | --c )
|
---|
7749 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7750 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7751 | debug=: ;;
|
---|
7752 | --file | --fil | --fi | --f )
|
---|
7753 | $ac_shift
|
---|
7754 | case $ac_optarg in
|
---|
7755 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7756 | '') as_fn_error $? "missing file argument" ;;
|
---|
7757 | esac
|
---|
7758 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7759 | ac_need_defaults=false;;
|
---|
7760 | --he | --h | --help | --hel | -h )
|
---|
7761 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7762 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7763 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7764 | ac_cs_silent=: ;;
|
---|
7765 |
|
---|
7766 | # This is an error.
|
---|
7767 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7768 | Try \`$0 --help' for more information." ;;
|
---|
7769 |
|
---|
7770 | *) as_fn_append ac_config_targets " $1"
|
---|
7771 | ac_need_defaults=false ;;
|
---|
7772 |
|
---|
7773 | esac
|
---|
7774 | shift
|
---|
7775 | done
|
---|
7776 |
|
---|
7777 | ac_configure_extra_args=
|
---|
7778 |
|
---|
7779 | if $ac_cs_silent; then
|
---|
7780 | exec 6>/dev/null
|
---|
7781 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7782 | fi
|
---|
7783 |
|
---|
7784 | _ACEOF
|
---|
7785 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7786 | if \$ac_cs_recheck; then
|
---|
7787 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7788 | shift
|
---|
7789 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7790 | CONFIG_SHELL='$SHELL'
|
---|
7791 | export CONFIG_SHELL
|
---|
7792 | exec "\$@"
|
---|
7793 | fi
|
---|
7794 |
|
---|
7795 | _ACEOF
|
---|
7796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7797 | exec 5>>config.log
|
---|
7798 | {
|
---|
7799 | echo
|
---|
7800 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7801 | ## Running $as_me. ##
|
---|
7802 | _ASBOX
|
---|
7803 | $as_echo "$ac_log"
|
---|
7804 | } >&5
|
---|
7805 |
|
---|
7806 | _ACEOF
|
---|
7807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7808 | _ACEOF
|
---|
7809 |
|
---|
7810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7811 |
|
---|
7812 | # Handling of arguments.
|
---|
7813 | for ac_config_target in $ac_config_targets
|
---|
7814 | do
|
---|
7815 | case $ac_config_target in
|
---|
7816 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7817 |
|
---|
7818 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
7819 | esac
|
---|
7820 | done
|
---|
7821 |
|
---|
7822 |
|
---|
7823 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7824 | # then the envvar interface is used. Set only those that are not.
|
---|
7825 | # We use the long form for the default assignment because of an extremely
|
---|
7826 | # bizarre bug on SunOS 4.1.3.
|
---|
7827 | if $ac_need_defaults; then
|
---|
7828 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7829 | fi
|
---|
7830 |
|
---|
7831 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7832 | # simply because there is no reason against having it here, and in addition,
|
---|
7833 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7834 | # Hook for its removal unless debugging.
|
---|
7835 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7836 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7837 | $debug ||
|
---|
7838 | {
|
---|
7839 | tmp= ac_tmp=
|
---|
7840 | trap 'exit_status=$?
|
---|
7841 | : "${ac_tmp:=$tmp}"
|
---|
7842 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
7843 | ' 0
|
---|
7844 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7845 | }
|
---|
7846 | # Create a (secure) tmp directory for tmp files.
|
---|
7847 |
|
---|
7848 | {
|
---|
7849 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7850 | test -d "$tmp"
|
---|
7851 | } ||
|
---|
7852 | {
|
---|
7853 | tmp=./conf$$-$RANDOM
|
---|
7854 | (umask 077 && mkdir "$tmp")
|
---|
7855 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7856 | ac_tmp=$tmp
|
---|
7857 |
|
---|
7858 | # Set up the scripts for CONFIG_FILES section.
|
---|
7859 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7860 | # This happens for instance with `./config.status config.h'.
|
---|
7861 | if test -n "$CONFIG_FILES"; then
|
---|
7862 |
|
---|
7863 |
|
---|
7864 | ac_cr=`echo X | tr X '\015'`
|
---|
7865 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7866 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7867 | # point, so we can use a bashism as a fallback.
|
---|
7868 | if test "x$ac_cr" = x; then
|
---|
7869 | eval ac_cr=\$\'\\r\'
|
---|
7870 | fi
|
---|
7871 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7872 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7873 | ac_cs_awk_cr='\\r'
|
---|
7874 | else
|
---|
7875 | ac_cs_awk_cr=$ac_cr
|
---|
7876 | fi
|
---|
7877 |
|
---|
7878 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
7879 | _ACEOF
|
---|
7880 |
|
---|
7881 |
|
---|
7882 | {
|
---|
7883 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7884 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7885 | echo "_ACEOF"
|
---|
7886 | } >conf$$subs.sh ||
|
---|
7887 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7888 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7889 | ac_delim='%!_!# '
|
---|
7890 | for ac_last_try in false false false false false :; do
|
---|
7891 | . ./conf$$subs.sh ||
|
---|
7892 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7893 |
|
---|
7894 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7895 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7896 | break
|
---|
7897 | elif $ac_last_try; then
|
---|
7898 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7899 | else
|
---|
7900 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7901 | fi
|
---|
7902 | done
|
---|
7903 | rm -f conf$$subs.sh
|
---|
7904 |
|
---|
7905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7906 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7907 | _ACEOF
|
---|
7908 | sed -n '
|
---|
7909 | h
|
---|
7910 | s/^/S["/; s/!.*/"]=/
|
---|
7911 | p
|
---|
7912 | g
|
---|
7913 | s/^[^!]*!//
|
---|
7914 | :repl
|
---|
7915 | t repl
|
---|
7916 | s/'"$ac_delim"'$//
|
---|
7917 | t delim
|
---|
7918 | :nl
|
---|
7919 | h
|
---|
7920 | s/\(.\{148\}\)..*/\1/
|
---|
7921 | t more1
|
---|
7922 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7923 | p
|
---|
7924 | n
|
---|
7925 | b repl
|
---|
7926 | :more1
|
---|
7927 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7928 | p
|
---|
7929 | g
|
---|
7930 | s/.\{148\}//
|
---|
7931 | t nl
|
---|
7932 | :delim
|
---|
7933 | h
|
---|
7934 | s/\(.\{148\}\)..*/\1/
|
---|
7935 | t more2
|
---|
7936 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7937 | p
|
---|
7938 | b
|
---|
7939 | :more2
|
---|
7940 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7941 | p
|
---|
7942 | g
|
---|
7943 | s/.\{148\}//
|
---|
7944 | t delim
|
---|
7945 | ' <conf$$subs.awk | sed '
|
---|
7946 | /^[^""]/{
|
---|
7947 | N
|
---|
7948 | s/\n//
|
---|
7949 | }
|
---|
7950 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7951 | rm -f conf$$subs.awk
|
---|
7952 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7953 | _ACAWK
|
---|
7954 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
7955 | for (key in S) S_is_set[key] = 1
|
---|
7956 | FS = ""
|
---|
7957 |
|
---|
7958 | }
|
---|
7959 | {
|
---|
7960 | line = $ 0
|
---|
7961 | nfields = split(line, field, "@")
|
---|
7962 | substed = 0
|
---|
7963 | len = length(field[1])
|
---|
7964 | for (i = 2; i < nfields; i++) {
|
---|
7965 | key = field[i]
|
---|
7966 | keylen = length(key)
|
---|
7967 | if (S_is_set[key]) {
|
---|
7968 | value = S[key]
|
---|
7969 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7970 | len += length(value) + length(field[++i])
|
---|
7971 | substed = 1
|
---|
7972 | } else
|
---|
7973 | len += 1 + keylen
|
---|
7974 | }
|
---|
7975 |
|
---|
7976 | print line
|
---|
7977 | }
|
---|
7978 |
|
---|
7979 | _ACAWK
|
---|
7980 | _ACEOF
|
---|
7981 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7982 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7983 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7984 | else
|
---|
7985 | cat
|
---|
7986 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
7987 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7988 | _ACEOF
|
---|
7989 |
|
---|
7990 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7991 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7992 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7993 | # (actually we leave an empty line to preserve line numbers).
|
---|
7994 | if test "x$srcdir" = x.; then
|
---|
7995 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7996 | h
|
---|
7997 | s///
|
---|
7998 | s/^/:/
|
---|
7999 | s/[ ]*$/:/
|
---|
8000 | s/:\$(srcdir):/:/g
|
---|
8001 | s/:\${srcdir}:/:/g
|
---|
8002 | s/:@srcdir@:/:/g
|
---|
8003 | s/^:*//
|
---|
8004 | s/:*$//
|
---|
8005 | x
|
---|
8006 | s/\(=[ ]*\).*/\1/
|
---|
8007 | G
|
---|
8008 | s/\n//
|
---|
8009 | s/^[^=]*=[ ]*$//
|
---|
8010 | }'
|
---|
8011 | fi
|
---|
8012 |
|
---|
8013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8014 | fi # test -n "$CONFIG_FILES"
|
---|
8015 |
|
---|
8016 |
|
---|
8017 | eval set X " :F $CONFIG_FILES "
|
---|
8018 | shift
|
---|
8019 | for ac_tag
|
---|
8020 | do
|
---|
8021 | case $ac_tag in
|
---|
8022 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
8023 | esac
|
---|
8024 | case $ac_mode$ac_tag in
|
---|
8025 | :[FHL]*:*);;
|
---|
8026 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
8027 | :[FH]-) ac_tag=-:-;;
|
---|
8028 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
8029 | esac
|
---|
8030 | ac_save_IFS=$IFS
|
---|
8031 | IFS=:
|
---|
8032 | set x $ac_tag
|
---|
8033 | IFS=$ac_save_IFS
|
---|
8034 | shift
|
---|
8035 | ac_file=$1
|
---|
8036 | shift
|
---|
8037 |
|
---|
8038 | case $ac_mode in
|
---|
8039 | :L) ac_source=$1;;
|
---|
8040 | :[FH])
|
---|
8041 | ac_file_inputs=
|
---|
8042 | for ac_f
|
---|
8043 | do
|
---|
8044 | case $ac_f in
|
---|
8045 | -) ac_f="$ac_tmp/stdin";;
|
---|
8046 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8047 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8048 | # because $ac_f cannot contain `:'.
|
---|
8049 | test -f "$ac_f" ||
|
---|
8050 | case $ac_f in
|
---|
8051 | [\\/$]*) false;;
|
---|
8052 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8053 | esac ||
|
---|
8054 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
8055 | esac
|
---|
8056 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
8057 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
8058 | done
|
---|
8059 |
|
---|
8060 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8061 | # use $as_me), people would be surprised to read:
|
---|
8062 | # /* config.h. Generated by config.status. */
|
---|
8063 | configure_input='Generated from '`
|
---|
8064 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
8065 | `' by configure.'
|
---|
8066 | if test x"$ac_file" != x-; then
|
---|
8067 | configure_input="$ac_file. $configure_input"
|
---|
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
8069 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
8070 | fi
|
---|
8071 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
8072 | case $configure_input in #(
|
---|
8073 | *\&* | *\|* | *\\* )
|
---|
8074 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
8075 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
8076 | *) ac_sed_conf_input=$configure_input;;
|
---|
8077 | esac
|
---|
8078 |
|
---|
8079 | case $ac_tag in
|
---|
8080 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
8081 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
8082 | esac
|
---|
8083 | ;;
|
---|
8084 | esac
|
---|
8085 |
|
---|
8086 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8087 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8088 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8089 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8090 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8091 | $as_echo X"$ac_file" |
|
---|
8092 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8093 | s//\1/
|
---|
8094 | q
|
---|
8095 | }
|
---|
8096 | /^X\(\/\/\)[^/].*/{
|
---|
8097 | s//\1/
|
---|
8098 | q
|
---|
8099 | }
|
---|
8100 | /^X\(\/\/\)$/{
|
---|
8101 | s//\1/
|
---|
8102 | q
|
---|
8103 | }
|
---|
8104 | /^X\(\/\).*/{
|
---|
8105 | s//\1/
|
---|
8106 | q
|
---|
8107 | }
|
---|
8108 | s/.*/./; q'`
|
---|
8109 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
8110 | ac_builddir=.
|
---|
8111 |
|
---|
8112 | case "$ac_dir" in
|
---|
8113 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8114 | *)
|
---|
8115 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
8116 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8117 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
8118 | case $ac_top_builddir_sub in
|
---|
8119 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8120 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8121 | esac ;;
|
---|
8122 | esac
|
---|
8123 | ac_abs_top_builddir=$ac_pwd
|
---|
8124 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8125 | # for backward compatibility:
|
---|
8126 | ac_top_builddir=$ac_top_build_prefix
|
---|
8127 |
|
---|
8128 | case $srcdir in
|
---|
8129 | .) # We are building in place.
|
---|
8130 | ac_srcdir=.
|
---|
8131 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8132 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8133 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8134 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8135 | ac_top_srcdir=$srcdir
|
---|
8136 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8137 | *) # Relative name.
|
---|
8138 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8139 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8140 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8141 | esac
|
---|
8142 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8143 |
|
---|
8144 |
|
---|
8145 | case $ac_mode in
|
---|
8146 | :F)
|
---|
8147 | #
|
---|
8148 | # CONFIG_FILE
|
---|
8149 | #
|
---|
8150 |
|
---|
8151 | case $INSTALL in
|
---|
8152 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8153 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
8154 | esac
|
---|
8155 | _ACEOF
|
---|
8156 |
|
---|
8157 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8158 | # If the template does not know about datarootdir, expand it.
|
---|
8159 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
8160 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
8161 | ac_sed_dataroot='
|
---|
8162 | /datarootdir/ {
|
---|
8163 | p
|
---|
8164 | q
|
---|
8165 | }
|
---|
8166 | /@datadir@/p
|
---|
8167 | /@docdir@/p
|
---|
8168 | /@infodir@/p
|
---|
8169 | /@localedir@/p
|
---|
8170 | /@mandir@/p'
|
---|
8171 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
8172 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8173 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8175 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8176 | _ACEOF
|
---|
8177 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8178 | ac_datarootdir_hack='
|
---|
8179 | s&@datadir@&$datadir&g
|
---|
8180 | s&@docdir@&$docdir&g
|
---|
8181 | s&@infodir@&$infodir&g
|
---|
8182 | s&@localedir@&$localedir&g
|
---|
8183 | s&@mandir@&$mandir&g
|
---|
8184 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8185 | esac
|
---|
8186 | _ACEOF
|
---|
8187 |
|
---|
8188 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8189 | # Shell code in configure.ac might set extrasub.
|
---|
8190 | # FIXME: do we really want to maintain this feature?
|
---|
8191 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8192 | ac_sed_extra="$ac_vpsub
|
---|
8193 | $extrasub
|
---|
8194 | _ACEOF
|
---|
8195 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8196 | :t
|
---|
8197 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8198 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
8199 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8200 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
8201 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8202 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8203 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8204 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8205 | s&@builddir@&$ac_builddir&;t t
|
---|
8206 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8207 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8208 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8209 | $ac_datarootdir_hack
|
---|
8210 | "
|
---|
8211 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
8212 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8213 |
|
---|
8214 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8215 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
8216 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
8217 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8219 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
8220 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8221 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
8222 |
|
---|
8223 | rm -f "$ac_tmp/stdin"
|
---|
8224 | case $ac_file in
|
---|
8225 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
8226 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
8227 | esac \
|
---|
8228 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8229 | ;;
|
---|
8230 |
|
---|
8231 |
|
---|
8232 |
|
---|
8233 | esac
|
---|
8234 |
|
---|
8235 | done # for ac_tag
|
---|
8236 |
|
---|
8237 |
|
---|
8238 | as_fn_exit 0
|
---|
8239 | _ACEOF
|
---|
8240 | ac_clean_files=$ac_clean_files_save
|
---|
8241 |
|
---|
8242 | test $ac_write_fail = 0 ||
|
---|
8243 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
8244 |
|
---|
8245 |
|
---|
8246 | # configure is writing to config.log, and then calls config.status.
|
---|
8247 | # config.status does its own redirection, appending to config.log.
|
---|
8248 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8249 | # by configure, so config.status won't be able to write to it; its
|
---|
8250 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8251 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8252 | # appended to by config.status. When coming back to configure, we
|
---|
8253 | # need to make the FD available again.
|
---|
8254 | if test "$no_create" != yes; then
|
---|
8255 | ac_cs_success=:
|
---|
8256 | ac_config_status_args=
|
---|
8257 | test "$silent" = yes &&
|
---|
8258 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8259 | exec 5>/dev/null
|
---|
8260 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8261 | exec 5>>config.log
|
---|
8262 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8263 | # would make configure fail if this is the last instruction.
|
---|
8264 | $ac_cs_success || as_fn_exit 1
|
---|
8265 | fi
|
---|
8266 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
8268 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
8269 | fi
|
---|
8270 |
|
---|
8271 |
|
---|