1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69 for rdesktop 1.8.4.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This configure script is free software; the Free Software Foundation
|
---|
10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
11 | ## -------------------- ##
|
---|
12 | ## M4sh Initialization. ##
|
---|
13 | ## -------------------- ##
|
---|
14 |
|
---|
15 | # Be more Bourne compatible
|
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
18 | emulate sh
|
---|
19 | NULLCMD=:
|
---|
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
21 | # is contrary to our usage. Disable this feature.
|
---|
22 | alias -g '${1+"$@"}'='"$@"'
|
---|
23 | setopt NO_GLOB_SUBST
|
---|
24 | else
|
---|
25 | case `(set -o) 2>/dev/null` in #(
|
---|
26 | *posix*) :
|
---|
27 | set -o posix ;; #(
|
---|
28 | *) :
|
---|
29 | ;;
|
---|
30 | esac
|
---|
31 | fi
|
---|
32 |
|
---|
33 |
|
---|
34 | as_nl='
|
---|
35 | '
|
---|
36 | export as_nl
|
---|
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
41 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
42 | # but without wasting forks for bash or zsh.
|
---|
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
45 | as_echo='print -r --'
|
---|
46 | as_echo_n='print -rn --'
|
---|
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
48 | as_echo='printf %s\n'
|
---|
49 | as_echo_n='printf %s'
|
---|
50 | else
|
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
53 | as_echo_n='/usr/ucb/echo -n'
|
---|
54 | else
|
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
56 | as_echo_n_body='eval
|
---|
57 | arg=$1;
|
---|
58 | case $arg in #(
|
---|
59 | *"$as_nl"*)
|
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
62 | esac;
|
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
64 | '
|
---|
65 | export as_echo_n_body
|
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
67 | fi
|
---|
68 | export as_echo_body
|
---|
69 | as_echo='sh -c $as_echo_body as_echo'
|
---|
70 | fi
|
---|
71 |
|
---|
72 | # The user is always right.
|
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
74 | PATH_SEPARATOR=:
|
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
77 | PATH_SEPARATOR=';'
|
---|
78 | }
|
---|
79 | fi
|
---|
80 |
|
---|
81 |
|
---|
82 | # IFS
|
---|
83 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
84 | # there to prevent editors from complaining about space-tab.
|
---|
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
86 | # splitting by setting IFS to empty value.)
|
---|
87 | IFS=" "" $as_nl"
|
---|
88 |
|
---|
89 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
90 | as_myself=
|
---|
91 | case $0 in #((
|
---|
92 | *[\\/]* ) as_myself=$0 ;;
|
---|
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
94 | for as_dir in $PATH
|
---|
95 | do
|
---|
96 | IFS=$as_save_IFS
|
---|
97 | test -z "$as_dir" && as_dir=.
|
---|
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
99 | done
|
---|
100 | IFS=$as_save_IFS
|
---|
101 |
|
---|
102 | ;;
|
---|
103 | esac
|
---|
104 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
105 | # in which case we are not to be found in the path.
|
---|
106 | if test "x$as_myself" = x; then
|
---|
107 | as_myself=$0
|
---|
108 | fi
|
---|
109 | if test ! -f "$as_myself"; then
|
---|
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
111 | exit 1
|
---|
112 | fi
|
---|
113 |
|
---|
114 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
116 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
117 | # trigger a bug in pdksh 5.2.14.
|
---|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
119 | do eval test x\${$as_var+set} = xset \
|
---|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
121 | done
|
---|
122 | PS1='$ '
|
---|
123 | PS2='> '
|
---|
124 | PS4='+ '
|
---|
125 |
|
---|
126 | # NLS nuisances.
|
---|
127 | LC_ALL=C
|
---|
128 | export LC_ALL
|
---|
129 | LANGUAGE=C
|
---|
130 | export LANGUAGE
|
---|
131 |
|
---|
132 | # CDPATH.
|
---|
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
134 |
|
---|
135 | # Use a proper internal environment variable to ensure we don't fall
|
---|
136 | # into an infinite loop, continuously re-executing ourselves.
|
---|
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
138 | _as_can_reexec=no; export _as_can_reexec;
|
---|
139 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
140 | # neutralization value for shells without unset; and this also
|
---|
141 | # works around shells that cannot unset nonexistent variables.
|
---|
142 | # Preserve -v and -x to the replacement shell.
|
---|
143 | BASH_ENV=/dev/null
|
---|
144 | ENV=/dev/null
|
---|
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
146 | case $- in # ((((
|
---|
147 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
148 | *v* ) as_opts=-v ;;
|
---|
149 | *x* ) as_opts=-x ;;
|
---|
150 | * ) as_opts= ;;
|
---|
151 | esac
|
---|
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
153 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
154 | # out after a failed `exec'.
|
---|
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
156 | as_fn_exit 255
|
---|
157 | fi
|
---|
158 | # We don't want this to propagate to other subprocesses.
|
---|
159 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
160 | if test "x$CONFIG_SHELL" = x; then
|
---|
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
162 | emulate sh
|
---|
163 | NULLCMD=:
|
---|
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
165 | # is contrary to our usage. Disable this feature.
|
---|
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
167 | setopt NO_GLOB_SUBST
|
---|
168 | else
|
---|
169 | case \`(set -o) 2>/dev/null\` in #(
|
---|
170 | *posix*) :
|
---|
171 | set -o posix ;; #(
|
---|
172 | *) :
|
---|
173 | ;;
|
---|
174 | esac
|
---|
175 | fi
|
---|
176 | "
|
---|
177 | as_required="as_fn_return () { (exit \$1); }
|
---|
178 | as_fn_success () { as_fn_return 0; }
|
---|
179 | as_fn_failure () { as_fn_return 1; }
|
---|
180 | as_fn_ret_success () { return 0; }
|
---|
181 | as_fn_ret_failure () { return 1; }
|
---|
182 |
|
---|
183 | exitcode=0
|
---|
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
189 |
|
---|
190 | else
|
---|
191 | exitcode=1; echo positional parameters were not saved.
|
---|
192 | fi
|
---|
193 | test x\$exitcode = x0 || exit 1
|
---|
194 | test -x / || exit 1"
|
---|
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
199 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
200 | if (eval "$as_required") 2>/dev/null; then :
|
---|
201 | as_have_required=yes
|
---|
202 | else
|
---|
203 | as_have_required=no
|
---|
204 | fi
|
---|
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
206 |
|
---|
207 | else
|
---|
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
209 | as_found=false
|
---|
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
211 | do
|
---|
212 | IFS=$as_save_IFS
|
---|
213 | test -z "$as_dir" && as_dir=.
|
---|
214 | as_found=:
|
---|
215 | case $as_dir in #(
|
---|
216 | /*)
|
---|
217 | for as_base in sh bash ksh sh5; do
|
---|
218 | # Try only shells that exist, to save several forks.
|
---|
219 | as_shell=$as_dir/$as_base
|
---|
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
222 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
224 | break 2
|
---|
225 | fi
|
---|
226 | fi
|
---|
227 | done;;
|
---|
228 | esac
|
---|
229 | as_found=false
|
---|
230 | done
|
---|
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
233 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
234 | fi; }
|
---|
235 | IFS=$as_save_IFS
|
---|
236 |
|
---|
237 |
|
---|
238 | if test "x$CONFIG_SHELL" != x; then :
|
---|
239 | export CONFIG_SHELL
|
---|
240 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
241 | # neutralization value for shells without unset; and this also
|
---|
242 | # works around shells that cannot unset nonexistent variables.
|
---|
243 | # Preserve -v and -x to the replacement shell.
|
---|
244 | BASH_ENV=/dev/null
|
---|
245 | ENV=/dev/null
|
---|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
247 | case $- in # ((((
|
---|
248 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
249 | *v* ) as_opts=-v ;;
|
---|
250 | *x* ) as_opts=-x ;;
|
---|
251 | * ) as_opts= ;;
|
---|
252 | esac
|
---|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
254 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
255 | # out after a failed `exec'.
|
---|
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
257 | exit 255
|
---|
258 | fi
|
---|
259 |
|
---|
260 | if test x$as_have_required = xno; then :
|
---|
261 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
262 | $as_echo "$0: the shells that I found on your system."
|
---|
263 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
266 | else
|
---|
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
---|
268 | $0: including any error possibly output before this
|
---|
269 | $0: message. Then install a modern shell, or manually run
|
---|
270 | $0: the script under such a shell if you do have one."
|
---|
271 | fi
|
---|
272 | exit 1
|
---|
273 | fi
|
---|
274 | fi
|
---|
275 | fi
|
---|
276 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
277 | export SHELL
|
---|
278 | # Unset more variables known to interfere with behavior of common tools.
|
---|
279 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
280 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
281 |
|
---|
282 | ## --------------------- ##
|
---|
283 | ## M4sh Shell Functions. ##
|
---|
284 | ## --------------------- ##
|
---|
285 | # as_fn_unset VAR
|
---|
286 | # ---------------
|
---|
287 | # Portably unset VAR.
|
---|
288 | as_fn_unset ()
|
---|
289 | {
|
---|
290 | { eval $1=; unset $1;}
|
---|
291 | }
|
---|
292 | as_unset=as_fn_unset
|
---|
293 |
|
---|
294 | # as_fn_set_status STATUS
|
---|
295 | # -----------------------
|
---|
296 | # Set $? to STATUS, without forking.
|
---|
297 | as_fn_set_status ()
|
---|
298 | {
|
---|
299 | return $1
|
---|
300 | } # as_fn_set_status
|
---|
301 |
|
---|
302 | # as_fn_exit STATUS
|
---|
303 | # -----------------
|
---|
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
305 | as_fn_exit ()
|
---|
306 | {
|
---|
307 | set +e
|
---|
308 | as_fn_set_status $1
|
---|
309 | exit $1
|
---|
310 | } # as_fn_exit
|
---|
311 |
|
---|
312 | # as_fn_mkdir_p
|
---|
313 | # -------------
|
---|
314 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
315 | as_fn_mkdir_p ()
|
---|
316 | {
|
---|
317 |
|
---|
318 | case $as_dir in #(
|
---|
319 | -*) as_dir=./$as_dir;;
|
---|
320 | esac
|
---|
321 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
322 | as_dirs=
|
---|
323 | while :; do
|
---|
324 | case $as_dir in #(
|
---|
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
326 | *) as_qdir=$as_dir;;
|
---|
327 | esac
|
---|
328 | as_dirs="'$as_qdir' $as_dirs"
|
---|
329 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
331 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
332 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
334 | $as_echo X"$as_dir" |
|
---|
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
336 | s//\1/
|
---|
337 | q
|
---|
338 | }
|
---|
339 | /^X\(\/\/\)[^/].*/{
|
---|
340 | s//\1/
|
---|
341 | q
|
---|
342 | }
|
---|
343 | /^X\(\/\/\)$/{
|
---|
344 | s//\1/
|
---|
345 | q
|
---|
346 | }
|
---|
347 | /^X\(\/\).*/{
|
---|
348 | s//\1/
|
---|
349 | q
|
---|
350 | }
|
---|
351 | s/.*/./; q'`
|
---|
352 | test -d "$as_dir" && break
|
---|
353 | done
|
---|
354 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
356 |
|
---|
357 |
|
---|
358 | } # as_fn_mkdir_p
|
---|
359 |
|
---|
360 | # as_fn_executable_p FILE
|
---|
361 | # -----------------------
|
---|
362 | # Test if FILE is an executable regular file.
|
---|
363 | as_fn_executable_p ()
|
---|
364 | {
|
---|
365 | test -f "$1" && test -x "$1"
|
---|
366 | } # as_fn_executable_p
|
---|
367 | # as_fn_append VAR VALUE
|
---|
368 | # ----------------------
|
---|
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
372 | # implementations.
|
---|
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
374 | eval 'as_fn_append ()
|
---|
375 | {
|
---|
376 | eval $1+=\$2
|
---|
377 | }'
|
---|
378 | else
|
---|
379 | as_fn_append ()
|
---|
380 | {
|
---|
381 | eval $1=\$$1\$2
|
---|
382 | }
|
---|
383 | fi # as_fn_append
|
---|
384 |
|
---|
385 | # as_fn_arith ARG...
|
---|
386 | # ------------------
|
---|
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
389 | # must be portable across $(()) and expr.
|
---|
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
391 | eval 'as_fn_arith ()
|
---|
392 | {
|
---|
393 | as_val=$(( $* ))
|
---|
394 | }'
|
---|
395 | else
|
---|
396 | as_fn_arith ()
|
---|
397 | {
|
---|
398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
399 | }
|
---|
400 | fi # as_fn_arith
|
---|
401 |
|
---|
402 |
|
---|
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
404 | # ----------------------------------------
|
---|
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
407 | # script with STATUS, using 1 if that was 0.
|
---|
408 | as_fn_error ()
|
---|
409 | {
|
---|
410 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
411 | if test "$4"; then
|
---|
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
414 | fi
|
---|
415 | $as_echo "$as_me: error: $2" >&2
|
---|
416 | as_fn_exit $as_status
|
---|
417 | } # as_fn_error
|
---|
418 |
|
---|
419 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
421 | as_expr=expr
|
---|
422 | else
|
---|
423 | as_expr=false
|
---|
424 | fi
|
---|
425 |
|
---|
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
427 | as_basename=basename
|
---|
428 | else
|
---|
429 | as_basename=false
|
---|
430 | fi
|
---|
431 |
|
---|
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
433 | as_dirname=dirname
|
---|
434 | else
|
---|
435 | as_dirname=false
|
---|
436 | fi
|
---|
437 |
|
---|
438 | as_me=`$as_basename -- "$0" ||
|
---|
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
440 | X"$0" : 'X\(//\)$' \| \
|
---|
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
442 | $as_echo X/"$0" |
|
---|
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
444 | s//\1/
|
---|
445 | q
|
---|
446 | }
|
---|
447 | /^X\/\(\/\/\)$/{
|
---|
448 | s//\1/
|
---|
449 | q
|
---|
450 | }
|
---|
451 | /^X\/\(\/\).*/{
|
---|
452 | s//\1/
|
---|
453 | q
|
---|
454 | }
|
---|
455 | s/.*/./; q'`
|
---|
456 |
|
---|
457 | # Avoid depending upon Character Ranges.
|
---|
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
461 | as_cr_digits='0123456789'
|
---|
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
463 |
|
---|
464 |
|
---|
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
470 | sed -n '
|
---|
471 | p
|
---|
472 | /[$]LINENO/=
|
---|
473 | ' <$as_myself |
|
---|
474 | sed '
|
---|
475 | s/[$]LINENO.*/&-/
|
---|
476 | t lineno
|
---|
477 | b
|
---|
478 | :lineno
|
---|
479 | N
|
---|
480 | :loop
|
---|
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
482 | t loop
|
---|
483 | s/-\n.*//
|
---|
484 | ' >$as_me.lineno &&
|
---|
485 | chmod +x "$as_me.lineno" ||
|
---|
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
487 |
|
---|
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
489 | # already done that, so ensure we don't try to do so again and fall
|
---|
490 | # in an infinite loop. This has already happened in practice.
|
---|
491 | _as_can_reexec=no; export _as_can_reexec
|
---|
492 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
493 | # (the dirname of $[0] is not the place where we might find the
|
---|
494 | # original and so on. Autoconf is especially sensitive to this).
|
---|
495 | . "./$as_me.lineno"
|
---|
496 | # Exit status is that of the last command.
|
---|
497 | exit
|
---|
498 | }
|
---|
499 |
|
---|
500 | ECHO_C= ECHO_N= ECHO_T=
|
---|
501 | case `echo -n x` in #(((((
|
---|
502 | -n*)
|
---|
503 | case `echo 'xy\c'` in
|
---|
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
505 | xy) ECHO_C='\c';;
|
---|
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
507 | ECHO_T=' ';;
|
---|
508 | esac;;
|
---|
509 | *)
|
---|
510 | ECHO_N='-n';;
|
---|
511 | esac
|
---|
512 |
|
---|
513 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
514 | if test -d conf$$.dir; then
|
---|
515 | rm -f conf$$.dir/conf$$.file
|
---|
516 | else
|
---|
517 | rm -f conf$$.dir
|
---|
518 | mkdir conf$$.dir 2>/dev/null
|
---|
519 | fi
|
---|
520 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
522 | as_ln_s='ln -s'
|
---|
523 | # ... but there are two gotchas:
|
---|
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
526 | # In both cases, we have to default to `cp -pR'.
|
---|
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
528 | as_ln_s='cp -pR'
|
---|
529 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
530 | as_ln_s=ln
|
---|
531 | else
|
---|
532 | as_ln_s='cp -pR'
|
---|
533 | fi
|
---|
534 | else
|
---|
535 | as_ln_s='cp -pR'
|
---|
536 | fi
|
---|
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
538 | rmdir conf$$.dir 2>/dev/null
|
---|
539 |
|
---|
540 | if mkdir -p . 2>/dev/null; then
|
---|
541 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
542 | else
|
---|
543 | test -d ./-p && rmdir ./-p
|
---|
544 | as_mkdir_p=false
|
---|
545 | fi
|
---|
546 |
|
---|
547 | as_test_x='test -x'
|
---|
548 | as_executable_p=as_fn_executable_p
|
---|
549 |
|
---|
550 | # Sed expression to map a string onto a valid CPP name.
|
---|
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
552 |
|
---|
553 | # Sed expression to map a string onto a valid variable name.
|
---|
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
555 |
|
---|
556 |
|
---|
557 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
558 | exec 6>&1
|
---|
559 |
|
---|
560 | # Name of the host.
|
---|
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
562 | # so uname gets run too.
|
---|
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
564 |
|
---|
565 | #
|
---|
566 | # Initializations.
|
---|
567 | #
|
---|
568 | ac_default_prefix=/usr/local
|
---|
569 | ac_clean_files=
|
---|
570 | ac_config_libobj_dir=.
|
---|
571 | LIBOBJS=
|
---|
572 | cross_compiling=no
|
---|
573 | subdirs=
|
---|
574 | MFLAGS=
|
---|
575 | MAKEFLAGS=
|
---|
576 |
|
---|
577 | # Identity of this package.
|
---|
578 | PACKAGE_NAME='rdesktop'
|
---|
579 | PACKAGE_TARNAME='rdesktop'
|
---|
580 | PACKAGE_VERSION='1.8.4'
|
---|
581 | PACKAGE_STRING='rdesktop 1.8.4'
|
---|
582 | PACKAGE_BUGREPORT=''
|
---|
583 | PACKAGE_URL=''
|
---|
584 |
|
---|
585 | ac_unique_file="rdesktop.c"
|
---|
586 | # Factoring default headers for most tests.
|
---|
587 | ac_includes_default="\
|
---|
588 | #include <stdio.h>
|
---|
589 | #ifdef HAVE_SYS_TYPES_H
|
---|
590 | # include <sys/types.h>
|
---|
591 | #endif
|
---|
592 | #ifdef HAVE_SYS_STAT_H
|
---|
593 | # include <sys/stat.h>
|
---|
594 | #endif
|
---|
595 | #ifdef STDC_HEADERS
|
---|
596 | # include <stdlib.h>
|
---|
597 | # include <stddef.h>
|
---|
598 | #else
|
---|
599 | # ifdef HAVE_STDLIB_H
|
---|
600 | # include <stdlib.h>
|
---|
601 | # endif
|
---|
602 | #endif
|
---|
603 | #ifdef HAVE_STRING_H
|
---|
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
605 | # include <memory.h>
|
---|
606 | # endif
|
---|
607 | # include <string.h>
|
---|
608 | #endif
|
---|
609 | #ifdef HAVE_STRINGS_H
|
---|
610 | # include <strings.h>
|
---|
611 | #endif
|
---|
612 | #ifdef HAVE_INTTYPES_H
|
---|
613 | # include <inttypes.h>
|
---|
614 | #endif
|
---|
615 | #ifdef HAVE_STDINT_H
|
---|
616 | # include <stdint.h>
|
---|
617 | #endif
|
---|
618 | #ifdef HAVE_UNISTD_H
|
---|
619 | # include <unistd.h>
|
---|
620 | #endif"
|
---|
621 |
|
---|
622 | ac_subst_vars='LTLIBOBJS
|
---|
623 | LIBICONV
|
---|
624 | LIBOBJS
|
---|
625 | SOUNDOBJ
|
---|
626 | LIBSAMPLERATE_LIBS
|
---|
627 | LIBSAMPLERATE_CFLAGS
|
---|
628 | ALSA_LIBS
|
---|
629 | ALSA_CFLAGS
|
---|
630 | LIBAO_LIBS
|
---|
631 | LIBAO_CFLAGS
|
---|
632 | RDP2VNCTARGET
|
---|
633 | VNCLINK
|
---|
634 | LDVNC
|
---|
635 | VNCINC
|
---|
636 | SCARDOBJ
|
---|
637 | PCSCLITE_LIBS
|
---|
638 | PCSCLITE_CFLAGS
|
---|
639 | XRANDR_LIBS
|
---|
640 | XRANDR_CFLAGS
|
---|
641 | CREDSSPOBJ
|
---|
642 | GSSGLUE_LIBS
|
---|
643 | GSSGLUE_CFLAGS
|
---|
644 | PKG_CONFIG_LIBDIR
|
---|
645 | PKG_CONFIG_PATH
|
---|
646 | ssldir
|
---|
647 | STRIP
|
---|
648 | PKG_CONFIG
|
---|
649 | X_EXTRA_LIBS
|
---|
650 | X_LIBS
|
---|
651 | X_PRE_LIBS
|
---|
652 | X_CFLAGS
|
---|
653 | XMKMF
|
---|
654 | EGREP
|
---|
655 | GREP
|
---|
656 | CPP
|
---|
657 | INSTALL_DATA
|
---|
658 | INSTALL_SCRIPT
|
---|
659 | INSTALL_PROGRAM
|
---|
660 | ac_ct_CXX
|
---|
661 | CXXFLAGS
|
---|
662 | CXX
|
---|
663 | OBJEXT
|
---|
664 | EXEEXT
|
---|
665 | ac_ct_CC
|
---|
666 | CPPFLAGS
|
---|
667 | LDFLAGS
|
---|
668 | CFLAGS
|
---|
669 | CC
|
---|
670 | host_os
|
---|
671 | host_vendor
|
---|
672 | host_cpu
|
---|
673 | host
|
---|
674 | build_os
|
---|
675 | build_vendor
|
---|
676 | build_cpu
|
---|
677 | build
|
---|
678 | target_alias
|
---|
679 | host_alias
|
---|
680 | build_alias
|
---|
681 | LIBS
|
---|
682 | ECHO_T
|
---|
683 | ECHO_N
|
---|
684 | ECHO_C
|
---|
685 | DEFS
|
---|
686 | mandir
|
---|
687 | localedir
|
---|
688 | libdir
|
---|
689 | psdir
|
---|
690 | pdfdir
|
---|
691 | dvidir
|
---|
692 | htmldir
|
---|
693 | infodir
|
---|
694 | docdir
|
---|
695 | oldincludedir
|
---|
696 | includedir
|
---|
697 | localstatedir
|
---|
698 | sharedstatedir
|
---|
699 | sysconfdir
|
---|
700 | datadir
|
---|
701 | datarootdir
|
---|
702 | libexecdir
|
---|
703 | sbindir
|
---|
704 | bindir
|
---|
705 | program_transform_name
|
---|
706 | prefix
|
---|
707 | exec_prefix
|
---|
708 | PACKAGE_URL
|
---|
709 | PACKAGE_BUGREPORT
|
---|
710 | PACKAGE_STRING
|
---|
711 | PACKAGE_VERSION
|
---|
712 | PACKAGE_TARNAME
|
---|
713 | PACKAGE_NAME
|
---|
714 | PATH_SEPARATOR
|
---|
715 | SHELL'
|
---|
716 | ac_subst_files=''
|
---|
717 | ac_user_opts='
|
---|
718 | enable_option_checking
|
---|
719 | with_x
|
---|
720 | with_openssl
|
---|
721 | enable_static_openssl
|
---|
722 | enable_credssp
|
---|
723 | enable_static_gssglue
|
---|
724 | enable_smartcard
|
---|
725 | with_egd_socket
|
---|
726 | with_libvncserver_config
|
---|
727 | with_libvncserver
|
---|
728 | with_sound
|
---|
729 | enable_static_libsamplerate
|
---|
730 | with_libiconv_prefix
|
---|
731 | enable_largefile
|
---|
732 | with_ipv6
|
---|
733 | with_debug
|
---|
734 | with_debug_kbd
|
---|
735 | with_debug_rdp5
|
---|
736 | with_debug_clipboard
|
---|
737 | with_debug_sound
|
---|
738 | with_debug_channel
|
---|
739 | with_debug_seamless
|
---|
740 | with_debug_smartcard
|
---|
741 | with_debug_credssp
|
---|
742 | '
|
---|
743 | ac_precious_vars='build_alias
|
---|
744 | host_alias
|
---|
745 | target_alias
|
---|
746 | CC
|
---|
747 | CFLAGS
|
---|
748 | LDFLAGS
|
---|
749 | LIBS
|
---|
750 | CPPFLAGS
|
---|
751 | CXX
|
---|
752 | CXXFLAGS
|
---|
753 | CCC
|
---|
754 | CPP
|
---|
755 | XMKMF
|
---|
756 | PKG_CONFIG
|
---|
757 | PKG_CONFIG_PATH
|
---|
758 | PKG_CONFIG_LIBDIR
|
---|
759 | GSSGLUE_CFLAGS
|
---|
760 | GSSGLUE_LIBS
|
---|
761 | XRANDR_CFLAGS
|
---|
762 | XRANDR_LIBS
|
---|
763 | PCSCLITE_CFLAGS
|
---|
764 | PCSCLITE_LIBS
|
---|
765 | LIBAO_CFLAGS
|
---|
766 | LIBAO_LIBS
|
---|
767 | ALSA_CFLAGS
|
---|
768 | ALSA_LIBS
|
---|
769 | LIBSAMPLERATE_CFLAGS
|
---|
770 | LIBSAMPLERATE_LIBS'
|
---|
771 |
|
---|
772 |
|
---|
773 | # Initialize some variables set by options.
|
---|
774 | ac_init_help=
|
---|
775 | ac_init_version=false
|
---|
776 | ac_unrecognized_opts=
|
---|
777 | ac_unrecognized_sep=
|
---|
778 | # The variables have the same names as the options, with
|
---|
779 | # dashes changed to underlines.
|
---|
780 | cache_file=/dev/null
|
---|
781 | exec_prefix=NONE
|
---|
782 | no_create=
|
---|
783 | no_recursion=
|
---|
784 | prefix=NONE
|
---|
785 | program_prefix=NONE
|
---|
786 | program_suffix=NONE
|
---|
787 | program_transform_name=s,x,x,
|
---|
788 | silent=
|
---|
789 | site=
|
---|
790 | srcdir=
|
---|
791 | verbose=
|
---|
792 | x_includes=NONE
|
---|
793 | x_libraries=NONE
|
---|
794 |
|
---|
795 | # Installation directory options.
|
---|
796 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
797 | # and all the variables that are supposed to be based on exec_prefix
|
---|
798 | # by default will actually change.
|
---|
799 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
800 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
801 | bindir='${exec_prefix}/bin'
|
---|
802 | sbindir='${exec_prefix}/sbin'
|
---|
803 | libexecdir='${exec_prefix}/libexec'
|
---|
804 | datarootdir='${prefix}/share'
|
---|
805 | datadir='${datarootdir}'
|
---|
806 | sysconfdir='${prefix}/etc'
|
---|
807 | sharedstatedir='${prefix}/com'
|
---|
808 | localstatedir='${prefix}/var'
|
---|
809 | includedir='${prefix}/include'
|
---|
810 | oldincludedir='/usr/include'
|
---|
811 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
812 | infodir='${datarootdir}/info'
|
---|
813 | htmldir='${docdir}'
|
---|
814 | dvidir='${docdir}'
|
---|
815 | pdfdir='${docdir}'
|
---|
816 | psdir='${docdir}'
|
---|
817 | libdir='${exec_prefix}/lib'
|
---|
818 | localedir='${datarootdir}/locale'
|
---|
819 | mandir='${datarootdir}/man'
|
---|
820 |
|
---|
821 | ac_prev=
|
---|
822 | ac_dashdash=
|
---|
823 | for ac_option
|
---|
824 | do
|
---|
825 | # If the previous option needs an argument, assign it.
|
---|
826 | if test -n "$ac_prev"; then
|
---|
827 | eval $ac_prev=\$ac_option
|
---|
828 | ac_prev=
|
---|
829 | continue
|
---|
830 | fi
|
---|
831 |
|
---|
832 | case $ac_option in
|
---|
833 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
834 | *=) ac_optarg= ;;
|
---|
835 | *) ac_optarg=yes ;;
|
---|
836 | esac
|
---|
837 |
|
---|
838 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
839 |
|
---|
840 | case $ac_dashdash$ac_option in
|
---|
841 | --)
|
---|
842 | ac_dashdash=yes ;;
|
---|
843 |
|
---|
844 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
845 | ac_prev=bindir ;;
|
---|
846 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
847 | bindir=$ac_optarg ;;
|
---|
848 |
|
---|
849 | -build | --build | --buil | --bui | --bu)
|
---|
850 | ac_prev=build_alias ;;
|
---|
851 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
852 | build_alias=$ac_optarg ;;
|
---|
853 |
|
---|
854 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
855 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
856 | ac_prev=cache_file ;;
|
---|
857 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
858 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
859 | cache_file=$ac_optarg ;;
|
---|
860 |
|
---|
861 | --config-cache | -C)
|
---|
862 | cache_file=config.cache ;;
|
---|
863 |
|
---|
864 | -datadir | --datadir | --datadi | --datad)
|
---|
865 | ac_prev=datadir ;;
|
---|
866 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
867 | datadir=$ac_optarg ;;
|
---|
868 |
|
---|
869 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
870 | | --dataroo | --dataro | --datar)
|
---|
871 | ac_prev=datarootdir ;;
|
---|
872 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
873 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
874 | datarootdir=$ac_optarg ;;
|
---|
875 |
|
---|
876 | -disable-* | --disable-*)
|
---|
877 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
878 | # Reject names that are not valid shell variable names.
|
---|
879 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
880 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
881 | ac_useropt_orig=$ac_useropt
|
---|
882 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
883 | case $ac_user_opts in
|
---|
884 | *"
|
---|
885 | "enable_$ac_useropt"
|
---|
886 | "*) ;;
|
---|
887 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
888 | ac_unrecognized_sep=', ';;
|
---|
889 | esac
|
---|
890 | eval enable_$ac_useropt=no ;;
|
---|
891 |
|
---|
892 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
893 | ac_prev=docdir ;;
|
---|
894 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
895 | docdir=$ac_optarg ;;
|
---|
896 |
|
---|
897 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
898 | ac_prev=dvidir ;;
|
---|
899 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
900 | dvidir=$ac_optarg ;;
|
---|
901 |
|
---|
902 | -enable-* | --enable-*)
|
---|
903 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
904 | # Reject names that are not valid shell variable names.
|
---|
905 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
906 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
907 | ac_useropt_orig=$ac_useropt
|
---|
908 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
909 | case $ac_user_opts in
|
---|
910 | *"
|
---|
911 | "enable_$ac_useropt"
|
---|
912 | "*) ;;
|
---|
913 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
914 | ac_unrecognized_sep=', ';;
|
---|
915 | esac
|
---|
916 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
917 |
|
---|
918 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
919 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
920 | | --exec | --exe | --ex)
|
---|
921 | ac_prev=exec_prefix ;;
|
---|
922 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
923 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
924 | | --exec=* | --exe=* | --ex=*)
|
---|
925 | exec_prefix=$ac_optarg ;;
|
---|
926 |
|
---|
927 | -gas | --gas | --ga | --g)
|
---|
928 | # Obsolete; use --with-gas.
|
---|
929 | with_gas=yes ;;
|
---|
930 |
|
---|
931 | -help | --help | --hel | --he | -h)
|
---|
932 | ac_init_help=long ;;
|
---|
933 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
934 | ac_init_help=recursive ;;
|
---|
935 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
936 | ac_init_help=short ;;
|
---|
937 |
|
---|
938 | -host | --host | --hos | --ho)
|
---|
939 | ac_prev=host_alias ;;
|
---|
940 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
941 | host_alias=$ac_optarg ;;
|
---|
942 |
|
---|
943 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
944 | ac_prev=htmldir ;;
|
---|
945 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
946 | | --ht=*)
|
---|
947 | htmldir=$ac_optarg ;;
|
---|
948 |
|
---|
949 | -includedir | --includedir | --includedi | --included | --include \
|
---|
950 | | --includ | --inclu | --incl | --inc)
|
---|
951 | ac_prev=includedir ;;
|
---|
952 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
953 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
954 | includedir=$ac_optarg ;;
|
---|
955 |
|
---|
956 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
957 | ac_prev=infodir ;;
|
---|
958 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
959 | infodir=$ac_optarg ;;
|
---|
960 |
|
---|
961 | -libdir | --libdir | --libdi | --libd)
|
---|
962 | ac_prev=libdir ;;
|
---|
963 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
964 | libdir=$ac_optarg ;;
|
---|
965 |
|
---|
966 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
967 | | --libexe | --libex | --libe)
|
---|
968 | ac_prev=libexecdir ;;
|
---|
969 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
970 | | --libexe=* | --libex=* | --libe=*)
|
---|
971 | libexecdir=$ac_optarg ;;
|
---|
972 |
|
---|
973 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
974 | ac_prev=localedir ;;
|
---|
975 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
976 | localedir=$ac_optarg ;;
|
---|
977 |
|
---|
978 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
979 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
980 | ac_prev=localstatedir ;;
|
---|
981 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
982 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
983 | localstatedir=$ac_optarg ;;
|
---|
984 |
|
---|
985 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
986 | ac_prev=mandir ;;
|
---|
987 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
988 | mandir=$ac_optarg ;;
|
---|
989 |
|
---|
990 | -nfp | --nfp | --nf)
|
---|
991 | # Obsolete; use --without-fp.
|
---|
992 | with_fp=no ;;
|
---|
993 |
|
---|
994 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
995 | | --no-cr | --no-c | -n)
|
---|
996 | no_create=yes ;;
|
---|
997 |
|
---|
998 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
999 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1000 | no_recursion=yes ;;
|
---|
1001 |
|
---|
1002 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1003 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1004 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1005 | ac_prev=oldincludedir ;;
|
---|
1006 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1007 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1008 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1009 | oldincludedir=$ac_optarg ;;
|
---|
1010 |
|
---|
1011 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1012 | ac_prev=prefix ;;
|
---|
1013 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1014 | prefix=$ac_optarg ;;
|
---|
1015 |
|
---|
1016 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1017 | | --program-pre | --program-pr | --program-p)
|
---|
1018 | ac_prev=program_prefix ;;
|
---|
1019 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1020 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1021 | program_prefix=$ac_optarg ;;
|
---|
1022 |
|
---|
1023 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1024 | | --program-suf | --program-su | --program-s)
|
---|
1025 | ac_prev=program_suffix ;;
|
---|
1026 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1027 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1028 | program_suffix=$ac_optarg ;;
|
---|
1029 |
|
---|
1030 | -program-transform-name | --program-transform-name \
|
---|
1031 | | --program-transform-nam | --program-transform-na \
|
---|
1032 | | --program-transform-n | --program-transform- \
|
---|
1033 | | --program-transform | --program-transfor \
|
---|
1034 | | --program-transfo | --program-transf \
|
---|
1035 | | --program-trans | --program-tran \
|
---|
1036 | | --progr-tra | --program-tr | --program-t)
|
---|
1037 | ac_prev=program_transform_name ;;
|
---|
1038 | -program-transform-name=* | --program-transform-name=* \
|
---|
1039 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1040 | | --program-transform-n=* | --program-transform-=* \
|
---|
1041 | | --program-transform=* | --program-transfor=* \
|
---|
1042 | | --program-transfo=* | --program-transf=* \
|
---|
1043 | | --program-trans=* | --program-tran=* \
|
---|
1044 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1045 | program_transform_name=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1048 | ac_prev=pdfdir ;;
|
---|
1049 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1050 | pdfdir=$ac_optarg ;;
|
---|
1051 |
|
---|
1052 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1053 | ac_prev=psdir ;;
|
---|
1054 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1055 | psdir=$ac_optarg ;;
|
---|
1056 |
|
---|
1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1058 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1059 | silent=yes ;;
|
---|
1060 |
|
---|
1061 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1062 | ac_prev=sbindir ;;
|
---|
1063 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1064 | | --sbi=* | --sb=*)
|
---|
1065 | sbindir=$ac_optarg ;;
|
---|
1066 |
|
---|
1067 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1068 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1069 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1070 | | --sha | --sh)
|
---|
1071 | ac_prev=sharedstatedir ;;
|
---|
1072 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1073 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1074 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1075 | | --sha=* | --sh=*)
|
---|
1076 | sharedstatedir=$ac_optarg ;;
|
---|
1077 |
|
---|
1078 | -site | --site | --sit)
|
---|
1079 | ac_prev=site ;;
|
---|
1080 | -site=* | --site=* | --sit=*)
|
---|
1081 | site=$ac_optarg ;;
|
---|
1082 |
|
---|
1083 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1084 | ac_prev=srcdir ;;
|
---|
1085 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1086 | srcdir=$ac_optarg ;;
|
---|
1087 |
|
---|
1088 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1089 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1090 | ac_prev=sysconfdir ;;
|
---|
1091 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1092 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1093 | sysconfdir=$ac_optarg ;;
|
---|
1094 |
|
---|
1095 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1096 | ac_prev=target_alias ;;
|
---|
1097 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1098 | target_alias=$ac_optarg ;;
|
---|
1099 |
|
---|
1100 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1101 | verbose=yes ;;
|
---|
1102 |
|
---|
1103 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1104 | ac_init_version=: ;;
|
---|
1105 |
|
---|
1106 | -with-* | --with-*)
|
---|
1107 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1108 | # Reject names that are not valid shell variable names.
|
---|
1109 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1110 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1111 | ac_useropt_orig=$ac_useropt
|
---|
1112 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1113 | case $ac_user_opts in
|
---|
1114 | *"
|
---|
1115 | "with_$ac_useropt"
|
---|
1116 | "*) ;;
|
---|
1117 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1118 | ac_unrecognized_sep=', ';;
|
---|
1119 | esac
|
---|
1120 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1121 |
|
---|
1122 | -without-* | --without-*)
|
---|
1123 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1124 | # Reject names that are not valid shell variable names.
|
---|
1125 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1126 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1127 | ac_useropt_orig=$ac_useropt
|
---|
1128 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1129 | case $ac_user_opts in
|
---|
1130 | *"
|
---|
1131 | "with_$ac_useropt"
|
---|
1132 | "*) ;;
|
---|
1133 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1134 | ac_unrecognized_sep=', ';;
|
---|
1135 | esac
|
---|
1136 | eval with_$ac_useropt=no ;;
|
---|
1137 |
|
---|
1138 | --x)
|
---|
1139 | # Obsolete; use --with-x.
|
---|
1140 | with_x=yes ;;
|
---|
1141 |
|
---|
1142 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1143 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1144 | ac_prev=x_includes ;;
|
---|
1145 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1146 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1147 | x_includes=$ac_optarg ;;
|
---|
1148 |
|
---|
1149 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1150 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1151 | ac_prev=x_libraries ;;
|
---|
1152 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1153 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1154 | x_libraries=$ac_optarg ;;
|
---|
1155 |
|
---|
1156 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1157 | Try \`$0 --help' for more information"
|
---|
1158 | ;;
|
---|
1159 |
|
---|
1160 | *=*)
|
---|
1161 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1162 | # Reject names that are not valid shell variable names.
|
---|
1163 | case $ac_envvar in #(
|
---|
1164 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1165 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1166 | esac
|
---|
1167 | eval $ac_envvar=\$ac_optarg
|
---|
1168 | export $ac_envvar ;;
|
---|
1169 |
|
---|
1170 | *)
|
---|
1171 | # FIXME: should be removed in autoconf 3.0.
|
---|
1172 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1173 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1174 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1175 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1176 | ;;
|
---|
1177 |
|
---|
1178 | esac
|
---|
1179 | done
|
---|
1180 |
|
---|
1181 | if test -n "$ac_prev"; then
|
---|
1182 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1183 | as_fn_error $? "missing argument to $ac_option"
|
---|
1184 | fi
|
---|
1185 |
|
---|
1186 | if test -n "$ac_unrecognized_opts"; then
|
---|
1187 | case $enable_option_checking in
|
---|
1188 | no) ;;
|
---|
1189 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1190 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1191 | esac
|
---|
1192 | fi
|
---|
1193 |
|
---|
1194 | # Check all directory arguments for consistency.
|
---|
1195 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1196 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1197 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1198 | libdir localedir mandir
|
---|
1199 | do
|
---|
1200 | eval ac_val=\$$ac_var
|
---|
1201 | # Remove trailing slashes.
|
---|
1202 | case $ac_val in
|
---|
1203 | */ )
|
---|
1204 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1205 | eval $ac_var=\$ac_val;;
|
---|
1206 | esac
|
---|
1207 | # Be sure to have absolute directory names.
|
---|
1208 | case $ac_val in
|
---|
1209 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1210 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1211 | esac
|
---|
1212 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1213 | done
|
---|
1214 |
|
---|
1215 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1216 | # used to hold the argument of --host etc.
|
---|
1217 | # FIXME: To remove some day.
|
---|
1218 | build=$build_alias
|
---|
1219 | host=$host_alias
|
---|
1220 | target=$target_alias
|
---|
1221 |
|
---|
1222 | # FIXME: To remove some day.
|
---|
1223 | if test "x$host_alias" != x; then
|
---|
1224 | if test "x$build_alias" = x; then
|
---|
1225 | cross_compiling=maybe
|
---|
1226 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1227 | cross_compiling=yes
|
---|
1228 | fi
|
---|
1229 | fi
|
---|
1230 |
|
---|
1231 | ac_tool_prefix=
|
---|
1232 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1233 |
|
---|
1234 | test "$silent" = yes && exec 6>/dev/null
|
---|
1235 |
|
---|
1236 |
|
---|
1237 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1238 | ac_ls_di=`ls -di .` &&
|
---|
1239 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1240 | as_fn_error $? "working directory cannot be determined"
|
---|
1241 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1242 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1243 |
|
---|
1244 |
|
---|
1245 | # Find the source files, if location was not specified.
|
---|
1246 | if test -z "$srcdir"; then
|
---|
1247 | ac_srcdir_defaulted=yes
|
---|
1248 | # Try the directory containing this script, then the parent directory.
|
---|
1249 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1250 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1251 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1252 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1253 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1254 | $as_echo X"$as_myself" |
|
---|
1255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1256 | s//\1/
|
---|
1257 | q
|
---|
1258 | }
|
---|
1259 | /^X\(\/\/\)[^/].*/{
|
---|
1260 | s//\1/
|
---|
1261 | q
|
---|
1262 | }
|
---|
1263 | /^X\(\/\/\)$/{
|
---|
1264 | s//\1/
|
---|
1265 | q
|
---|
1266 | }
|
---|
1267 | /^X\(\/\).*/{
|
---|
1268 | s//\1/
|
---|
1269 | q
|
---|
1270 | }
|
---|
1271 | s/.*/./; q'`
|
---|
1272 | srcdir=$ac_confdir
|
---|
1273 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1274 | srcdir=..
|
---|
1275 | fi
|
---|
1276 | else
|
---|
1277 | ac_srcdir_defaulted=no
|
---|
1278 | fi
|
---|
1279 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1280 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1281 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1282 | fi
|
---|
1283 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1284 | ac_abs_confdir=`(
|
---|
1285 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1286 | pwd)`
|
---|
1287 | # When building in place, set srcdir=.
|
---|
1288 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1289 | srcdir=.
|
---|
1290 | fi
|
---|
1291 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1292 | # Double slashes in file names in object file debugging info
|
---|
1293 | # mess up M-x gdb in Emacs.
|
---|
1294 | case $srcdir in
|
---|
1295 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1296 | esac
|
---|
1297 | for ac_var in $ac_precious_vars; do
|
---|
1298 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1299 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1300 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1301 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1302 | done
|
---|
1303 |
|
---|
1304 | #
|
---|
1305 | # Report the --help message.
|
---|
1306 | #
|
---|
1307 | if test "$ac_init_help" = "long"; then
|
---|
1308 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1309 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1310 | cat <<_ACEOF
|
---|
1311 | \`configure' configures rdesktop 1.8.4 to adapt to many kinds of systems.
|
---|
1312 |
|
---|
1313 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1314 |
|
---|
1315 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1316 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1317 |
|
---|
1318 | Defaults for the options are specified in brackets.
|
---|
1319 |
|
---|
1320 | Configuration:
|
---|
1321 | -h, --help display this help and exit
|
---|
1322 | --help=short display options specific to this package
|
---|
1323 | --help=recursive display the short help of all the included packages
|
---|
1324 | -V, --version display version information and exit
|
---|
1325 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1326 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1327 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1328 | -n, --no-create do not create output files
|
---|
1329 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1330 |
|
---|
1331 | Installation directories:
|
---|
1332 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1333 | [$ac_default_prefix]
|
---|
1334 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1335 | [PREFIX]
|
---|
1336 |
|
---|
1337 | By default, \`make install' will install all the files in
|
---|
1338 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1339 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1340 | for instance \`--prefix=\$HOME'.
|
---|
1341 |
|
---|
1342 | For better control, use the options below.
|
---|
1343 |
|
---|
1344 | Fine tuning of the installation directories:
|
---|
1345 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1346 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1347 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1348 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1349 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1350 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1351 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1352 | --includedir=DIR C header files [PREFIX/include]
|
---|
1353 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1354 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1355 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1356 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1357 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1358 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1359 | --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
|
---|
1360 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1361 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1362 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1363 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1364 | _ACEOF
|
---|
1365 |
|
---|
1366 | cat <<\_ACEOF
|
---|
1367 |
|
---|
1368 | X features:
|
---|
1369 | --x-includes=DIR X include files are in DIR
|
---|
1370 | --x-libraries=DIR X library files are in DIR
|
---|
1371 |
|
---|
1372 | System types:
|
---|
1373 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1374 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1375 | _ACEOF
|
---|
1376 | fi
|
---|
1377 |
|
---|
1378 | if test -n "$ac_init_help"; then
|
---|
1379 | case $ac_init_help in
|
---|
1380 | short | recursive ) echo "Configuration of rdesktop 1.8.4:";;
|
---|
1381 | esac
|
---|
1382 | cat <<\_ACEOF
|
---|
1383 |
|
---|
1384 | Optional Features:
|
---|
1385 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1386 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1387 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1388 | --enable-static-openssl link OpenSSL statically
|
---|
1389 | --disable-credssp disable support for CredSSP
|
---|
1390 | --enable-static-gssglue
|
---|
1391 | --disable-smartcard disable support for smartcard
|
---|
1392 | --enable-static-libsamplerate link libsamplerate statically
|
---|
1393 | --disable-largefile omit support for large files
|
---|
1394 |
|
---|
1395 | Optional Packages:
|
---|
1396 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1397 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1398 | --with-x use the X Window System
|
---|
1399 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
1400 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
1401 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
1402 | --with-libvncserver make rdp2vnc
|
---|
1403 | --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
|
---|
1404 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
1405 | --with-ipv6 enable IPv6-support
|
---|
1406 | --with-debug enable protocol debugging output
|
---|
1407 | --with-debug-kbd enable debugging of keyboard handling
|
---|
1408 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
1409 | --with-debug-clipboard enable debugging of clipboard code
|
---|
1410 | --with-debug-sound enable debugging of sound code
|
---|
1411 | --with-debug-channel enable debugging of virtual channel code
|
---|
1412 | --with-debug-seamless enable debugging of SeamlessRDP code
|
---|
1413 | --with-debug-smartcard enable debugging of smart-card code
|
---|
1414 | --with-debug-credssp enable debugging of CredSSP code
|
---|
1415 |
|
---|
1416 | Some influential environment variables:
|
---|
1417 | CC C compiler command
|
---|
1418 | CFLAGS C compiler flags
|
---|
1419 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1420 | nonstandard directory <lib dir>
|
---|
1421 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1422 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1423 | you have headers in a nonstandard directory <include dir>
|
---|
1424 | CXX C++ compiler command
|
---|
1425 | CXXFLAGS C++ compiler flags
|
---|
1426 | CPP C preprocessor
|
---|
1427 | XMKMF Path to xmkmf, Makefile generator for X Window System
|
---|
1428 | PKG_CONFIG path to pkg-config utility
|
---|
1429 | PKG_CONFIG_PATH
|
---|
1430 | directories to add to pkg-config's search path
|
---|
1431 | PKG_CONFIG_LIBDIR
|
---|
1432 | path overriding pkg-config's built-in search path
|
---|
1433 | GSSGLUE_CFLAGS
|
---|
1434 | C compiler flags for GSSGLUE, overriding pkg-config
|
---|
1435 | GSSGLUE_LIBS
|
---|
1436 | linker flags for GSSGLUE, overriding pkg-config
|
---|
1437 | XRANDR_CFLAGS
|
---|
1438 | C compiler flags for XRANDR, overriding pkg-config
|
---|
1439 | XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
|
---|
1440 | PCSCLITE_CFLAGS
|
---|
1441 | C compiler flags for PCSCLITE, overriding pkg-config
|
---|
1442 | PCSCLITE_LIBS
|
---|
1443 | linker flags for PCSCLITE, overriding pkg-config
|
---|
1444 | LIBAO_CFLAGS
|
---|
1445 | C compiler flags for LIBAO, overriding pkg-config
|
---|
1446 | LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
|
---|
1447 | ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
|
---|
1448 | ALSA_LIBS linker flags for ALSA, overriding pkg-config
|
---|
1449 | LIBSAMPLERATE_CFLAGS
|
---|
1450 | C compiler flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1451 | LIBSAMPLERATE_LIBS
|
---|
1452 | linker flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1453 |
|
---|
1454 | Use these variables to override the choices made by `configure' or to help
|
---|
1455 | it to find libraries and programs with nonstandard names/locations.
|
---|
1456 |
|
---|
1457 | Report bugs to the package provider.
|
---|
1458 | _ACEOF
|
---|
1459 | ac_status=$?
|
---|
1460 | fi
|
---|
1461 |
|
---|
1462 | if test "$ac_init_help" = "recursive"; then
|
---|
1463 | # If there are subdirs, report their specific --help.
|
---|
1464 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1465 | test -d "$ac_dir" ||
|
---|
1466 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1467 | continue
|
---|
1468 | ac_builddir=.
|
---|
1469 |
|
---|
1470 | case "$ac_dir" in
|
---|
1471 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1472 | *)
|
---|
1473 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1474 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1475 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1476 | case $ac_top_builddir_sub in
|
---|
1477 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1478 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1479 | esac ;;
|
---|
1480 | esac
|
---|
1481 | ac_abs_top_builddir=$ac_pwd
|
---|
1482 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1483 | # for backward compatibility:
|
---|
1484 | ac_top_builddir=$ac_top_build_prefix
|
---|
1485 |
|
---|
1486 | case $srcdir in
|
---|
1487 | .) # We are building in place.
|
---|
1488 | ac_srcdir=.
|
---|
1489 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1490 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1491 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1492 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1493 | ac_top_srcdir=$srcdir
|
---|
1494 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1495 | *) # Relative name.
|
---|
1496 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1497 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1498 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1499 | esac
|
---|
1500 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1501 |
|
---|
1502 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1503 | # Check for guested configure.
|
---|
1504 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1505 | echo &&
|
---|
1506 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1507 | elif test -f "$ac_srcdir/configure"; then
|
---|
1508 | echo &&
|
---|
1509 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1510 | else
|
---|
1511 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1512 | fi || ac_status=$?
|
---|
1513 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1514 | done
|
---|
1515 | fi
|
---|
1516 |
|
---|
1517 | test -n "$ac_init_help" && exit $ac_status
|
---|
1518 | if $ac_init_version; then
|
---|
1519 | cat <<\_ACEOF
|
---|
1520 | rdesktop configure 1.8.4
|
---|
1521 | generated by GNU Autoconf 2.69
|
---|
1522 |
|
---|
1523 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1524 | This configure script is free software; the Free Software Foundation
|
---|
1525 | gives unlimited permission to copy, distribute and modify it.
|
---|
1526 | _ACEOF
|
---|
1527 | exit
|
---|
1528 | fi
|
---|
1529 |
|
---|
1530 | ## ------------------------ ##
|
---|
1531 | ## Autoconf initialization. ##
|
---|
1532 | ## ------------------------ ##
|
---|
1533 |
|
---|
1534 | # ac_fn_c_try_compile LINENO
|
---|
1535 | # --------------------------
|
---|
1536 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1537 | ac_fn_c_try_compile ()
|
---|
1538 | {
|
---|
1539 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1540 | rm -f conftest.$ac_objext
|
---|
1541 | if { { ac_try="$ac_compile"
|
---|
1542 | case "(($ac_try" in
|
---|
1543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1544 | *) ac_try_echo=$ac_try;;
|
---|
1545 | esac
|
---|
1546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1547 | $as_echo "$ac_try_echo"; } >&5
|
---|
1548 | (eval "$ac_compile") 2>conftest.err
|
---|
1549 | ac_status=$?
|
---|
1550 | if test -s conftest.err; then
|
---|
1551 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1552 | cat conftest.er1 >&5
|
---|
1553 | mv -f conftest.er1 conftest.err
|
---|
1554 | fi
|
---|
1555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1556 | test $ac_status = 0; } && {
|
---|
1557 | test -z "$ac_c_werror_flag" ||
|
---|
1558 | test ! -s conftest.err
|
---|
1559 | } && test -s conftest.$ac_objext; then :
|
---|
1560 | ac_retval=0
|
---|
1561 | else
|
---|
1562 | $as_echo "$as_me: failed program was:" >&5
|
---|
1563 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1564 |
|
---|
1565 | ac_retval=1
|
---|
1566 | fi
|
---|
1567 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1568 | as_fn_set_status $ac_retval
|
---|
1569 |
|
---|
1570 | } # ac_fn_c_try_compile
|
---|
1571 |
|
---|
1572 | # ac_fn_cxx_try_compile LINENO
|
---|
1573 | # ----------------------------
|
---|
1574 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1575 | ac_fn_cxx_try_compile ()
|
---|
1576 | {
|
---|
1577 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1578 | rm -f conftest.$ac_objext
|
---|
1579 | if { { ac_try="$ac_compile"
|
---|
1580 | case "(($ac_try" in
|
---|
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1582 | *) ac_try_echo=$ac_try;;
|
---|
1583 | esac
|
---|
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1585 | $as_echo "$ac_try_echo"; } >&5
|
---|
1586 | (eval "$ac_compile") 2>conftest.err
|
---|
1587 | ac_status=$?
|
---|
1588 | if test -s conftest.err; then
|
---|
1589 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1590 | cat conftest.er1 >&5
|
---|
1591 | mv -f conftest.er1 conftest.err
|
---|
1592 | fi
|
---|
1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1594 | test $ac_status = 0; } && {
|
---|
1595 | test -z "$ac_cxx_werror_flag" ||
|
---|
1596 | test ! -s conftest.err
|
---|
1597 | } && test -s conftest.$ac_objext; then :
|
---|
1598 | ac_retval=0
|
---|
1599 | else
|
---|
1600 | $as_echo "$as_me: failed program was:" >&5
|
---|
1601 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1602 |
|
---|
1603 | ac_retval=1
|
---|
1604 | fi
|
---|
1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1606 | as_fn_set_status $ac_retval
|
---|
1607 |
|
---|
1608 | } # ac_fn_cxx_try_compile
|
---|
1609 |
|
---|
1610 | # ac_fn_c_try_cpp LINENO
|
---|
1611 | # ----------------------
|
---|
1612 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1613 | ac_fn_c_try_cpp ()
|
---|
1614 | {
|
---|
1615 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1616 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1617 | case "(($ac_try" in
|
---|
1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1619 | *) ac_try_echo=$ac_try;;
|
---|
1620 | esac
|
---|
1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1622 | $as_echo "$ac_try_echo"; } >&5
|
---|
1623 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1624 | ac_status=$?
|
---|
1625 | if test -s conftest.err; then
|
---|
1626 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1627 | cat conftest.er1 >&5
|
---|
1628 | mv -f conftest.er1 conftest.err
|
---|
1629 | fi
|
---|
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1631 | test $ac_status = 0; } > conftest.i && {
|
---|
1632 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1633 | test ! -s conftest.err
|
---|
1634 | }; then :
|
---|
1635 | ac_retval=0
|
---|
1636 | else
|
---|
1637 | $as_echo "$as_me: failed program was:" >&5
|
---|
1638 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1639 |
|
---|
1640 | ac_retval=1
|
---|
1641 | fi
|
---|
1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1643 | as_fn_set_status $ac_retval
|
---|
1644 |
|
---|
1645 | } # ac_fn_c_try_cpp
|
---|
1646 |
|
---|
1647 | # ac_fn_c_try_run LINENO
|
---|
1648 | # ----------------------
|
---|
1649 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1650 | # that executables *can* be run.
|
---|
1651 | ac_fn_c_try_run ()
|
---|
1652 | {
|
---|
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1654 | if { { ac_try="$ac_link"
|
---|
1655 | case "(($ac_try" in
|
---|
1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1657 | *) ac_try_echo=$ac_try;;
|
---|
1658 | esac
|
---|
1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1660 | $as_echo "$ac_try_echo"; } >&5
|
---|
1661 | (eval "$ac_link") 2>&5
|
---|
1662 | ac_status=$?
|
---|
1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1664 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1665 | { { case "(($ac_try" in
|
---|
1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1667 | *) ac_try_echo=$ac_try;;
|
---|
1668 | esac
|
---|
1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1670 | $as_echo "$ac_try_echo"; } >&5
|
---|
1671 | (eval "$ac_try") 2>&5
|
---|
1672 | ac_status=$?
|
---|
1673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1674 | test $ac_status = 0; }; }; then :
|
---|
1675 | ac_retval=0
|
---|
1676 | else
|
---|
1677 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1678 | $as_echo "$as_me: failed program was:" >&5
|
---|
1679 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1680 |
|
---|
1681 | ac_retval=$ac_status
|
---|
1682 | fi
|
---|
1683 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1684 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1685 | as_fn_set_status $ac_retval
|
---|
1686 |
|
---|
1687 | } # ac_fn_c_try_run
|
---|
1688 |
|
---|
1689 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1690 | # -------------------------------------------------------
|
---|
1691 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1692 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1693 | ac_fn_c_check_header_compile ()
|
---|
1694 | {
|
---|
1695 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1697 | $as_echo_n "checking for $2... " >&6; }
|
---|
1698 | if eval \${$3+:} false; then :
|
---|
1699 | $as_echo_n "(cached) " >&6
|
---|
1700 | else
|
---|
1701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1702 | /* end confdefs.h. */
|
---|
1703 | $4
|
---|
1704 | #include <$2>
|
---|
1705 | _ACEOF
|
---|
1706 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1707 | eval "$3=yes"
|
---|
1708 | else
|
---|
1709 | eval "$3=no"
|
---|
1710 | fi
|
---|
1711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1712 | fi
|
---|
1713 | eval ac_res=\$$3
|
---|
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1715 | $as_echo "$ac_res" >&6; }
|
---|
1716 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1717 |
|
---|
1718 | } # ac_fn_c_check_header_compile
|
---|
1719 |
|
---|
1720 | # ac_fn_c_try_link LINENO
|
---|
1721 | # -----------------------
|
---|
1722 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1723 | ac_fn_c_try_link ()
|
---|
1724 | {
|
---|
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1726 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1727 | if { { ac_try="$ac_link"
|
---|
1728 | case "(($ac_try" in
|
---|
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1730 | *) ac_try_echo=$ac_try;;
|
---|
1731 | esac
|
---|
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1733 | $as_echo "$ac_try_echo"; } >&5
|
---|
1734 | (eval "$ac_link") 2>conftest.err
|
---|
1735 | ac_status=$?
|
---|
1736 | if test -s conftest.err; then
|
---|
1737 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1738 | cat conftest.er1 >&5
|
---|
1739 | mv -f conftest.er1 conftest.err
|
---|
1740 | fi
|
---|
1741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1742 | test $ac_status = 0; } && {
|
---|
1743 | test -z "$ac_c_werror_flag" ||
|
---|
1744 | test ! -s conftest.err
|
---|
1745 | } && test -s conftest$ac_exeext && {
|
---|
1746 | test "$cross_compiling" = yes ||
|
---|
1747 | test -x conftest$ac_exeext
|
---|
1748 | }; then :
|
---|
1749 | ac_retval=0
|
---|
1750 | else
|
---|
1751 | $as_echo "$as_me: failed program was:" >&5
|
---|
1752 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1753 |
|
---|
1754 | ac_retval=1
|
---|
1755 | fi
|
---|
1756 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1757 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1758 | # interfere with the next link command; also delete a directory that is
|
---|
1759 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1760 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1761 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1762 | as_fn_set_status $ac_retval
|
---|
1763 |
|
---|
1764 | } # ac_fn_c_try_link
|
---|
1765 |
|
---|
1766 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1767 | # ----------------------------------
|
---|
1768 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1769 | ac_fn_c_check_func ()
|
---|
1770 | {
|
---|
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1773 | $as_echo_n "checking for $2... " >&6; }
|
---|
1774 | if eval \${$3+:} false; then :
|
---|
1775 | $as_echo_n "(cached) " >&6
|
---|
1776 | else
|
---|
1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1778 | /* end confdefs.h. */
|
---|
1779 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1781 | #define $2 innocuous_$2
|
---|
1782 |
|
---|
1783 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1784 | which can conflict with char $2 (); below.
|
---|
1785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1786 | <limits.h> exists even on freestanding compilers. */
|
---|
1787 |
|
---|
1788 | #ifdef __STDC__
|
---|
1789 | # include <limits.h>
|
---|
1790 | #else
|
---|
1791 | # include <assert.h>
|
---|
1792 | #endif
|
---|
1793 |
|
---|
1794 | #undef $2
|
---|
1795 |
|
---|
1796 | /* Override any GCC internal prototype to avoid an error.
|
---|
1797 | Use char because int might match the return type of a GCC
|
---|
1798 | builtin and then its argument prototype would still apply. */
|
---|
1799 | #ifdef __cplusplus
|
---|
1800 | extern "C"
|
---|
1801 | #endif
|
---|
1802 | char $2 ();
|
---|
1803 | /* The GNU C library defines this for functions which it implements
|
---|
1804 | to always fail with ENOSYS. Some functions are actually named
|
---|
1805 | something starting with __ and the normal name is an alias. */
|
---|
1806 | #if defined __stub_$2 || defined __stub___$2
|
---|
1807 | choke me
|
---|
1808 | #endif
|
---|
1809 |
|
---|
1810 | int
|
---|
1811 | main ()
|
---|
1812 | {
|
---|
1813 | return $2 ();
|
---|
1814 | ;
|
---|
1815 | return 0;
|
---|
1816 | }
|
---|
1817 | _ACEOF
|
---|
1818 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1819 | eval "$3=yes"
|
---|
1820 | else
|
---|
1821 | eval "$3=no"
|
---|
1822 | fi
|
---|
1823 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1824 | conftest$ac_exeext conftest.$ac_ext
|
---|
1825 | fi
|
---|
1826 | eval ac_res=\$$3
|
---|
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1828 | $as_echo "$ac_res" >&6; }
|
---|
1829 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1830 |
|
---|
1831 | } # ac_fn_c_check_func
|
---|
1832 |
|
---|
1833 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1834 | # -------------------------------------------------------
|
---|
1835 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1836 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1837 | # accordingly.
|
---|
1838 | ac_fn_c_check_header_mongrel ()
|
---|
1839 | {
|
---|
1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1841 | if eval \${$3+:} false; then :
|
---|
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1843 | $as_echo_n "checking for $2... " >&6; }
|
---|
1844 | if eval \${$3+:} false; then :
|
---|
1845 | $as_echo_n "(cached) " >&6
|
---|
1846 | fi
|
---|
1847 | eval ac_res=\$$3
|
---|
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1849 | $as_echo "$ac_res" >&6; }
|
---|
1850 | else
|
---|
1851 | # Is the header compilable?
|
---|
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1853 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1855 | /* end confdefs.h. */
|
---|
1856 | $4
|
---|
1857 | #include <$2>
|
---|
1858 | _ACEOF
|
---|
1859 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1860 | ac_header_compiler=yes
|
---|
1861 | else
|
---|
1862 | ac_header_compiler=no
|
---|
1863 | fi
|
---|
1864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1866 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1867 |
|
---|
1868 | # Is the header present?
|
---|
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1870 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1872 | /* end confdefs.h. */
|
---|
1873 | #include <$2>
|
---|
1874 | _ACEOF
|
---|
1875 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1876 | ac_header_preproc=yes
|
---|
1877 | else
|
---|
1878 | ac_header_preproc=no
|
---|
1879 | fi
|
---|
1880 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1882 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1883 |
|
---|
1884 | # So? What about this header?
|
---|
1885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1886 | yes:no: )
|
---|
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1888 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1890 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1891 | ;;
|
---|
1892 | no:yes:* )
|
---|
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1894 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1896 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1898 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1900 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1902 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1903 | ;;
|
---|
1904 | esac
|
---|
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1906 | $as_echo_n "checking for $2... " >&6; }
|
---|
1907 | if eval \${$3+:} false; then :
|
---|
1908 | $as_echo_n "(cached) " >&6
|
---|
1909 | else
|
---|
1910 | eval "$3=\$ac_header_compiler"
|
---|
1911 | fi
|
---|
1912 | eval ac_res=\$$3
|
---|
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1914 | $as_echo "$ac_res" >&6; }
|
---|
1915 | fi
|
---|
1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1917 |
|
---|
1918 | } # ac_fn_c_check_header_mongrel
|
---|
1919 |
|
---|
1920 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
---|
1921 | # ---------------------------------------------
|
---|
1922 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
---|
1923 | # accordingly.
|
---|
1924 | ac_fn_c_check_decl ()
|
---|
1925 | {
|
---|
1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1927 | as_decl_name=`echo $2|sed 's/ *(.*//'`
|
---|
1928 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
---|
1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
---|
1930 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
---|
1931 | if eval \${$3+:} false; then :
|
---|
1932 | $as_echo_n "(cached) " >&6
|
---|
1933 | else
|
---|
1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1935 | /* end confdefs.h. */
|
---|
1936 | $4
|
---|
1937 | int
|
---|
1938 | main ()
|
---|
1939 | {
|
---|
1940 | #ifndef $as_decl_name
|
---|
1941 | #ifdef __cplusplus
|
---|
1942 | (void) $as_decl_use;
|
---|
1943 | #else
|
---|
1944 | (void) $as_decl_name;
|
---|
1945 | #endif
|
---|
1946 | #endif
|
---|
1947 |
|
---|
1948 | ;
|
---|
1949 | return 0;
|
---|
1950 | }
|
---|
1951 | _ACEOF
|
---|
1952 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1953 | eval "$3=yes"
|
---|
1954 | else
|
---|
1955 | eval "$3=no"
|
---|
1956 | fi
|
---|
1957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1958 | fi
|
---|
1959 | eval ac_res=\$$3
|
---|
1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1961 | $as_echo "$ac_res" >&6; }
|
---|
1962 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1963 |
|
---|
1964 | } # ac_fn_c_check_decl
|
---|
1965 |
|
---|
1966 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1967 | # -------------------------------------------
|
---|
1968 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1969 | # variable VAR accordingly.
|
---|
1970 | ac_fn_c_check_type ()
|
---|
1971 | {
|
---|
1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1974 | $as_echo_n "checking for $2... " >&6; }
|
---|
1975 | if eval \${$3+:} false; then :
|
---|
1976 | $as_echo_n "(cached) " >&6
|
---|
1977 | else
|
---|
1978 | eval "$3=no"
|
---|
1979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1980 | /* end confdefs.h. */
|
---|
1981 | $4
|
---|
1982 | int
|
---|
1983 | main ()
|
---|
1984 | {
|
---|
1985 | if (sizeof ($2))
|
---|
1986 | return 0;
|
---|
1987 | ;
|
---|
1988 | return 0;
|
---|
1989 | }
|
---|
1990 | _ACEOF
|
---|
1991 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1993 | /* end confdefs.h. */
|
---|
1994 | $4
|
---|
1995 | int
|
---|
1996 | main ()
|
---|
1997 | {
|
---|
1998 | if (sizeof (($2)))
|
---|
1999 | return 0;
|
---|
2000 | ;
|
---|
2001 | return 0;
|
---|
2002 | }
|
---|
2003 | _ACEOF
|
---|
2004 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2005 |
|
---|
2006 | else
|
---|
2007 | eval "$3=yes"
|
---|
2008 | fi
|
---|
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2010 | fi
|
---|
2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2012 | fi
|
---|
2013 | eval ac_res=\$$3
|
---|
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
2015 | $as_echo "$ac_res" >&6; }
|
---|
2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2017 |
|
---|
2018 | } # ac_fn_c_check_type
|
---|
2019 |
|
---|
2020 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
---|
2021 | # ----------------------------------------------------
|
---|
2022 | # Tries to find if the field MEMBER exists in type AGGR, after including
|
---|
2023 | # INCLUDES, setting cache variable VAR accordingly.
|
---|
2024 | ac_fn_c_check_member ()
|
---|
2025 | {
|
---|
2026 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
---|
2028 | $as_echo_n "checking for $2.$3... " >&6; }
|
---|
2029 | if eval \${$4+:} false; then :
|
---|
2030 | $as_echo_n "(cached) " >&6
|
---|
2031 | else
|
---|
2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2033 | /* end confdefs.h. */
|
---|
2034 | $5
|
---|
2035 | int
|
---|
2036 | main ()
|
---|
2037 | {
|
---|
2038 | static $2 ac_aggr;
|
---|
2039 | if (ac_aggr.$3)
|
---|
2040 | return 0;
|
---|
2041 | ;
|
---|
2042 | return 0;
|
---|
2043 | }
|
---|
2044 | _ACEOF
|
---|
2045 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2046 | eval "$4=yes"
|
---|
2047 | else
|
---|
2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2049 | /* end confdefs.h. */
|
---|
2050 | $5
|
---|
2051 | int
|
---|
2052 | main ()
|
---|
2053 | {
|
---|
2054 | static $2 ac_aggr;
|
---|
2055 | if (sizeof ac_aggr.$3)
|
---|
2056 | return 0;
|
---|
2057 | ;
|
---|
2058 | return 0;
|
---|
2059 | }
|
---|
2060 | _ACEOF
|
---|
2061 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2062 | eval "$4=yes"
|
---|
2063 | else
|
---|
2064 | eval "$4=no"
|
---|
2065 | fi
|
---|
2066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2067 | fi
|
---|
2068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2069 | fi
|
---|
2070 | eval ac_res=\$$4
|
---|
2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
2072 | $as_echo "$ac_res" >&6; }
|
---|
2073 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2074 |
|
---|
2075 | } # ac_fn_c_check_member
|
---|
2076 | cat >config.log <<_ACEOF
|
---|
2077 | This file contains any messages produced by compilers while
|
---|
2078 | running configure, to aid debugging if configure makes a mistake.
|
---|
2079 |
|
---|
2080 | It was created by rdesktop $as_me 1.8.4, which was
|
---|
2081 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
2082 |
|
---|
2083 | $ $0 $@
|
---|
2084 |
|
---|
2085 | _ACEOF
|
---|
2086 | exec 5>>config.log
|
---|
2087 | {
|
---|
2088 | cat <<_ASUNAME
|
---|
2089 | ## --------- ##
|
---|
2090 | ## Platform. ##
|
---|
2091 | ## --------- ##
|
---|
2092 |
|
---|
2093 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2094 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2095 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2096 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2097 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2098 |
|
---|
2099 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2100 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2101 |
|
---|
2102 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2103 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2104 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2105 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2106 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2107 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2108 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2109 |
|
---|
2110 | _ASUNAME
|
---|
2111 |
|
---|
2112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2113 | for as_dir in $PATH
|
---|
2114 | do
|
---|
2115 | IFS=$as_save_IFS
|
---|
2116 | test -z "$as_dir" && as_dir=.
|
---|
2117 | $as_echo "PATH: $as_dir"
|
---|
2118 | done
|
---|
2119 | IFS=$as_save_IFS
|
---|
2120 |
|
---|
2121 | } >&5
|
---|
2122 |
|
---|
2123 | cat >&5 <<_ACEOF
|
---|
2124 |
|
---|
2125 |
|
---|
2126 | ## ----------- ##
|
---|
2127 | ## Core tests. ##
|
---|
2128 | ## ----------- ##
|
---|
2129 |
|
---|
2130 | _ACEOF
|
---|
2131 |
|
---|
2132 |
|
---|
2133 | # Keep a trace of the command line.
|
---|
2134 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2135 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2136 | # Also quote any args containing shell meta-characters.
|
---|
2137 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2138 | ac_configure_args=
|
---|
2139 | ac_configure_args0=
|
---|
2140 | ac_configure_args1=
|
---|
2141 | ac_must_keep_next=false
|
---|
2142 | for ac_pass in 1 2
|
---|
2143 | do
|
---|
2144 | for ac_arg
|
---|
2145 | do
|
---|
2146 | case $ac_arg in
|
---|
2147 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2148 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2149 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2150 | continue ;;
|
---|
2151 | *\'*)
|
---|
2152 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2153 | esac
|
---|
2154 | case $ac_pass in
|
---|
2155 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2156 | 2)
|
---|
2157 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2158 | if test $ac_must_keep_next = true; then
|
---|
2159 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2160 | else
|
---|
2161 | case $ac_arg in
|
---|
2162 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2163 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2164 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2165 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2166 | case "$ac_configure_args0 " in
|
---|
2167 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2168 | esac
|
---|
2169 | ;;
|
---|
2170 | -* ) ac_must_keep_next=true ;;
|
---|
2171 | esac
|
---|
2172 | fi
|
---|
2173 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2174 | ;;
|
---|
2175 | esac
|
---|
2176 | done
|
---|
2177 | done
|
---|
2178 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2179 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2180 |
|
---|
2181 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2182 | # config.log. We remove comments because anyway the quotes in there
|
---|
2183 | # would cause problems or look ugly.
|
---|
2184 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2185 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2186 | trap 'exit_status=$?
|
---|
2187 | # Save into config.log some information that might help in debugging.
|
---|
2188 | {
|
---|
2189 | echo
|
---|
2190 |
|
---|
2191 | $as_echo "## ---------------- ##
|
---|
2192 | ## Cache variables. ##
|
---|
2193 | ## ---------------- ##"
|
---|
2194 | echo
|
---|
2195 | # The following way of writing the cache mishandles newlines in values,
|
---|
2196 | (
|
---|
2197 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2198 | eval ac_val=\$$ac_var
|
---|
2199 | case $ac_val in #(
|
---|
2200 | *${as_nl}*)
|
---|
2201 | case $ac_var in #(
|
---|
2202 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2203 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2204 | esac
|
---|
2205 | case $ac_var in #(
|
---|
2206 | _ | IFS | as_nl) ;; #(
|
---|
2207 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2208 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2209 | esac ;;
|
---|
2210 | esac
|
---|
2211 | done
|
---|
2212 | (set) 2>&1 |
|
---|
2213 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2214 | *${as_nl}ac_space=\ *)
|
---|
2215 | sed -n \
|
---|
2216 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2217 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2218 | ;; #(
|
---|
2219 | *)
|
---|
2220 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2221 | ;;
|
---|
2222 | esac |
|
---|
2223 | sort
|
---|
2224 | )
|
---|
2225 | echo
|
---|
2226 |
|
---|
2227 | $as_echo "## ----------------- ##
|
---|
2228 | ## Output variables. ##
|
---|
2229 | ## ----------------- ##"
|
---|
2230 | echo
|
---|
2231 | for ac_var in $ac_subst_vars
|
---|
2232 | do
|
---|
2233 | eval ac_val=\$$ac_var
|
---|
2234 | case $ac_val in
|
---|
2235 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2236 | esac
|
---|
2237 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2238 | done | sort
|
---|
2239 | echo
|
---|
2240 |
|
---|
2241 | if test -n "$ac_subst_files"; then
|
---|
2242 | $as_echo "## ------------------- ##
|
---|
2243 | ## File substitutions. ##
|
---|
2244 | ## ------------------- ##"
|
---|
2245 | echo
|
---|
2246 | for ac_var in $ac_subst_files
|
---|
2247 | do
|
---|
2248 | eval ac_val=\$$ac_var
|
---|
2249 | case $ac_val in
|
---|
2250 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2251 | esac
|
---|
2252 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2253 | done | sort
|
---|
2254 | echo
|
---|
2255 | fi
|
---|
2256 |
|
---|
2257 | if test -s confdefs.h; then
|
---|
2258 | $as_echo "## ----------- ##
|
---|
2259 | ## confdefs.h. ##
|
---|
2260 | ## ----------- ##"
|
---|
2261 | echo
|
---|
2262 | cat confdefs.h
|
---|
2263 | echo
|
---|
2264 | fi
|
---|
2265 | test "$ac_signal" != 0 &&
|
---|
2266 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2267 | $as_echo "$as_me: exit $exit_status"
|
---|
2268 | } >&5
|
---|
2269 | rm -f core *.core core.conftest.* &&
|
---|
2270 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2271 | exit $exit_status
|
---|
2272 | ' 0
|
---|
2273 | for ac_signal in 1 2 13 15; do
|
---|
2274 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2275 | done
|
---|
2276 | ac_signal=0
|
---|
2277 |
|
---|
2278 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2279 | rm -f -r conftest* confdefs.h
|
---|
2280 |
|
---|
2281 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2282 |
|
---|
2283 | # Predefined preprocessor variables.
|
---|
2284 |
|
---|
2285 | cat >>confdefs.h <<_ACEOF
|
---|
2286 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2287 | _ACEOF
|
---|
2288 |
|
---|
2289 | cat >>confdefs.h <<_ACEOF
|
---|
2290 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2291 | _ACEOF
|
---|
2292 |
|
---|
2293 | cat >>confdefs.h <<_ACEOF
|
---|
2294 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2295 | _ACEOF
|
---|
2296 |
|
---|
2297 | cat >>confdefs.h <<_ACEOF
|
---|
2298 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2299 | _ACEOF
|
---|
2300 |
|
---|
2301 | cat >>confdefs.h <<_ACEOF
|
---|
2302 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2303 | _ACEOF
|
---|
2304 |
|
---|
2305 | cat >>confdefs.h <<_ACEOF
|
---|
2306 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2307 | _ACEOF
|
---|
2308 |
|
---|
2309 |
|
---|
2310 | # Let the site file select an alternate cache file if it wants to.
|
---|
2311 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2312 | ac_site_file1=NONE
|
---|
2313 | ac_site_file2=NONE
|
---|
2314 | if test -n "$CONFIG_SITE"; then
|
---|
2315 | # We do not want a PATH search for config.site.
|
---|
2316 | case $CONFIG_SITE in #((
|
---|
2317 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2318 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2319 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2320 | esac
|
---|
2321 | elif test "x$prefix" != xNONE; then
|
---|
2322 | ac_site_file1=$prefix/share/config.site
|
---|
2323 | ac_site_file2=$prefix/etc/config.site
|
---|
2324 | else
|
---|
2325 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2326 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2327 | fi
|
---|
2328 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2329 | do
|
---|
2330 | test "x$ac_site_file" = xNONE && continue
|
---|
2331 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2333 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2334 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2335 | . "$ac_site_file" \
|
---|
2336 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2338 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2339 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2340 | fi
|
---|
2341 | done
|
---|
2342 |
|
---|
2343 | if test -r "$cache_file"; then
|
---|
2344 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2345 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2346 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2348 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2349 | case $cache_file in
|
---|
2350 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2351 | *) . "./$cache_file";;
|
---|
2352 | esac
|
---|
2353 | fi
|
---|
2354 | else
|
---|
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2356 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2357 | >$cache_file
|
---|
2358 | fi
|
---|
2359 |
|
---|
2360 | # Check that the precious variables saved in the cache have kept the same
|
---|
2361 | # value.
|
---|
2362 | ac_cache_corrupted=false
|
---|
2363 | for ac_var in $ac_precious_vars; do
|
---|
2364 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2365 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2366 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2367 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2368 | case $ac_old_set,$ac_new_set in
|
---|
2369 | set,)
|
---|
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2371 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2372 | ac_cache_corrupted=: ;;
|
---|
2373 | ,set)
|
---|
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2375 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2376 | ac_cache_corrupted=: ;;
|
---|
2377 | ,);;
|
---|
2378 | *)
|
---|
2379 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2380 | # differences in whitespace do not lead to failure.
|
---|
2381 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2382 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2383 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2385 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2386 | ac_cache_corrupted=:
|
---|
2387 | else
|
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2389 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2390 | eval $ac_var=\$ac_old_val
|
---|
2391 | fi
|
---|
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2393 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2395 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2396 | fi;;
|
---|
2397 | esac
|
---|
2398 | # Pass precious variables to config.status.
|
---|
2399 | if test "$ac_new_set" = set; then
|
---|
2400 | case $ac_new_val in
|
---|
2401 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2402 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2403 | esac
|
---|
2404 | case " $ac_configure_args " in
|
---|
2405 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2406 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2407 | esac
|
---|
2408 | fi
|
---|
2409 | done
|
---|
2410 | if $ac_cache_corrupted; then
|
---|
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2414 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2415 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2416 | fi
|
---|
2417 | ## -------------------- ##
|
---|
2418 | ## Main body of script. ##
|
---|
2419 | ## -------------------- ##
|
---|
2420 |
|
---|
2421 | ac_ext=c
|
---|
2422 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2426 |
|
---|
2427 |
|
---|
2428 |
|
---|
2429 |
|
---|
2430 |
|
---|
2431 | ac_aux_dir=
|
---|
2432 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2433 | if test -f "$ac_dir/install-sh"; then
|
---|
2434 | ac_aux_dir=$ac_dir
|
---|
2435 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2436 | break
|
---|
2437 | elif test -f "$ac_dir/install.sh"; then
|
---|
2438 | ac_aux_dir=$ac_dir
|
---|
2439 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2440 | break
|
---|
2441 | elif test -f "$ac_dir/shtool"; then
|
---|
2442 | ac_aux_dir=$ac_dir
|
---|
2443 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2444 | break
|
---|
2445 | fi
|
---|
2446 | done
|
---|
2447 | if test -z "$ac_aux_dir"; then
|
---|
2448 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2449 | fi
|
---|
2450 |
|
---|
2451 | # These three variables are undocumented and unsupported,
|
---|
2452 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2453 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2454 | # whose full name contains unusual characters.
|
---|
2455 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2456 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2457 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2458 |
|
---|
2459 |
|
---|
2460 | # Make sure we can run config.sub.
|
---|
2461 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2462 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2463 |
|
---|
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2465 | $as_echo_n "checking build system type... " >&6; }
|
---|
2466 | if ${ac_cv_build+:} false; then :
|
---|
2467 | $as_echo_n "(cached) " >&6
|
---|
2468 | else
|
---|
2469 | ac_build_alias=$build_alias
|
---|
2470 | test "x$ac_build_alias" = x &&
|
---|
2471 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2472 | test "x$ac_build_alias" = x &&
|
---|
2473 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2474 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2475 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2476 |
|
---|
2477 | fi
|
---|
2478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2479 | $as_echo "$ac_cv_build" >&6; }
|
---|
2480 | case $ac_cv_build in
|
---|
2481 | *-*-*) ;;
|
---|
2482 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2483 | esac
|
---|
2484 | build=$ac_cv_build
|
---|
2485 | ac_save_IFS=$IFS; IFS='-'
|
---|
2486 | set x $ac_cv_build
|
---|
2487 | shift
|
---|
2488 | build_cpu=$1
|
---|
2489 | build_vendor=$2
|
---|
2490 | shift; shift
|
---|
2491 | # Remember, the first character of IFS is used to create $*,
|
---|
2492 | # except with old shells:
|
---|
2493 | build_os=$*
|
---|
2494 | IFS=$ac_save_IFS
|
---|
2495 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2496 |
|
---|
2497 |
|
---|
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2499 | $as_echo_n "checking host system type... " >&6; }
|
---|
2500 | if ${ac_cv_host+:} false; then :
|
---|
2501 | $as_echo_n "(cached) " >&6
|
---|
2502 | else
|
---|
2503 | if test "x$host_alias" = x; then
|
---|
2504 | ac_cv_host=$ac_cv_build
|
---|
2505 | else
|
---|
2506 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2507 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2508 | fi
|
---|
2509 |
|
---|
2510 | fi
|
---|
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2512 | $as_echo "$ac_cv_host" >&6; }
|
---|
2513 | case $ac_cv_host in
|
---|
2514 | *-*-*) ;;
|
---|
2515 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2516 | esac
|
---|
2517 | host=$ac_cv_host
|
---|
2518 | ac_save_IFS=$IFS; IFS='-'
|
---|
2519 | set x $ac_cv_host
|
---|
2520 | shift
|
---|
2521 | host_cpu=$1
|
---|
2522 | host_vendor=$2
|
---|
2523 | shift; shift
|
---|
2524 | # Remember, the first character of IFS is used to create $*,
|
---|
2525 | # except with old shells:
|
---|
2526 | host_os=$*
|
---|
2527 | IFS=$ac_save_IFS
|
---|
2528 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2529 |
|
---|
2530 |
|
---|
2531 |
|
---|
2532 | ac_ext=c
|
---|
2533 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2537 | if test -n "$ac_tool_prefix"; then
|
---|
2538 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2539 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2541 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2542 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2543 | $as_echo_n "(cached) " >&6
|
---|
2544 | else
|
---|
2545 | if test -n "$CC"; then
|
---|
2546 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2547 | else
|
---|
2548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2549 | for as_dir in $PATH
|
---|
2550 | do
|
---|
2551 | IFS=$as_save_IFS
|
---|
2552 | test -z "$as_dir" && as_dir=.
|
---|
2553 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2555 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2557 | break 2
|
---|
2558 | fi
|
---|
2559 | done
|
---|
2560 | done
|
---|
2561 | IFS=$as_save_IFS
|
---|
2562 |
|
---|
2563 | fi
|
---|
2564 | fi
|
---|
2565 | CC=$ac_cv_prog_CC
|
---|
2566 | if test -n "$CC"; then
|
---|
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2568 | $as_echo "$CC" >&6; }
|
---|
2569 | else
|
---|
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2571 | $as_echo "no" >&6; }
|
---|
2572 | fi
|
---|
2573 |
|
---|
2574 |
|
---|
2575 | fi
|
---|
2576 | if test -z "$ac_cv_prog_CC"; then
|
---|
2577 | ac_ct_CC=$CC
|
---|
2578 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2579 | set dummy gcc; ac_word=$2
|
---|
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2581 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2582 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2583 | $as_echo_n "(cached) " >&6
|
---|
2584 | else
|
---|
2585 | if test -n "$ac_ct_CC"; then
|
---|
2586 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2587 | else
|
---|
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2589 | for as_dir in $PATH
|
---|
2590 | do
|
---|
2591 | IFS=$as_save_IFS
|
---|
2592 | test -z "$as_dir" && as_dir=.
|
---|
2593 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2595 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2597 | break 2
|
---|
2598 | fi
|
---|
2599 | done
|
---|
2600 | done
|
---|
2601 | IFS=$as_save_IFS
|
---|
2602 |
|
---|
2603 | fi
|
---|
2604 | fi
|
---|
2605 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2606 | if test -n "$ac_ct_CC"; then
|
---|
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2608 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2609 | else
|
---|
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2611 | $as_echo "no" >&6; }
|
---|
2612 | fi
|
---|
2613 |
|
---|
2614 | if test "x$ac_ct_CC" = x; then
|
---|
2615 | CC=""
|
---|
2616 | else
|
---|
2617 | case $cross_compiling:$ac_tool_warned in
|
---|
2618 | yes:)
|
---|
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2620 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2621 | ac_tool_warned=yes ;;
|
---|
2622 | esac
|
---|
2623 | CC=$ac_ct_CC
|
---|
2624 | fi
|
---|
2625 | else
|
---|
2626 | CC="$ac_cv_prog_CC"
|
---|
2627 | fi
|
---|
2628 |
|
---|
2629 | if test -z "$CC"; then
|
---|
2630 | if test -n "$ac_tool_prefix"; then
|
---|
2631 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2632 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2634 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2635 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2636 | $as_echo_n "(cached) " >&6
|
---|
2637 | else
|
---|
2638 | if test -n "$CC"; then
|
---|
2639 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2640 | else
|
---|
2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2642 | for as_dir in $PATH
|
---|
2643 | do
|
---|
2644 | IFS=$as_save_IFS
|
---|
2645 | test -z "$as_dir" && as_dir=.
|
---|
2646 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2648 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2650 | break 2
|
---|
2651 | fi
|
---|
2652 | done
|
---|
2653 | done
|
---|
2654 | IFS=$as_save_IFS
|
---|
2655 |
|
---|
2656 | fi
|
---|
2657 | fi
|
---|
2658 | CC=$ac_cv_prog_CC
|
---|
2659 | if test -n "$CC"; then
|
---|
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2661 | $as_echo "$CC" >&6; }
|
---|
2662 | else
|
---|
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2664 | $as_echo "no" >&6; }
|
---|
2665 | fi
|
---|
2666 |
|
---|
2667 |
|
---|
2668 | fi
|
---|
2669 | fi
|
---|
2670 | if test -z "$CC"; then
|
---|
2671 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2672 | set dummy cc; ac_word=$2
|
---|
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2674 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2675 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2676 | $as_echo_n "(cached) " >&6
|
---|
2677 | else
|
---|
2678 | if test -n "$CC"; then
|
---|
2679 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2680 | else
|
---|
2681 | ac_prog_rejected=no
|
---|
2682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2683 | for as_dir in $PATH
|
---|
2684 | do
|
---|
2685 | IFS=$as_save_IFS
|
---|
2686 | test -z "$as_dir" && as_dir=.
|
---|
2687 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2688 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2689 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2690 | ac_prog_rejected=yes
|
---|
2691 | continue
|
---|
2692 | fi
|
---|
2693 | ac_cv_prog_CC="cc"
|
---|
2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2695 | break 2
|
---|
2696 | fi
|
---|
2697 | done
|
---|
2698 | done
|
---|
2699 | IFS=$as_save_IFS
|
---|
2700 |
|
---|
2701 | if test $ac_prog_rejected = yes; then
|
---|
2702 | # We found a bogon in the path, so make sure we never use it.
|
---|
2703 | set dummy $ac_cv_prog_CC
|
---|
2704 | shift
|
---|
2705 | if test $# != 0; then
|
---|
2706 | # We chose a different compiler from the bogus one.
|
---|
2707 | # However, it has the same basename, so the bogon will be chosen
|
---|
2708 | # first if we set CC to just the basename; use the full file name.
|
---|
2709 | shift
|
---|
2710 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2711 | fi
|
---|
2712 | fi
|
---|
2713 | fi
|
---|
2714 | fi
|
---|
2715 | CC=$ac_cv_prog_CC
|
---|
2716 | if test -n "$CC"; then
|
---|
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2718 | $as_echo "$CC" >&6; }
|
---|
2719 | else
|
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2721 | $as_echo "no" >&6; }
|
---|
2722 | fi
|
---|
2723 |
|
---|
2724 |
|
---|
2725 | fi
|
---|
2726 | if test -z "$CC"; then
|
---|
2727 | if test -n "$ac_tool_prefix"; then
|
---|
2728 | for ac_prog in cl.exe
|
---|
2729 | do
|
---|
2730 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2731 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2733 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2734 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2735 | $as_echo_n "(cached) " >&6
|
---|
2736 | else
|
---|
2737 | if test -n "$CC"; then
|
---|
2738 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2739 | else
|
---|
2740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2741 | for as_dir in $PATH
|
---|
2742 | do
|
---|
2743 | IFS=$as_save_IFS
|
---|
2744 | test -z "$as_dir" && as_dir=.
|
---|
2745 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2747 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2749 | break 2
|
---|
2750 | fi
|
---|
2751 | done
|
---|
2752 | done
|
---|
2753 | IFS=$as_save_IFS
|
---|
2754 |
|
---|
2755 | fi
|
---|
2756 | fi
|
---|
2757 | CC=$ac_cv_prog_CC
|
---|
2758 | if test -n "$CC"; then
|
---|
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2760 | $as_echo "$CC" >&6; }
|
---|
2761 | else
|
---|
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2763 | $as_echo "no" >&6; }
|
---|
2764 | fi
|
---|
2765 |
|
---|
2766 |
|
---|
2767 | test -n "$CC" && break
|
---|
2768 | done
|
---|
2769 | fi
|
---|
2770 | if test -z "$CC"; then
|
---|
2771 | ac_ct_CC=$CC
|
---|
2772 | for ac_prog in cl.exe
|
---|
2773 | do
|
---|
2774 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2775 | set dummy $ac_prog; ac_word=$2
|
---|
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2777 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2778 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2779 | $as_echo_n "(cached) " >&6
|
---|
2780 | else
|
---|
2781 | if test -n "$ac_ct_CC"; then
|
---|
2782 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2783 | else
|
---|
2784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2785 | for as_dir in $PATH
|
---|
2786 | do
|
---|
2787 | IFS=$as_save_IFS
|
---|
2788 | test -z "$as_dir" && as_dir=.
|
---|
2789 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2791 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2793 | break 2
|
---|
2794 | fi
|
---|
2795 | done
|
---|
2796 | done
|
---|
2797 | IFS=$as_save_IFS
|
---|
2798 |
|
---|
2799 | fi
|
---|
2800 | fi
|
---|
2801 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2802 | if test -n "$ac_ct_CC"; then
|
---|
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2804 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2805 | else
|
---|
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2807 | $as_echo "no" >&6; }
|
---|
2808 | fi
|
---|
2809 |
|
---|
2810 |
|
---|
2811 | test -n "$ac_ct_CC" && break
|
---|
2812 | done
|
---|
2813 |
|
---|
2814 | if test "x$ac_ct_CC" = x; then
|
---|
2815 | CC=""
|
---|
2816 | else
|
---|
2817 | case $cross_compiling:$ac_tool_warned in
|
---|
2818 | yes:)
|
---|
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2821 | ac_tool_warned=yes ;;
|
---|
2822 | esac
|
---|
2823 | CC=$ac_ct_CC
|
---|
2824 | fi
|
---|
2825 | fi
|
---|
2826 |
|
---|
2827 | fi
|
---|
2828 |
|
---|
2829 |
|
---|
2830 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2832 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2833 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2834 |
|
---|
2835 | # Provide some information about the compiler.
|
---|
2836 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2837 | set X $ac_compile
|
---|
2838 | ac_compiler=$2
|
---|
2839 | for ac_option in --version -v -V -qversion; do
|
---|
2840 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
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_compiler $ac_option >&5") 2>conftest.err
|
---|
2848 | ac_status=$?
|
---|
2849 | if test -s conftest.err; then
|
---|
2850 | sed '10a\
|
---|
2851 | ... rest of stderr output deleted ...
|
---|
2852 | 10q' conftest.err >conftest.er1
|
---|
2853 | cat conftest.er1 >&5
|
---|
2854 | fi
|
---|
2855 | rm -f conftest.er1 conftest.err
|
---|
2856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2857 | test $ac_status = 0; }
|
---|
2858 | done
|
---|
2859 |
|
---|
2860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2861 | /* end confdefs.h. */
|
---|
2862 |
|
---|
2863 | int
|
---|
2864 | main ()
|
---|
2865 | {
|
---|
2866 |
|
---|
2867 | ;
|
---|
2868 | return 0;
|
---|
2869 | }
|
---|
2870 | _ACEOF
|
---|
2871 | ac_clean_files_save=$ac_clean_files
|
---|
2872 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2873 | # Try to create an executable without -o first, disregard a.out.
|
---|
2874 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2875 | # of exeext.
|
---|
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2877 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2878 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2879 |
|
---|
2880 | # The possible output files:
|
---|
2881 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2882 |
|
---|
2883 | ac_rmfiles=
|
---|
2884 | for ac_file in $ac_files
|
---|
2885 | do
|
---|
2886 | case $ac_file in
|
---|
2887 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2888 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2889 | esac
|
---|
2890 | done
|
---|
2891 | rm -f $ac_rmfiles
|
---|
2892 |
|
---|
2893 | if { { ac_try="$ac_link_default"
|
---|
2894 | case "(($ac_try" in
|
---|
2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2896 | *) ac_try_echo=$ac_try;;
|
---|
2897 | esac
|
---|
2898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2899 | $as_echo "$ac_try_echo"; } >&5
|
---|
2900 | (eval "$ac_link_default") 2>&5
|
---|
2901 | ac_status=$?
|
---|
2902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2903 | test $ac_status = 0; }; then :
|
---|
2904 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2905 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2906 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2907 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2908 | # Autoconf.
|
---|
2909 | for ac_file in $ac_files ''
|
---|
2910 | do
|
---|
2911 | test -f "$ac_file" || continue
|
---|
2912 | case $ac_file in
|
---|
2913 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2914 | ;;
|
---|
2915 | [ab].out )
|
---|
2916 | # We found the default executable, but exeext='' is most
|
---|
2917 | # certainly right.
|
---|
2918 | break;;
|
---|
2919 | *.* )
|
---|
2920 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2921 | then :; else
|
---|
2922 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2923 | fi
|
---|
2924 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2925 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2926 | # argument, so we may need to know it at that point already.
|
---|
2927 | # Even if this section looks crufty: it has the advantage of
|
---|
2928 | # actually working.
|
---|
2929 | break;;
|
---|
2930 | * )
|
---|
2931 | break;;
|
---|
2932 | esac
|
---|
2933 | done
|
---|
2934 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2935 |
|
---|
2936 | else
|
---|
2937 | ac_file=''
|
---|
2938 | fi
|
---|
2939 | if test -z "$ac_file"; then :
|
---|
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2941 | $as_echo "no" >&6; }
|
---|
2942 | $as_echo "$as_me: failed program was:" >&5
|
---|
2943 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2944 |
|
---|
2945 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2946 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2947 | as_fn_error 77 "C compiler cannot create executables
|
---|
2948 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2949 | else
|
---|
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2951 | $as_echo "yes" >&6; }
|
---|
2952 | fi
|
---|
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2954 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2956 | $as_echo "$ac_file" >&6; }
|
---|
2957 | ac_exeext=$ac_cv_exeext
|
---|
2958 |
|
---|
2959 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2960 | ac_clean_files=$ac_clean_files_save
|
---|
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2962 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2963 | if { { ac_try="$ac_link"
|
---|
2964 | case "(($ac_try" in
|
---|
2965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2966 | *) ac_try_echo=$ac_try;;
|
---|
2967 | esac
|
---|
2968 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2969 | $as_echo "$ac_try_echo"; } >&5
|
---|
2970 | (eval "$ac_link") 2>&5
|
---|
2971 | ac_status=$?
|
---|
2972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2973 | test $ac_status = 0; }; then :
|
---|
2974 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2975 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2976 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2977 | # `rm'.
|
---|
2978 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2979 | test -f "$ac_file" || continue
|
---|
2980 | case $ac_file in
|
---|
2981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2982 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2983 | break;;
|
---|
2984 | * ) break;;
|
---|
2985 | esac
|
---|
2986 | done
|
---|
2987 | else
|
---|
2988 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2990 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2991 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2992 | fi
|
---|
2993 | rm -f conftest conftest$ac_cv_exeext
|
---|
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2995 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2996 |
|
---|
2997 | rm -f conftest.$ac_ext
|
---|
2998 | EXEEXT=$ac_cv_exeext
|
---|
2999 | ac_exeext=$EXEEXT
|
---|
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3001 | /* end confdefs.h. */
|
---|
3002 | #include <stdio.h>
|
---|
3003 | int
|
---|
3004 | main ()
|
---|
3005 | {
|
---|
3006 | FILE *f = fopen ("conftest.out", "w");
|
---|
3007 | return ferror (f) || fclose (f) != 0;
|
---|
3008 |
|
---|
3009 | ;
|
---|
3010 | return 0;
|
---|
3011 | }
|
---|
3012 | _ACEOF
|
---|
3013 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3014 | # Check that the compiler produces executables we can run. If not, either
|
---|
3015 | # the compiler is broken, or we cross compile.
|
---|
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3017 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3018 | if test "$cross_compiling" != yes; then
|
---|
3019 | { { ac_try="$ac_link"
|
---|
3020 | case "(($ac_try" in
|
---|
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3022 | *) ac_try_echo=$ac_try;;
|
---|
3023 | esac
|
---|
3024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3025 | $as_echo "$ac_try_echo"; } >&5
|
---|
3026 | (eval "$ac_link") 2>&5
|
---|
3027 | ac_status=$?
|
---|
3028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3029 | test $ac_status = 0; }
|
---|
3030 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3031 | { { case "(($ac_try" in
|
---|
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3033 | *) ac_try_echo=$ac_try;;
|
---|
3034 | esac
|
---|
3035 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3036 | $as_echo "$ac_try_echo"; } >&5
|
---|
3037 | (eval "$ac_try") 2>&5
|
---|
3038 | ac_status=$?
|
---|
3039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3040 | test $ac_status = 0; }; }; then
|
---|
3041 | cross_compiling=no
|
---|
3042 | else
|
---|
3043 | if test "$cross_compiling" = maybe; then
|
---|
3044 | cross_compiling=yes
|
---|
3045 | else
|
---|
3046 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3048 | as_fn_error $? "cannot run C compiled programs.
|
---|
3049 | If you meant to cross compile, use \`--host'.
|
---|
3050 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3051 | fi
|
---|
3052 | fi
|
---|
3053 | fi
|
---|
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3055 | $as_echo "$cross_compiling" >&6; }
|
---|
3056 |
|
---|
3057 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3058 | ac_clean_files=$ac_clean_files_save
|
---|
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3060 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3061 | if ${ac_cv_objext+:} false; then :
|
---|
3062 | $as_echo_n "(cached) " >&6
|
---|
3063 | else
|
---|
3064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3065 | /* end confdefs.h. */
|
---|
3066 |
|
---|
3067 | int
|
---|
3068 | main ()
|
---|
3069 | {
|
---|
3070 |
|
---|
3071 | ;
|
---|
3072 | return 0;
|
---|
3073 | }
|
---|
3074 | _ACEOF
|
---|
3075 | rm -f conftest.o conftest.obj
|
---|
3076 | if { { ac_try="$ac_compile"
|
---|
3077 | case "(($ac_try" in
|
---|
3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3079 | *) ac_try_echo=$ac_try;;
|
---|
3080 | esac
|
---|
3081 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3082 | $as_echo "$ac_try_echo"; } >&5
|
---|
3083 | (eval "$ac_compile") 2>&5
|
---|
3084 | ac_status=$?
|
---|
3085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3086 | test $ac_status = 0; }; then :
|
---|
3087 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3088 | test -f "$ac_file" || continue;
|
---|
3089 | case $ac_file in
|
---|
3090 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3091 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3092 | break;;
|
---|
3093 | esac
|
---|
3094 | done
|
---|
3095 | else
|
---|
3096 | $as_echo "$as_me: failed program was:" >&5
|
---|
3097 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3098 |
|
---|
3099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3100 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3101 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3102 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3103 | fi
|
---|
3104 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3105 | fi
|
---|
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3107 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3108 | OBJEXT=$ac_cv_objext
|
---|
3109 | ac_objext=$OBJEXT
|
---|
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3111 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3112 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3113 | $as_echo_n "(cached) " >&6
|
---|
3114 | else
|
---|
3115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3116 | /* end confdefs.h. */
|
---|
3117 |
|
---|
3118 | int
|
---|
3119 | main ()
|
---|
3120 | {
|
---|
3121 | #ifndef __GNUC__
|
---|
3122 | choke me
|
---|
3123 | #endif
|
---|
3124 |
|
---|
3125 | ;
|
---|
3126 | return 0;
|
---|
3127 | }
|
---|
3128 | _ACEOF
|
---|
3129 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3130 | ac_compiler_gnu=yes
|
---|
3131 | else
|
---|
3132 | ac_compiler_gnu=no
|
---|
3133 | fi
|
---|
3134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3135 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3136 |
|
---|
3137 | fi
|
---|
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3139 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3140 | if test $ac_compiler_gnu = yes; then
|
---|
3141 | GCC=yes
|
---|
3142 | else
|
---|
3143 | GCC=
|
---|
3144 | fi
|
---|
3145 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3146 | ac_save_CFLAGS=$CFLAGS
|
---|
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3148 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3149 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3150 | $as_echo_n "(cached) " >&6
|
---|
3151 | else
|
---|
3152 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3153 | ac_c_werror_flag=yes
|
---|
3154 | ac_cv_prog_cc_g=no
|
---|
3155 | CFLAGS="-g"
|
---|
3156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3157 | /* end confdefs.h. */
|
---|
3158 |
|
---|
3159 | int
|
---|
3160 | main ()
|
---|
3161 | {
|
---|
3162 |
|
---|
3163 | ;
|
---|
3164 | return 0;
|
---|
3165 | }
|
---|
3166 | _ACEOF
|
---|
3167 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3168 | ac_cv_prog_cc_g=yes
|
---|
3169 | else
|
---|
3170 | CFLAGS=""
|
---|
3171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3172 | /* end confdefs.h. */
|
---|
3173 |
|
---|
3174 | int
|
---|
3175 | main ()
|
---|
3176 | {
|
---|
3177 |
|
---|
3178 | ;
|
---|
3179 | return 0;
|
---|
3180 | }
|
---|
3181 | _ACEOF
|
---|
3182 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3183 |
|
---|
3184 | else
|
---|
3185 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3186 | CFLAGS="-g"
|
---|
3187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3188 | /* end confdefs.h. */
|
---|
3189 |
|
---|
3190 | int
|
---|
3191 | main ()
|
---|
3192 | {
|
---|
3193 |
|
---|
3194 | ;
|
---|
3195 | return 0;
|
---|
3196 | }
|
---|
3197 | _ACEOF
|
---|
3198 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3199 | ac_cv_prog_cc_g=yes
|
---|
3200 | fi
|
---|
3201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3202 | fi
|
---|
3203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3204 | fi
|
---|
3205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3206 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3207 | fi
|
---|
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3209 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3210 | if test "$ac_test_CFLAGS" = set; then
|
---|
3211 | CFLAGS=$ac_save_CFLAGS
|
---|
3212 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3213 | if test "$GCC" = yes; then
|
---|
3214 | CFLAGS="-g -O2"
|
---|
3215 | else
|
---|
3216 | CFLAGS="-g"
|
---|
3217 | fi
|
---|
3218 | else
|
---|
3219 | if test "$GCC" = yes; then
|
---|
3220 | CFLAGS="-O2"
|
---|
3221 | else
|
---|
3222 | CFLAGS=
|
---|
3223 | fi
|
---|
3224 | fi
|
---|
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3226 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3227 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3228 | $as_echo_n "(cached) " >&6
|
---|
3229 | else
|
---|
3230 | ac_cv_prog_cc_c89=no
|
---|
3231 | ac_save_CC=$CC
|
---|
3232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3233 | /* end confdefs.h. */
|
---|
3234 | #include <stdarg.h>
|
---|
3235 | #include <stdio.h>
|
---|
3236 | struct stat;
|
---|
3237 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3238 | struct buf { int x; };
|
---|
3239 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3240 | static char *e (p, i)
|
---|
3241 | char **p;
|
---|
3242 | int i;
|
---|
3243 | {
|
---|
3244 | return p[i];
|
---|
3245 | }
|
---|
3246 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3247 | {
|
---|
3248 | char *s;
|
---|
3249 | va_list v;
|
---|
3250 | va_start (v,p);
|
---|
3251 | s = g (p, va_arg (v,int));
|
---|
3252 | va_end (v);
|
---|
3253 | return s;
|
---|
3254 | }
|
---|
3255 |
|
---|
3256 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3257 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3258 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3259 | as 'x'. The following induces an error, until -std is added to get
|
---|
3260 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3261 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3262 | that's true only with -std. */
|
---|
3263 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3264 |
|
---|
3265 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3266 | inside strings and character constants. */
|
---|
3267 | #define FOO(x) 'x'
|
---|
3268 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3269 |
|
---|
3270 | int test (int i, double x);
|
---|
3271 | struct s1 {int (*f) (int a);};
|
---|
3272 | struct s2 {int (*f) (double a);};
|
---|
3273 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3274 | int argc;
|
---|
3275 | char **argv;
|
---|
3276 | int
|
---|
3277 | main ()
|
---|
3278 | {
|
---|
3279 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3280 | ;
|
---|
3281 | return 0;
|
---|
3282 | }
|
---|
3283 | _ACEOF
|
---|
3284 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3285 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3286 | do
|
---|
3287 | CC="$ac_save_CC $ac_arg"
|
---|
3288 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3289 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3290 | fi
|
---|
3291 | rm -f core conftest.err conftest.$ac_objext
|
---|
3292 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3293 | done
|
---|
3294 | rm -f conftest.$ac_ext
|
---|
3295 | CC=$ac_save_CC
|
---|
3296 |
|
---|
3297 | fi
|
---|
3298 | # AC_CACHE_VAL
|
---|
3299 | case "x$ac_cv_prog_cc_c89" in
|
---|
3300 | x)
|
---|
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3302 | $as_echo "none needed" >&6; } ;;
|
---|
3303 | xno)
|
---|
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3305 | $as_echo "unsupported" >&6; } ;;
|
---|
3306 | *)
|
---|
3307 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3309 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3310 | esac
|
---|
3311 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3312 |
|
---|
3313 | fi
|
---|
3314 |
|
---|
3315 | ac_ext=c
|
---|
3316 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3320 |
|
---|
3321 | if test "$GCC" = yes; then
|
---|
3322 | CFLAGS="$CFLAGS -Wall"
|
---|
3323 | fi
|
---|
3324 | ac_ext=cpp
|
---|
3325 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3329 | if test -z "$CXX"; then
|
---|
3330 | if test -n "$CCC"; then
|
---|
3331 | CXX=$CCC
|
---|
3332 | else
|
---|
3333 | if test -n "$ac_tool_prefix"; then
|
---|
3334 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3335 | do
|
---|
3336 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3337 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3339 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3340 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
3341 | $as_echo_n "(cached) " >&6
|
---|
3342 | else
|
---|
3343 | if test -n "$CXX"; then
|
---|
3344 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3345 | else
|
---|
3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3347 | for as_dir in $PATH
|
---|
3348 | do
|
---|
3349 | IFS=$as_save_IFS
|
---|
3350 | test -z "$as_dir" && as_dir=.
|
---|
3351 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3353 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3355 | break 2
|
---|
3356 | fi
|
---|
3357 | done
|
---|
3358 | done
|
---|
3359 | IFS=$as_save_IFS
|
---|
3360 |
|
---|
3361 | fi
|
---|
3362 | fi
|
---|
3363 | CXX=$ac_cv_prog_CXX
|
---|
3364 | if test -n "$CXX"; then
|
---|
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3366 | $as_echo "$CXX" >&6; }
|
---|
3367 | else
|
---|
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3369 | $as_echo "no" >&6; }
|
---|
3370 | fi
|
---|
3371 |
|
---|
3372 |
|
---|
3373 | test -n "$CXX" && break
|
---|
3374 | done
|
---|
3375 | fi
|
---|
3376 | if test -z "$CXX"; then
|
---|
3377 | ac_ct_CXX=$CXX
|
---|
3378 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3379 | do
|
---|
3380 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3381 | set dummy $ac_prog; ac_word=$2
|
---|
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3383 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3384 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
3385 | $as_echo_n "(cached) " >&6
|
---|
3386 | else
|
---|
3387 | if test -n "$ac_ct_CXX"; then
|
---|
3388 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3389 | else
|
---|
3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3391 | for as_dir in $PATH
|
---|
3392 | do
|
---|
3393 | IFS=$as_save_IFS
|
---|
3394 | test -z "$as_dir" && as_dir=.
|
---|
3395 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3397 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3399 | break 2
|
---|
3400 | fi
|
---|
3401 | done
|
---|
3402 | done
|
---|
3403 | IFS=$as_save_IFS
|
---|
3404 |
|
---|
3405 | fi
|
---|
3406 | fi
|
---|
3407 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3408 | if test -n "$ac_ct_CXX"; then
|
---|
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3410 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3411 | else
|
---|
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3413 | $as_echo "no" >&6; }
|
---|
3414 | fi
|
---|
3415 |
|
---|
3416 |
|
---|
3417 | test -n "$ac_ct_CXX" && break
|
---|
3418 | done
|
---|
3419 |
|
---|
3420 | if test "x$ac_ct_CXX" = x; then
|
---|
3421 | CXX="g++"
|
---|
3422 | else
|
---|
3423 | case $cross_compiling:$ac_tool_warned in
|
---|
3424 | yes:)
|
---|
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3426 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3427 | ac_tool_warned=yes ;;
|
---|
3428 | esac
|
---|
3429 | CXX=$ac_ct_CXX
|
---|
3430 | fi
|
---|
3431 | fi
|
---|
3432 |
|
---|
3433 | fi
|
---|
3434 | fi
|
---|
3435 | # Provide some information about the compiler.
|
---|
3436 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3437 | set X $ac_compile
|
---|
3438 | ac_compiler=$2
|
---|
3439 | for ac_option in --version -v -V -qversion; do
|
---|
3440 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3441 | case "(($ac_try" in
|
---|
3442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3443 | *) ac_try_echo=$ac_try;;
|
---|
3444 | esac
|
---|
3445 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3446 | $as_echo "$ac_try_echo"; } >&5
|
---|
3447 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3448 | ac_status=$?
|
---|
3449 | if test -s conftest.err; then
|
---|
3450 | sed '10a\
|
---|
3451 | ... rest of stderr output deleted ...
|
---|
3452 | 10q' conftest.err >conftest.er1
|
---|
3453 | cat conftest.er1 >&5
|
---|
3454 | fi
|
---|
3455 | rm -f conftest.er1 conftest.err
|
---|
3456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3457 | test $ac_status = 0; }
|
---|
3458 | done
|
---|
3459 |
|
---|
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3461 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3462 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
3463 | $as_echo_n "(cached) " >&6
|
---|
3464 | else
|
---|
3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3466 | /* end confdefs.h. */
|
---|
3467 |
|
---|
3468 | int
|
---|
3469 | main ()
|
---|
3470 | {
|
---|
3471 | #ifndef __GNUC__
|
---|
3472 | choke me
|
---|
3473 | #endif
|
---|
3474 |
|
---|
3475 | ;
|
---|
3476 | return 0;
|
---|
3477 | }
|
---|
3478 | _ACEOF
|
---|
3479 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3480 | ac_compiler_gnu=yes
|
---|
3481 | else
|
---|
3482 | ac_compiler_gnu=no
|
---|
3483 | fi
|
---|
3484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3485 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3486 |
|
---|
3487 | fi
|
---|
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3489 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3490 | if test $ac_compiler_gnu = yes; then
|
---|
3491 | GXX=yes
|
---|
3492 | else
|
---|
3493 | GXX=
|
---|
3494 | fi
|
---|
3495 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3496 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3498 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3499 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
3500 | $as_echo_n "(cached) " >&6
|
---|
3501 | else
|
---|
3502 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3503 | ac_cxx_werror_flag=yes
|
---|
3504 | ac_cv_prog_cxx_g=no
|
---|
3505 | CXXFLAGS="-g"
|
---|
3506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3507 | /* end confdefs.h. */
|
---|
3508 |
|
---|
3509 | int
|
---|
3510 | main ()
|
---|
3511 | {
|
---|
3512 |
|
---|
3513 | ;
|
---|
3514 | return 0;
|
---|
3515 | }
|
---|
3516 | _ACEOF
|
---|
3517 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3518 | ac_cv_prog_cxx_g=yes
|
---|
3519 | else
|
---|
3520 | CXXFLAGS=""
|
---|
3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3522 | /* end confdefs.h. */
|
---|
3523 |
|
---|
3524 | int
|
---|
3525 | main ()
|
---|
3526 | {
|
---|
3527 |
|
---|
3528 | ;
|
---|
3529 | return 0;
|
---|
3530 | }
|
---|
3531 | _ACEOF
|
---|
3532 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3533 |
|
---|
3534 | else
|
---|
3535 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3536 | CXXFLAGS="-g"
|
---|
3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3538 | /* end confdefs.h. */
|
---|
3539 |
|
---|
3540 | int
|
---|
3541 | main ()
|
---|
3542 | {
|
---|
3543 |
|
---|
3544 | ;
|
---|
3545 | return 0;
|
---|
3546 | }
|
---|
3547 | _ACEOF
|
---|
3548 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3549 | ac_cv_prog_cxx_g=yes
|
---|
3550 | fi
|
---|
3551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3552 | fi
|
---|
3553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3554 | fi
|
---|
3555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3556 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3557 | fi
|
---|
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3559 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3560 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3561 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3562 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3563 | if test "$GXX" = yes; then
|
---|
3564 | CXXFLAGS="-g -O2"
|
---|
3565 | else
|
---|
3566 | CXXFLAGS="-g"
|
---|
3567 | fi
|
---|
3568 | else
|
---|
3569 | if test "$GXX" = yes; then
|
---|
3570 | CXXFLAGS="-O2"
|
---|
3571 | else
|
---|
3572 | CXXFLAGS=
|
---|
3573 | fi
|
---|
3574 | fi
|
---|
3575 | ac_ext=c
|
---|
3576 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3580 |
|
---|
3581 |
|
---|
3582 | # Find a good install program. We prefer a C program (faster),
|
---|
3583 | # so one script is as good as another. But avoid the broken or
|
---|
3584 | # incompatible versions:
|
---|
3585 | # SysV /etc/install, /usr/sbin/install
|
---|
3586 | # SunOS /usr/etc/install
|
---|
3587 | # IRIX /sbin/install
|
---|
3588 | # AIX /bin/install
|
---|
3589 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3590 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3591 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3592 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3593 | # OS/2's system install, which has a completely different semantic
|
---|
3594 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3595 | # Reject install programs that cannot install multiple files.
|
---|
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3597 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3598 | if test -z "$INSTALL"; then
|
---|
3599 | if ${ac_cv_path_install+:} false; then :
|
---|
3600 | $as_echo_n "(cached) " >&6
|
---|
3601 | else
|
---|
3602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3603 | for as_dir in $PATH
|
---|
3604 | do
|
---|
3605 | IFS=$as_save_IFS
|
---|
3606 | test -z "$as_dir" && as_dir=.
|
---|
3607 | # Account for people who put trailing slashes in PATH elements.
|
---|
3608 | case $as_dir/ in #((
|
---|
3609 | ./ | .// | /[cC]/* | \
|
---|
3610 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3611 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3612 | /usr/ucb/* ) ;;
|
---|
3613 | *)
|
---|
3614 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3615 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3616 | # by default.
|
---|
3617 | for ac_prog in ginstall scoinst install; do
|
---|
3618 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3619 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3620 | if test $ac_prog = install &&
|
---|
3621 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3622 | # AIX install. It has an incompatible calling convention.
|
---|
3623 | :
|
---|
3624 | elif test $ac_prog = install &&
|
---|
3625 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3626 | # program-specific install script used by HP pwplus--don't use.
|
---|
3627 | :
|
---|
3628 | else
|
---|
3629 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3630 | echo one > conftest.one
|
---|
3631 | echo two > conftest.two
|
---|
3632 | mkdir conftest.dir
|
---|
3633 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3634 | test -s conftest.one && test -s conftest.two &&
|
---|
3635 | test -s conftest.dir/conftest.one &&
|
---|
3636 | test -s conftest.dir/conftest.two
|
---|
3637 | then
|
---|
3638 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3639 | break 3
|
---|
3640 | fi
|
---|
3641 | fi
|
---|
3642 | fi
|
---|
3643 | done
|
---|
3644 | done
|
---|
3645 | ;;
|
---|
3646 | esac
|
---|
3647 |
|
---|
3648 | done
|
---|
3649 | IFS=$as_save_IFS
|
---|
3650 |
|
---|
3651 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3652 |
|
---|
3653 | fi
|
---|
3654 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3655 | INSTALL=$ac_cv_path_install
|
---|
3656 | else
|
---|
3657 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3658 | # value for INSTALL within a source directory, because that will
|
---|
3659 | # break other packages using the cache if that directory is
|
---|
3660 | # removed, or if the value is a relative name.
|
---|
3661 | INSTALL=$ac_install_sh
|
---|
3662 | fi
|
---|
3663 | fi
|
---|
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3665 | $as_echo "$INSTALL" >&6; }
|
---|
3666 |
|
---|
3667 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3668 | # It thinks the first close brace ends the variable substitution.
|
---|
3669 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3670 |
|
---|
3671 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3672 |
|
---|
3673 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3674 |
|
---|
3675 | ac_ext=c
|
---|
3676 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3680 |
|
---|
3681 |
|
---|
3682 | ac_ext=c
|
---|
3683 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
3688 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
3689 | # On Suns, sometimes $CPP names a directory.
|
---|
3690 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3691 | CPP=
|
---|
3692 | fi
|
---|
3693 | if test -z "$CPP"; then
|
---|
3694 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
3695 | $as_echo_n "(cached) " >&6
|
---|
3696 | else
|
---|
3697 | # Double quotes because CPP needs to be expanded
|
---|
3698 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3699 | do
|
---|
3700 | ac_preproc_ok=false
|
---|
3701 | for ac_c_preproc_warn_flag in '' yes
|
---|
3702 | do
|
---|
3703 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3704 | # with a fresh cross-compiler works.
|
---|
3705 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3706 | # <limits.h> exists even on freestanding compilers.
|
---|
3707 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3708 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3710 | /* end confdefs.h. */
|
---|
3711 | #ifdef __STDC__
|
---|
3712 | # include <limits.h>
|
---|
3713 | #else
|
---|
3714 | # include <assert.h>
|
---|
3715 | #endif
|
---|
3716 | Syntax error
|
---|
3717 | _ACEOF
|
---|
3718 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3719 |
|
---|
3720 | else
|
---|
3721 | # Broken: fails on valid input.
|
---|
3722 | continue
|
---|
3723 | fi
|
---|
3724 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3725 |
|
---|
3726 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3727 | # can be detected and how.
|
---|
3728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3729 | /* end confdefs.h. */
|
---|
3730 | #include <ac_nonexistent.h>
|
---|
3731 | _ACEOF
|
---|
3732 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3733 | # Broken: success on invalid input.
|
---|
3734 | continue
|
---|
3735 | else
|
---|
3736 | # Passes both tests.
|
---|
3737 | ac_preproc_ok=:
|
---|
3738 | break
|
---|
3739 | fi
|
---|
3740 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3741 |
|
---|
3742 | done
|
---|
3743 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3744 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3745 | if $ac_preproc_ok; then :
|
---|
3746 | break
|
---|
3747 | fi
|
---|
3748 |
|
---|
3749 | done
|
---|
3750 | ac_cv_prog_CPP=$CPP
|
---|
3751 |
|
---|
3752 | fi
|
---|
3753 | CPP=$ac_cv_prog_CPP
|
---|
3754 | else
|
---|
3755 | ac_cv_prog_CPP=$CPP
|
---|
3756 | fi
|
---|
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
3758 | $as_echo "$CPP" >&6; }
|
---|
3759 | ac_preproc_ok=false
|
---|
3760 | for ac_c_preproc_warn_flag in '' yes
|
---|
3761 | do
|
---|
3762 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3763 | # with a fresh cross-compiler works.
|
---|
3764 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3765 | # <limits.h> exists even on freestanding compilers.
|
---|
3766 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3767 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3769 | /* end confdefs.h. */
|
---|
3770 | #ifdef __STDC__
|
---|
3771 | # include <limits.h>
|
---|
3772 | #else
|
---|
3773 | # include <assert.h>
|
---|
3774 | #endif
|
---|
3775 | Syntax error
|
---|
3776 | _ACEOF
|
---|
3777 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3778 |
|
---|
3779 | else
|
---|
3780 | # Broken: fails on valid input.
|
---|
3781 | continue
|
---|
3782 | fi
|
---|
3783 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3784 |
|
---|
3785 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3786 | # can be detected and how.
|
---|
3787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3788 | /* end confdefs.h. */
|
---|
3789 | #include <ac_nonexistent.h>
|
---|
3790 | _ACEOF
|
---|
3791 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3792 | # Broken: success on invalid input.
|
---|
3793 | continue
|
---|
3794 | else
|
---|
3795 | # Passes both tests.
|
---|
3796 | ac_preproc_ok=:
|
---|
3797 | break
|
---|
3798 | fi
|
---|
3799 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3800 |
|
---|
3801 | done
|
---|
3802 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3803 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3804 | if $ac_preproc_ok; then :
|
---|
3805 |
|
---|
3806 | else
|
---|
3807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3808 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3809 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
3810 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3811 | fi
|
---|
3812 |
|
---|
3813 | ac_ext=c
|
---|
3814 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3818 |
|
---|
3819 |
|
---|
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3821 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3822 | if ${ac_cv_path_GREP+:} false; then :
|
---|
3823 | $as_echo_n "(cached) " >&6
|
---|
3824 | else
|
---|
3825 | if test -z "$GREP"; then
|
---|
3826 | ac_path_GREP_found=false
|
---|
3827 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3829 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3830 | do
|
---|
3831 | IFS=$as_save_IFS
|
---|
3832 | test -z "$as_dir" && as_dir=.
|
---|
3833 | for ac_prog in grep ggrep; do
|
---|
3834 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3835 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3836 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
3837 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3838 | # Check for GNU $ac_path_GREP
|
---|
3839 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3840 | *GNU*)
|
---|
3841 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3842 | *)
|
---|
3843 | ac_count=0
|
---|
3844 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3845 | while :
|
---|
3846 | do
|
---|
3847 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3848 | mv "conftest.tmp" "conftest.in"
|
---|
3849 | cp "conftest.in" "conftest.nl"
|
---|
3850 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3851 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3852 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3853 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3854 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3855 | # Best one so far, save it but keep looking for a better one
|
---|
3856 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3857 | ac_path_GREP_max=$ac_count
|
---|
3858 | fi
|
---|
3859 | # 10*(2^10) chars as input seems more than enough
|
---|
3860 | test $ac_count -gt 10 && break
|
---|
3861 | done
|
---|
3862 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3863 | esac
|
---|
3864 |
|
---|
3865 | $ac_path_GREP_found && break 3
|
---|
3866 | done
|
---|
3867 | done
|
---|
3868 | done
|
---|
3869 | IFS=$as_save_IFS
|
---|
3870 | if test -z "$ac_cv_path_GREP"; then
|
---|
3871 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3872 | fi
|
---|
3873 | else
|
---|
3874 | ac_cv_path_GREP=$GREP
|
---|
3875 | fi
|
---|
3876 |
|
---|
3877 | fi
|
---|
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3879 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3880 | GREP="$ac_cv_path_GREP"
|
---|
3881 |
|
---|
3882 |
|
---|
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3884 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3885 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
3886 | $as_echo_n "(cached) " >&6
|
---|
3887 | else
|
---|
3888 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3889 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3890 | else
|
---|
3891 | if test -z "$EGREP"; then
|
---|
3892 | ac_path_EGREP_found=false
|
---|
3893 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3895 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3896 | do
|
---|
3897 | IFS=$as_save_IFS
|
---|
3898 | test -z "$as_dir" && as_dir=.
|
---|
3899 | for ac_prog in egrep; do
|
---|
3900 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3901 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3902 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
3903 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3904 | # Check for GNU $ac_path_EGREP
|
---|
3905 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3906 | *GNU*)
|
---|
3907 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3908 | *)
|
---|
3909 | ac_count=0
|
---|
3910 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3911 | while :
|
---|
3912 | do
|
---|
3913 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3914 | mv "conftest.tmp" "conftest.in"
|
---|
3915 | cp "conftest.in" "conftest.nl"
|
---|
3916 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3917 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3918 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3919 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3920 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3921 | # Best one so far, save it but keep looking for a better one
|
---|
3922 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3923 | ac_path_EGREP_max=$ac_count
|
---|
3924 | fi
|
---|
3925 | # 10*(2^10) chars as input seems more than enough
|
---|
3926 | test $ac_count -gt 10 && break
|
---|
3927 | done
|
---|
3928 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3929 | esac
|
---|
3930 |
|
---|
3931 | $ac_path_EGREP_found && break 3
|
---|
3932 | done
|
---|
3933 | done
|
---|
3934 | done
|
---|
3935 | IFS=$as_save_IFS
|
---|
3936 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3937 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3938 | fi
|
---|
3939 | else
|
---|
3940 | ac_cv_path_EGREP=$EGREP
|
---|
3941 | fi
|
---|
3942 |
|
---|
3943 | fi
|
---|
3944 | fi
|
---|
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3946 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3947 | EGREP="$ac_cv_path_EGREP"
|
---|
3948 |
|
---|
3949 |
|
---|
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
3951 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
3952 | if ${ac_cv_header_stdc+:} false; then :
|
---|
3953 | $as_echo_n "(cached) " >&6
|
---|
3954 | else
|
---|
3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3956 | /* end confdefs.h. */
|
---|
3957 | #include <stdlib.h>
|
---|
3958 | #include <stdarg.h>
|
---|
3959 | #include <string.h>
|
---|
3960 | #include <float.h>
|
---|
3961 |
|
---|
3962 | int
|
---|
3963 | main ()
|
---|
3964 | {
|
---|
3965 |
|
---|
3966 | ;
|
---|
3967 | return 0;
|
---|
3968 | }
|
---|
3969 | _ACEOF
|
---|
3970 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3971 | ac_cv_header_stdc=yes
|
---|
3972 | else
|
---|
3973 | ac_cv_header_stdc=no
|
---|
3974 | fi
|
---|
3975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3976 |
|
---|
3977 | if test $ac_cv_header_stdc = yes; then
|
---|
3978 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3980 | /* end confdefs.h. */
|
---|
3981 | #include <string.h>
|
---|
3982 |
|
---|
3983 | _ACEOF
|
---|
3984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3985 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
3986 |
|
---|
3987 | else
|
---|
3988 | ac_cv_header_stdc=no
|
---|
3989 | fi
|
---|
3990 | rm -f conftest*
|
---|
3991 |
|
---|
3992 | fi
|
---|
3993 |
|
---|
3994 | if test $ac_cv_header_stdc = yes; then
|
---|
3995 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3997 | /* end confdefs.h. */
|
---|
3998 | #include <stdlib.h>
|
---|
3999 |
|
---|
4000 | _ACEOF
|
---|
4001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4002 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4003 |
|
---|
4004 | else
|
---|
4005 | ac_cv_header_stdc=no
|
---|
4006 | fi
|
---|
4007 | rm -f conftest*
|
---|
4008 |
|
---|
4009 | fi
|
---|
4010 |
|
---|
4011 | if test $ac_cv_header_stdc = yes; then
|
---|
4012 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4013 | if test "$cross_compiling" = yes; then :
|
---|
4014 | :
|
---|
4015 | else
|
---|
4016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4017 | /* end confdefs.h. */
|
---|
4018 | #include <ctype.h>
|
---|
4019 | #include <stdlib.h>
|
---|
4020 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4021 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4022 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4023 | #else
|
---|
4024 | # define ISLOWER(c) \
|
---|
4025 | (('a' <= (c) && (c) <= 'i') \
|
---|
4026 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4027 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4028 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4029 | #endif
|
---|
4030 |
|
---|
4031 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4032 | int
|
---|
4033 | main ()
|
---|
4034 | {
|
---|
4035 | int i;
|
---|
4036 | for (i = 0; i < 256; i++)
|
---|
4037 | if (XOR (islower (i), ISLOWER (i))
|
---|
4038 | || toupper (i) != TOUPPER (i))
|
---|
4039 | return 2;
|
---|
4040 | return 0;
|
---|
4041 | }
|
---|
4042 | _ACEOF
|
---|
4043 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4044 |
|
---|
4045 | else
|
---|
4046 | ac_cv_header_stdc=no
|
---|
4047 | fi
|
---|
4048 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4049 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4050 | fi
|
---|
4051 |
|
---|
4052 | fi
|
---|
4053 | fi
|
---|
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4055 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4056 | if test $ac_cv_header_stdc = yes; then
|
---|
4057 |
|
---|
4058 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4059 |
|
---|
4060 | fi
|
---|
4061 |
|
---|
4062 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4063 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4064 | inttypes.h stdint.h unistd.h
|
---|
4065 | do :
|
---|
4066 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4067 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4068 | "
|
---|
4069 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4070 | cat >>confdefs.h <<_ACEOF
|
---|
4071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4072 | _ACEOF
|
---|
4073 |
|
---|
4074 | fi
|
---|
4075 |
|
---|
4076 | done
|
---|
4077 |
|
---|
4078 |
|
---|
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
4080 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
4081 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
4082 | $as_echo_n "(cached) " >&6
|
---|
4083 | else
|
---|
4084 | ac_cv_c_bigendian=unknown
|
---|
4085 | # See if we're dealing with a universal compiler.
|
---|
4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4087 | /* end confdefs.h. */
|
---|
4088 | #ifndef __APPLE_CC__
|
---|
4089 | not a universal capable compiler
|
---|
4090 | #endif
|
---|
4091 | typedef int dummy;
|
---|
4092 |
|
---|
4093 | _ACEOF
|
---|
4094 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4095 |
|
---|
4096 | # Check for potential -arch flags. It is not universal unless
|
---|
4097 | # there are at least two -arch flags with different values.
|
---|
4098 | ac_arch=
|
---|
4099 | ac_prev=
|
---|
4100 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
4101 | if test -n "$ac_prev"; then
|
---|
4102 | case $ac_word in
|
---|
4103 | i?86 | x86_64 | ppc | ppc64)
|
---|
4104 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
4105 | ac_arch=$ac_word
|
---|
4106 | else
|
---|
4107 | ac_cv_c_bigendian=universal
|
---|
4108 | break
|
---|
4109 | fi
|
---|
4110 | ;;
|
---|
4111 | esac
|
---|
4112 | ac_prev=
|
---|
4113 | elif test "x$ac_word" = "x-arch"; then
|
---|
4114 | ac_prev=arch
|
---|
4115 | fi
|
---|
4116 | done
|
---|
4117 | fi
|
---|
4118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4119 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4120 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
4121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4122 | /* end confdefs.h. */
|
---|
4123 | #include <sys/types.h>
|
---|
4124 | #include <sys/param.h>
|
---|
4125 |
|
---|
4126 | int
|
---|
4127 | main ()
|
---|
4128 | {
|
---|
4129 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
4130 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
4131 | && LITTLE_ENDIAN)
|
---|
4132 | bogus endian macros
|
---|
4133 | #endif
|
---|
4134 |
|
---|
4135 | ;
|
---|
4136 | return 0;
|
---|
4137 | }
|
---|
4138 | _ACEOF
|
---|
4139 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4140 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4142 | /* end confdefs.h. */
|
---|
4143 | #include <sys/types.h>
|
---|
4144 | #include <sys/param.h>
|
---|
4145 |
|
---|
4146 | int
|
---|
4147 | main ()
|
---|
4148 | {
|
---|
4149 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
4150 | not big endian
|
---|
4151 | #endif
|
---|
4152 |
|
---|
4153 | ;
|
---|
4154 | return 0;
|
---|
4155 | }
|
---|
4156 | _ACEOF
|
---|
4157 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4158 | ac_cv_c_bigendian=yes
|
---|
4159 | else
|
---|
4160 | ac_cv_c_bigendian=no
|
---|
4161 | fi
|
---|
4162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4163 | fi
|
---|
4164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4165 | fi
|
---|
4166 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4167 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
4168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4169 | /* end confdefs.h. */
|
---|
4170 | #include <limits.h>
|
---|
4171 |
|
---|
4172 | int
|
---|
4173 | main ()
|
---|
4174 | {
|
---|
4175 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
4176 | bogus endian macros
|
---|
4177 | #endif
|
---|
4178 |
|
---|
4179 | ;
|
---|
4180 | return 0;
|
---|
4181 | }
|
---|
4182 | _ACEOF
|
---|
4183 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4184 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4186 | /* end confdefs.h. */
|
---|
4187 | #include <limits.h>
|
---|
4188 |
|
---|
4189 | int
|
---|
4190 | main ()
|
---|
4191 | {
|
---|
4192 | #ifndef _BIG_ENDIAN
|
---|
4193 | not big endian
|
---|
4194 | #endif
|
---|
4195 |
|
---|
4196 | ;
|
---|
4197 | return 0;
|
---|
4198 | }
|
---|
4199 | _ACEOF
|
---|
4200 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4201 | ac_cv_c_bigendian=yes
|
---|
4202 | else
|
---|
4203 | ac_cv_c_bigendian=no
|
---|
4204 | fi
|
---|
4205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4206 | fi
|
---|
4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4208 | fi
|
---|
4209 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4210 | # Compile a test program.
|
---|
4211 | if test "$cross_compiling" = yes; then :
|
---|
4212 | # Try to guess by grepping values from an object file.
|
---|
4213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4214 | /* end confdefs.h. */
|
---|
4215 | short int ascii_mm[] =
|
---|
4216 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
4217 | short int ascii_ii[] =
|
---|
4218 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
4219 | int use_ascii (int i) {
|
---|
4220 | return ascii_mm[i] + ascii_ii[i];
|
---|
4221 | }
|
---|
4222 | short int ebcdic_ii[] =
|
---|
4223 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
4224 | short int ebcdic_mm[] =
|
---|
4225 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
4226 | int use_ebcdic (int i) {
|
---|
4227 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
4228 | }
|
---|
4229 | extern int foo;
|
---|
4230 |
|
---|
4231 | int
|
---|
4232 | main ()
|
---|
4233 | {
|
---|
4234 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
4235 | ;
|
---|
4236 | return 0;
|
---|
4237 | }
|
---|
4238 | _ACEOF
|
---|
4239 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4240 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
4241 | ac_cv_c_bigendian=yes
|
---|
4242 | fi
|
---|
4243 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
4244 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
4245 | ac_cv_c_bigendian=no
|
---|
4246 | else
|
---|
4247 | # finding both strings is unlikely to happen, but who knows?
|
---|
4248 | ac_cv_c_bigendian=unknown
|
---|
4249 | fi
|
---|
4250 | fi
|
---|
4251 | fi
|
---|
4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4253 | else
|
---|
4254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4255 | /* end confdefs.h. */
|
---|
4256 | $ac_includes_default
|
---|
4257 | int
|
---|
4258 | main ()
|
---|
4259 | {
|
---|
4260 |
|
---|
4261 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
4262 | union
|
---|
4263 | {
|
---|
4264 | long int l;
|
---|
4265 | char c[sizeof (long int)];
|
---|
4266 | } u;
|
---|
4267 | u.l = 1;
|
---|
4268 | return u.c[sizeof (long int) - 1] == 1;
|
---|
4269 |
|
---|
4270 | ;
|
---|
4271 | return 0;
|
---|
4272 | }
|
---|
4273 | _ACEOF
|
---|
4274 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4275 | ac_cv_c_bigendian=no
|
---|
4276 | else
|
---|
4277 | ac_cv_c_bigendian=yes
|
---|
4278 | fi
|
---|
4279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4280 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4281 | fi
|
---|
4282 |
|
---|
4283 | fi
|
---|
4284 | fi
|
---|
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
4286 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
4287 | case $ac_cv_c_bigendian in #(
|
---|
4288 | yes)
|
---|
4289 | $as_echo "#define B_ENDIAN 1" >>confdefs.h
|
---|
4290 | ;; #(
|
---|
4291 | no)
|
---|
4292 | $as_echo "#define L_ENDIAN 1" >>confdefs.h
|
---|
4293 | ;; #(
|
---|
4294 | universal)
|
---|
4295 |
|
---|
4296 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
4297 |
|
---|
4298 | ;; #(
|
---|
4299 | *)
|
---|
4300 | as_fn_error $? "unknown endianness
|
---|
4301 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
4302 | esac
|
---|
4303 |
|
---|
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
|
---|
4305 | $as_echo_n "checking for X... " >&6; }
|
---|
4306 |
|
---|
4307 |
|
---|
4308 | # Check whether --with-x was given.
|
---|
4309 | if test "${with_x+set}" = set; then :
|
---|
4310 | withval=$with_x;
|
---|
4311 | fi
|
---|
4312 |
|
---|
4313 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
4314 | if test "x$with_x" = xno; then
|
---|
4315 | # The user explicitly disabled X.
|
---|
4316 | have_x=disabled
|
---|
4317 | else
|
---|
4318 | case $x_includes,$x_libraries in #(
|
---|
4319 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
|
---|
4320 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
|
---|
4321 | $as_echo_n "(cached) " >&6
|
---|
4322 | else
|
---|
4323 | # One or both of the vars are not set, and there is no cached value.
|
---|
4324 | ac_x_includes=no ac_x_libraries=no
|
---|
4325 | rm -f -r conftest.dir
|
---|
4326 | if mkdir conftest.dir; then
|
---|
4327 | cd conftest.dir
|
---|
4328 | cat >Imakefile <<'_ACEOF'
|
---|
4329 | incroot:
|
---|
4330 | @echo incroot='${INCROOT}'
|
---|
4331 | usrlibdir:
|
---|
4332 | @echo usrlibdir='${USRLIBDIR}'
|
---|
4333 | libdir:
|
---|
4334 | @echo libdir='${LIBDIR}'
|
---|
4335 | _ACEOF
|
---|
4336 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
4337 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4338 | for ac_var in incroot usrlibdir libdir; do
|
---|
4339 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
|
---|
4340 | done
|
---|
4341 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
4342 | for ac_extension in a so sl dylib la dll; do
|
---|
4343 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
|
---|
4344 | test -f "$ac_im_libdir/libX11.$ac_extension"; then
|
---|
4345 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
4346 | fi
|
---|
4347 | done
|
---|
4348 | # Screen out bogus values from the imake configuration. They are
|
---|
4349 | # bogus both because they are the default anyway, and because
|
---|
4350 | # using them would break gcc on systems where it needs fixed includes.
|
---|
4351 | case $ac_im_incroot in
|
---|
4352 | /usr/include) ac_x_includes= ;;
|
---|
4353 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
4354 | esac
|
---|
4355 | case $ac_im_usrlibdir in
|
---|
4356 | /usr/lib | /usr/lib64 | /lib | /lib64) ;;
|
---|
4357 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
4358 | esac
|
---|
4359 | fi
|
---|
4360 | cd ..
|
---|
4361 | rm -f -r conftest.dir
|
---|
4362 | fi
|
---|
4363 |
|
---|
4364 | # Standard set of common directories for X headers.
|
---|
4365 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4366 | ac_x_header_dirs='
|
---|
4367 | /usr/X11/include
|
---|
4368 | /usr/X11R7/include
|
---|
4369 | /usr/X11R6/include
|
---|
4370 | /usr/X11R5/include
|
---|
4371 | /usr/X11R4/include
|
---|
4372 |
|
---|
4373 | /usr/include/X11
|
---|
4374 | /usr/include/X11R7
|
---|
4375 | /usr/include/X11R6
|
---|
4376 | /usr/include/X11R5
|
---|
4377 | /usr/include/X11R4
|
---|
4378 |
|
---|
4379 | /usr/local/X11/include
|
---|
4380 | /usr/local/X11R7/include
|
---|
4381 | /usr/local/X11R6/include
|
---|
4382 | /usr/local/X11R5/include
|
---|
4383 | /usr/local/X11R4/include
|
---|
4384 |
|
---|
4385 | /usr/local/include/X11
|
---|
4386 | /usr/local/include/X11R7
|
---|
4387 | /usr/local/include/X11R6
|
---|
4388 | /usr/local/include/X11R5
|
---|
4389 | /usr/local/include/X11R4
|
---|
4390 |
|
---|
4391 | /usr/X386/include
|
---|
4392 | /usr/x386/include
|
---|
4393 | /usr/XFree86/include/X11
|
---|
4394 |
|
---|
4395 | /usr/include
|
---|
4396 | /usr/local/include
|
---|
4397 | /usr/unsupported/include
|
---|
4398 | /usr/athena/include
|
---|
4399 | /usr/local/x11r5/include
|
---|
4400 | /usr/lpp/Xamples/include
|
---|
4401 |
|
---|
4402 | /usr/openwin/include
|
---|
4403 | /usr/openwin/share/include'
|
---|
4404 |
|
---|
4405 | if test "$ac_x_includes" = no; then
|
---|
4406 | # Guess where to find include files, by looking for Xlib.h.
|
---|
4407 | # First, try using that file with no special directory specified.
|
---|
4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4409 | /* end confdefs.h. */
|
---|
4410 | #include <X11/Xlib.h>
|
---|
4411 | _ACEOF
|
---|
4412 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4413 | # We can compile using X headers with no special include directory.
|
---|
4414 | ac_x_includes=
|
---|
4415 | else
|
---|
4416 | for ac_dir in $ac_x_header_dirs; do
|
---|
4417 | if test -r "$ac_dir/X11/Xlib.h"; then
|
---|
4418 | ac_x_includes=$ac_dir
|
---|
4419 | break
|
---|
4420 | fi
|
---|
4421 | done
|
---|
4422 | fi
|
---|
4423 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4424 | fi # $ac_x_includes = no
|
---|
4425 |
|
---|
4426 | if test "$ac_x_libraries" = no; then
|
---|
4427 | # Check for the libraries.
|
---|
4428 | # See if we find them without any special options.
|
---|
4429 | # Don't add to $LIBS permanently.
|
---|
4430 | ac_save_LIBS=$LIBS
|
---|
4431 | LIBS="-lX11 $LIBS"
|
---|
4432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4433 | /* end confdefs.h. */
|
---|
4434 | #include <X11/Xlib.h>
|
---|
4435 | int
|
---|
4436 | main ()
|
---|
4437 | {
|
---|
4438 | XrmInitialize ()
|
---|
4439 | ;
|
---|
4440 | return 0;
|
---|
4441 | }
|
---|
4442 | _ACEOF
|
---|
4443 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4444 | LIBS=$ac_save_LIBS
|
---|
4445 | # We can link X programs with no special library path.
|
---|
4446 | ac_x_libraries=
|
---|
4447 | else
|
---|
4448 | LIBS=$ac_save_LIBS
|
---|
4449 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
4450 | do
|
---|
4451 | # Don't even attempt the hair of trying to link an X program!
|
---|
4452 | for ac_extension in a so sl dylib la dll; do
|
---|
4453 | if test -r "$ac_dir/libX11.$ac_extension"; then
|
---|
4454 | ac_x_libraries=$ac_dir
|
---|
4455 | break 2
|
---|
4456 | fi
|
---|
4457 | done
|
---|
4458 | done
|
---|
4459 | fi
|
---|
4460 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4461 | conftest$ac_exeext conftest.$ac_ext
|
---|
4462 | fi # $ac_x_libraries = no
|
---|
4463 |
|
---|
4464 | case $ac_x_includes,$ac_x_libraries in #(
|
---|
4465 | no,* | *,no | *\'*)
|
---|
4466 | # Didn't find X, or a directory has "'" in its name.
|
---|
4467 | ac_cv_have_x="have_x=no";; #(
|
---|
4468 | *)
|
---|
4469 | # Record where we found X for the cache.
|
---|
4470 | ac_cv_have_x="have_x=yes\
|
---|
4471 | ac_x_includes='$ac_x_includes'\
|
---|
4472 | ac_x_libraries='$ac_x_libraries'"
|
---|
4473 | esac
|
---|
4474 | fi
|
---|
4475 | ;; #(
|
---|
4476 | *) have_x=yes;;
|
---|
4477 | esac
|
---|
4478 | eval "$ac_cv_have_x"
|
---|
4479 | fi # $with_x != no
|
---|
4480 |
|
---|
4481 | if test "$have_x" != yes; then
|
---|
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
|
---|
4483 | $as_echo "$have_x" >&6; }
|
---|
4484 | no_x=yes
|
---|
4485 | else
|
---|
4486 | # If each of the values was on the command line, it overrides each guess.
|
---|
4487 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
4488 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
4489 | # Update the cache value to reflect the command line values.
|
---|
4490 | ac_cv_have_x="have_x=yes\
|
---|
4491 | ac_x_includes='$x_includes'\
|
---|
4492 | ac_x_libraries='$x_libraries'"
|
---|
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
4494 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
|
---|
4495 | fi
|
---|
4496 |
|
---|
4497 | if test "$no_x" = yes; then
|
---|
4498 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
4499 |
|
---|
4500 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
|
---|
4501 |
|
---|
4502 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
4503 | else
|
---|
4504 | if test -n "$x_includes"; then
|
---|
4505 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
4506 | fi
|
---|
4507 |
|
---|
4508 | # It would also be nice to do this for all -L options, not just this one.
|
---|
4509 | if test -n "$x_libraries"; then
|
---|
4510 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
4511 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
4512 | # others require no space. Words are not sufficient . . . .
|
---|
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
|
---|
4514 | $as_echo_n "checking whether -R must be followed by a space... " >&6; }
|
---|
4515 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
4516 | ac_xsave_c_werror_flag=$ac_c_werror_flag
|
---|
4517 | ac_c_werror_flag=yes
|
---|
4518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4519 | /* end confdefs.h. */
|
---|
4520 |
|
---|
4521 | int
|
---|
4522 | main ()
|
---|
4523 | {
|
---|
4524 |
|
---|
4525 | ;
|
---|
4526 | return 0;
|
---|
4527 | }
|
---|
4528 | _ACEOF
|
---|
4529 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4531 | $as_echo "no" >&6; }
|
---|
4532 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
4533 | else
|
---|
4534 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4536 | /* end confdefs.h. */
|
---|
4537 |
|
---|
4538 | int
|
---|
4539 | main ()
|
---|
4540 | {
|
---|
4541 |
|
---|
4542 | ;
|
---|
4543 | return 0;
|
---|
4544 | }
|
---|
4545 | _ACEOF
|
---|
4546 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4548 | $as_echo "yes" >&6; }
|
---|
4549 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
4550 | else
|
---|
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
|
---|
4552 | $as_echo "neither works" >&6; }
|
---|
4553 | fi
|
---|
4554 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4555 | conftest$ac_exeext conftest.$ac_ext
|
---|
4556 | fi
|
---|
4557 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4558 | conftest$ac_exeext conftest.$ac_ext
|
---|
4559 | ac_c_werror_flag=$ac_xsave_c_werror_flag
|
---|
4560 | LIBS=$ac_xsave_LIBS
|
---|
4561 | fi
|
---|
4562 |
|
---|
4563 | # Check for system-dependent libraries X programs must link with.
|
---|
4564 | # Do this before checking for the system-independent R6 libraries
|
---|
4565 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
4566 |
|
---|
4567 | if test "$ISC" = yes; then
|
---|
4568 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
4569 | else
|
---|
4570 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
4571 | # libraries were built with DECnet support. And Karl Berry says
|
---|
4572 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
4573 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
4574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4575 | /* end confdefs.h. */
|
---|
4576 |
|
---|
4577 | /* Override any GCC internal prototype to avoid an error.
|
---|
4578 | Use char because int might match the return type of a GCC
|
---|
4579 | builtin and then its argument prototype would still apply. */
|
---|
4580 | #ifdef __cplusplus
|
---|
4581 | extern "C"
|
---|
4582 | #endif
|
---|
4583 | char XOpenDisplay ();
|
---|
4584 | int
|
---|
4585 | main ()
|
---|
4586 | {
|
---|
4587 | return XOpenDisplay ();
|
---|
4588 | ;
|
---|
4589 | return 0;
|
---|
4590 | }
|
---|
4591 | _ACEOF
|
---|
4592 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4593 |
|
---|
4594 | else
|
---|
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
|
---|
4596 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
|
---|
4597 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
|
---|
4598 | $as_echo_n "(cached) " >&6
|
---|
4599 | else
|
---|
4600 | ac_check_lib_save_LIBS=$LIBS
|
---|
4601 | LIBS="-ldnet $LIBS"
|
---|
4602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4603 | /* end confdefs.h. */
|
---|
4604 |
|
---|
4605 | /* Override any GCC internal prototype to avoid an error.
|
---|
4606 | Use char because int might match the return type of a GCC
|
---|
4607 | builtin and then its argument prototype would still apply. */
|
---|
4608 | #ifdef __cplusplus
|
---|
4609 | extern "C"
|
---|
4610 | #endif
|
---|
4611 | char dnet_ntoa ();
|
---|
4612 | int
|
---|
4613 | main ()
|
---|
4614 | {
|
---|
4615 | return dnet_ntoa ();
|
---|
4616 | ;
|
---|
4617 | return 0;
|
---|
4618 | }
|
---|
4619 | _ACEOF
|
---|
4620 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4621 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
4622 | else
|
---|
4623 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
4624 | fi
|
---|
4625 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4626 | conftest$ac_exeext conftest.$ac_ext
|
---|
4627 | LIBS=$ac_check_lib_save_LIBS
|
---|
4628 | fi
|
---|
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
4630 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
|
---|
4631 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
|
---|
4632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
4633 | fi
|
---|
4634 |
|
---|
4635 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
4637 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
|
---|
4638 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
|
---|
4639 | $as_echo_n "(cached) " >&6
|
---|
4640 | else
|
---|
4641 | ac_check_lib_save_LIBS=$LIBS
|
---|
4642 | LIBS="-ldnet_stub $LIBS"
|
---|
4643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4644 | /* end confdefs.h. */
|
---|
4645 |
|
---|
4646 | /* Override any GCC internal prototype to avoid an error.
|
---|
4647 | Use char because int might match the return type of a GCC
|
---|
4648 | builtin and then its argument prototype would still apply. */
|
---|
4649 | #ifdef __cplusplus
|
---|
4650 | extern "C"
|
---|
4651 | #endif
|
---|
4652 | char dnet_ntoa ();
|
---|
4653 | int
|
---|
4654 | main ()
|
---|
4655 | {
|
---|
4656 | return dnet_ntoa ();
|
---|
4657 | ;
|
---|
4658 | return 0;
|
---|
4659 | }
|
---|
4660 | _ACEOF
|
---|
4661 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4662 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
4663 | else
|
---|
4664 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
4665 | fi
|
---|
4666 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4667 | conftest$ac_exeext conftest.$ac_ext
|
---|
4668 | LIBS=$ac_check_lib_save_LIBS
|
---|
4669 | fi
|
---|
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
4671 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
|
---|
4672 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
|
---|
4673 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
4674 | fi
|
---|
4675 |
|
---|
4676 | fi
|
---|
4677 | fi
|
---|
4678 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4679 | conftest$ac_exeext conftest.$ac_ext
|
---|
4680 | LIBS="$ac_xsave_LIBS"
|
---|
4681 |
|
---|
4682 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
4683 | # to get the SysV transport functions.
|
---|
4684 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
4685 | # needs -lnsl.
|
---|
4686 | # The nsl library prevents programs from opening the X display
|
---|
4687 | # on Irix 5.2, according to T.E. Dickey.
|
---|
4688 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
4689 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
4690 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
|
---|
4691 | if test "x$ac_cv_func_gethostbyname" = xyes; then :
|
---|
4692 |
|
---|
4693 | fi
|
---|
4694 |
|
---|
4695 | if test $ac_cv_func_gethostbyname = no; then
|
---|
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
|
---|
4697 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
|
---|
4698 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
|
---|
4699 | $as_echo_n "(cached) " >&6
|
---|
4700 | else
|
---|
4701 | ac_check_lib_save_LIBS=$LIBS
|
---|
4702 | LIBS="-lnsl $LIBS"
|
---|
4703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4704 | /* end confdefs.h. */
|
---|
4705 |
|
---|
4706 | /* Override any GCC internal prototype to avoid an error.
|
---|
4707 | Use char because int might match the return type of a GCC
|
---|
4708 | builtin and then its argument prototype would still apply. */
|
---|
4709 | #ifdef __cplusplus
|
---|
4710 | extern "C"
|
---|
4711 | #endif
|
---|
4712 | char gethostbyname ();
|
---|
4713 | int
|
---|
4714 | main ()
|
---|
4715 | {
|
---|
4716 | return gethostbyname ();
|
---|
4717 | ;
|
---|
4718 | return 0;
|
---|
4719 | }
|
---|
4720 | _ACEOF
|
---|
4721 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4722 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
4723 | else
|
---|
4724 | ac_cv_lib_nsl_gethostbyname=no
|
---|
4725 | fi
|
---|
4726 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4727 | conftest$ac_exeext conftest.$ac_ext
|
---|
4728 | LIBS=$ac_check_lib_save_LIBS
|
---|
4729 | fi
|
---|
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
4731 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
|
---|
4732 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
|
---|
4733 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
4734 | fi
|
---|
4735 |
|
---|
4736 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
|
---|
4738 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
|
---|
4739 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
|
---|
4740 | $as_echo_n "(cached) " >&6
|
---|
4741 | else
|
---|
4742 | ac_check_lib_save_LIBS=$LIBS
|
---|
4743 | LIBS="-lbsd $LIBS"
|
---|
4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4745 | /* end confdefs.h. */
|
---|
4746 |
|
---|
4747 | /* Override any GCC internal prototype to avoid an error.
|
---|
4748 | Use char because int might match the return type of a GCC
|
---|
4749 | builtin and then its argument prototype would still apply. */
|
---|
4750 | #ifdef __cplusplus
|
---|
4751 | extern "C"
|
---|
4752 | #endif
|
---|
4753 | char gethostbyname ();
|
---|
4754 | int
|
---|
4755 | main ()
|
---|
4756 | {
|
---|
4757 | return gethostbyname ();
|
---|
4758 | ;
|
---|
4759 | return 0;
|
---|
4760 | }
|
---|
4761 | _ACEOF
|
---|
4762 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4763 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
4764 | else
|
---|
4765 | ac_cv_lib_bsd_gethostbyname=no
|
---|
4766 | fi
|
---|
4767 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4768 | conftest$ac_exeext conftest.$ac_ext
|
---|
4769 | LIBS=$ac_check_lib_save_LIBS
|
---|
4770 | fi
|
---|
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
4772 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
|
---|
4773 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
|
---|
4774 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
4775 | fi
|
---|
4776 |
|
---|
4777 | fi
|
---|
4778 | fi
|
---|
4779 |
|
---|
4780 | # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
---|
4781 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
4782 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
4783 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
4784 | # variants that don't use the name server (or something). -lsocket
|
---|
4785 | # must be given before -lnsl if both are needed. We assume that
|
---|
4786 | # if connect needs -lnsl, so does gethostbyname.
|
---|
4787 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
|
---|
4788 | if test "x$ac_cv_func_connect" = xyes; then :
|
---|
4789 |
|
---|
4790 | fi
|
---|
4791 |
|
---|
4792 | if test $ac_cv_func_connect = no; then
|
---|
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
|
---|
4794 | $as_echo_n "checking for connect in -lsocket... " >&6; }
|
---|
4795 | if ${ac_cv_lib_socket_connect+:} false; then :
|
---|
4796 | $as_echo_n "(cached) " >&6
|
---|
4797 | else
|
---|
4798 | ac_check_lib_save_LIBS=$LIBS
|
---|
4799 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
4800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4801 | /* end confdefs.h. */
|
---|
4802 |
|
---|
4803 | /* Override any GCC internal prototype to avoid an error.
|
---|
4804 | Use char because int might match the return type of a GCC
|
---|
4805 | builtin and then its argument prototype would still apply. */
|
---|
4806 | #ifdef __cplusplus
|
---|
4807 | extern "C"
|
---|
4808 | #endif
|
---|
4809 | char connect ();
|
---|
4810 | int
|
---|
4811 | main ()
|
---|
4812 | {
|
---|
4813 | return connect ();
|
---|
4814 | ;
|
---|
4815 | return 0;
|
---|
4816 | }
|
---|
4817 | _ACEOF
|
---|
4818 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4819 | ac_cv_lib_socket_connect=yes
|
---|
4820 | else
|
---|
4821 | ac_cv_lib_socket_connect=no
|
---|
4822 | fi
|
---|
4823 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4824 | conftest$ac_exeext conftest.$ac_ext
|
---|
4825 | LIBS=$ac_check_lib_save_LIBS
|
---|
4826 | fi
|
---|
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
|
---|
4828 | $as_echo "$ac_cv_lib_socket_connect" >&6; }
|
---|
4829 | if test "x$ac_cv_lib_socket_connect" = xyes; then :
|
---|
4830 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4831 | fi
|
---|
4832 |
|
---|
4833 | fi
|
---|
4834 |
|
---|
4835 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4836 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
|
---|
4837 | if test "x$ac_cv_func_remove" = xyes; then :
|
---|
4838 |
|
---|
4839 | fi
|
---|
4840 |
|
---|
4841 | if test $ac_cv_func_remove = no; then
|
---|
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
|
---|
4843 | $as_echo_n "checking for remove in -lposix... " >&6; }
|
---|
4844 | if ${ac_cv_lib_posix_remove+:} false; then :
|
---|
4845 | $as_echo_n "(cached) " >&6
|
---|
4846 | else
|
---|
4847 | ac_check_lib_save_LIBS=$LIBS
|
---|
4848 | LIBS="-lposix $LIBS"
|
---|
4849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4850 | /* end confdefs.h. */
|
---|
4851 |
|
---|
4852 | /* Override any GCC internal prototype to avoid an error.
|
---|
4853 | Use char because int might match the return type of a GCC
|
---|
4854 | builtin and then its argument prototype would still apply. */
|
---|
4855 | #ifdef __cplusplus
|
---|
4856 | extern "C"
|
---|
4857 | #endif
|
---|
4858 | char remove ();
|
---|
4859 | int
|
---|
4860 | main ()
|
---|
4861 | {
|
---|
4862 | return remove ();
|
---|
4863 | ;
|
---|
4864 | return 0;
|
---|
4865 | }
|
---|
4866 | _ACEOF
|
---|
4867 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4868 | ac_cv_lib_posix_remove=yes
|
---|
4869 | else
|
---|
4870 | ac_cv_lib_posix_remove=no
|
---|
4871 | fi
|
---|
4872 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4873 | conftest$ac_exeext conftest.$ac_ext
|
---|
4874 | LIBS=$ac_check_lib_save_LIBS
|
---|
4875 | fi
|
---|
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
|
---|
4877 | $as_echo "$ac_cv_lib_posix_remove" >&6; }
|
---|
4878 | if test "x$ac_cv_lib_posix_remove" = xyes; then :
|
---|
4879 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4880 | fi
|
---|
4881 |
|
---|
4882 | fi
|
---|
4883 |
|
---|
4884 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4885 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
|
---|
4886 | if test "x$ac_cv_func_shmat" = xyes; then :
|
---|
4887 |
|
---|
4888 | fi
|
---|
4889 |
|
---|
4890 | if test $ac_cv_func_shmat = no; then
|
---|
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
|
---|
4892 | $as_echo_n "checking for shmat in -lipc... " >&6; }
|
---|
4893 | if ${ac_cv_lib_ipc_shmat+:} false; then :
|
---|
4894 | $as_echo_n "(cached) " >&6
|
---|
4895 | else
|
---|
4896 | ac_check_lib_save_LIBS=$LIBS
|
---|
4897 | LIBS="-lipc $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 shmat ();
|
---|
4908 | int
|
---|
4909 | main ()
|
---|
4910 | {
|
---|
4911 | return shmat ();
|
---|
4912 | ;
|
---|
4913 | return 0;
|
---|
4914 | }
|
---|
4915 | _ACEOF
|
---|
4916 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4917 | ac_cv_lib_ipc_shmat=yes
|
---|
4918 | else
|
---|
4919 | ac_cv_lib_ipc_shmat=no
|
---|
4920 | fi
|
---|
4921 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4922 | conftest$ac_exeext conftest.$ac_ext
|
---|
4923 | LIBS=$ac_check_lib_save_LIBS
|
---|
4924 | fi
|
---|
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4926 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
|
---|
4927 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
|
---|
4928 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4929 | fi
|
---|
4930 |
|
---|
4931 | fi
|
---|
4932 | fi
|
---|
4933 |
|
---|
4934 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4935 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4936 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4937 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4938 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4939 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4940 | # These have to be linked with before -lX11, unlike the other
|
---|
4941 | # libraries we check for below, so use a different variable.
|
---|
4942 | # John Interrante, Karl Berry
|
---|
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
|
---|
4944 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
|
---|
4945 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
|
---|
4946 | $as_echo_n "(cached) " >&6
|
---|
4947 | else
|
---|
4948 | ac_check_lib_save_LIBS=$LIBS
|
---|
4949 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4951 | /* end confdefs.h. */
|
---|
4952 |
|
---|
4953 | /* Override any GCC internal prototype to avoid an error.
|
---|
4954 | Use char because int might match the return type of a GCC
|
---|
4955 | builtin and then its argument prototype would still apply. */
|
---|
4956 | #ifdef __cplusplus
|
---|
4957 | extern "C"
|
---|
4958 | #endif
|
---|
4959 | char IceConnectionNumber ();
|
---|
4960 | int
|
---|
4961 | main ()
|
---|
4962 | {
|
---|
4963 | return IceConnectionNumber ();
|
---|
4964 | ;
|
---|
4965 | return 0;
|
---|
4966 | }
|
---|
4967 | _ACEOF
|
---|
4968 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4969 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4970 | else
|
---|
4971 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4972 | fi
|
---|
4973 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4974 | conftest$ac_exeext conftest.$ac_ext
|
---|
4975 | LIBS=$ac_check_lib_save_LIBS
|
---|
4976 | fi
|
---|
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
4978 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
|
---|
4979 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
|
---|
4980 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
4981 | fi
|
---|
4982 |
|
---|
4983 | LDFLAGS=$ac_save_LDFLAGS
|
---|
4984 |
|
---|
4985 | fi
|
---|
4986 |
|
---|
4987 | if test "$no_x" = "yes"; then
|
---|
4988 | echo
|
---|
4989 | echo "ERROR: Could not find X Window System headers/libraries."
|
---|
4990 | if test -f /etc/debian_version; then
|
---|
4991 | echo "Probably you need to install the libx11-dev package."
|
---|
4992 | elif test -f /etc/redhat-release; then
|
---|
4993 | echo "Probably you need to install the libX11-devel package."
|
---|
4994 | fi
|
---|
4995 | echo "To specify paths manually, use the options --x-includes and --x-libraries."
|
---|
4996 | echo
|
---|
4997 | exit 1
|
---|
4998 | fi
|
---|
4999 |
|
---|
5000 | if test -n "$ac_tool_prefix"; then
|
---|
5001 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
---|
5002 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
---|
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5004 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5005 | if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
---|
5006 | $as_echo_n "(cached) " >&6
|
---|
5007 | else
|
---|
5008 | case $PKG_CONFIG in
|
---|
5009 | [\\/]* | ?:[\\/]*)
|
---|
5010 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
5011 | ;;
|
---|
5012 | *)
|
---|
5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5014 | for as_dir in $PATH
|
---|
5015 | do
|
---|
5016 | IFS=$as_save_IFS
|
---|
5017 | test -z "$as_dir" && as_dir=.
|
---|
5018 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5020 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5022 | break 2
|
---|
5023 | fi
|
---|
5024 | done
|
---|
5025 | done
|
---|
5026 | IFS=$as_save_IFS
|
---|
5027 |
|
---|
5028 | ;;
|
---|
5029 | esac
|
---|
5030 | fi
|
---|
5031 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
5032 | if test -n "$PKG_CONFIG"; then
|
---|
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
5034 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
5035 | else
|
---|
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5037 | $as_echo "no" >&6; }
|
---|
5038 | fi
|
---|
5039 |
|
---|
5040 |
|
---|
5041 | fi
|
---|
5042 | if test -z "$ac_cv_path_PKG_CONFIG"; then
|
---|
5043 | ac_pt_PKG_CONFIG=$PKG_CONFIG
|
---|
5044 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
5045 | set dummy pkg-config; ac_word=$2
|
---|
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5047 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5048 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
---|
5049 | $as_echo_n "(cached) " >&6
|
---|
5050 | else
|
---|
5051 | case $ac_pt_PKG_CONFIG in
|
---|
5052 | [\\/]* | ?:[\\/]*)
|
---|
5053 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
---|
5054 | ;;
|
---|
5055 | *)
|
---|
5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5057 | for as_dir in $PATH
|
---|
5058 | do
|
---|
5059 | IFS=$as_save_IFS
|
---|
5060 | test -z "$as_dir" && as_dir=.
|
---|
5061 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5063 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5065 | break 2
|
---|
5066 | fi
|
---|
5067 | done
|
---|
5068 | done
|
---|
5069 | IFS=$as_save_IFS
|
---|
5070 |
|
---|
5071 | ;;
|
---|
5072 | esac
|
---|
5073 | fi
|
---|
5074 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
---|
5075 | if test -n "$ac_pt_PKG_CONFIG"; then
|
---|
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
---|
5077 | $as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
---|
5078 | else
|
---|
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5080 | $as_echo "no" >&6; }
|
---|
5081 | fi
|
---|
5082 |
|
---|
5083 | if test "x$ac_pt_PKG_CONFIG" = x; then
|
---|
5084 | PKG_CONFIG=""
|
---|
5085 | else
|
---|
5086 | case $cross_compiling:$ac_tool_warned in
|
---|
5087 | yes:)
|
---|
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5090 | ac_tool_warned=yes ;;
|
---|
5091 | esac
|
---|
5092 | PKG_CONFIG=$ac_pt_PKG_CONFIG
|
---|
5093 | fi
|
---|
5094 | else
|
---|
5095 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
---|
5096 | fi
|
---|
5097 |
|
---|
5098 |
|
---|
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
|
---|
5100 | $as_echo_n "checking for library containing socket... " >&6; }
|
---|
5101 | if ${ac_cv_search_socket+:} false; then :
|
---|
5102 | $as_echo_n "(cached) " >&6
|
---|
5103 | else
|
---|
5104 | ac_func_search_save_LIBS=$LIBS
|
---|
5105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5106 | /* end confdefs.h. */
|
---|
5107 |
|
---|
5108 | /* Override any GCC internal prototype to avoid an error.
|
---|
5109 | Use char because int might match the return type of a GCC
|
---|
5110 | builtin and then its argument prototype would still apply. */
|
---|
5111 | #ifdef __cplusplus
|
---|
5112 | extern "C"
|
---|
5113 | #endif
|
---|
5114 | char socket ();
|
---|
5115 | int
|
---|
5116 | main ()
|
---|
5117 | {
|
---|
5118 | return socket ();
|
---|
5119 | ;
|
---|
5120 | return 0;
|
---|
5121 | }
|
---|
5122 | _ACEOF
|
---|
5123 | for ac_lib in '' socket; do
|
---|
5124 | if test -z "$ac_lib"; then
|
---|
5125 | ac_res="none required"
|
---|
5126 | else
|
---|
5127 | ac_res=-l$ac_lib
|
---|
5128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5129 | fi
|
---|
5130 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5131 | ac_cv_search_socket=$ac_res
|
---|
5132 | fi
|
---|
5133 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5134 | conftest$ac_exeext
|
---|
5135 | if ${ac_cv_search_socket+:} false; then :
|
---|
5136 | break
|
---|
5137 | fi
|
---|
5138 | done
|
---|
5139 | if ${ac_cv_search_socket+:} false; then :
|
---|
5140 |
|
---|
5141 | else
|
---|
5142 | ac_cv_search_socket=no
|
---|
5143 | fi
|
---|
5144 | rm conftest.$ac_ext
|
---|
5145 | LIBS=$ac_func_search_save_LIBS
|
---|
5146 | fi
|
---|
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
|
---|
5148 | $as_echo "$ac_cv_search_socket" >&6; }
|
---|
5149 | ac_res=$ac_cv_search_socket
|
---|
5150 | if test "$ac_res" != no; then :
|
---|
5151 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5152 |
|
---|
5153 | fi
|
---|
5154 |
|
---|
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
|
---|
5156 | $as_echo_n "checking for library containing inet_aton... " >&6; }
|
---|
5157 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
5158 | $as_echo_n "(cached) " >&6
|
---|
5159 | else
|
---|
5160 | ac_func_search_save_LIBS=$LIBS
|
---|
5161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5162 | /* end confdefs.h. */
|
---|
5163 |
|
---|
5164 | /* Override any GCC internal prototype to avoid an error.
|
---|
5165 | Use char because int might match the return type of a GCC
|
---|
5166 | builtin and then its argument prototype would still apply. */
|
---|
5167 | #ifdef __cplusplus
|
---|
5168 | extern "C"
|
---|
5169 | #endif
|
---|
5170 | char inet_aton ();
|
---|
5171 | int
|
---|
5172 | main ()
|
---|
5173 | {
|
---|
5174 | return inet_aton ();
|
---|
5175 | ;
|
---|
5176 | return 0;
|
---|
5177 | }
|
---|
5178 | _ACEOF
|
---|
5179 | for ac_lib in '' resolv; do
|
---|
5180 | if test -z "$ac_lib"; then
|
---|
5181 | ac_res="none required"
|
---|
5182 | else
|
---|
5183 | ac_res=-l$ac_lib
|
---|
5184 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5185 | fi
|
---|
5186 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5187 | ac_cv_search_inet_aton=$ac_res
|
---|
5188 | fi
|
---|
5189 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5190 | conftest$ac_exeext
|
---|
5191 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
5192 | break
|
---|
5193 | fi
|
---|
5194 | done
|
---|
5195 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
5196 |
|
---|
5197 | else
|
---|
5198 | ac_cv_search_inet_aton=no
|
---|
5199 | fi
|
---|
5200 | rm conftest.$ac_ext
|
---|
5201 | LIBS=$ac_func_search_save_LIBS
|
---|
5202 | fi
|
---|
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
|
---|
5204 | $as_echo "$ac_cv_search_inet_aton" >&6; }
|
---|
5205 | ac_res=$ac_cv_search_inet_aton
|
---|
5206 | if test "$ac_res" != no; then :
|
---|
5207 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5208 |
|
---|
5209 | fi
|
---|
5210 |
|
---|
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
|
---|
5212 | $as_echo_n "checking for library containing clock_gettime... " >&6; }
|
---|
5213 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5214 | $as_echo_n "(cached) " >&6
|
---|
5215 | else
|
---|
5216 | ac_func_search_save_LIBS=$LIBS
|
---|
5217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5218 | /* end confdefs.h. */
|
---|
5219 |
|
---|
5220 | /* Override any GCC internal prototype to avoid an error.
|
---|
5221 | Use char because int might match the return type of a GCC
|
---|
5222 | builtin and then its argument prototype would still apply. */
|
---|
5223 | #ifdef __cplusplus
|
---|
5224 | extern "C"
|
---|
5225 | #endif
|
---|
5226 | char clock_gettime ();
|
---|
5227 | int
|
---|
5228 | main ()
|
---|
5229 | {
|
---|
5230 | return clock_gettime ();
|
---|
5231 | ;
|
---|
5232 | return 0;
|
---|
5233 | }
|
---|
5234 | _ACEOF
|
---|
5235 | for ac_lib in '' rt; do
|
---|
5236 | if test -z "$ac_lib"; then
|
---|
5237 | ac_res="none required"
|
---|
5238 | else
|
---|
5239 | ac_res=-l$ac_lib
|
---|
5240 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5241 | fi
|
---|
5242 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5243 | ac_cv_search_clock_gettime=$ac_res
|
---|
5244 | fi
|
---|
5245 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5246 | conftest$ac_exeext
|
---|
5247 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5248 | break
|
---|
5249 | fi
|
---|
5250 | done
|
---|
5251 | if ${ac_cv_search_clock_gettime+:} false; then :
|
---|
5252 |
|
---|
5253 | else
|
---|
5254 | ac_cv_search_clock_gettime=no
|
---|
5255 | fi
|
---|
5256 | rm conftest.$ac_ext
|
---|
5257 | LIBS=$ac_func_search_save_LIBS
|
---|
5258 | fi
|
---|
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
|
---|
5260 | $as_echo "$ac_cv_search_clock_gettime" >&6; }
|
---|
5261 | ac_res=$ac_cv_search_clock_gettime
|
---|
5262 | if test "$ac_res" != no; then :
|
---|
5263 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5264 |
|
---|
5265 | fi
|
---|
5266 |
|
---|
5267 |
|
---|
5268 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
|
---|
5269 | if test "x$ac_cv_header_sys_select_h" = xyes; then :
|
---|
5270 | $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
|
---|
5271 |
|
---|
5272 | fi
|
---|
5273 |
|
---|
5274 |
|
---|
5275 | ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
|
---|
5276 | if test "x$ac_cv_header_sys_modem_h" = xyes; then :
|
---|
5277 | $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
|
---|
5278 |
|
---|
5279 | fi
|
---|
5280 |
|
---|
5281 |
|
---|
5282 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
|
---|
5283 | if test "x$ac_cv_header_sys_filio_h" = xyes; then :
|
---|
5284 | $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
|
---|
5285 |
|
---|
5286 | fi
|
---|
5287 |
|
---|
5288 |
|
---|
5289 | ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
|
---|
5290 | if test "x$ac_cv_header_sys_strtio_h" = xyes; then :
|
---|
5291 | $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
|
---|
5292 |
|
---|
5293 | fi
|
---|
5294 |
|
---|
5295 |
|
---|
5296 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
---|
5297 | if test "x$ac_cv_header_locale_h" = xyes; then :
|
---|
5298 | $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
|
---|
5299 |
|
---|
5300 | fi
|
---|
5301 |
|
---|
5302 |
|
---|
5303 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
|
---|
5304 | if test "x$ac_cv_header_langinfo_h" = xyes; then :
|
---|
5305 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
|
---|
5306 |
|
---|
5307 | fi
|
---|
5308 |
|
---|
5309 |
|
---|
5310 | ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
|
---|
5311 | if test "x$ac_cv_header_sysexits_h" = xyes; then :
|
---|
5312 | $as_echo "#define HAVE_SYSEXITS_H 1" >>confdefs.h
|
---|
5313 |
|
---|
5314 | fi
|
---|
5315 |
|
---|
5316 |
|
---|
5317 |
|
---|
5318 | if test -n "$ac_tool_prefix"; then
|
---|
5319 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
5320 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5322 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5323 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
5324 | $as_echo_n "(cached) " >&6
|
---|
5325 | else
|
---|
5326 | if test -n "$STRIP"; then
|
---|
5327 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
5328 | else
|
---|
5329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5330 | for as_dir in $PATH
|
---|
5331 | do
|
---|
5332 | IFS=$as_save_IFS
|
---|
5333 | test -z "$as_dir" && as_dir=.
|
---|
5334 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5336 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
5337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5338 | break 2
|
---|
5339 | fi
|
---|
5340 | done
|
---|
5341 | done
|
---|
5342 | IFS=$as_save_IFS
|
---|
5343 |
|
---|
5344 | fi
|
---|
5345 | fi
|
---|
5346 | STRIP=$ac_cv_prog_STRIP
|
---|
5347 | if test -n "$STRIP"; then
|
---|
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
5349 | $as_echo "$STRIP" >&6; }
|
---|
5350 | else
|
---|
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5352 | $as_echo "no" >&6; }
|
---|
5353 | fi
|
---|
5354 |
|
---|
5355 |
|
---|
5356 | fi
|
---|
5357 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
5358 | ac_ct_STRIP=$STRIP
|
---|
5359 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5360 | set dummy strip; ac_word=$2
|
---|
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5362 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5363 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
5364 | $as_echo_n "(cached) " >&6
|
---|
5365 | else
|
---|
5366 | if test -n "$ac_ct_STRIP"; then
|
---|
5367 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5368 | else
|
---|
5369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5370 | for as_dir in $PATH
|
---|
5371 | do
|
---|
5372 | IFS=$as_save_IFS
|
---|
5373 | test -z "$as_dir" && as_dir=.
|
---|
5374 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5376 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5378 | break 2
|
---|
5379 | fi
|
---|
5380 | done
|
---|
5381 | done
|
---|
5382 | IFS=$as_save_IFS
|
---|
5383 |
|
---|
5384 | fi
|
---|
5385 | fi
|
---|
5386 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5387 | if test -n "$ac_ct_STRIP"; then
|
---|
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
5389 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
5390 | else
|
---|
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5392 | $as_echo "no" >&6; }
|
---|
5393 | fi
|
---|
5394 |
|
---|
5395 | if test "x$ac_ct_STRIP" = x; then
|
---|
5396 | STRIP=":"
|
---|
5397 | else
|
---|
5398 | case $cross_compiling:$ac_tool_warned in
|
---|
5399 | yes:)
|
---|
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5401 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5402 | ac_tool_warned=yes ;;
|
---|
5403 | esac
|
---|
5404 | STRIP=$ac_ct_STRIP
|
---|
5405 | fi
|
---|
5406 | else
|
---|
5407 | STRIP="$ac_cv_prog_STRIP"
|
---|
5408 | fi
|
---|
5409 |
|
---|
5410 |
|
---|
5411 |
|
---|
5412 |
|
---|
5413 | #
|
---|
5414 | # OpenSSL detection borrowed from stunnel
|
---|
5415 | #
|
---|
5416 | checkssldir() { :
|
---|
5417 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
5418 | ssldir="$1"
|
---|
5419 | return 0
|
---|
5420 | fi
|
---|
5421 | return 1
|
---|
5422 | }
|
---|
5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
|
---|
5424 | $as_echo_n "checking for OpenSSL directory... " >&6; }
|
---|
5425 |
|
---|
5426 | # Check whether --with-openssl was given.
|
---|
5427 | if test "${with_openssl+set}" = set; then :
|
---|
5428 | withval=$with_openssl;
|
---|
5429 | checkssldir "$withval"
|
---|
5430 |
|
---|
5431 | else
|
---|
5432 |
|
---|
5433 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
5434 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
5435 | checkssldir $dir && break 2
|
---|
5436 | done
|
---|
5437 | done
|
---|
5438 |
|
---|
5439 |
|
---|
5440 | fi
|
---|
5441 |
|
---|
5442 | if test -z "$ssldir"; then
|
---|
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
|
---|
5444 | $as_echo "Not found" >&6; }
|
---|
5445 | echo
|
---|
5446 | echo "ERROR: Could not find OpenSSL headers/libraries."
|
---|
5447 | if test -f /etc/debian_version; then
|
---|
5448 | echo "Probably you need to install the libssl-dev package."
|
---|
5449 | elif test -f /etc/redhat-release; then
|
---|
5450 | echo "Probably you need to install the openssl-devel package."
|
---|
5451 | fi
|
---|
5452 | echo "To specify a path manually, use the --with-openssl option."
|
---|
5453 | echo
|
---|
5454 | exit 1
|
---|
5455 | fi
|
---|
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
|
---|
5457 | $as_echo "$ssldir" >&6; }
|
---|
5458 |
|
---|
5459 | cat >>confdefs.h <<_ACEOF
|
---|
5460 | #define ssldir "$ssldir"
|
---|
5461 | _ACEOF
|
---|
5462 |
|
---|
5463 |
|
---|
5464 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
5465 | # Check whether --enable-static-openssl was given.
|
---|
5466 | if test "${enable_static_openssl+set}" = set; then :
|
---|
5467 | enableval=$enable_static_openssl; static_openssl=yes
|
---|
5468 | else
|
---|
5469 | static_openssl=no
|
---|
5470 | fi
|
---|
5471 |
|
---|
5472 | if test x"$static_openssl" = "xyes"; then
|
---|
5473 | # OpenSSL generally relies on libz
|
---|
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
|
---|
5475 | $as_echo_n "checking for library containing deflate... " >&6; }
|
---|
5476 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5477 | $as_echo_n "(cached) " >&6
|
---|
5478 | else
|
---|
5479 | ac_func_search_save_LIBS=$LIBS
|
---|
5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5481 | /* end confdefs.h. */
|
---|
5482 |
|
---|
5483 | /* Override any GCC internal prototype to avoid an error.
|
---|
5484 | Use char because int might match the return type of a GCC
|
---|
5485 | builtin and then its argument prototype would still apply. */
|
---|
5486 | #ifdef __cplusplus
|
---|
5487 | extern "C"
|
---|
5488 | #endif
|
---|
5489 | char deflate ();
|
---|
5490 | int
|
---|
5491 | main ()
|
---|
5492 | {
|
---|
5493 | return deflate ();
|
---|
5494 | ;
|
---|
5495 | return 0;
|
---|
5496 | }
|
---|
5497 | _ACEOF
|
---|
5498 | for ac_lib in '' z; do
|
---|
5499 | if test -z "$ac_lib"; then
|
---|
5500 | ac_res="none required"
|
---|
5501 | else
|
---|
5502 | ac_res=-l$ac_lib
|
---|
5503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5504 | fi
|
---|
5505 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5506 | ac_cv_search_deflate=$ac_res
|
---|
5507 | fi
|
---|
5508 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5509 | conftest$ac_exeext
|
---|
5510 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5511 | break
|
---|
5512 | fi
|
---|
5513 | done
|
---|
5514 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5515 |
|
---|
5516 | else
|
---|
5517 | ac_cv_search_deflate=no
|
---|
5518 | fi
|
---|
5519 | rm conftest.$ac_ext
|
---|
5520 | LIBS=$ac_func_search_save_LIBS
|
---|
5521 | fi
|
---|
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
|
---|
5523 | $as_echo "$ac_cv_search_deflate" >&6; }
|
---|
5524 | ac_res=$ac_cv_search_deflate
|
---|
5525 | if test "$ac_res" != no; then :
|
---|
5526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5527 |
|
---|
5528 | fi
|
---|
5529 |
|
---|
5530 | LIBS="-L$ssldir/lib -L$ssldir/lib64 -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic $LIBS"
|
---|
5531 | else
|
---|
5532 | LIBS="-L$ssldir/lib -L$ssldir/lib64 -lssl -lcrypto $LIBS"
|
---|
5533 |
|
---|
5534 | #
|
---|
5535 | # target-specific stuff
|
---|
5536 | #
|
---|
5537 | case "$host" in
|
---|
5538 | *-*-solaris*)
|
---|
5539 | LDFLAGS="$LDFLAGS -R$ssldir/lib"
|
---|
5540 | ;;
|
---|
5541 | *-dec-osf*)
|
---|
5542 | LDFLAGS="$LDFLAGS -Wl,-rpath,$ssldir/lib"
|
---|
5543 | ;;
|
---|
5544 | esac
|
---|
5545 | fi
|
---|
5546 |
|
---|
5547 | # Check whether --enable-credssp was given.
|
---|
5548 | if test "${enable_credssp+set}" = set; then :
|
---|
5549 | enableval=$enable_credssp;
|
---|
5550 | fi
|
---|
5551 |
|
---|
5552 | # Check whether --enable-static-gssglue was given.
|
---|
5553 | if test "${enable_static_gssglue+set}" = set; then :
|
---|
5554 | enableval=$enable_static_gssglue; static_gssglue=yes
|
---|
5555 | else
|
---|
5556 | static_gssglue=no
|
---|
5557 | fi
|
---|
5558 |
|
---|
5559 |
|
---|
5560 |
|
---|
5561 |
|
---|
5562 |
|
---|
5563 |
|
---|
5564 |
|
---|
5565 |
|
---|
5566 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
---|
5567 | if test -n "$ac_tool_prefix"; then
|
---|
5568 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
---|
5569 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
---|
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5571 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5572 | if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
---|
5573 | $as_echo_n "(cached) " >&6
|
---|
5574 | else
|
---|
5575 | case $PKG_CONFIG in
|
---|
5576 | [\\/]* | ?:[\\/]*)
|
---|
5577 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
5578 | ;;
|
---|
5579 | *)
|
---|
5580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5581 | for as_dir in $PATH
|
---|
5582 | do
|
---|
5583 | IFS=$as_save_IFS
|
---|
5584 | test -z "$as_dir" && as_dir=.
|
---|
5585 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5587 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5589 | break 2
|
---|
5590 | fi
|
---|
5591 | done
|
---|
5592 | done
|
---|
5593 | IFS=$as_save_IFS
|
---|
5594 |
|
---|
5595 | ;;
|
---|
5596 | esac
|
---|
5597 | fi
|
---|
5598 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
5599 | if test -n "$PKG_CONFIG"; then
|
---|
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
5601 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
5602 | else
|
---|
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5604 | $as_echo "no" >&6; }
|
---|
5605 | fi
|
---|
5606 |
|
---|
5607 |
|
---|
5608 | fi
|
---|
5609 | if test -z "$ac_cv_path_PKG_CONFIG"; then
|
---|
5610 | ac_pt_PKG_CONFIG=$PKG_CONFIG
|
---|
5611 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
5612 | set dummy pkg-config; ac_word=$2
|
---|
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5614 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5615 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
---|
5616 | $as_echo_n "(cached) " >&6
|
---|
5617 | else
|
---|
5618 | case $ac_pt_PKG_CONFIG in
|
---|
5619 | [\\/]* | ?:[\\/]*)
|
---|
5620 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
---|
5621 | ;;
|
---|
5622 | *)
|
---|
5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5624 | for as_dir in $PATH
|
---|
5625 | do
|
---|
5626 | IFS=$as_save_IFS
|
---|
5627 | test -z "$as_dir" && as_dir=.
|
---|
5628 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5630 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5632 | break 2
|
---|
5633 | fi
|
---|
5634 | done
|
---|
5635 | done
|
---|
5636 | IFS=$as_save_IFS
|
---|
5637 |
|
---|
5638 | ;;
|
---|
5639 | esac
|
---|
5640 | fi
|
---|
5641 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
---|
5642 | if test -n "$ac_pt_PKG_CONFIG"; then
|
---|
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
---|
5644 | $as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
---|
5645 | else
|
---|
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5647 | $as_echo "no" >&6; }
|
---|
5648 | fi
|
---|
5649 |
|
---|
5650 | if test "x$ac_pt_PKG_CONFIG" = x; then
|
---|
5651 | PKG_CONFIG=""
|
---|
5652 | else
|
---|
5653 | case $cross_compiling:$ac_tool_warned in
|
---|
5654 | yes:)
|
---|
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5657 | ac_tool_warned=yes ;;
|
---|
5658 | esac
|
---|
5659 | PKG_CONFIG=$ac_pt_PKG_CONFIG
|
---|
5660 | fi
|
---|
5661 | else
|
---|
5662 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
---|
5663 | fi
|
---|
5664 |
|
---|
5665 | fi
|
---|
5666 | if test -n "$PKG_CONFIG"; then
|
---|
5667 | _pkg_min_version=0.9.0
|
---|
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
|
---|
5669 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
|
---|
5670 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
---|
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5672 | $as_echo "yes" >&6; }
|
---|
5673 | else
|
---|
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5675 | $as_echo "no" >&6; }
|
---|
5676 | PKG_CONFIG=""
|
---|
5677 | fi
|
---|
5678 | fi
|
---|
5679 | if test "x$enable_credssp" != "xno"; then :
|
---|
5680 |
|
---|
5681 | if test -n "$PKG_CONFIG"; then
|
---|
5682 |
|
---|
5683 | pkg_failed=no
|
---|
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
|
---|
5685 | $as_echo_n "checking for GSSGLUE... " >&6; }
|
---|
5686 |
|
---|
5687 | if test -n "$GSSGLUE_CFLAGS"; then
|
---|
5688 | pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
|
---|
5689 | elif test -n "$PKG_CONFIG"; then
|
---|
5690 | if test -n "$PKG_CONFIG" && \
|
---|
5691 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
|
---|
5692 | ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
|
---|
5693 | ac_status=$?
|
---|
5694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5695 | test $ac_status = 0; }; then
|
---|
5696 | pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue" 2>/dev/null`
|
---|
5697 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5698 | else
|
---|
5699 | pkg_failed=yes
|
---|
5700 | fi
|
---|
5701 | else
|
---|
5702 | pkg_failed=untried
|
---|
5703 | fi
|
---|
5704 | if test -n "$GSSGLUE_LIBS"; then
|
---|
5705 | pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
|
---|
5706 | elif test -n "$PKG_CONFIG"; then
|
---|
5707 | if test -n "$PKG_CONFIG" && \
|
---|
5708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
|
---|
5709 | ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
|
---|
5710 | ac_status=$?
|
---|
5711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5712 | test $ac_status = 0; }; then
|
---|
5713 | pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue" 2>/dev/null`
|
---|
5714 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5715 | else
|
---|
5716 | pkg_failed=yes
|
---|
5717 | fi
|
---|
5718 | else
|
---|
5719 | pkg_failed=untried
|
---|
5720 | fi
|
---|
5721 |
|
---|
5722 |
|
---|
5723 |
|
---|
5724 | if test $pkg_failed = yes; then
|
---|
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5726 | $as_echo "no" >&6; }
|
---|
5727 |
|
---|
5728 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5729 | _pkg_short_errors_supported=yes
|
---|
5730 | else
|
---|
5731 | _pkg_short_errors_supported=no
|
---|
5732 | fi
|
---|
5733 | if test $_pkg_short_errors_supported = yes; then
|
---|
5734 | GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgssglue" 2>&1`
|
---|
5735 | else
|
---|
5736 | GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgssglue" 2>&1`
|
---|
5737 | fi
|
---|
5738 | # Put the nasty error message in config.log where it belongs
|
---|
5739 | echo "$GSSGLUE_PKG_ERRORS" >&5
|
---|
5740 |
|
---|
5741 | WITH_CREDSSP=0
|
---|
5742 | elif test $pkg_failed = untried; then
|
---|
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5744 | $as_echo "no" >&6; }
|
---|
5745 | WITH_CREDSSP=0
|
---|
5746 | else
|
---|
5747 | GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
|
---|
5748 | GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
|
---|
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5750 | $as_echo "yes" >&6; }
|
---|
5751 | WITH_CREDSSP=1
|
---|
5752 | fi
|
---|
5753 | fi
|
---|
5754 |
|
---|
5755 | if test x"$WITH_CREDSSP" = "x1"; then
|
---|
5756 | CREDSSPOBJ="cssp.o"
|
---|
5757 | CFLAGS="$CFLAGS $GSSGLUE_CFLAGS"
|
---|
5758 |
|
---|
5759 | if test "x$static_gssglue" != "xno"; then :
|
---|
5760 |
|
---|
5761 | LIBS="$LIBS -Wl,-Bstatic -lgssglue -Wl,-Bdynamic"
|
---|
5762 |
|
---|
5763 | else
|
---|
5764 |
|
---|
5765 | LIBS="$LIBS -lgssglue"
|
---|
5766 |
|
---|
5767 | fi
|
---|
5768 |
|
---|
5769 | $as_echo "#define WITH_CREDSSP 1" >>confdefs.h
|
---|
5770 |
|
---|
5771 | else
|
---|
5772 | echo
|
---|
5773 | echo "CredSSP support requires libgssglue, install the dependency"
|
---|
5774 | echo "or disable the feature using --disable-credssp."
|
---|
5775 | echo
|
---|
5776 | exit 1
|
---|
5777 | fi
|
---|
5778 |
|
---|
5779 | fi
|
---|
5780 |
|
---|
5781 |
|
---|
5782 | # xrandr
|
---|
5783 | if test -n "$PKG_CONFIG"; then
|
---|
5784 |
|
---|
5785 | pkg_failed=no
|
---|
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
|
---|
5787 | $as_echo_n "checking for XRANDR... " >&6; }
|
---|
5788 |
|
---|
5789 | if test -n "$XRANDR_CFLAGS"; then
|
---|
5790 | pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
|
---|
5791 | elif test -n "$PKG_CONFIG"; then
|
---|
5792 | if test -n "$PKG_CONFIG" && \
|
---|
5793 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
|
---|
5794 | ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
|
---|
5795 | ac_status=$?
|
---|
5796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5797 | test $ac_status = 0; }; then
|
---|
5798 | pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
|
---|
5799 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5800 | else
|
---|
5801 | pkg_failed=yes
|
---|
5802 | fi
|
---|
5803 | else
|
---|
5804 | pkg_failed=untried
|
---|
5805 | fi
|
---|
5806 | if test -n "$XRANDR_LIBS"; then
|
---|
5807 | pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
|
---|
5808 | elif test -n "$PKG_CONFIG"; then
|
---|
5809 | if test -n "$PKG_CONFIG" && \
|
---|
5810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
|
---|
5811 | ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
|
---|
5812 | ac_status=$?
|
---|
5813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5814 | test $ac_status = 0; }; then
|
---|
5815 | pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
|
---|
5816 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5817 | else
|
---|
5818 | pkg_failed=yes
|
---|
5819 | fi
|
---|
5820 | else
|
---|
5821 | pkg_failed=untried
|
---|
5822 | fi
|
---|
5823 |
|
---|
5824 |
|
---|
5825 |
|
---|
5826 | if test $pkg_failed = yes; then
|
---|
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5828 | $as_echo "no" >&6; }
|
---|
5829 |
|
---|
5830 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5831 | _pkg_short_errors_supported=yes
|
---|
5832 | else
|
---|
5833 | _pkg_short_errors_supported=no
|
---|
5834 | fi
|
---|
5835 | if test $_pkg_short_errors_supported = yes; then
|
---|
5836 | XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
|
---|
5837 | else
|
---|
5838 | XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
|
---|
5839 | fi
|
---|
5840 | # Put the nasty error message in config.log where it belongs
|
---|
5841 | echo "$XRANDR_PKG_ERRORS" >&5
|
---|
5842 |
|
---|
5843 | HAVE_XRANDR=0
|
---|
5844 | elif test $pkg_failed = untried; then
|
---|
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5846 | $as_echo "no" >&6; }
|
---|
5847 | HAVE_XRANDR=0
|
---|
5848 | else
|
---|
5849 | XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
|
---|
5850 | XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
|
---|
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5852 | $as_echo "yes" >&6; }
|
---|
5853 | HAVE_XRANDR=1
|
---|
5854 | fi
|
---|
5855 | fi
|
---|
5856 | if test x"$HAVE_XRANDR" = "x1"; then
|
---|
5857 | CFLAGS="$CFLAGS $XRANDR_CFLAGS"
|
---|
5858 | LIBS="$LIBS $XRANDR_LIBS"
|
---|
5859 | $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
|
---|
5860 |
|
---|
5861 | fi
|
---|
5862 |
|
---|
5863 | # Check whether --enable-smartcard was given.
|
---|
5864 | if test "${enable_smartcard+set}" = set; then :
|
---|
5865 | enableval=$enable_smartcard;
|
---|
5866 | fi
|
---|
5867 |
|
---|
5868 | if test "x$enable_smartcard" != "xno"; then :
|
---|
5869 |
|
---|
5870 | case "$OSTYPE" in
|
---|
5871 | darwin*)
|
---|
5872 | ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
|
---|
5873 | if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes; then :
|
---|
5874 | WITH_SCARD=1
|
---|
5875 | else
|
---|
5876 | WITH_SCARD=0
|
---|
5877 | fi
|
---|
5878 |
|
---|
5879 |
|
---|
5880 | PCSCLITE_CFLAGS=""
|
---|
5881 | PCSCLITE_LIBS="-framework PCSC"
|
---|
5882 | ;;
|
---|
5883 | *)
|
---|
5884 | if test -n "$PKG_CONFIG"; then
|
---|
5885 |
|
---|
5886 | pkg_failed=no
|
---|
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCSCLITE" >&5
|
---|
5888 | $as_echo_n "checking for PCSCLITE... " >&6; }
|
---|
5889 |
|
---|
5890 | if test -n "$PCSCLITE_CFLAGS"; then
|
---|
5891 | pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
|
---|
5892 | elif test -n "$PKG_CONFIG"; then
|
---|
5893 | if test -n "$PKG_CONFIG" && \
|
---|
5894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
|
---|
5895 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
5896 | ac_status=$?
|
---|
5897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5898 | test $ac_status = 0; }; then
|
---|
5899 | pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
|
---|
5900 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5901 | else
|
---|
5902 | pkg_failed=yes
|
---|
5903 | fi
|
---|
5904 | else
|
---|
5905 | pkg_failed=untried
|
---|
5906 | fi
|
---|
5907 | if test -n "$PCSCLITE_LIBS"; then
|
---|
5908 | pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
|
---|
5909 | elif test -n "$PKG_CONFIG"; then
|
---|
5910 | if test -n "$PKG_CONFIG" && \
|
---|
5911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
|
---|
5912 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
5913 | ac_status=$?
|
---|
5914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5915 | test $ac_status = 0; }; then
|
---|
5916 | pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
|
---|
5917 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5918 | else
|
---|
5919 | pkg_failed=yes
|
---|
5920 | fi
|
---|
5921 | else
|
---|
5922 | pkg_failed=untried
|
---|
5923 | fi
|
---|
5924 |
|
---|
5925 |
|
---|
5926 |
|
---|
5927 | if test $pkg_failed = yes; then
|
---|
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5929 | $as_echo "no" >&6; }
|
---|
5930 |
|
---|
5931 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5932 | _pkg_short_errors_supported=yes
|
---|
5933 | else
|
---|
5934 | _pkg_short_errors_supported=no
|
---|
5935 | fi
|
---|
5936 | if test $_pkg_short_errors_supported = yes; then
|
---|
5937 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite" 2>&1`
|
---|
5938 | else
|
---|
5939 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite" 2>&1`
|
---|
5940 | fi
|
---|
5941 | # Put the nasty error message in config.log where it belongs
|
---|
5942 | echo "$PCSCLITE_PKG_ERRORS" >&5
|
---|
5943 |
|
---|
5944 | WITH_SCARD=0
|
---|
5945 | elif test $pkg_failed = untried; then
|
---|
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5947 | $as_echo "no" >&6; }
|
---|
5948 | WITH_SCARD=0
|
---|
5949 | else
|
---|
5950 | PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
|
---|
5951 | PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
|
---|
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5953 | $as_echo "yes" >&6; }
|
---|
5954 | WITH_SCARD=1
|
---|
5955 | fi
|
---|
5956 | fi
|
---|
5957 | ;;
|
---|
5958 | esac
|
---|
5959 |
|
---|
5960 | if test x"$WITH_SCARD" = "x1"; then
|
---|
5961 | SCARDOBJ="scard.o"
|
---|
5962 | CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
|
---|
5963 | LIBS="$LIBS $PCSCLITE_LIBS"
|
---|
5964 | $as_echo "#define WITH_SCARD 1" >>confdefs.h
|
---|
5965 |
|
---|
5966 | else
|
---|
5967 | echo
|
---|
5968 | echo "SmartCard support requires PCSC, install the dependency"
|
---|
5969 | echo "or disable the feature using --disable-smartcard."
|
---|
5970 | echo
|
---|
5971 | exit 1
|
---|
5972 | fi
|
---|
5973 |
|
---|
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
|
---|
5975 | $as_echo_n "checking for old version of PCSC... " >&6; }
|
---|
5976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5977 | /* end confdefs.h. */
|
---|
5978 |
|
---|
5979 | #include <stdlib.h>
|
---|
5980 | #ifdef __APPLE__
|
---|
5981 | #include <PCSC/wintypes.h>
|
---|
5982 | #include <PCSC/winscard.h>
|
---|
5983 | #else
|
---|
5984 | #include <winscard.h>
|
---|
5985 | #endif
|
---|
5986 |
|
---|
5987 | int
|
---|
5988 | main ()
|
---|
5989 | {
|
---|
5990 | SCardControl(NULL, NULL, 0, NULL, NULL);
|
---|
5991 | ;
|
---|
5992 | return 0;
|
---|
5993 | }
|
---|
5994 | _ACEOF
|
---|
5995 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5997 | $as_echo "yes" >&6; }
|
---|
5998 | $as_echo "#define WITH_PCSC120 1" >>confdefs.h
|
---|
5999 |
|
---|
6000 | else
|
---|
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6002 | $as_echo "no" >&6; }
|
---|
6003 | fi
|
---|
6004 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6005 | conftest$ac_exeext conftest.$ac_ext
|
---|
6006 |
|
---|
6007 | fi
|
---|
6008 |
|
---|
6009 |
|
---|
6010 | #
|
---|
6011 | # Alignment
|
---|
6012 | #
|
---|
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
|
---|
6014 | $as_echo_n "checking if architecture needs alignment... " >&6; }
|
---|
6015 | if test "$cross_compiling" = yes; then :
|
---|
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
|
---|
6017 | $as_echo "assuming yes" >&6; }
|
---|
6018 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
6019 |
|
---|
6020 | else
|
---|
6021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6022 | /* end confdefs.h. */
|
---|
6023 |
|
---|
6024 | #include <stdlib.h>
|
---|
6025 | #include <signal.h>
|
---|
6026 | int main(int argc, char **argv)
|
---|
6027 | {
|
---|
6028 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
6029 | signal(SIGBUS, exit);
|
---|
6030 | signal(SIGABRT, exit);
|
---|
6031 | signal(SIGSEGV, exit);
|
---|
6032 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
6033 | return 1;
|
---|
6034 | }
|
---|
6035 | return 0;
|
---|
6036 | }
|
---|
6037 | _ACEOF
|
---|
6038 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6040 | $as_echo "no" >&6; }
|
---|
6041 | else
|
---|
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6043 | $as_echo "yes" >&6; }
|
---|
6044 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
6045 |
|
---|
6046 | fi
|
---|
6047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6048 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6049 | fi
|
---|
6050 |
|
---|
6051 |
|
---|
6052 | #
|
---|
6053 | # linux/compiler.h
|
---|
6054 | #
|
---|
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
|
---|
6056 | $as_echo_n "checking if linux/compiler.h is required... " >&6; }
|
---|
6057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6058 | /* end confdefs.h. */
|
---|
6059 |
|
---|
6060 | #include <linux/compiler.h>
|
---|
6061 |
|
---|
6062 | int
|
---|
6063 | main ()
|
---|
6064 | {
|
---|
6065 |
|
---|
6066 | ;
|
---|
6067 | return 0;
|
---|
6068 | }
|
---|
6069 | _ACEOF
|
---|
6070 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6072 | $as_echo "yes" >&6; }
|
---|
6073 | $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
|
---|
6074 |
|
---|
6075 | else
|
---|
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6077 | $as_echo "no" >&6; }
|
---|
6078 | fi
|
---|
6079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6080 |
|
---|
6081 |
|
---|
6082 | #
|
---|
6083 | # EGD
|
---|
6084 | #
|
---|
6085 |
|
---|
6086 | # Check whether --with-egd-socket was given.
|
---|
6087 | if test "${with_egd_socket+set}" = set; then :
|
---|
6088 | withval=$with_egd_socket; EGD_SOCKET="$withval"
|
---|
6089 | else
|
---|
6090 | EGD_SOCKET="/var/run/egd-pool"
|
---|
6091 |
|
---|
6092 | fi
|
---|
6093 |
|
---|
6094 | cat >>confdefs.h <<_ACEOF
|
---|
6095 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
6096 | _ACEOF
|
---|
6097 |
|
---|
6098 |
|
---|
6099 |
|
---|
6100 | #
|
---|
6101 | # rdp2vnc
|
---|
6102 | #
|
---|
6103 | vncserverconfig=libvncserver-config
|
---|
6104 |
|
---|
6105 | # Check whether --with-libvncserver-config was given.
|
---|
6106 | if test "${with_libvncserver_config+set}" = set; then :
|
---|
6107 | withval=$with_libvncserver_config; vncserverconfig="$withval"
|
---|
6108 |
|
---|
6109 | fi
|
---|
6110 |
|
---|
6111 |
|
---|
6112 | # Check whether --with-libvncserver was given.
|
---|
6113 | if test "${with_libvncserver+set}" = set; then :
|
---|
6114 | withval=$with_libvncserver;
|
---|
6115 | VNCINC=`$vncserverconfig --cflags`
|
---|
6116 |
|
---|
6117 | LDVNC=`$vncserverconfig --libs`
|
---|
6118 |
|
---|
6119 | VNCLINK=`$vncserverconfig --link`
|
---|
6120 |
|
---|
6121 | RDP2VNCTARGET="rdp2vnc"
|
---|
6122 |
|
---|
6123 |
|
---|
6124 |
|
---|
6125 | fi
|
---|
6126 |
|
---|
6127 |
|
---|
6128 | #
|
---|
6129 | # sound
|
---|
6130 | #
|
---|
6131 |
|
---|
6132 | sound="yes"
|
---|
6133 |
|
---|
6134 | # Check whether --with-sound was given.
|
---|
6135 | if test "${with_sound+set}" = set; then :
|
---|
6136 | withval=$with_sound;
|
---|
6137 | sound="$withval"
|
---|
6138 |
|
---|
6139 | fi
|
---|
6140 |
|
---|
6141 |
|
---|
6142 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
|
---|
6143 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
|
---|
6144 | HAVE_OSS=1
|
---|
6145 | else
|
---|
6146 | HAVE_OSS=0
|
---|
6147 | fi
|
---|
6148 |
|
---|
6149 |
|
---|
6150 | ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
|
---|
6151 | if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
|
---|
6152 | HAVE_SGI=1
|
---|
6153 | else
|
---|
6154 | HAVE_SGI=0
|
---|
6155 | fi
|
---|
6156 |
|
---|
6157 |
|
---|
6158 | ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
|
---|
6159 | if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
|
---|
6160 | HAVE_SUN=1
|
---|
6161 | else
|
---|
6162 | HAVE_SUN=0
|
---|
6163 | fi
|
---|
6164 |
|
---|
6165 |
|
---|
6166 |
|
---|
6167 | # Check whether --enable-static-libsamplerate was given.
|
---|
6168 | if test "${enable_static_libsamplerate+set}" = set; then :
|
---|
6169 | enableval=$enable_static_libsamplerate; static_libsamplerate=yes
|
---|
6170 | else
|
---|
6171 | static_libsamplerate=no
|
---|
6172 | fi
|
---|
6173 |
|
---|
6174 |
|
---|
6175 | if test -n "$PKG_CONFIG"; then
|
---|
6176 |
|
---|
6177 | pkg_failed=no
|
---|
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAO" >&5
|
---|
6179 | $as_echo_n "checking for LIBAO... " >&6; }
|
---|
6180 |
|
---|
6181 | if test -n "$LIBAO_CFLAGS"; then
|
---|
6182 | pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
|
---|
6183 | elif test -n "$PKG_CONFIG"; then
|
---|
6184 | if test -n "$PKG_CONFIG" && \
|
---|
6185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
|
---|
6186 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
6187 | ac_status=$?
|
---|
6188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6189 | test $ac_status = 0; }; then
|
---|
6190 | pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
|
---|
6191 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6192 | else
|
---|
6193 | pkg_failed=yes
|
---|
6194 | fi
|
---|
6195 | else
|
---|
6196 | pkg_failed=untried
|
---|
6197 | fi
|
---|
6198 | if test -n "$LIBAO_LIBS"; then
|
---|
6199 | pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
|
---|
6200 | elif test -n "$PKG_CONFIG"; then
|
---|
6201 | if test -n "$PKG_CONFIG" && \
|
---|
6202 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
|
---|
6203 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
6204 | ac_status=$?
|
---|
6205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6206 | test $ac_status = 0; }; then
|
---|
6207 | pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
|
---|
6208 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6209 | else
|
---|
6210 | pkg_failed=yes
|
---|
6211 | fi
|
---|
6212 | else
|
---|
6213 | pkg_failed=untried
|
---|
6214 | fi
|
---|
6215 |
|
---|
6216 |
|
---|
6217 |
|
---|
6218 | if test $pkg_failed = yes; then
|
---|
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6220 | $as_echo "no" >&6; }
|
---|
6221 |
|
---|
6222 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
6223 | _pkg_short_errors_supported=yes
|
---|
6224 | else
|
---|
6225 | _pkg_short_errors_supported=no
|
---|
6226 | fi
|
---|
6227 | if test $_pkg_short_errors_supported = yes; then
|
---|
6228 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ao" 2>&1`
|
---|
6229 | else
|
---|
6230 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ao" 2>&1`
|
---|
6231 | fi
|
---|
6232 | # Put the nasty error message in config.log where it belongs
|
---|
6233 | echo "$LIBAO_PKG_ERRORS" >&5
|
---|
6234 |
|
---|
6235 | HAVE_LIBAO=0
|
---|
6236 | elif test $pkg_failed = untried; then
|
---|
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6238 | $as_echo "no" >&6; }
|
---|
6239 | HAVE_LIBAO=0
|
---|
6240 | else
|
---|
6241 | LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
|
---|
6242 | LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
|
---|
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6244 | $as_echo "yes" >&6; }
|
---|
6245 | HAVE_LIBAO=1
|
---|
6246 | fi
|
---|
6247 |
|
---|
6248 | pkg_failed=no
|
---|
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
|
---|
6250 | $as_echo_n "checking for ALSA... " >&6; }
|
---|
6251 |
|
---|
6252 | if test -n "$ALSA_CFLAGS"; then
|
---|
6253 | pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
|
---|
6254 | elif test -n "$PKG_CONFIG"; then
|
---|
6255 | if test -n "$PKG_CONFIG" && \
|
---|
6256 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
|
---|
6257 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
6258 | ac_status=$?
|
---|
6259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6260 | test $ac_status = 0; }; then
|
---|
6261 | pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
|
---|
6262 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6263 | else
|
---|
6264 | pkg_failed=yes
|
---|
6265 | fi
|
---|
6266 | else
|
---|
6267 | pkg_failed=untried
|
---|
6268 | fi
|
---|
6269 | if test -n "$ALSA_LIBS"; then
|
---|
6270 | pkg_cv_ALSA_LIBS="$ALSA_LIBS"
|
---|
6271 | elif test -n "$PKG_CONFIG"; then
|
---|
6272 | if test -n "$PKG_CONFIG" && \
|
---|
6273 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
|
---|
6274 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
6275 | ac_status=$?
|
---|
6276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6277 | test $ac_status = 0; }; then
|
---|
6278 | pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
|
---|
6279 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6280 | else
|
---|
6281 | pkg_failed=yes
|
---|
6282 | fi
|
---|
6283 | else
|
---|
6284 | pkg_failed=untried
|
---|
6285 | fi
|
---|
6286 |
|
---|
6287 |
|
---|
6288 |
|
---|
6289 | if test $pkg_failed = yes; then
|
---|
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6291 | $as_echo "no" >&6; }
|
---|
6292 |
|
---|
6293 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
6294 | _pkg_short_errors_supported=yes
|
---|
6295 | else
|
---|
6296 | _pkg_short_errors_supported=no
|
---|
6297 | fi
|
---|
6298 | if test $_pkg_short_errors_supported = yes; then
|
---|
6299 | ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
|
---|
6300 | else
|
---|
6301 | ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
|
---|
6302 | fi
|
---|
6303 | # Put the nasty error message in config.log where it belongs
|
---|
6304 | echo "$ALSA_PKG_ERRORS" >&5
|
---|
6305 |
|
---|
6306 | HAVE_ALSA=0
|
---|
6307 | elif test $pkg_failed = untried; then
|
---|
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6309 | $as_echo "no" >&6; }
|
---|
6310 | HAVE_ALSA=0
|
---|
6311 | else
|
---|
6312 | ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
|
---|
6313 | ALSA_LIBS=$pkg_cv_ALSA_LIBS
|
---|
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6315 | $as_echo "yes" >&6; }
|
---|
6316 | HAVE_ALSA=1
|
---|
6317 | fi
|
---|
6318 |
|
---|
6319 | pkg_failed=no
|
---|
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSAMPLERATE" >&5
|
---|
6321 | $as_echo_n "checking for LIBSAMPLERATE... " >&6; }
|
---|
6322 |
|
---|
6323 | if test -n "$LIBSAMPLERATE_CFLAGS"; then
|
---|
6324 | pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
|
---|
6325 | elif test -n "$PKG_CONFIG"; then
|
---|
6326 | if test -n "$PKG_CONFIG" && \
|
---|
6327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
|
---|
6328 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
6329 | ac_status=$?
|
---|
6330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6331 | test $ac_status = 0; }; then
|
---|
6332 | pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
|
---|
6333 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6334 | else
|
---|
6335 | pkg_failed=yes
|
---|
6336 | fi
|
---|
6337 | else
|
---|
6338 | pkg_failed=untried
|
---|
6339 | fi
|
---|
6340 | if test -n "$LIBSAMPLERATE_LIBS"; then
|
---|
6341 | pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
|
---|
6342 | elif test -n "$PKG_CONFIG"; then
|
---|
6343 | if test -n "$PKG_CONFIG" && \
|
---|
6344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
|
---|
6345 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
6346 | ac_status=$?
|
---|
6347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6348 | test $ac_status = 0; }; then
|
---|
6349 | pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
|
---|
6350 | test "x$?" != "x0" && pkg_failed=yes
|
---|
6351 | else
|
---|
6352 | pkg_failed=yes
|
---|
6353 | fi
|
---|
6354 | else
|
---|
6355 | pkg_failed=untried
|
---|
6356 | fi
|
---|
6357 |
|
---|
6358 |
|
---|
6359 |
|
---|
6360 | if test $pkg_failed = yes; then
|
---|
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6362 | $as_echo "no" >&6; }
|
---|
6363 |
|
---|
6364 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
6365 | _pkg_short_errors_supported=yes
|
---|
6366 | else
|
---|
6367 | _pkg_short_errors_supported=no
|
---|
6368 | fi
|
---|
6369 | if test $_pkg_short_errors_supported = yes; then
|
---|
6370 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
|
---|
6371 | else
|
---|
6372 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
|
---|
6373 | fi
|
---|
6374 | # Put the nasty error message in config.log where it belongs
|
---|
6375 | echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
|
---|
6376 |
|
---|
6377 | HAVE_LIBSAMPLERATE=0
|
---|
6378 | elif test $pkg_failed = untried; then
|
---|
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6380 | $as_echo "no" >&6; }
|
---|
6381 | HAVE_LIBSAMPLERATE=0
|
---|
6382 | else
|
---|
6383 | LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
|
---|
6384 | LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
|
---|
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6386 | $as_echo "yes" >&6; }
|
---|
6387 | HAVE_LIBSAMPLERATE=1
|
---|
6388 | fi
|
---|
6389 | if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
|
---|
6390 | $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
|
---|
6391 |
|
---|
6392 | if test x"$static_libsamplerate" = "xyes"; then
|
---|
6393 | _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
|
---|
6394 | LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
|
---|
6395 | LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
|
---|
6396 | fi
|
---|
6397 | fi
|
---|
6398 | fi
|
---|
6399 |
|
---|
6400 | if test "$sound" != "no"; then
|
---|
6401 | SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
|
---|
6402 | CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
|
---|
6403 | LIBS="$LIBS $LIBSAMPLERATE_LIBS"
|
---|
6404 | $as_echo "#define WITH_RDPSND 1" >>confdefs.h
|
---|
6405 |
|
---|
6406 | fi
|
---|
6407 |
|
---|
6408 | case $sound in
|
---|
6409 | yes)
|
---|
6410 | if test x"$HAVE_OSS" = "x1"; then
|
---|
6411 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
6412 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
6413 |
|
---|
6414 | fi
|
---|
6415 |
|
---|
6416 | if test x"$HAVE_SGI" = "x1"; then
|
---|
6417 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
6418 | LIBS="$LIBS -laudio"
|
---|
6419 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
6420 |
|
---|
6421 | fi
|
---|
6422 |
|
---|
6423 | if test x"$HAVE_SUN" = "x1"; then
|
---|
6424 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
6425 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
6426 |
|
---|
6427 | fi
|
---|
6428 |
|
---|
6429 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
6430 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
6431 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
6432 | LIBS="$LIBS $ALSA_LIBS"
|
---|
6433 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
6434 |
|
---|
6435 | fi
|
---|
6436 |
|
---|
6437 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
6438 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
6439 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
6440 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
6441 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
6442 |
|
---|
6443 | fi
|
---|
6444 |
|
---|
6445 | ;;
|
---|
6446 |
|
---|
6447 | oss)
|
---|
6448 | if test x"$HAVE_OSS" = "x1"; then
|
---|
6449 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
6450 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
6451 |
|
---|
6452 | else
|
---|
6453 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6454 | fi
|
---|
6455 | ;;
|
---|
6456 |
|
---|
6457 | sgi)
|
---|
6458 | if test x"$HAVE_SGI" = "x1"; then
|
---|
6459 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
6460 | LIBS="$LIBS -laudio"
|
---|
6461 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
6462 |
|
---|
6463 | else
|
---|
6464 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6465 | fi
|
---|
6466 | ;;
|
---|
6467 |
|
---|
6468 | sun)
|
---|
6469 | if test x"$HAVE_SUN" = "x1"; then
|
---|
6470 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
6471 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
6472 |
|
---|
6473 | else
|
---|
6474 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6475 | fi
|
---|
6476 | ;;
|
---|
6477 |
|
---|
6478 | alsa)
|
---|
6479 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
6480 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
6481 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
6482 | LIBS="$LIBS $ALSA_LIBS"
|
---|
6483 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
6484 |
|
---|
6485 | else
|
---|
6486 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6487 | fi
|
---|
6488 | ;;
|
---|
6489 |
|
---|
6490 | libao)
|
---|
6491 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
6492 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
6493 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
6494 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
6495 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
6496 |
|
---|
6497 | else
|
---|
6498 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6499 | fi
|
---|
6500 | ;;
|
---|
6501 |
|
---|
6502 | no)
|
---|
6503 | ;;
|
---|
6504 |
|
---|
6505 | *)
|
---|
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
|
---|
6507 | $as_echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
6508 | { $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
|
---|
6509 | $as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
|
---|
6510 | ;;
|
---|
6511 | esac
|
---|
6512 |
|
---|
6513 |
|
---|
6514 |
|
---|
6515 | #
|
---|
6516 | # dirfd
|
---|
6517 | #
|
---|
6518 |
|
---|
6519 |
|
---|
6520 |
|
---|
6521 |
|
---|
6522 |
|
---|
6523 | ac_header_dirent=no
|
---|
6524 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
6525 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
6527 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
6528 | if eval \${$as_ac_Header+:} false; then :
|
---|
6529 | $as_echo_n "(cached) " >&6
|
---|
6530 | else
|
---|
6531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6532 | /* end confdefs.h. */
|
---|
6533 | #include <sys/types.h>
|
---|
6534 | #include <$ac_hdr>
|
---|
6535 |
|
---|
6536 | int
|
---|
6537 | main ()
|
---|
6538 | {
|
---|
6539 | if ((DIR *) 0)
|
---|
6540 | return 0;
|
---|
6541 | ;
|
---|
6542 | return 0;
|
---|
6543 | }
|
---|
6544 | _ACEOF
|
---|
6545 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6546 | eval "$as_ac_Header=yes"
|
---|
6547 | else
|
---|
6548 | eval "$as_ac_Header=no"
|
---|
6549 | fi
|
---|
6550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6551 | fi
|
---|
6552 | eval ac_res=\$$as_ac_Header
|
---|
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
6554 | $as_echo "$ac_res" >&6; }
|
---|
6555 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
6556 | cat >>confdefs.h <<_ACEOF
|
---|
6557 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
6558 | _ACEOF
|
---|
6559 |
|
---|
6560 | ac_header_dirent=$ac_hdr; break
|
---|
6561 | fi
|
---|
6562 |
|
---|
6563 | done
|
---|
6564 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
6565 | if test $ac_header_dirent = dirent.h; then
|
---|
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
6567 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
6568 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6569 | $as_echo_n "(cached) " >&6
|
---|
6570 | else
|
---|
6571 | ac_func_search_save_LIBS=$LIBS
|
---|
6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6573 | /* end confdefs.h. */
|
---|
6574 |
|
---|
6575 | /* Override any GCC internal prototype to avoid an error.
|
---|
6576 | Use char because int might match the return type of a GCC
|
---|
6577 | builtin and then its argument prototype would still apply. */
|
---|
6578 | #ifdef __cplusplus
|
---|
6579 | extern "C"
|
---|
6580 | #endif
|
---|
6581 | char opendir ();
|
---|
6582 | int
|
---|
6583 | main ()
|
---|
6584 | {
|
---|
6585 | return opendir ();
|
---|
6586 | ;
|
---|
6587 | return 0;
|
---|
6588 | }
|
---|
6589 | _ACEOF
|
---|
6590 | for ac_lib in '' dir; do
|
---|
6591 | if test -z "$ac_lib"; then
|
---|
6592 | ac_res="none required"
|
---|
6593 | else
|
---|
6594 | ac_res=-l$ac_lib
|
---|
6595 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6596 | fi
|
---|
6597 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6598 | ac_cv_search_opendir=$ac_res
|
---|
6599 | fi
|
---|
6600 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6601 | conftest$ac_exeext
|
---|
6602 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6603 | break
|
---|
6604 | fi
|
---|
6605 | done
|
---|
6606 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6607 |
|
---|
6608 | else
|
---|
6609 | ac_cv_search_opendir=no
|
---|
6610 | fi
|
---|
6611 | rm conftest.$ac_ext
|
---|
6612 | LIBS=$ac_func_search_save_LIBS
|
---|
6613 | fi
|
---|
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
6615 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
6616 | ac_res=$ac_cv_search_opendir
|
---|
6617 | if test "$ac_res" != no; then :
|
---|
6618 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
6619 |
|
---|
6620 | fi
|
---|
6621 |
|
---|
6622 | else
|
---|
6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
6624 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
6625 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6626 | $as_echo_n "(cached) " >&6
|
---|
6627 | else
|
---|
6628 | ac_func_search_save_LIBS=$LIBS
|
---|
6629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6630 | /* end confdefs.h. */
|
---|
6631 |
|
---|
6632 | /* Override any GCC internal prototype to avoid an error.
|
---|
6633 | Use char because int might match the return type of a GCC
|
---|
6634 | builtin and then its argument prototype would still apply. */
|
---|
6635 | #ifdef __cplusplus
|
---|
6636 | extern "C"
|
---|
6637 | #endif
|
---|
6638 | char opendir ();
|
---|
6639 | int
|
---|
6640 | main ()
|
---|
6641 | {
|
---|
6642 | return opendir ();
|
---|
6643 | ;
|
---|
6644 | return 0;
|
---|
6645 | }
|
---|
6646 | _ACEOF
|
---|
6647 | for ac_lib in '' x; do
|
---|
6648 | if test -z "$ac_lib"; then
|
---|
6649 | ac_res="none required"
|
---|
6650 | else
|
---|
6651 | ac_res=-l$ac_lib
|
---|
6652 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6653 | fi
|
---|
6654 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6655 | ac_cv_search_opendir=$ac_res
|
---|
6656 | fi
|
---|
6657 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6658 | conftest$ac_exeext
|
---|
6659 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6660 | break
|
---|
6661 | fi
|
---|
6662 | done
|
---|
6663 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6664 |
|
---|
6665 | else
|
---|
6666 | ac_cv_search_opendir=no
|
---|
6667 | fi
|
---|
6668 | rm conftest.$ac_ext
|
---|
6669 | LIBS=$ac_func_search_save_LIBS
|
---|
6670 | fi
|
---|
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
6672 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
6673 | ac_res=$ac_cv_search_opendir
|
---|
6674 | if test "$ac_res" != no; then :
|
---|
6675 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
6676 |
|
---|
6677 | fi
|
---|
6678 |
|
---|
6679 | fi
|
---|
6680 |
|
---|
6681 | dirfd_headers='
|
---|
6682 | #if HAVE_DIRENT_H
|
---|
6683 | # include <dirent.h>
|
---|
6684 | #else /* not HAVE_DIRENT_H */
|
---|
6685 | # define dirent direct
|
---|
6686 | # if HAVE_SYS_NDIR_H
|
---|
6687 | # include <sys/ndir.h>
|
---|
6688 | # endif /* HAVE_SYS_NDIR_H */
|
---|
6689 | # if HAVE_SYS_DIR_H
|
---|
6690 | # include <sys/dir.h>
|
---|
6691 | # endif /* HAVE_SYS_DIR_H */
|
---|
6692 | # if HAVE_NDIR_H
|
---|
6693 | # include <ndir.h>
|
---|
6694 | # endif /* HAVE_NDIR_H */
|
---|
6695 | #endif /* HAVE_DIRENT_H */
|
---|
6696 | '
|
---|
6697 | for ac_func in dirfd
|
---|
6698 | do :
|
---|
6699 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
6700 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
6701 | cat >>confdefs.h <<_ACEOF
|
---|
6702 | #define HAVE_DIRFD 1
|
---|
6703 | _ACEOF
|
---|
6704 |
|
---|
6705 | fi
|
---|
6706 | done
|
---|
6707 |
|
---|
6708 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
|
---|
6709 | "
|
---|
6710 | if test "x$ac_cv_have_decl_dirfd" = xyes; then :
|
---|
6711 | ac_have_decl=1
|
---|
6712 | else
|
---|
6713 | ac_have_decl=0
|
---|
6714 | fi
|
---|
6715 |
|
---|
6716 | cat >>confdefs.h <<_ACEOF
|
---|
6717 | #define HAVE_DECL_DIRFD $ac_have_decl
|
---|
6718 | _ACEOF
|
---|
6719 |
|
---|
6720 |
|
---|
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
|
---|
6722 | $as_echo_n "checking whether dirfd is a macro... " >&6; }
|
---|
6723 | if ${jm_cv_func_dirfd_macro+:} false; then :
|
---|
6724 | $as_echo_n "(cached) " >&6
|
---|
6725 | else
|
---|
6726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6727 | /* end confdefs.h. */
|
---|
6728 | $dirfd_headers
|
---|
6729 | #ifdef dirfd
|
---|
6730 | dirent_header_defines_dirfd
|
---|
6731 | #endif
|
---|
6732 | _ACEOF
|
---|
6733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6734 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
|
---|
6735 | jm_cv_func_dirfd_macro=yes
|
---|
6736 | else
|
---|
6737 | jm_cv_func_dirfd_macro=no
|
---|
6738 | fi
|
---|
6739 | rm -f conftest*
|
---|
6740 |
|
---|
6741 | fi
|
---|
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
|
---|
6743 | $as_echo "$jm_cv_func_dirfd_macro" >&6; }
|
---|
6744 |
|
---|
6745 | # Use the replacement only if we have no function, macro,
|
---|
6746 | # or declaration with that name.
|
---|
6747 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
6748 | = no,no,no; then
|
---|
6749 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
6750 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
6751 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
|
---|
6752 |
|
---|
6753 | else
|
---|
6754 | case " $LIBOBJS " in
|
---|
6755 | *" dirfd.$ac_objext "* ) ;;
|
---|
6756 | *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
|
---|
6757 | ;;
|
---|
6758 | esac
|
---|
6759 |
|
---|
6760 | fi
|
---|
6761 |
|
---|
6762 |
|
---|
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
6764 | $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
|
---|
6765 | if ${gl_cv_sys_dir_fd_member_name+:} false; then :
|
---|
6766 | $as_echo_n "(cached) " >&6
|
---|
6767 | else
|
---|
6768 |
|
---|
6769 | dirfd_save_CFLAGS=$CFLAGS
|
---|
6770 | for ac_expr in d_fd dd_fd; do
|
---|
6771 |
|
---|
6772 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
6773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6774 | /* end confdefs.h. */
|
---|
6775 | $dirfd_headers
|
---|
6776 |
|
---|
6777 | int
|
---|
6778 | main ()
|
---|
6779 | {
|
---|
6780 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
6781 | ;
|
---|
6782 | return 0;
|
---|
6783 | }
|
---|
6784 | _ACEOF
|
---|
6785 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6786 | dir_fd_found=yes
|
---|
6787 |
|
---|
6788 | fi
|
---|
6789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6790 | CFLAGS=$dirfd_save_CFLAGS
|
---|
6791 | test "$dir_fd_found" = yes && break
|
---|
6792 | done
|
---|
6793 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
6794 |
|
---|
6795 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
6796 |
|
---|
6797 |
|
---|
6798 | fi
|
---|
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
6800 | $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
|
---|
6801 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
6802 |
|
---|
6803 | cat >>confdefs.h <<_ACEOF
|
---|
6804 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
6805 | _ACEOF
|
---|
6806 |
|
---|
6807 | fi
|
---|
6808 |
|
---|
6809 | fi
|
---|
6810 |
|
---|
6811 |
|
---|
6812 | #
|
---|
6813 | # iconv
|
---|
6814 | #
|
---|
6815 |
|
---|
6816 |
|
---|
6817 |
|
---|
6818 |
|
---|
6819 |
|
---|
6820 |
|
---|
6821 |
|
---|
6822 | # Check whether --with-libiconv-prefix was given.
|
---|
6823 | if test "${with_libiconv_prefix+set}" = set; then :
|
---|
6824 | withval=$with_libiconv_prefix;
|
---|
6825 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
6826 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
6827 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
6828 | done
|
---|
6829 |
|
---|
6830 | fi
|
---|
6831 |
|
---|
6832 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
|
---|
6833 | if test "x$ac_cv_header_iconv_h" = xyes; then :
|
---|
6834 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
|
---|
6835 |
|
---|
6836 | fi
|
---|
6837 |
|
---|
6838 |
|
---|
6839 |
|
---|
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
---|
6841 | $as_echo_n "checking for iconv... " >&6; }
|
---|
6842 | if ${am_cv_func_iconv+:} false; then :
|
---|
6843 | $as_echo_n "(cached) " >&6
|
---|
6844 | else
|
---|
6845 |
|
---|
6846 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
6847 | am_cv_lib_iconv=no
|
---|
6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6849 | /* end confdefs.h. */
|
---|
6850 | #include <stdlib.h>
|
---|
6851 | #include <iconv.h>
|
---|
6852 | int
|
---|
6853 | main ()
|
---|
6854 | {
|
---|
6855 | iconv_t cd = iconv_open("","");
|
---|
6856 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6857 | iconv_close(cd);
|
---|
6858 | ;
|
---|
6859 | return 0;
|
---|
6860 | }
|
---|
6861 | _ACEOF
|
---|
6862 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6863 | am_cv_func_iconv=yes
|
---|
6864 | fi
|
---|
6865 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6866 | conftest$ac_exeext conftest.$ac_ext
|
---|
6867 | if test "$am_cv_func_iconv" != yes; then
|
---|
6868 | am_save_LIBS="$LIBS"
|
---|
6869 | LIBS="$LIBS -liconv"
|
---|
6870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6871 | /* end confdefs.h. */
|
---|
6872 | #include <stdlib.h>
|
---|
6873 | #include <iconv.h>
|
---|
6874 | int
|
---|
6875 | main ()
|
---|
6876 | {
|
---|
6877 | iconv_t cd = iconv_open("","");
|
---|
6878 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6879 | iconv_close(cd);
|
---|
6880 | ;
|
---|
6881 | return 0;
|
---|
6882 | }
|
---|
6883 | _ACEOF
|
---|
6884 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6885 | am_cv_lib_iconv=yes
|
---|
6886 | am_cv_func_iconv=yes
|
---|
6887 | fi
|
---|
6888 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6889 | conftest$ac_exeext conftest.$ac_ext
|
---|
6890 | LIBS="$am_save_LIBS"
|
---|
6891 | fi
|
---|
6892 |
|
---|
6893 | fi
|
---|
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
---|
6895 | $as_echo "$am_cv_func_iconv" >&6; }
|
---|
6896 | if test "$am_cv_func_iconv" = yes; then
|
---|
6897 |
|
---|
6898 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h
|
---|
6899 |
|
---|
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
---|
6901 | $as_echo_n "checking for iconv declaration... " >&6; }
|
---|
6902 | if ${am_cv_proto_iconv+:} false; then :
|
---|
6903 | $as_echo_n "(cached) " >&6
|
---|
6904 | else
|
---|
6905 |
|
---|
6906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6907 | /* end confdefs.h. */
|
---|
6908 |
|
---|
6909 | #include <stdlib.h>
|
---|
6910 | #include <iconv.h>
|
---|
6911 | extern
|
---|
6912 | #ifdef __cplusplus
|
---|
6913 | "C"
|
---|
6914 | #endif
|
---|
6915 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
6916 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
6917 | #else
|
---|
6918 | size_t iconv();
|
---|
6919 | #endif
|
---|
6920 |
|
---|
6921 | int
|
---|
6922 | main ()
|
---|
6923 | {
|
---|
6924 |
|
---|
6925 | ;
|
---|
6926 | return 0;
|
---|
6927 | }
|
---|
6928 | _ACEOF
|
---|
6929 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6930 | am_cv_proto_iconv_arg1=""
|
---|
6931 | else
|
---|
6932 | am_cv_proto_iconv_arg1="const"
|
---|
6933 | fi
|
---|
6934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6935 | 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);"
|
---|
6936 | fi
|
---|
6937 |
|
---|
6938 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
|
---|
6940 | }$am_cv_proto_iconv" >&5
|
---|
6941 | $as_echo "${ac_t:-
|
---|
6942 | }$am_cv_proto_iconv" >&6; }
|
---|
6943 |
|
---|
6944 | cat >>confdefs.h <<_ACEOF
|
---|
6945 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
6946 | _ACEOF
|
---|
6947 |
|
---|
6948 | fi
|
---|
6949 | LIBICONV=
|
---|
6950 | if test "$am_cv_lib_iconv" = yes; then
|
---|
6951 | LIBICONV="-liconv"
|
---|
6952 | fi
|
---|
6953 |
|
---|
6954 |
|
---|
6955 | LIBS="$LIBS $LIBICONV"
|
---|
6956 |
|
---|
6957 | #
|
---|
6958 | # socklen_t
|
---|
6959 | # from curl
|
---|
6960 |
|
---|
6961 |
|
---|
6962 |
|
---|
6963 |
|
---|
6964 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
|
---|
6965 | #include <sys/socket.h>
|
---|
6966 | "
|
---|
6967 | if test "x$ac_cv_type_socklen_t" = xyes; then :
|
---|
6968 |
|
---|
6969 | else
|
---|
6970 |
|
---|
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
|
---|
6972 | $as_echo_n "checking for socklen_t equivalent... " >&6; }
|
---|
6973 | if ${socklen_t_cv_equiv+:} false; then :
|
---|
6974 | $as_echo_n "(cached) " >&6
|
---|
6975 | else
|
---|
6976 |
|
---|
6977 | # Systems have either "struct sockaddr *" or
|
---|
6978 | # "void *" as the second argument to getpeername
|
---|
6979 | socklen_t_cv_equiv=
|
---|
6980 | for arg2 in "struct sockaddr" void; do
|
---|
6981 | for t in int size_t unsigned long "unsigned long"; do
|
---|
6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6983 | /* end confdefs.h. */
|
---|
6984 |
|
---|
6985 | #include <sys/types.h>
|
---|
6986 | #include <sys/socket.h>
|
---|
6987 |
|
---|
6988 | int getpeername (int, $arg2 *, $t *);
|
---|
6989 |
|
---|
6990 | int
|
---|
6991 | main ()
|
---|
6992 | {
|
---|
6993 |
|
---|
6994 | $t len;
|
---|
6995 | getpeername(0,0,&len);
|
---|
6996 |
|
---|
6997 | ;
|
---|
6998 | return 0;
|
---|
6999 | }
|
---|
7000 | _ACEOF
|
---|
7001 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7002 |
|
---|
7003 | socklen_t_cv_equiv="$t"
|
---|
7004 | break
|
---|
7005 |
|
---|
7006 | fi
|
---|
7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7008 | done
|
---|
7009 | done
|
---|
7010 |
|
---|
7011 | if test "x$socklen_t_cv_equiv" = x; then
|
---|
7012 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
|
---|
7013 | fi
|
---|
7014 |
|
---|
7015 | fi
|
---|
7016 |
|
---|
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_cv_equiv" >&5
|
---|
7018 | $as_echo "$socklen_t_cv_equiv" >&6; }
|
---|
7019 |
|
---|
7020 | cat >>confdefs.h <<_ACEOF
|
---|
7021 | #define socklen_t $socklen_t_cv_equiv
|
---|
7022 | _ACEOF
|
---|
7023 |
|
---|
7024 | fi
|
---|
7025 |
|
---|
7026 |
|
---|
7027 |
|
---|
7028 | #
|
---|
7029 | # statfs stuff
|
---|
7030 | #
|
---|
7031 | for ac_header in sys/vfs.h
|
---|
7032 | do :
|
---|
7033 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
|
---|
7034 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
|
---|
7035 | cat >>confdefs.h <<_ACEOF
|
---|
7036 | #define HAVE_SYS_VFS_H 1
|
---|
7037 | _ACEOF
|
---|
7038 |
|
---|
7039 | fi
|
---|
7040 |
|
---|
7041 | done
|
---|
7042 |
|
---|
7043 | for ac_header in sys/statvfs.h
|
---|
7044 | do :
|
---|
7045 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
|
---|
7046 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
|
---|
7047 | cat >>confdefs.h <<_ACEOF
|
---|
7048 | #define HAVE_SYS_STATVFS_H 1
|
---|
7049 | _ACEOF
|
---|
7050 |
|
---|
7051 | fi
|
---|
7052 |
|
---|
7053 | done
|
---|
7054 |
|
---|
7055 | for ac_header in sys/statfs.h
|
---|
7056 | do :
|
---|
7057 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
|
---|
7058 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
|
---|
7059 | cat >>confdefs.h <<_ACEOF
|
---|
7060 | #define HAVE_SYS_STATFS_H 1
|
---|
7061 | _ACEOF
|
---|
7062 |
|
---|
7063 | fi
|
---|
7064 |
|
---|
7065 | done
|
---|
7066 |
|
---|
7067 | for ac_header in sys/param.h
|
---|
7068 | do :
|
---|
7069 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
|
---|
7070 | if test "x$ac_cv_header_sys_param_h" = xyes; then :
|
---|
7071 | cat >>confdefs.h <<_ACEOF
|
---|
7072 | #define HAVE_SYS_PARAM_H 1
|
---|
7073 | _ACEOF
|
---|
7074 |
|
---|
7075 | fi
|
---|
7076 |
|
---|
7077 | done
|
---|
7078 |
|
---|
7079 |
|
---|
7080 | mount_includes="\
|
---|
7081 | $ac_includes_default
|
---|
7082 | #if HAVE_SYS_PARAM_H
|
---|
7083 | # include <sys/param.h>
|
---|
7084 | #endif
|
---|
7085 | "
|
---|
7086 |
|
---|
7087 | for ac_header in sys/mount.h
|
---|
7088 | do :
|
---|
7089 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
|
---|
7090 | "
|
---|
7091 | if test "x$ac_cv_header_sys_mount_h" = xyes; then :
|
---|
7092 | cat >>confdefs.h <<_ACEOF
|
---|
7093 | #define HAVE_SYS_MOUNT_H 1
|
---|
7094 | _ACEOF
|
---|
7095 |
|
---|
7096 | fi
|
---|
7097 |
|
---|
7098 | done
|
---|
7099 |
|
---|
7100 |
|
---|
7101 | #################################################
|
---|
7102 | # these tests are taken from the GNU fileutils package
|
---|
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
|
---|
7104 | $as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
7105 | space=no
|
---|
7106 |
|
---|
7107 | # Test for statvfs64.
|
---|
7108 | if test $space = no; then
|
---|
7109 | # SVR4
|
---|
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
|
---|
7111 | $as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
|
---|
7112 | if ${fu_cv_sys_stat_statvfs64+:} false; then :
|
---|
7113 | $as_echo_n "(cached) " >&6
|
---|
7114 | else
|
---|
7115 | if test "$cross_compiling" = yes; then :
|
---|
7116 | fu_cv_sys_stat_statvfs64=cross
|
---|
7117 | else
|
---|
7118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7119 | /* end confdefs.h. */
|
---|
7120 |
|
---|
7121 | #if defined(HAVE_UNISTD_H)
|
---|
7122 | #include <unistd.h>
|
---|
7123 | #endif
|
---|
7124 | #include <sys/types.h>
|
---|
7125 | #include <sys/statvfs.h>
|
---|
7126 | main ()
|
---|
7127 | {
|
---|
7128 | struct statvfs64 fsd;
|
---|
7129 | exit (statvfs64 (".", &fsd));
|
---|
7130 | }
|
---|
7131 | _ACEOF
|
---|
7132 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7133 | fu_cv_sys_stat_statvfs64=yes
|
---|
7134 | else
|
---|
7135 | fu_cv_sys_stat_statvfs64=no
|
---|
7136 | fi
|
---|
7137 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7138 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7139 | fi
|
---|
7140 |
|
---|
7141 | fi
|
---|
7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
7143 | $as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
|
---|
7144 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
7145 | space=yes
|
---|
7146 |
|
---|
7147 | $as_echo "#define STAT_STATVFS64 1" >>confdefs.h
|
---|
7148 |
|
---|
7149 | fi
|
---|
7150 | fi
|
---|
7151 |
|
---|
7152 | # Perform only the link test since it seems there are no variants of the
|
---|
7153 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
7154 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
7155 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
7156 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
7157 | # is what it gets when this test fails.
|
---|
7158 | if test $space = no; then
|
---|
7159 | # SVR4
|
---|
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
|
---|
7161 | $as_echo_n "checking statvfs function (SVR4)... " >&6; }
|
---|
7162 | if ${fu_cv_sys_stat_statvfs+:} false; then :
|
---|
7163 | $as_echo_n "(cached) " >&6
|
---|
7164 | else
|
---|
7165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7166 | /* end confdefs.h. */
|
---|
7167 | #include <sys/types.h>
|
---|
7168 | #include <sys/statvfs.h>
|
---|
7169 | int
|
---|
7170 | main ()
|
---|
7171 | {
|
---|
7172 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
7173 | ;
|
---|
7174 | return 0;
|
---|
7175 | }
|
---|
7176 | _ACEOF
|
---|
7177 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
7178 | fu_cv_sys_stat_statvfs=yes
|
---|
7179 | else
|
---|
7180 | fu_cv_sys_stat_statvfs=no
|
---|
7181 | fi
|
---|
7182 | rm -f core conftest.err conftest.$ac_objext \
|
---|
7183 | conftest$ac_exeext conftest.$ac_ext
|
---|
7184 | fi
|
---|
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
7186 | $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
|
---|
7187 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
7188 | space=yes
|
---|
7189 |
|
---|
7190 | $as_echo "#define STAT_STATVFS 1" >>confdefs.h
|
---|
7191 |
|
---|
7192 | fi
|
---|
7193 | fi
|
---|
7194 |
|
---|
7195 | if test $space = no; then
|
---|
7196 | # DEC Alpha running OSF/1
|
---|
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
7198 | $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
|
---|
7199 | if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
|
---|
7200 | $as_echo_n "(cached) " >&6
|
---|
7201 | else
|
---|
7202 | if test "$cross_compiling" = yes; then :
|
---|
7203 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
7204 | else
|
---|
7205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7206 | /* end confdefs.h. */
|
---|
7207 |
|
---|
7208 | #include <sys/param.h>
|
---|
7209 | #include <sys/types.h>
|
---|
7210 | #include <sys/mount.h>
|
---|
7211 | main ()
|
---|
7212 | {
|
---|
7213 | struct statfs fsd;
|
---|
7214 | fsd.f_fsize = 0;
|
---|
7215 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
7216 | }
|
---|
7217 | _ACEOF
|
---|
7218 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7219 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
7220 | else
|
---|
7221 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
7222 | fi
|
---|
7223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7224 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7225 | fi
|
---|
7226 |
|
---|
7227 | fi
|
---|
7228 |
|
---|
7229 |
|
---|
7230 |
|
---|
7231 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
7232 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
7233 | space=yes
|
---|
7234 |
|
---|
7235 | $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
|
---|
7236 |
|
---|
7237 | fi
|
---|
7238 | fi
|
---|
7239 |
|
---|
7240 | if test $space = no; then
|
---|
7241 | # AIX
|
---|
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
7243 | $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
|
---|
7244 | if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
|
---|
7245 | $as_echo_n "(cached) " >&6
|
---|
7246 | else
|
---|
7247 | if test "$cross_compiling" = yes; then :
|
---|
7248 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
7249 | else
|
---|
7250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7251 | /* end confdefs.h. */
|
---|
7252 |
|
---|
7253 | #ifdef HAVE_SYS_PARAM_H
|
---|
7254 | #include <sys/param.h>
|
---|
7255 | #endif
|
---|
7256 | #ifdef HAVE_SYS_MOUNT_H
|
---|
7257 | #include <sys/mount.h>
|
---|
7258 | #endif
|
---|
7259 | #ifdef HAVE_SYS_VFS_H
|
---|
7260 | #include <sys/vfs.h>
|
---|
7261 | #endif
|
---|
7262 | main ()
|
---|
7263 | {
|
---|
7264 | struct statfs fsd;
|
---|
7265 | fsd.f_bsize = 0;
|
---|
7266 | exit (statfs (".", &fsd));
|
---|
7267 | }
|
---|
7268 | _ACEOF
|
---|
7269 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7270 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
7271 | else
|
---|
7272 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
7273 | fi
|
---|
7274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7275 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7276 | fi
|
---|
7277 |
|
---|
7278 | fi
|
---|
7279 |
|
---|
7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
7281 | $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
|
---|
7282 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
7283 | space=yes
|
---|
7284 |
|
---|
7285 | $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
|
---|
7286 |
|
---|
7287 | fi
|
---|
7288 | fi
|
---|
7289 |
|
---|
7290 | if test $space = no; then
|
---|
7291 | # SVR3
|
---|
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
7293 | $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
|
---|
7294 | if ${fu_cv_sys_stat_statfs4+:} false; then :
|
---|
7295 | $as_echo_n "(cached) " >&6
|
---|
7296 | else
|
---|
7297 | if test "$cross_compiling" = yes; then :
|
---|
7298 | fu_cv_sys_stat_statfs4=no
|
---|
7299 | else
|
---|
7300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7301 | /* end confdefs.h. */
|
---|
7302 | #include <sys/types.h>
|
---|
7303 | #include <sys/statfs.h>
|
---|
7304 | main ()
|
---|
7305 | {
|
---|
7306 | struct statfs fsd;
|
---|
7307 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
7308 | }
|
---|
7309 | _ACEOF
|
---|
7310 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7311 | fu_cv_sys_stat_statfs4=yes
|
---|
7312 | else
|
---|
7313 | fu_cv_sys_stat_statfs4=no
|
---|
7314 | fi
|
---|
7315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7316 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7317 | fi
|
---|
7318 |
|
---|
7319 | fi
|
---|
7320 |
|
---|
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
7322 | $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
|
---|
7323 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
7324 | space=yes
|
---|
7325 |
|
---|
7326 | $as_echo "#define STAT_STATFS4 1" >>confdefs.h
|
---|
7327 |
|
---|
7328 | fi
|
---|
7329 | fi
|
---|
7330 |
|
---|
7331 | if test $space = no; then
|
---|
7332 | # 4.4BSD and NetBSD
|
---|
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
7334 | $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
|
---|
7335 | if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
|
---|
7336 | $as_echo_n "(cached) " >&6
|
---|
7337 | else
|
---|
7338 | if test "$cross_compiling" = yes; then :
|
---|
7339 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
7340 | else
|
---|
7341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7342 | /* end confdefs.h. */
|
---|
7343 | #include <sys/types.h>
|
---|
7344 | #ifdef HAVE_SYS_PARAM_H
|
---|
7345 | #include <sys/param.h>
|
---|
7346 | #endif
|
---|
7347 | #ifdef HAVE_SYS_MOUNT_H
|
---|
7348 | #include <sys/mount.h>
|
---|
7349 | #endif
|
---|
7350 | main ()
|
---|
7351 | {
|
---|
7352 | struct statfs fsd;
|
---|
7353 | fsd.f_fsize = 0;
|
---|
7354 | exit (statfs (".", &fsd));
|
---|
7355 | }
|
---|
7356 | _ACEOF
|
---|
7357 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7358 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
7359 | else
|
---|
7360 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
7361 | fi
|
---|
7362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7363 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7364 | fi
|
---|
7365 |
|
---|
7366 | fi
|
---|
7367 |
|
---|
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
7369 | $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
|
---|
7370 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
7371 | space=yes
|
---|
7372 |
|
---|
7373 | $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
|
---|
7374 |
|
---|
7375 | fi
|
---|
7376 | fi
|
---|
7377 |
|
---|
7378 | if test $space = no; then
|
---|
7379 | # Ultrix
|
---|
7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
7381 | $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
|
---|
7382 | if ${fu_cv_sys_stat_fs_data+:} false; then :
|
---|
7383 | $as_echo_n "(cached) " >&6
|
---|
7384 | else
|
---|
7385 | if test "$cross_compiling" = yes; then :
|
---|
7386 | fu_cv_sys_stat_fs_data=no
|
---|
7387 | else
|
---|
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7389 | /* end confdefs.h. */
|
---|
7390 | #include <sys/types.h>
|
---|
7391 | #ifdef HAVE_SYS_PARAM_H
|
---|
7392 | #include <sys/param.h>
|
---|
7393 | #endif
|
---|
7394 | #ifdef HAVE_SYS_MOUNT_H
|
---|
7395 | #include <sys/mount.h>
|
---|
7396 | #endif
|
---|
7397 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
7398 | #include <sys/fs_types.h>
|
---|
7399 | #endif
|
---|
7400 | main ()
|
---|
7401 | {
|
---|
7402 | struct fs_data fsd;
|
---|
7403 | /* Ultrix's statfs returns 1 for success,
|
---|
7404 | 0 for not mounted, -1 for failure. */
|
---|
7405 | exit (statfs (".", &fsd) != 1);
|
---|
7406 | }
|
---|
7407 | _ACEOF
|
---|
7408 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7409 | fu_cv_sys_stat_fs_data=yes
|
---|
7410 | else
|
---|
7411 | fu_cv_sys_stat_fs_data=no
|
---|
7412 | fi
|
---|
7413 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7414 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7415 | fi
|
---|
7416 |
|
---|
7417 | fi
|
---|
7418 |
|
---|
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
7420 | $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
|
---|
7421 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
7422 | space=yes
|
---|
7423 |
|
---|
7424 | $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
|
---|
7425 |
|
---|
7426 | fi
|
---|
7427 | fi
|
---|
7428 |
|
---|
7429 | statxfs_includes="\
|
---|
7430 | $ac_includes_default
|
---|
7431 | #if HAVE_SYS_STATVFS_H
|
---|
7432 | # include <sys/statvfs.h>
|
---|
7433 | #endif
|
---|
7434 | #if HAVE_SYS_VFS_H
|
---|
7435 | # include <sys/vfs.h>
|
---|
7436 | #endif
|
---|
7437 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
7438 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
7439 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
7440 | # include <sys/param.h>
|
---|
7441 | # include <sys/mount.h>
|
---|
7442 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
7443 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
7444 | # include <netinet/in.h>
|
---|
7445 | # include <nfs/nfs_clnt.h>
|
---|
7446 | # include <nfs/vfs.h>
|
---|
7447 | # endif
|
---|
7448 | #endif
|
---|
7449 | "
|
---|
7450 |
|
---|
7451 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
|
---|
7452 | "
|
---|
7453 | if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
|
---|
7454 |
|
---|
7455 | cat >>confdefs.h <<_ACEOF
|
---|
7456 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
7457 | _ACEOF
|
---|
7458 |
|
---|
7459 |
|
---|
7460 | fi
|
---|
7461 |
|
---|
7462 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
|
---|
7463 | "
|
---|
7464 | if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes; then :
|
---|
7465 |
|
---|
7466 | cat >>confdefs.h <<_ACEOF
|
---|
7467 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
7468 | _ACEOF
|
---|
7469 |
|
---|
7470 |
|
---|
7471 | fi
|
---|
7472 |
|
---|
7473 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
|
---|
7474 | "
|
---|
7475 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
|
---|
7476 |
|
---|
7477 | cat >>confdefs.h <<_ACEOF
|
---|
7478 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
7479 | _ACEOF
|
---|
7480 |
|
---|
7481 |
|
---|
7482 | fi
|
---|
7483 |
|
---|
7484 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
|
---|
7485 | "
|
---|
7486 | if test "x$ac_cv_member_struct_statvfs_f_namelen" = xyes; then :
|
---|
7487 |
|
---|
7488 | cat >>confdefs.h <<_ACEOF
|
---|
7489 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
7490 | _ACEOF
|
---|
7491 |
|
---|
7492 |
|
---|
7493 | fi
|
---|
7494 |
|
---|
7495 |
|
---|
7496 | #
|
---|
7497 | # Large file support
|
---|
7498 | #
|
---|
7499 | # Check whether --enable-largefile was given.
|
---|
7500 | if test "${enable_largefile+set}" = set; then :
|
---|
7501 | enableval=$enable_largefile;
|
---|
7502 | fi
|
---|
7503 |
|
---|
7504 | if test "$enable_largefile" != no; then
|
---|
7505 |
|
---|
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
---|
7507 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
---|
7508 | if ${ac_cv_sys_largefile_CC+:} false; then :
|
---|
7509 | $as_echo_n "(cached) " >&6
|
---|
7510 | else
|
---|
7511 | ac_cv_sys_largefile_CC=no
|
---|
7512 | if test "$GCC" != yes; then
|
---|
7513 | ac_save_CC=$CC
|
---|
7514 | while :; do
|
---|
7515 | # IRIX 6.2 and later do not support large files by default,
|
---|
7516 | # so use the C compiler's -n32 option if that helps.
|
---|
7517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7518 | /* end confdefs.h. */
|
---|
7519 | #include <sys/types.h>
|
---|
7520 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7521 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7522 | since some C++ compilers masquerading as C compilers
|
---|
7523 | incorrectly reject 9223372036854775807. */
|
---|
7524 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
---|
7525 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7526 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7527 | ? 1 : -1];
|
---|
7528 | int
|
---|
7529 | main ()
|
---|
7530 | {
|
---|
7531 |
|
---|
7532 | ;
|
---|
7533 | return 0;
|
---|
7534 | }
|
---|
7535 | _ACEOF
|
---|
7536 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7537 | break
|
---|
7538 | fi
|
---|
7539 | rm -f core conftest.err conftest.$ac_objext
|
---|
7540 | CC="$CC -n32"
|
---|
7541 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7542 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
7543 | fi
|
---|
7544 | rm -f core conftest.err conftest.$ac_objext
|
---|
7545 | break
|
---|
7546 | done
|
---|
7547 | CC=$ac_save_CC
|
---|
7548 | rm -f conftest.$ac_ext
|
---|
7549 | fi
|
---|
7550 | fi
|
---|
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
---|
7552 | $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
---|
7553 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
7554 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
7555 | fi
|
---|
7556 |
|
---|
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
7558 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
---|
7559 | if ${ac_cv_sys_file_offset_bits+:} false; then :
|
---|
7560 | $as_echo_n "(cached) " >&6
|
---|
7561 | else
|
---|
7562 | while :; do
|
---|
7563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7564 | /* end confdefs.h. */
|
---|
7565 | #include <sys/types.h>
|
---|
7566 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7567 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7568 | since some C++ compilers masquerading as C compilers
|
---|
7569 | incorrectly reject 9223372036854775807. */
|
---|
7570 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
---|
7571 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7572 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7573 | ? 1 : -1];
|
---|
7574 | int
|
---|
7575 | main ()
|
---|
7576 | {
|
---|
7577 |
|
---|
7578 | ;
|
---|
7579 | return 0;
|
---|
7580 | }
|
---|
7581 | _ACEOF
|
---|
7582 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7583 | ac_cv_sys_file_offset_bits=no; break
|
---|
7584 | fi
|
---|
7585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7587 | /* end confdefs.h. */
|
---|
7588 | #define _FILE_OFFSET_BITS 64
|
---|
7589 | #include <sys/types.h>
|
---|
7590 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7591 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7592 | since some C++ compilers masquerading as C compilers
|
---|
7593 | incorrectly reject 9223372036854775807. */
|
---|
7594 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
---|
7595 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7596 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7597 | ? 1 : -1];
|
---|
7598 | int
|
---|
7599 | main ()
|
---|
7600 | {
|
---|
7601 |
|
---|
7602 | ;
|
---|
7603 | return 0;
|
---|
7604 | }
|
---|
7605 | _ACEOF
|
---|
7606 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7607 | ac_cv_sys_file_offset_bits=64; break
|
---|
7608 | fi
|
---|
7609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7610 | ac_cv_sys_file_offset_bits=unknown
|
---|
7611 | break
|
---|
7612 | done
|
---|
7613 | fi
|
---|
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
7615 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
---|
7616 | case $ac_cv_sys_file_offset_bits in #(
|
---|
7617 | no | unknown) ;;
|
---|
7618 | *)
|
---|
7619 | cat >>confdefs.h <<_ACEOF
|
---|
7620 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
7621 | _ACEOF
|
---|
7622 | ;;
|
---|
7623 | esac
|
---|
7624 | rm -rf conftest*
|
---|
7625 | if test $ac_cv_sys_file_offset_bits = unknown; then
|
---|
7626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
---|
7627 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
---|
7628 | if ${ac_cv_sys_large_files+:} false; then :
|
---|
7629 | $as_echo_n "(cached) " >&6
|
---|
7630 | else
|
---|
7631 | while :; do
|
---|
7632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7633 | /* end confdefs.h. */
|
---|
7634 | #include <sys/types.h>
|
---|
7635 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7636 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7637 | since some C++ compilers masquerading as C compilers
|
---|
7638 | incorrectly reject 9223372036854775807. */
|
---|
7639 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
---|
7640 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7641 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7642 | ? 1 : -1];
|
---|
7643 | int
|
---|
7644 | main ()
|
---|
7645 | {
|
---|
7646 |
|
---|
7647 | ;
|
---|
7648 | return 0;
|
---|
7649 | }
|
---|
7650 | _ACEOF
|
---|
7651 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7652 | ac_cv_sys_large_files=no; break
|
---|
7653 | fi
|
---|
7654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7656 | /* end confdefs.h. */
|
---|
7657 | #define _LARGE_FILES 1
|
---|
7658 | #include <sys/types.h>
|
---|
7659 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7660 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7661 | since some C++ compilers masquerading as C compilers
|
---|
7662 | incorrectly reject 9223372036854775807. */
|
---|
7663 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
---|
7664 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7665 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7666 | ? 1 : -1];
|
---|
7667 | int
|
---|
7668 | main ()
|
---|
7669 | {
|
---|
7670 |
|
---|
7671 | ;
|
---|
7672 | return 0;
|
---|
7673 | }
|
---|
7674 | _ACEOF
|
---|
7675 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7676 | ac_cv_sys_large_files=1; break
|
---|
7677 | fi
|
---|
7678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7679 | ac_cv_sys_large_files=unknown
|
---|
7680 | break
|
---|
7681 | done
|
---|
7682 | fi
|
---|
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
---|
7684 | $as_echo "$ac_cv_sys_large_files" >&6; }
|
---|
7685 | case $ac_cv_sys_large_files in #(
|
---|
7686 | no | unknown) ;;
|
---|
7687 | *)
|
---|
7688 | cat >>confdefs.h <<_ACEOF
|
---|
7689 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
7690 | _ACEOF
|
---|
7691 | ;;
|
---|
7692 | esac
|
---|
7693 | rm -rf conftest*
|
---|
7694 | fi
|
---|
7695 |
|
---|
7696 |
|
---|
7697 | fi
|
---|
7698 |
|
---|
7699 |
|
---|
7700 | #
|
---|
7701 | # mntent
|
---|
7702 | #
|
---|
7703 | ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
|
---|
7704 | if test "x$ac_cv_header_mntent_h" = xyes; then :
|
---|
7705 | $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
|
---|
7706 |
|
---|
7707 | fi
|
---|
7708 |
|
---|
7709 |
|
---|
7710 | for ac_func in setmntent
|
---|
7711 | do :
|
---|
7712 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
|
---|
7713 | if test "x$ac_cv_func_setmntent" = xyes; then :
|
---|
7714 | cat >>confdefs.h <<_ACEOF
|
---|
7715 | #define HAVE_SETMNTENT 1
|
---|
7716 | _ACEOF
|
---|
7717 |
|
---|
7718 | fi
|
---|
7719 | done
|
---|
7720 |
|
---|
7721 |
|
---|
7722 | #
|
---|
7723 | # IPv6
|
---|
7724 | #
|
---|
7725 |
|
---|
7726 | # Check whether --with-ipv6 was given.
|
---|
7727 | if test "${with_ipv6+set}" = set; then :
|
---|
7728 | withval=$with_ipv6;
|
---|
7729 | if test $withval != "no";
|
---|
7730 | then
|
---|
7731 | $as_echo "#define IPv6 1" >>confdefs.h
|
---|
7732 |
|
---|
7733 | fi
|
---|
7734 |
|
---|
7735 | fi
|
---|
7736 |
|
---|
7737 |
|
---|
7738 |
|
---|
7739 | #
|
---|
7740 | # debugging
|
---|
7741 | #
|
---|
7742 |
|
---|
7743 | # Check whether --with-debug was given.
|
---|
7744 | if test "${with_debug+set}" = set; then :
|
---|
7745 | withval=$with_debug;
|
---|
7746 | if test $withval != "no";
|
---|
7747 | then
|
---|
7748 | $as_echo "#define WITH_DEBUG 1" >>confdefs.h
|
---|
7749 |
|
---|
7750 | fi
|
---|
7751 |
|
---|
7752 | fi
|
---|
7753 |
|
---|
7754 |
|
---|
7755 |
|
---|
7756 | # Check whether --with-debug-kbd was given.
|
---|
7757 | if test "${with_debug_kbd+set}" = set; then :
|
---|
7758 | withval=$with_debug_kbd;
|
---|
7759 | if test $withval != "no";
|
---|
7760 | then
|
---|
7761 | $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
|
---|
7762 |
|
---|
7763 | fi
|
---|
7764 |
|
---|
7765 | fi
|
---|
7766 |
|
---|
7767 |
|
---|
7768 |
|
---|
7769 | # Check whether --with-debug-rdp5 was given.
|
---|
7770 | if test "${with_debug_rdp5+set}" = set; then :
|
---|
7771 | withval=$with_debug_rdp5;
|
---|
7772 | if test $withval != "no";
|
---|
7773 | then
|
---|
7774 | $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
|
---|
7775 |
|
---|
7776 | fi
|
---|
7777 |
|
---|
7778 | fi
|
---|
7779 |
|
---|
7780 |
|
---|
7781 |
|
---|
7782 | # Check whether --with-debug-clipboard was given.
|
---|
7783 | if test "${with_debug_clipboard+set}" = set; then :
|
---|
7784 | withval=$with_debug_clipboard;
|
---|
7785 | if test $withval != "no";
|
---|
7786 | then
|
---|
7787 | $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
|
---|
7788 |
|
---|
7789 | fi
|
---|
7790 |
|
---|
7791 | fi
|
---|
7792 |
|
---|
7793 |
|
---|
7794 |
|
---|
7795 | # Check whether --with-debug-sound was given.
|
---|
7796 | if test "${with_debug_sound+set}" = set; then :
|
---|
7797 | withval=$with_debug_sound;
|
---|
7798 | if test $withval != "no";
|
---|
7799 | then
|
---|
7800 | $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
|
---|
7801 |
|
---|
7802 | fi
|
---|
7803 |
|
---|
7804 | fi
|
---|
7805 |
|
---|
7806 |
|
---|
7807 |
|
---|
7808 | # Check whether --with-debug-channel was given.
|
---|
7809 | if test "${with_debug_channel+set}" = set; then :
|
---|
7810 | withval=$with_debug_channel;
|
---|
7811 | if test $withval != "no";
|
---|
7812 | then
|
---|
7813 | $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
|
---|
7814 |
|
---|
7815 | fi
|
---|
7816 |
|
---|
7817 | fi
|
---|
7818 |
|
---|
7819 |
|
---|
7820 |
|
---|
7821 | # Check whether --with-debug-seamless was given.
|
---|
7822 | if test "${with_debug_seamless+set}" = set; then :
|
---|
7823 | withval=$with_debug_seamless;
|
---|
7824 | if test $withval != "no";
|
---|
7825 | then
|
---|
7826 | $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
|
---|
7827 |
|
---|
7828 | fi
|
---|
7829 |
|
---|
7830 | fi
|
---|
7831 |
|
---|
7832 |
|
---|
7833 |
|
---|
7834 | # Check whether --with-debug-smartcard was given.
|
---|
7835 | if test "${with_debug_smartcard+set}" = set; then :
|
---|
7836 | withval=$with_debug_smartcard;
|
---|
7837 | if test $withval != "no";
|
---|
7838 | then
|
---|
7839 | if test x"$WITH_SCARD" = "x1"; then
|
---|
7840 | $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
|
---|
7841 |
|
---|
7842 | fi
|
---|
7843 | fi
|
---|
7844 |
|
---|
7845 | fi
|
---|
7846 |
|
---|
7847 |
|
---|
7848 |
|
---|
7849 | # Check whether --with-debug-credssp was given.
|
---|
7850 | if test "${with_debug_credssp+set}" = set; then :
|
---|
7851 | withval=$with_debug_credssp;
|
---|
7852 | if test $withval != "no";
|
---|
7853 | then
|
---|
7854 | if test x"$WITH_CREDSSP" = "x1"; then
|
---|
7855 | $as_echo "#define WITH_DEBUG_CREDSSP 1" >>confdefs.h
|
---|
7856 |
|
---|
7857 | fi
|
---|
7858 | fi
|
---|
7859 |
|
---|
7860 | fi
|
---|
7861 |
|
---|
7862 |
|
---|
7863 | #
|
---|
7864 | # target-specific stuff
|
---|
7865 | #
|
---|
7866 | case "$host" in
|
---|
7867 | *-*-hpux*)
|
---|
7868 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
7869 | ;;
|
---|
7870 | *-*-irix6.5*)
|
---|
7871 | LIBS="-L$ssldir/lib32 $LIBS"
|
---|
7872 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
7873 | ;;
|
---|
7874 | esac
|
---|
7875 |
|
---|
7876 | ac_config_files="$ac_config_files Makefile"
|
---|
7877 |
|
---|
7878 | cat >confcache <<\_ACEOF
|
---|
7879 | # This file is a shell script that caches the results of configure
|
---|
7880 | # tests run on this system so they can be shared between configure
|
---|
7881 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7882 | # It is not useful on other systems. If it contains results you don't
|
---|
7883 | # want to keep, you may remove or edit it.
|
---|
7884 | #
|
---|
7885 | # config.status only pays attention to the cache file if you give it
|
---|
7886 | # the --recheck option to rerun configure.
|
---|
7887 | #
|
---|
7888 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7889 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7890 | # following values.
|
---|
7891 |
|
---|
7892 | _ACEOF
|
---|
7893 |
|
---|
7894 | # The following way of writing the cache mishandles newlines in values,
|
---|
7895 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7896 | # So, we kill variables containing newlines.
|
---|
7897 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7898 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7899 | (
|
---|
7900 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
7901 | eval ac_val=\$$ac_var
|
---|
7902 | case $ac_val in #(
|
---|
7903 | *${as_nl}*)
|
---|
7904 | case $ac_var in #(
|
---|
7905 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
7906 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
7907 | esac
|
---|
7908 | case $ac_var in #(
|
---|
7909 | _ | IFS | as_nl) ;; #(
|
---|
7910 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
7911 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
7912 | esac ;;
|
---|
7913 | esac
|
---|
7914 | done
|
---|
7915 |
|
---|
7916 | (set) 2>&1 |
|
---|
7917 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
7918 | *${as_nl}ac_space=\ *)
|
---|
7919 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
7920 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
7921 | sed -n \
|
---|
7922 | "s/'/'\\\\''/g;
|
---|
7923 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7924 | ;; #(
|
---|
7925 | *)
|
---|
7926 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7927 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
7928 | ;;
|
---|
7929 | esac |
|
---|
7930 | sort
|
---|
7931 | ) |
|
---|
7932 | sed '
|
---|
7933 | /^ac_cv_env_/b end
|
---|
7934 | t clear
|
---|
7935 | :clear
|
---|
7936 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7937 | t end
|
---|
7938 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7939 | :end' >>confcache
|
---|
7940 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
7941 | if test -w "$cache_file"; then
|
---|
7942 | if test "x$cache_file" != "x/dev/null"; then
|
---|
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
7944 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
7945 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
7946 | cat confcache >"$cache_file"
|
---|
7947 | else
|
---|
7948 | case $cache_file in #(
|
---|
7949 | */* | ?:*)
|
---|
7950 | mv -f confcache "$cache_file"$$ &&
|
---|
7951 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
7952 | *)
|
---|
7953 | mv -f confcache "$cache_file" ;;
|
---|
7954 | esac
|
---|
7955 | fi
|
---|
7956 | fi
|
---|
7957 | else
|
---|
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
7959 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
7960 | fi
|
---|
7961 | fi
|
---|
7962 | rm -f confcache
|
---|
7963 |
|
---|
7964 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7965 | # Let make expand exec_prefix.
|
---|
7966 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7967 |
|
---|
7968 | # Transform confdefs.h into DEFS.
|
---|
7969 | # Protect against shell expansion while executing Makefile rules.
|
---|
7970 | # Protect against Makefile macro expansion.
|
---|
7971 | #
|
---|
7972 | # If the first sed substitution is executed (which looks for macros that
|
---|
7973 | # take arguments), then branch to the quote section. Otherwise,
|
---|
7974 | # look for a macro that doesn't take arguments.
|
---|
7975 | ac_script='
|
---|
7976 | :mline
|
---|
7977 | /\\$/{
|
---|
7978 | N
|
---|
7979 | s,\\\n,,
|
---|
7980 | b mline
|
---|
7981 | }
|
---|
7982 | t clear
|
---|
7983 | :clear
|
---|
7984 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7985 | t quote
|
---|
7986 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7987 | t quote
|
---|
7988 | b any
|
---|
7989 | :quote
|
---|
7990 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
7991 | s/\[/\\&/g
|
---|
7992 | s/\]/\\&/g
|
---|
7993 | s/\$/$$/g
|
---|
7994 | H
|
---|
7995 | :any
|
---|
7996 | ${
|
---|
7997 | g
|
---|
7998 | s/^\n//
|
---|
7999 | s/\n/ /g
|
---|
8000 | p
|
---|
8001 | }
|
---|
8002 | '
|
---|
8003 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
8004 |
|
---|
8005 |
|
---|
8006 | ac_libobjs=
|
---|
8007 | ac_ltlibobjs=
|
---|
8008 | U=
|
---|
8009 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
8010 | # 1. Remove the extension, and $U if already installed.
|
---|
8011 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
8012 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
8013 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
8014 | # will be set to the directory where LIBOBJS objects are built.
|
---|
8015 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
8016 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
8017 | done
|
---|
8018 | LIBOBJS=$ac_libobjs
|
---|
8019 |
|
---|
8020 | LTLIBOBJS=$ac_ltlibobjs
|
---|
8021 |
|
---|
8022 |
|
---|
8023 |
|
---|
8024 |
|
---|
8025 | : "${CONFIG_STATUS=./config.status}"
|
---|
8026 | ac_write_fail=0
|
---|
8027 | ac_clean_files_save=$ac_clean_files
|
---|
8028 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
8030 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
8031 | as_write_fail=0
|
---|
8032 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
8033 | #! $SHELL
|
---|
8034 | # Generated by $as_me.
|
---|
8035 | # Run this file to recreate the current configuration.
|
---|
8036 | # Compiler output produced by configure, useful for debugging
|
---|
8037 | # configure, is in config.log if it exists.
|
---|
8038 |
|
---|
8039 | debug=false
|
---|
8040 | ac_cs_recheck=false
|
---|
8041 | ac_cs_silent=false
|
---|
8042 |
|
---|
8043 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
8044 | export SHELL
|
---|
8045 | _ASEOF
|
---|
8046 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
8047 | ## -------------------- ##
|
---|
8048 | ## M4sh Initialization. ##
|
---|
8049 | ## -------------------- ##
|
---|
8050 |
|
---|
8051 | # Be more Bourne compatible
|
---|
8052 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
8053 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
8054 | emulate sh
|
---|
8055 | NULLCMD=:
|
---|
8056 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
8057 | # is contrary to our usage. Disable this feature.
|
---|
8058 | alias -g '${1+"$@"}'='"$@"'
|
---|
8059 | setopt NO_GLOB_SUBST
|
---|
8060 | else
|
---|
8061 | case `(set -o) 2>/dev/null` in #(
|
---|
8062 | *posix*) :
|
---|
8063 | set -o posix ;; #(
|
---|
8064 | *) :
|
---|
8065 | ;;
|
---|
8066 | esac
|
---|
8067 | fi
|
---|
8068 |
|
---|
8069 |
|
---|
8070 | as_nl='
|
---|
8071 | '
|
---|
8072 | export as_nl
|
---|
8073 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
8074 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
8075 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
8076 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
8077 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
8078 | # but without wasting forks for bash or zsh.
|
---|
8079 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
8080 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
8081 | as_echo='print -r --'
|
---|
8082 | as_echo_n='print -rn --'
|
---|
8083 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
8084 | as_echo='printf %s\n'
|
---|
8085 | as_echo_n='printf %s'
|
---|
8086 | else
|
---|
8087 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
8088 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
8089 | as_echo_n='/usr/ucb/echo -n'
|
---|
8090 | else
|
---|
8091 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
8092 | as_echo_n_body='eval
|
---|
8093 | arg=$1;
|
---|
8094 | case $arg in #(
|
---|
8095 | *"$as_nl"*)
|
---|
8096 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
8097 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
8098 | esac;
|
---|
8099 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
8100 | '
|
---|
8101 | export as_echo_n_body
|
---|
8102 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
8103 | fi
|
---|
8104 | export as_echo_body
|
---|
8105 | as_echo='sh -c $as_echo_body as_echo'
|
---|
8106 | fi
|
---|
8107 |
|
---|
8108 | # The user is always right.
|
---|
8109 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
8110 | PATH_SEPARATOR=:
|
---|
8111 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
8112 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
8113 | PATH_SEPARATOR=';'
|
---|
8114 | }
|
---|
8115 | fi
|
---|
8116 |
|
---|
8117 |
|
---|
8118 | # IFS
|
---|
8119 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
8120 | # there to prevent editors from complaining about space-tab.
|
---|
8121 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
8122 | # splitting by setting IFS to empty value.)
|
---|
8123 | IFS=" "" $as_nl"
|
---|
8124 |
|
---|
8125 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
8126 | as_myself=
|
---|
8127 | case $0 in #((
|
---|
8128 | *[\\/]* ) as_myself=$0 ;;
|
---|
8129 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8130 | for as_dir in $PATH
|
---|
8131 | do
|
---|
8132 | IFS=$as_save_IFS
|
---|
8133 | test -z "$as_dir" && as_dir=.
|
---|
8134 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
8135 | done
|
---|
8136 | IFS=$as_save_IFS
|
---|
8137 |
|
---|
8138 | ;;
|
---|
8139 | esac
|
---|
8140 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
8141 | # in which case we are not to be found in the path.
|
---|
8142 | if test "x$as_myself" = x; then
|
---|
8143 | as_myself=$0
|
---|
8144 | fi
|
---|
8145 | if test ! -f "$as_myself"; then
|
---|
8146 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
8147 | exit 1
|
---|
8148 | fi
|
---|
8149 |
|
---|
8150 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
8151 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
8152 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
8153 | # trigger a bug in pdksh 5.2.14.
|
---|
8154 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
8155 | do eval test x\${$as_var+set} = xset \
|
---|
8156 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
8157 | done
|
---|
8158 | PS1='$ '
|
---|
8159 | PS2='> '
|
---|
8160 | PS4='+ '
|
---|
8161 |
|
---|
8162 | # NLS nuisances.
|
---|
8163 | LC_ALL=C
|
---|
8164 | export LC_ALL
|
---|
8165 | LANGUAGE=C
|
---|
8166 | export LANGUAGE
|
---|
8167 |
|
---|
8168 | # CDPATH.
|
---|
8169 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
8170 |
|
---|
8171 |
|
---|
8172 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
8173 | # ----------------------------------------
|
---|
8174 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
8175 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
8176 | # script with STATUS, using 1 if that was 0.
|
---|
8177 | as_fn_error ()
|
---|
8178 | {
|
---|
8179 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
8180 | if test "$4"; then
|
---|
8181 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
8182 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
8183 | fi
|
---|
8184 | $as_echo "$as_me: error: $2" >&2
|
---|
8185 | as_fn_exit $as_status
|
---|
8186 | } # as_fn_error
|
---|
8187 |
|
---|
8188 |
|
---|
8189 | # as_fn_set_status STATUS
|
---|
8190 | # -----------------------
|
---|
8191 | # Set $? to STATUS, without forking.
|
---|
8192 | as_fn_set_status ()
|
---|
8193 | {
|
---|
8194 | return $1
|
---|
8195 | } # as_fn_set_status
|
---|
8196 |
|
---|
8197 | # as_fn_exit STATUS
|
---|
8198 | # -----------------
|
---|
8199 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
8200 | as_fn_exit ()
|
---|
8201 | {
|
---|
8202 | set +e
|
---|
8203 | as_fn_set_status $1
|
---|
8204 | exit $1
|
---|
8205 | } # as_fn_exit
|
---|
8206 |
|
---|
8207 | # as_fn_unset VAR
|
---|
8208 | # ---------------
|
---|
8209 | # Portably unset VAR.
|
---|
8210 | as_fn_unset ()
|
---|
8211 | {
|
---|
8212 | { eval $1=; unset $1;}
|
---|
8213 | }
|
---|
8214 | as_unset=as_fn_unset
|
---|
8215 | # as_fn_append VAR VALUE
|
---|
8216 | # ----------------------
|
---|
8217 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
8218 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
8219 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
8220 | # implementations.
|
---|
8221 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
8222 | eval 'as_fn_append ()
|
---|
8223 | {
|
---|
8224 | eval $1+=\$2
|
---|
8225 | }'
|
---|
8226 | else
|
---|
8227 | as_fn_append ()
|
---|
8228 | {
|
---|
8229 | eval $1=\$$1\$2
|
---|
8230 | }
|
---|
8231 | fi # as_fn_append
|
---|
8232 |
|
---|
8233 | # as_fn_arith ARG...
|
---|
8234 | # ------------------
|
---|
8235 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
8236 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
8237 | # must be portable across $(()) and expr.
|
---|
8238 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
8239 | eval 'as_fn_arith ()
|
---|
8240 | {
|
---|
8241 | as_val=$(( $* ))
|
---|
8242 | }'
|
---|
8243 | else
|
---|
8244 | as_fn_arith ()
|
---|
8245 | {
|
---|
8246 | as_val=`expr "$@" || test $? -eq 1`
|
---|
8247 | }
|
---|
8248 | fi # as_fn_arith
|
---|
8249 |
|
---|
8250 |
|
---|
8251 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
8252 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
8253 | as_expr=expr
|
---|
8254 | else
|
---|
8255 | as_expr=false
|
---|
8256 | fi
|
---|
8257 |
|
---|
8258 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
8259 | as_basename=basename
|
---|
8260 | else
|
---|
8261 | as_basename=false
|
---|
8262 | fi
|
---|
8263 |
|
---|
8264 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
8265 | as_dirname=dirname
|
---|
8266 | else
|
---|
8267 | as_dirname=false
|
---|
8268 | fi
|
---|
8269 |
|
---|
8270 | as_me=`$as_basename -- "$0" ||
|
---|
8271 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
8272 | X"$0" : 'X\(//\)$' \| \
|
---|
8273 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8274 | $as_echo X/"$0" |
|
---|
8275 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
8276 | s//\1/
|
---|
8277 | q
|
---|
8278 | }
|
---|
8279 | /^X\/\(\/\/\)$/{
|
---|
8280 | s//\1/
|
---|
8281 | q
|
---|
8282 | }
|
---|
8283 | /^X\/\(\/\).*/{
|
---|
8284 | s//\1/
|
---|
8285 | q
|
---|
8286 | }
|
---|
8287 | s/.*/./; q'`
|
---|
8288 |
|
---|
8289 | # Avoid depending upon Character Ranges.
|
---|
8290 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
8291 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
8292 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
8293 | as_cr_digits='0123456789'
|
---|
8294 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
8295 |
|
---|
8296 | ECHO_C= ECHO_N= ECHO_T=
|
---|
8297 | case `echo -n x` in #(((((
|
---|
8298 | -n*)
|
---|
8299 | case `echo 'xy\c'` in
|
---|
8300 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
8301 | xy) ECHO_C='\c';;
|
---|
8302 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
8303 | ECHO_T=' ';;
|
---|
8304 | esac;;
|
---|
8305 | *)
|
---|
8306 | ECHO_N='-n';;
|
---|
8307 | esac
|
---|
8308 |
|
---|
8309 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
8310 | if test -d conf$$.dir; then
|
---|
8311 | rm -f conf$$.dir/conf$$.file
|
---|
8312 | else
|
---|
8313 | rm -f conf$$.dir
|
---|
8314 | mkdir conf$$.dir 2>/dev/null
|
---|
8315 | fi
|
---|
8316 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
8317 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
8318 | as_ln_s='ln -s'
|
---|
8319 | # ... but there are two gotchas:
|
---|
8320 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
8321 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
8322 | # In both cases, we have to default to `cp -pR'.
|
---|
8323 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
8324 | as_ln_s='cp -pR'
|
---|
8325 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
8326 | as_ln_s=ln
|
---|
8327 | else
|
---|
8328 | as_ln_s='cp -pR'
|
---|
8329 | fi
|
---|
8330 | else
|
---|
8331 | as_ln_s='cp -pR'
|
---|
8332 | fi
|
---|
8333 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
8334 | rmdir conf$$.dir 2>/dev/null
|
---|
8335 |
|
---|
8336 |
|
---|
8337 | # as_fn_mkdir_p
|
---|
8338 | # -------------
|
---|
8339 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
8340 | as_fn_mkdir_p ()
|
---|
8341 | {
|
---|
8342 |
|
---|
8343 | case $as_dir in #(
|
---|
8344 | -*) as_dir=./$as_dir;;
|
---|
8345 | esac
|
---|
8346 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
8347 | as_dirs=
|
---|
8348 | while :; do
|
---|
8349 | case $as_dir in #(
|
---|
8350 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
8351 | *) as_qdir=$as_dir;;
|
---|
8352 | esac
|
---|
8353 | as_dirs="'$as_qdir' $as_dirs"
|
---|
8354 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
8355 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8356 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8357 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8358 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8359 | $as_echo X"$as_dir" |
|
---|
8360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8361 | s//\1/
|
---|
8362 | q
|
---|
8363 | }
|
---|
8364 | /^X\(\/\/\)[^/].*/{
|
---|
8365 | s//\1/
|
---|
8366 | q
|
---|
8367 | }
|
---|
8368 | /^X\(\/\/\)$/{
|
---|
8369 | s//\1/
|
---|
8370 | q
|
---|
8371 | }
|
---|
8372 | /^X\(\/\).*/{
|
---|
8373 | s//\1/
|
---|
8374 | q
|
---|
8375 | }
|
---|
8376 | s/.*/./; q'`
|
---|
8377 | test -d "$as_dir" && break
|
---|
8378 | done
|
---|
8379 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
8380 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
8381 |
|
---|
8382 |
|
---|
8383 | } # as_fn_mkdir_p
|
---|
8384 | if mkdir -p . 2>/dev/null; then
|
---|
8385 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
8386 | else
|
---|
8387 | test -d ./-p && rmdir ./-p
|
---|
8388 | as_mkdir_p=false
|
---|
8389 | fi
|
---|
8390 |
|
---|
8391 |
|
---|
8392 | # as_fn_executable_p FILE
|
---|
8393 | # -----------------------
|
---|
8394 | # Test if FILE is an executable regular file.
|
---|
8395 | as_fn_executable_p ()
|
---|
8396 | {
|
---|
8397 | test -f "$1" && test -x "$1"
|
---|
8398 | } # as_fn_executable_p
|
---|
8399 | as_test_x='test -x'
|
---|
8400 | as_executable_p=as_fn_executable_p
|
---|
8401 |
|
---|
8402 | # Sed expression to map a string onto a valid CPP name.
|
---|
8403 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8404 |
|
---|
8405 | # Sed expression to map a string onto a valid variable name.
|
---|
8406 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8407 |
|
---|
8408 |
|
---|
8409 | exec 6>&1
|
---|
8410 | ## ----------------------------------- ##
|
---|
8411 | ## Main body of $CONFIG_STATUS script. ##
|
---|
8412 | ## ----------------------------------- ##
|
---|
8413 | _ASEOF
|
---|
8414 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
8415 |
|
---|
8416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8417 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
8418 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
8419 | # values after options handling.
|
---|
8420 | ac_log="
|
---|
8421 | This file was extended by rdesktop $as_me 1.8.4, which was
|
---|
8422 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
8423 |
|
---|
8424 | CONFIG_FILES = $CONFIG_FILES
|
---|
8425 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
8426 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
8427 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
8428 | $ $0 $@
|
---|
8429 |
|
---|
8430 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
8431 | "
|
---|
8432 |
|
---|
8433 | _ACEOF
|
---|
8434 |
|
---|
8435 | case $ac_config_files in *"
|
---|
8436 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
8437 | esac
|
---|
8438 |
|
---|
8439 |
|
---|
8440 |
|
---|
8441 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8442 | # Files that config.status was made for.
|
---|
8443 | config_files="$ac_config_files"
|
---|
8444 |
|
---|
8445 | _ACEOF
|
---|
8446 |
|
---|
8447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8448 | ac_cs_usage="\
|
---|
8449 | \`$as_me' instantiates files and other configuration actions
|
---|
8450 | from templates according to the current configuration. Unless the files
|
---|
8451 | and actions are specified as TAGs, all are instantiated by default.
|
---|
8452 |
|
---|
8453 | Usage: $0 [OPTION]... [TAG]...
|
---|
8454 |
|
---|
8455 | -h, --help print this help, then exit
|
---|
8456 | -V, --version print version number and configuration settings, then exit
|
---|
8457 | --config print configuration, then exit
|
---|
8458 | -q, --quiet, --silent
|
---|
8459 | do not print progress messages
|
---|
8460 | -d, --debug don't remove temporary files
|
---|
8461 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
8462 | --file=FILE[:TEMPLATE]
|
---|
8463 | instantiate the configuration file FILE
|
---|
8464 |
|
---|
8465 | Configuration files:
|
---|
8466 | $config_files
|
---|
8467 |
|
---|
8468 | Report bugs to the package provider."
|
---|
8469 |
|
---|
8470 | _ACEOF
|
---|
8471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8472 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
8473 | ac_cs_version="\\
|
---|
8474 | rdesktop config.status 1.8.4
|
---|
8475 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
8476 | with options \\"\$ac_cs_config\\"
|
---|
8477 |
|
---|
8478 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
8479 | This config.status script is free software; the Free Software Foundation
|
---|
8480 | gives unlimited permission to copy, distribute and modify it."
|
---|
8481 |
|
---|
8482 | ac_pwd='$ac_pwd'
|
---|
8483 | srcdir='$srcdir'
|
---|
8484 | INSTALL='$INSTALL'
|
---|
8485 | test -n "\$AWK" || AWK=awk
|
---|
8486 | _ACEOF
|
---|
8487 |
|
---|
8488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8489 | # The default lists apply if the user does not specify any file.
|
---|
8490 | ac_need_defaults=:
|
---|
8491 | while test $# != 0
|
---|
8492 | do
|
---|
8493 | case $1 in
|
---|
8494 | --*=?*)
|
---|
8495 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8496 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
8497 | ac_shift=:
|
---|
8498 | ;;
|
---|
8499 | --*=)
|
---|
8500 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8501 | ac_optarg=
|
---|
8502 | ac_shift=:
|
---|
8503 | ;;
|
---|
8504 | *)
|
---|
8505 | ac_option=$1
|
---|
8506 | ac_optarg=$2
|
---|
8507 | ac_shift=shift
|
---|
8508 | ;;
|
---|
8509 | esac
|
---|
8510 |
|
---|
8511 | case $ac_option in
|
---|
8512 | # Handling of the options.
|
---|
8513 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
8514 | ac_cs_recheck=: ;;
|
---|
8515 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
8516 | $as_echo "$ac_cs_version"; exit ;;
|
---|
8517 | --config | --confi | --conf | --con | --co | --c )
|
---|
8518 | $as_echo "$ac_cs_config"; exit ;;
|
---|
8519 | --debug | --debu | --deb | --de | --d | -d )
|
---|
8520 | debug=: ;;
|
---|
8521 | --file | --fil | --fi | --f )
|
---|
8522 | $ac_shift
|
---|
8523 | case $ac_optarg in
|
---|
8524 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
8525 | '') as_fn_error $? "missing file argument" ;;
|
---|
8526 | esac
|
---|
8527 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
8528 | ac_need_defaults=false;;
|
---|
8529 | --he | --h | --help | --hel | -h )
|
---|
8530 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
8531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
8532 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
8533 | ac_cs_silent=: ;;
|
---|
8534 |
|
---|
8535 | # This is an error.
|
---|
8536 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
8537 | Try \`$0 --help' for more information." ;;
|
---|
8538 |
|
---|
8539 | *) as_fn_append ac_config_targets " $1"
|
---|
8540 | ac_need_defaults=false ;;
|
---|
8541 |
|
---|
8542 | esac
|
---|
8543 | shift
|
---|
8544 | done
|
---|
8545 |
|
---|
8546 | ac_configure_extra_args=
|
---|
8547 |
|
---|
8548 | if $ac_cs_silent; then
|
---|
8549 | exec 6>/dev/null
|
---|
8550 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
8551 | fi
|
---|
8552 |
|
---|
8553 | _ACEOF
|
---|
8554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8555 | if \$ac_cs_recheck; then
|
---|
8556 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
8557 | shift
|
---|
8558 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
8559 | CONFIG_SHELL='$SHELL'
|
---|
8560 | export CONFIG_SHELL
|
---|
8561 | exec "\$@"
|
---|
8562 | fi
|
---|
8563 |
|
---|
8564 | _ACEOF
|
---|
8565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8566 | exec 5>>config.log
|
---|
8567 | {
|
---|
8568 | echo
|
---|
8569 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
8570 | ## Running $as_me. ##
|
---|
8571 | _ASBOX
|
---|
8572 | $as_echo "$ac_log"
|
---|
8573 | } >&5
|
---|
8574 |
|
---|
8575 | _ACEOF
|
---|
8576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8577 | _ACEOF
|
---|
8578 |
|
---|
8579 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8580 |
|
---|
8581 | # Handling of arguments.
|
---|
8582 | for ac_config_target in $ac_config_targets
|
---|
8583 | do
|
---|
8584 | case $ac_config_target in
|
---|
8585 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
8586 |
|
---|
8587 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
8588 | esac
|
---|
8589 | done
|
---|
8590 |
|
---|
8591 |
|
---|
8592 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
8593 | # then the envvar interface is used. Set only those that are not.
|
---|
8594 | # We use the long form for the default assignment because of an extremely
|
---|
8595 | # bizarre bug on SunOS 4.1.3.
|
---|
8596 | if $ac_need_defaults; then
|
---|
8597 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
8598 | fi
|
---|
8599 |
|
---|
8600 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
8601 | # simply because there is no reason against having it here, and in addition,
|
---|
8602 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
8603 | # Hook for its removal unless debugging.
|
---|
8604 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
8605 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
8606 | $debug ||
|
---|
8607 | {
|
---|
8608 | tmp= ac_tmp=
|
---|
8609 | trap 'exit_status=$?
|
---|
8610 | : "${ac_tmp:=$tmp}"
|
---|
8611 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
8612 | ' 0
|
---|
8613 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
8614 | }
|
---|
8615 | # Create a (secure) tmp directory for tmp files.
|
---|
8616 |
|
---|
8617 | {
|
---|
8618 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
8619 | test -d "$tmp"
|
---|
8620 | } ||
|
---|
8621 | {
|
---|
8622 | tmp=./conf$$-$RANDOM
|
---|
8623 | (umask 077 && mkdir "$tmp")
|
---|
8624 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
8625 | ac_tmp=$tmp
|
---|
8626 |
|
---|
8627 | # Set up the scripts for CONFIG_FILES section.
|
---|
8628 | # No need to generate them if there are no CONFIG_FILES.
|
---|
8629 | # This happens for instance with `./config.status config.h'.
|
---|
8630 | if test -n "$CONFIG_FILES"; then
|
---|
8631 |
|
---|
8632 |
|
---|
8633 | ac_cr=`echo X | tr X '\015'`
|
---|
8634 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
8635 | # But we know of no other shell where ac_cr would be empty at this
|
---|
8636 | # point, so we can use a bashism as a fallback.
|
---|
8637 | if test "x$ac_cr" = x; then
|
---|
8638 | eval ac_cr=\$\'\\r\'
|
---|
8639 | fi
|
---|
8640 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
8641 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
8642 | ac_cs_awk_cr='\\r'
|
---|
8643 | else
|
---|
8644 | ac_cs_awk_cr=$ac_cr
|
---|
8645 | fi
|
---|
8646 |
|
---|
8647 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
8648 | _ACEOF
|
---|
8649 |
|
---|
8650 |
|
---|
8651 | {
|
---|
8652 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
8653 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
8654 | echo "_ACEOF"
|
---|
8655 | } >conf$$subs.sh ||
|
---|
8656 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8657 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
8658 | ac_delim='%!_!# '
|
---|
8659 | for ac_last_try in false false false false false :; do
|
---|
8660 | . ./conf$$subs.sh ||
|
---|
8661 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8662 |
|
---|
8663 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
8664 | if test $ac_delim_n = $ac_delim_num; then
|
---|
8665 | break
|
---|
8666 | elif $ac_last_try; then
|
---|
8667 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8668 | else
|
---|
8669 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
8670 | fi
|
---|
8671 | done
|
---|
8672 | rm -f conf$$subs.sh
|
---|
8673 |
|
---|
8674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8675 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
8676 | _ACEOF
|
---|
8677 | sed -n '
|
---|
8678 | h
|
---|
8679 | s/^/S["/; s/!.*/"]=/
|
---|
8680 | p
|
---|
8681 | g
|
---|
8682 | s/^[^!]*!//
|
---|
8683 | :repl
|
---|
8684 | t repl
|
---|
8685 | s/'"$ac_delim"'$//
|
---|
8686 | t delim
|
---|
8687 | :nl
|
---|
8688 | h
|
---|
8689 | s/\(.\{148\}\)..*/\1/
|
---|
8690 | t more1
|
---|
8691 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
8692 | p
|
---|
8693 | n
|
---|
8694 | b repl
|
---|
8695 | :more1
|
---|
8696 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
8697 | p
|
---|
8698 | g
|
---|
8699 | s/.\{148\}//
|
---|
8700 | t nl
|
---|
8701 | :delim
|
---|
8702 | h
|
---|
8703 | s/\(.\{148\}\)..*/\1/
|
---|
8704 | t more2
|
---|
8705 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
8706 | p
|
---|
8707 | b
|
---|
8708 | :more2
|
---|
8709 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
8710 | p
|
---|
8711 | g
|
---|
8712 | s/.\{148\}//
|
---|
8713 | t delim
|
---|
8714 | ' <conf$$subs.awk | sed '
|
---|
8715 | /^[^""]/{
|
---|
8716 | N
|
---|
8717 | s/\n//
|
---|
8718 | }
|
---|
8719 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
8720 | rm -f conf$$subs.awk
|
---|
8721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8722 | _ACAWK
|
---|
8723 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
8724 | for (key in S) S_is_set[key] = 1
|
---|
8725 | FS = ""
|
---|
8726 |
|
---|
8727 | }
|
---|
8728 | {
|
---|
8729 | line = $ 0
|
---|
8730 | nfields = split(line, field, "@")
|
---|
8731 | substed = 0
|
---|
8732 | len = length(field[1])
|
---|
8733 | for (i = 2; i < nfields; i++) {
|
---|
8734 | key = field[i]
|
---|
8735 | keylen = length(key)
|
---|
8736 | if (S_is_set[key]) {
|
---|
8737 | value = S[key]
|
---|
8738 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
8739 | len += length(value) + length(field[++i])
|
---|
8740 | substed = 1
|
---|
8741 | } else
|
---|
8742 | len += 1 + keylen
|
---|
8743 | }
|
---|
8744 |
|
---|
8745 | print line
|
---|
8746 | }
|
---|
8747 |
|
---|
8748 | _ACAWK
|
---|
8749 | _ACEOF
|
---|
8750 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8751 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
8752 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
8753 | else
|
---|
8754 | cat
|
---|
8755 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
8756 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
8757 | _ACEOF
|
---|
8758 |
|
---|
8759 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
8760 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
8761 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
8762 | # (actually we leave an empty line to preserve line numbers).
|
---|
8763 | if test "x$srcdir" = x.; then
|
---|
8764 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
8765 | h
|
---|
8766 | s///
|
---|
8767 | s/^/:/
|
---|
8768 | s/[ ]*$/:/
|
---|
8769 | s/:\$(srcdir):/:/g
|
---|
8770 | s/:\${srcdir}:/:/g
|
---|
8771 | s/:@srcdir@:/:/g
|
---|
8772 | s/^:*//
|
---|
8773 | s/:*$//
|
---|
8774 | x
|
---|
8775 | s/\(=[ ]*\).*/\1/
|
---|
8776 | G
|
---|
8777 | s/\n//
|
---|
8778 | s/^[^=]*=[ ]*$//
|
---|
8779 | }'
|
---|
8780 | fi
|
---|
8781 |
|
---|
8782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8783 | fi # test -n "$CONFIG_FILES"
|
---|
8784 |
|
---|
8785 |
|
---|
8786 | eval set X " :F $CONFIG_FILES "
|
---|
8787 | shift
|
---|
8788 | for ac_tag
|
---|
8789 | do
|
---|
8790 | case $ac_tag in
|
---|
8791 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
8792 | esac
|
---|
8793 | case $ac_mode$ac_tag in
|
---|
8794 | :[FHL]*:*);;
|
---|
8795 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
8796 | :[FH]-) ac_tag=-:-;;
|
---|
8797 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
8798 | esac
|
---|
8799 | ac_save_IFS=$IFS
|
---|
8800 | IFS=:
|
---|
8801 | set x $ac_tag
|
---|
8802 | IFS=$ac_save_IFS
|
---|
8803 | shift
|
---|
8804 | ac_file=$1
|
---|
8805 | shift
|
---|
8806 |
|
---|
8807 | case $ac_mode in
|
---|
8808 | :L) ac_source=$1;;
|
---|
8809 | :[FH])
|
---|
8810 | ac_file_inputs=
|
---|
8811 | for ac_f
|
---|
8812 | do
|
---|
8813 | case $ac_f in
|
---|
8814 | -) ac_f="$ac_tmp/stdin";;
|
---|
8815 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8816 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8817 | # because $ac_f cannot contain `:'.
|
---|
8818 | test -f "$ac_f" ||
|
---|
8819 | case $ac_f in
|
---|
8820 | [\\/$]*) false;;
|
---|
8821 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8822 | esac ||
|
---|
8823 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
8824 | esac
|
---|
8825 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
8826 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
8827 | done
|
---|
8828 |
|
---|
8829 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8830 | # use $as_me), people would be surprised to read:
|
---|
8831 | # /* config.h. Generated by config.status. */
|
---|
8832 | configure_input='Generated from '`
|
---|
8833 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
8834 | `' by configure.'
|
---|
8835 | if test x"$ac_file" != x-; then
|
---|
8836 | configure_input="$ac_file. $configure_input"
|
---|
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
8838 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
8839 | fi
|
---|
8840 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
8841 | case $configure_input in #(
|
---|
8842 | *\&* | *\|* | *\\* )
|
---|
8843 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
8844 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
8845 | *) ac_sed_conf_input=$configure_input;;
|
---|
8846 | esac
|
---|
8847 |
|
---|
8848 | case $ac_tag in
|
---|
8849 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
8850 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
8851 | esac
|
---|
8852 | ;;
|
---|
8853 | esac
|
---|
8854 |
|
---|
8855 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8856 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8857 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8858 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8859 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8860 | $as_echo X"$ac_file" |
|
---|
8861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8862 | s//\1/
|
---|
8863 | q
|
---|
8864 | }
|
---|
8865 | /^X\(\/\/\)[^/].*/{
|
---|
8866 | s//\1/
|
---|
8867 | q
|
---|
8868 | }
|
---|
8869 | /^X\(\/\/\)$/{
|
---|
8870 | s//\1/
|
---|
8871 | q
|
---|
8872 | }
|
---|
8873 | /^X\(\/\).*/{
|
---|
8874 | s//\1/
|
---|
8875 | q
|
---|
8876 | }
|
---|
8877 | s/.*/./; q'`
|
---|
8878 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
8879 | ac_builddir=.
|
---|
8880 |
|
---|
8881 | case "$ac_dir" in
|
---|
8882 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8883 | *)
|
---|
8884 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
8885 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8886 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
8887 | case $ac_top_builddir_sub in
|
---|
8888 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8889 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8890 | esac ;;
|
---|
8891 | esac
|
---|
8892 | ac_abs_top_builddir=$ac_pwd
|
---|
8893 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8894 | # for backward compatibility:
|
---|
8895 | ac_top_builddir=$ac_top_build_prefix
|
---|
8896 |
|
---|
8897 | case $srcdir in
|
---|
8898 | .) # We are building in place.
|
---|
8899 | ac_srcdir=.
|
---|
8900 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8901 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8902 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8903 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8904 | ac_top_srcdir=$srcdir
|
---|
8905 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8906 | *) # Relative name.
|
---|
8907 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8908 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8909 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8910 | esac
|
---|
8911 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8912 |
|
---|
8913 |
|
---|
8914 | case $ac_mode in
|
---|
8915 | :F)
|
---|
8916 | #
|
---|
8917 | # CONFIG_FILE
|
---|
8918 | #
|
---|
8919 |
|
---|
8920 | case $INSTALL in
|
---|
8921 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8922 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
8923 | esac
|
---|
8924 | _ACEOF
|
---|
8925 |
|
---|
8926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8927 | # If the template does not know about datarootdir, expand it.
|
---|
8928 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
8929 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
8930 | ac_sed_dataroot='
|
---|
8931 | /datarootdir/ {
|
---|
8932 | p
|
---|
8933 | q
|
---|
8934 | }
|
---|
8935 | /@datadir@/p
|
---|
8936 | /@docdir@/p
|
---|
8937 | /@infodir@/p
|
---|
8938 | /@localedir@/p
|
---|
8939 | /@mandir@/p'
|
---|
8940 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
8941 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8942 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8944 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8945 | _ACEOF
|
---|
8946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8947 | ac_datarootdir_hack='
|
---|
8948 | s&@datadir@&$datadir&g
|
---|
8949 | s&@docdir@&$docdir&g
|
---|
8950 | s&@infodir@&$infodir&g
|
---|
8951 | s&@localedir@&$localedir&g
|
---|
8952 | s&@mandir@&$mandir&g
|
---|
8953 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8954 | esac
|
---|
8955 | _ACEOF
|
---|
8956 |
|
---|
8957 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8958 | # Shell code in configure.ac might set extrasub.
|
---|
8959 | # FIXME: do we really want to maintain this feature?
|
---|
8960 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8961 | ac_sed_extra="$ac_vpsub
|
---|
8962 | $extrasub
|
---|
8963 | _ACEOF
|
---|
8964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8965 | :t
|
---|
8966 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8967 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
8968 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8969 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
8970 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8971 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8972 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8973 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8974 | s&@builddir@&$ac_builddir&;t t
|
---|
8975 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8976 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8977 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8978 | $ac_datarootdir_hack
|
---|
8979 | "
|
---|
8980 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
8981 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8982 |
|
---|
8983 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8984 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
8985 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
8986 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8988 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
8989 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8990 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
8991 |
|
---|
8992 | rm -f "$ac_tmp/stdin"
|
---|
8993 | case $ac_file in
|
---|
8994 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
8995 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
8996 | esac \
|
---|
8997 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8998 | ;;
|
---|
8999 |
|
---|
9000 |
|
---|
9001 |
|
---|
9002 | esac
|
---|
9003 |
|
---|
9004 | done # for ac_tag
|
---|
9005 |
|
---|
9006 |
|
---|
9007 | as_fn_exit 0
|
---|
9008 | _ACEOF
|
---|
9009 | ac_clean_files=$ac_clean_files_save
|
---|
9010 |
|
---|
9011 | test $ac_write_fail = 0 ||
|
---|
9012 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
9013 |
|
---|
9014 |
|
---|
9015 | # configure is writing to config.log, and then calls config.status.
|
---|
9016 | # config.status does its own redirection, appending to config.log.
|
---|
9017 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
9018 | # by configure, so config.status won't be able to write to it; its
|
---|
9019 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
9020 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
9021 | # appended to by config.status. When coming back to configure, we
|
---|
9022 | # need to make the FD available again.
|
---|
9023 | if test "$no_create" != yes; then
|
---|
9024 | ac_cs_success=:
|
---|
9025 | ac_config_status_args=
|
---|
9026 | test "$silent" = yes &&
|
---|
9027 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
9028 | exec 5>/dev/null
|
---|
9029 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
9030 | exec 5>>config.log
|
---|
9031 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
9032 | # would make configure fail if this is the last instruction.
|
---|
9033 | $ac_cs_success || as_fn_exit 1
|
---|
9034 | fi
|
---|
9035 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
9037 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
9038 | fi
|
---|
9039 |
|
---|
9040 |
|
---|