1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69 for rdesktop 1.8.3.
|
---|
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.3'
|
---|
581 | PACKAGE_STRING='rdesktop 1.8.3'
|
---|
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 | OBJEXT
|
---|
661 | EXEEXT
|
---|
662 | ac_ct_CC
|
---|
663 | CPPFLAGS
|
---|
664 | LDFLAGS
|
---|
665 | CFLAGS
|
---|
666 | CC
|
---|
667 | host_os
|
---|
668 | host_vendor
|
---|
669 | host_cpu
|
---|
670 | host
|
---|
671 | build_os
|
---|
672 | build_vendor
|
---|
673 | build_cpu
|
---|
674 | build
|
---|
675 | target_alias
|
---|
676 | host_alias
|
---|
677 | build_alias
|
---|
678 | LIBS
|
---|
679 | ECHO_T
|
---|
680 | ECHO_N
|
---|
681 | ECHO_C
|
---|
682 | DEFS
|
---|
683 | mandir
|
---|
684 | localedir
|
---|
685 | libdir
|
---|
686 | psdir
|
---|
687 | pdfdir
|
---|
688 | dvidir
|
---|
689 | htmldir
|
---|
690 | infodir
|
---|
691 | docdir
|
---|
692 | oldincludedir
|
---|
693 | includedir
|
---|
694 | localstatedir
|
---|
695 | sharedstatedir
|
---|
696 | sysconfdir
|
---|
697 | datadir
|
---|
698 | datarootdir
|
---|
699 | libexecdir
|
---|
700 | sbindir
|
---|
701 | bindir
|
---|
702 | program_transform_name
|
---|
703 | prefix
|
---|
704 | exec_prefix
|
---|
705 | PACKAGE_URL
|
---|
706 | PACKAGE_BUGREPORT
|
---|
707 | PACKAGE_STRING
|
---|
708 | PACKAGE_VERSION
|
---|
709 | PACKAGE_TARNAME
|
---|
710 | PACKAGE_NAME
|
---|
711 | PATH_SEPARATOR
|
---|
712 | SHELL'
|
---|
713 | ac_subst_files=''
|
---|
714 | ac_user_opts='
|
---|
715 | enable_option_checking
|
---|
716 | with_x
|
---|
717 | with_openssl
|
---|
718 | enable_static_openssl
|
---|
719 | enable_credssp
|
---|
720 | enable_static_gssglue
|
---|
721 | enable_smartcard
|
---|
722 | with_egd_socket
|
---|
723 | with_libvncserver_config
|
---|
724 | with_libvncserver
|
---|
725 | with_sound
|
---|
726 | enable_static_libsamplerate
|
---|
727 | with_libiconv_prefix
|
---|
728 | enable_largefile
|
---|
729 | with_ipv6
|
---|
730 | with_debug
|
---|
731 | with_debug_kbd
|
---|
732 | with_debug_rdp5
|
---|
733 | with_debug_clipboard
|
---|
734 | with_debug_sound
|
---|
735 | with_debug_channel
|
---|
736 | with_debug_seamless
|
---|
737 | with_debug_smartcard
|
---|
738 | with_debug_credssp
|
---|
739 | '
|
---|
740 | ac_precious_vars='build_alias
|
---|
741 | host_alias
|
---|
742 | target_alias
|
---|
743 | CC
|
---|
744 | CFLAGS
|
---|
745 | LDFLAGS
|
---|
746 | LIBS
|
---|
747 | CPPFLAGS
|
---|
748 | CPP
|
---|
749 | XMKMF
|
---|
750 | PKG_CONFIG
|
---|
751 | PKG_CONFIG_PATH
|
---|
752 | PKG_CONFIG_LIBDIR
|
---|
753 | GSSGLUE_CFLAGS
|
---|
754 | GSSGLUE_LIBS
|
---|
755 | XRANDR_CFLAGS
|
---|
756 | XRANDR_LIBS
|
---|
757 | PCSCLITE_CFLAGS
|
---|
758 | PCSCLITE_LIBS
|
---|
759 | LIBAO_CFLAGS
|
---|
760 | LIBAO_LIBS
|
---|
761 | ALSA_CFLAGS
|
---|
762 | ALSA_LIBS
|
---|
763 | LIBSAMPLERATE_CFLAGS
|
---|
764 | LIBSAMPLERATE_LIBS'
|
---|
765 |
|
---|
766 |
|
---|
767 | # Initialize some variables set by options.
|
---|
768 | ac_init_help=
|
---|
769 | ac_init_version=false
|
---|
770 | ac_unrecognized_opts=
|
---|
771 | ac_unrecognized_sep=
|
---|
772 | # The variables have the same names as the options, with
|
---|
773 | # dashes changed to underlines.
|
---|
774 | cache_file=/dev/null
|
---|
775 | exec_prefix=NONE
|
---|
776 | no_create=
|
---|
777 | no_recursion=
|
---|
778 | prefix=NONE
|
---|
779 | program_prefix=NONE
|
---|
780 | program_suffix=NONE
|
---|
781 | program_transform_name=s,x,x,
|
---|
782 | silent=
|
---|
783 | site=
|
---|
784 | srcdir=
|
---|
785 | verbose=
|
---|
786 | x_includes=NONE
|
---|
787 | x_libraries=NONE
|
---|
788 |
|
---|
789 | # Installation directory options.
|
---|
790 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
791 | # and all the variables that are supposed to be based on exec_prefix
|
---|
792 | # by default will actually change.
|
---|
793 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
794 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
795 | bindir='${exec_prefix}/bin'
|
---|
796 | sbindir='${exec_prefix}/sbin'
|
---|
797 | libexecdir='${exec_prefix}/libexec'
|
---|
798 | datarootdir='${prefix}/share'
|
---|
799 | datadir='${datarootdir}'
|
---|
800 | sysconfdir='${prefix}/etc'
|
---|
801 | sharedstatedir='${prefix}/com'
|
---|
802 | localstatedir='${prefix}/var'
|
---|
803 | includedir='${prefix}/include'
|
---|
804 | oldincludedir='/usr/include'
|
---|
805 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
806 | infodir='${datarootdir}/info'
|
---|
807 | htmldir='${docdir}'
|
---|
808 | dvidir='${docdir}'
|
---|
809 | pdfdir='${docdir}'
|
---|
810 | psdir='${docdir}'
|
---|
811 | libdir='${exec_prefix}/lib'
|
---|
812 | localedir='${datarootdir}/locale'
|
---|
813 | mandir='${datarootdir}/man'
|
---|
814 |
|
---|
815 | ac_prev=
|
---|
816 | ac_dashdash=
|
---|
817 | for ac_option
|
---|
818 | do
|
---|
819 | # If the previous option needs an argument, assign it.
|
---|
820 | if test -n "$ac_prev"; then
|
---|
821 | eval $ac_prev=\$ac_option
|
---|
822 | ac_prev=
|
---|
823 | continue
|
---|
824 | fi
|
---|
825 |
|
---|
826 | case $ac_option in
|
---|
827 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
828 | *=) ac_optarg= ;;
|
---|
829 | *) ac_optarg=yes ;;
|
---|
830 | esac
|
---|
831 |
|
---|
832 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
833 |
|
---|
834 | case $ac_dashdash$ac_option in
|
---|
835 | --)
|
---|
836 | ac_dashdash=yes ;;
|
---|
837 |
|
---|
838 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
839 | ac_prev=bindir ;;
|
---|
840 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
841 | bindir=$ac_optarg ;;
|
---|
842 |
|
---|
843 | -build | --build | --buil | --bui | --bu)
|
---|
844 | ac_prev=build_alias ;;
|
---|
845 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
846 | build_alias=$ac_optarg ;;
|
---|
847 |
|
---|
848 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
849 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
850 | ac_prev=cache_file ;;
|
---|
851 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
852 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
853 | cache_file=$ac_optarg ;;
|
---|
854 |
|
---|
855 | --config-cache | -C)
|
---|
856 | cache_file=config.cache ;;
|
---|
857 |
|
---|
858 | -datadir | --datadir | --datadi | --datad)
|
---|
859 | ac_prev=datadir ;;
|
---|
860 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
861 | datadir=$ac_optarg ;;
|
---|
862 |
|
---|
863 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
864 | | --dataroo | --dataro | --datar)
|
---|
865 | ac_prev=datarootdir ;;
|
---|
866 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
867 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
868 | datarootdir=$ac_optarg ;;
|
---|
869 |
|
---|
870 | -disable-* | --disable-*)
|
---|
871 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
872 | # Reject names that are not valid shell variable names.
|
---|
873 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
874 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
875 | ac_useropt_orig=$ac_useropt
|
---|
876 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
877 | case $ac_user_opts in
|
---|
878 | *"
|
---|
879 | "enable_$ac_useropt"
|
---|
880 | "*) ;;
|
---|
881 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
882 | ac_unrecognized_sep=', ';;
|
---|
883 | esac
|
---|
884 | eval enable_$ac_useropt=no ;;
|
---|
885 |
|
---|
886 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
887 | ac_prev=docdir ;;
|
---|
888 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
889 | docdir=$ac_optarg ;;
|
---|
890 |
|
---|
891 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
892 | ac_prev=dvidir ;;
|
---|
893 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
894 | dvidir=$ac_optarg ;;
|
---|
895 |
|
---|
896 | -enable-* | --enable-*)
|
---|
897 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
898 | # Reject names that are not valid shell variable names.
|
---|
899 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
900 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
901 | ac_useropt_orig=$ac_useropt
|
---|
902 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
903 | case $ac_user_opts in
|
---|
904 | *"
|
---|
905 | "enable_$ac_useropt"
|
---|
906 | "*) ;;
|
---|
907 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
908 | ac_unrecognized_sep=', ';;
|
---|
909 | esac
|
---|
910 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
911 |
|
---|
912 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
913 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
914 | | --exec | --exe | --ex)
|
---|
915 | ac_prev=exec_prefix ;;
|
---|
916 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
917 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
918 | | --exec=* | --exe=* | --ex=*)
|
---|
919 | exec_prefix=$ac_optarg ;;
|
---|
920 |
|
---|
921 | -gas | --gas | --ga | --g)
|
---|
922 | # Obsolete; use --with-gas.
|
---|
923 | with_gas=yes ;;
|
---|
924 |
|
---|
925 | -help | --help | --hel | --he | -h)
|
---|
926 | ac_init_help=long ;;
|
---|
927 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
928 | ac_init_help=recursive ;;
|
---|
929 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
930 | ac_init_help=short ;;
|
---|
931 |
|
---|
932 | -host | --host | --hos | --ho)
|
---|
933 | ac_prev=host_alias ;;
|
---|
934 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
935 | host_alias=$ac_optarg ;;
|
---|
936 |
|
---|
937 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
938 | ac_prev=htmldir ;;
|
---|
939 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
940 | | --ht=*)
|
---|
941 | htmldir=$ac_optarg ;;
|
---|
942 |
|
---|
943 | -includedir | --includedir | --includedi | --included | --include \
|
---|
944 | | --includ | --inclu | --incl | --inc)
|
---|
945 | ac_prev=includedir ;;
|
---|
946 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
947 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
948 | includedir=$ac_optarg ;;
|
---|
949 |
|
---|
950 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
951 | ac_prev=infodir ;;
|
---|
952 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
953 | infodir=$ac_optarg ;;
|
---|
954 |
|
---|
955 | -libdir | --libdir | --libdi | --libd)
|
---|
956 | ac_prev=libdir ;;
|
---|
957 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
958 | libdir=$ac_optarg ;;
|
---|
959 |
|
---|
960 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
961 | | --libexe | --libex | --libe)
|
---|
962 | ac_prev=libexecdir ;;
|
---|
963 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
964 | | --libexe=* | --libex=* | --libe=*)
|
---|
965 | libexecdir=$ac_optarg ;;
|
---|
966 |
|
---|
967 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
968 | ac_prev=localedir ;;
|
---|
969 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
970 | localedir=$ac_optarg ;;
|
---|
971 |
|
---|
972 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
973 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
974 | ac_prev=localstatedir ;;
|
---|
975 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
976 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
977 | localstatedir=$ac_optarg ;;
|
---|
978 |
|
---|
979 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
980 | ac_prev=mandir ;;
|
---|
981 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
982 | mandir=$ac_optarg ;;
|
---|
983 |
|
---|
984 | -nfp | --nfp | --nf)
|
---|
985 | # Obsolete; use --without-fp.
|
---|
986 | with_fp=no ;;
|
---|
987 |
|
---|
988 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
989 | | --no-cr | --no-c | -n)
|
---|
990 | no_create=yes ;;
|
---|
991 |
|
---|
992 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
993 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
994 | no_recursion=yes ;;
|
---|
995 |
|
---|
996 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
997 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
998 | | --oldin | --oldi | --old | --ol | --o)
|
---|
999 | ac_prev=oldincludedir ;;
|
---|
1000 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1001 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1002 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1003 | oldincludedir=$ac_optarg ;;
|
---|
1004 |
|
---|
1005 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1006 | ac_prev=prefix ;;
|
---|
1007 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1008 | prefix=$ac_optarg ;;
|
---|
1009 |
|
---|
1010 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1011 | | --program-pre | --program-pr | --program-p)
|
---|
1012 | ac_prev=program_prefix ;;
|
---|
1013 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1014 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1015 | program_prefix=$ac_optarg ;;
|
---|
1016 |
|
---|
1017 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1018 | | --program-suf | --program-su | --program-s)
|
---|
1019 | ac_prev=program_suffix ;;
|
---|
1020 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1021 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1022 | program_suffix=$ac_optarg ;;
|
---|
1023 |
|
---|
1024 | -program-transform-name | --program-transform-name \
|
---|
1025 | | --program-transform-nam | --program-transform-na \
|
---|
1026 | | --program-transform-n | --program-transform- \
|
---|
1027 | | --program-transform | --program-transfor \
|
---|
1028 | | --program-transfo | --program-transf \
|
---|
1029 | | --program-trans | --program-tran \
|
---|
1030 | | --progr-tra | --program-tr | --program-t)
|
---|
1031 | ac_prev=program_transform_name ;;
|
---|
1032 | -program-transform-name=* | --program-transform-name=* \
|
---|
1033 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1034 | | --program-transform-n=* | --program-transform-=* \
|
---|
1035 | | --program-transform=* | --program-transfor=* \
|
---|
1036 | | --program-transfo=* | --program-transf=* \
|
---|
1037 | | --program-trans=* | --program-tran=* \
|
---|
1038 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1039 | program_transform_name=$ac_optarg ;;
|
---|
1040 |
|
---|
1041 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1042 | ac_prev=pdfdir ;;
|
---|
1043 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1044 | pdfdir=$ac_optarg ;;
|
---|
1045 |
|
---|
1046 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1047 | ac_prev=psdir ;;
|
---|
1048 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1049 | psdir=$ac_optarg ;;
|
---|
1050 |
|
---|
1051 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1052 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1053 | silent=yes ;;
|
---|
1054 |
|
---|
1055 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1056 | ac_prev=sbindir ;;
|
---|
1057 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1058 | | --sbi=* | --sb=*)
|
---|
1059 | sbindir=$ac_optarg ;;
|
---|
1060 |
|
---|
1061 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1062 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1063 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1064 | | --sha | --sh)
|
---|
1065 | ac_prev=sharedstatedir ;;
|
---|
1066 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1067 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1068 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1069 | | --sha=* | --sh=*)
|
---|
1070 | sharedstatedir=$ac_optarg ;;
|
---|
1071 |
|
---|
1072 | -site | --site | --sit)
|
---|
1073 | ac_prev=site ;;
|
---|
1074 | -site=* | --site=* | --sit=*)
|
---|
1075 | site=$ac_optarg ;;
|
---|
1076 |
|
---|
1077 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1078 | ac_prev=srcdir ;;
|
---|
1079 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1080 | srcdir=$ac_optarg ;;
|
---|
1081 |
|
---|
1082 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1083 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1084 | ac_prev=sysconfdir ;;
|
---|
1085 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1086 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1087 | sysconfdir=$ac_optarg ;;
|
---|
1088 |
|
---|
1089 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1090 | ac_prev=target_alias ;;
|
---|
1091 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1092 | target_alias=$ac_optarg ;;
|
---|
1093 |
|
---|
1094 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1095 | verbose=yes ;;
|
---|
1096 |
|
---|
1097 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1098 | ac_init_version=: ;;
|
---|
1099 |
|
---|
1100 | -with-* | --with-*)
|
---|
1101 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1102 | # Reject names that are not valid shell variable names.
|
---|
1103 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1104 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1105 | ac_useropt_orig=$ac_useropt
|
---|
1106 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1107 | case $ac_user_opts in
|
---|
1108 | *"
|
---|
1109 | "with_$ac_useropt"
|
---|
1110 | "*) ;;
|
---|
1111 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1112 | ac_unrecognized_sep=', ';;
|
---|
1113 | esac
|
---|
1114 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1115 |
|
---|
1116 | -without-* | --without-*)
|
---|
1117 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1118 | # Reject names that are not valid shell variable names.
|
---|
1119 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1120 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1121 | ac_useropt_orig=$ac_useropt
|
---|
1122 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1123 | case $ac_user_opts in
|
---|
1124 | *"
|
---|
1125 | "with_$ac_useropt"
|
---|
1126 | "*) ;;
|
---|
1127 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1128 | ac_unrecognized_sep=', ';;
|
---|
1129 | esac
|
---|
1130 | eval with_$ac_useropt=no ;;
|
---|
1131 |
|
---|
1132 | --x)
|
---|
1133 | # Obsolete; use --with-x.
|
---|
1134 | with_x=yes ;;
|
---|
1135 |
|
---|
1136 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1137 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1138 | ac_prev=x_includes ;;
|
---|
1139 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1140 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1141 | x_includes=$ac_optarg ;;
|
---|
1142 |
|
---|
1143 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1144 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1145 | ac_prev=x_libraries ;;
|
---|
1146 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1147 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1148 | x_libraries=$ac_optarg ;;
|
---|
1149 |
|
---|
1150 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1151 | Try \`$0 --help' for more information"
|
---|
1152 | ;;
|
---|
1153 |
|
---|
1154 | *=*)
|
---|
1155 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1156 | # Reject names that are not valid shell variable names.
|
---|
1157 | case $ac_envvar in #(
|
---|
1158 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1159 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1160 | esac
|
---|
1161 | eval $ac_envvar=\$ac_optarg
|
---|
1162 | export $ac_envvar ;;
|
---|
1163 |
|
---|
1164 | *)
|
---|
1165 | # FIXME: should be removed in autoconf 3.0.
|
---|
1166 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1167 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1168 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1169 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1170 | ;;
|
---|
1171 |
|
---|
1172 | esac
|
---|
1173 | done
|
---|
1174 |
|
---|
1175 | if test -n "$ac_prev"; then
|
---|
1176 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1177 | as_fn_error $? "missing argument to $ac_option"
|
---|
1178 | fi
|
---|
1179 |
|
---|
1180 | if test -n "$ac_unrecognized_opts"; then
|
---|
1181 | case $enable_option_checking in
|
---|
1182 | no) ;;
|
---|
1183 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1184 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1185 | esac
|
---|
1186 | fi
|
---|
1187 |
|
---|
1188 | # Check all directory arguments for consistency.
|
---|
1189 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1190 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1191 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1192 | libdir localedir mandir
|
---|
1193 | do
|
---|
1194 | eval ac_val=\$$ac_var
|
---|
1195 | # Remove trailing slashes.
|
---|
1196 | case $ac_val in
|
---|
1197 | */ )
|
---|
1198 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1199 | eval $ac_var=\$ac_val;;
|
---|
1200 | esac
|
---|
1201 | # Be sure to have absolute directory names.
|
---|
1202 | case $ac_val in
|
---|
1203 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1204 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1205 | esac
|
---|
1206 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1207 | done
|
---|
1208 |
|
---|
1209 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1210 | # used to hold the argument of --host etc.
|
---|
1211 | # FIXME: To remove some day.
|
---|
1212 | build=$build_alias
|
---|
1213 | host=$host_alias
|
---|
1214 | target=$target_alias
|
---|
1215 |
|
---|
1216 | # FIXME: To remove some day.
|
---|
1217 | if test "x$host_alias" != x; then
|
---|
1218 | if test "x$build_alias" = x; then
|
---|
1219 | cross_compiling=maybe
|
---|
1220 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1221 | cross_compiling=yes
|
---|
1222 | fi
|
---|
1223 | fi
|
---|
1224 |
|
---|
1225 | ac_tool_prefix=
|
---|
1226 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1227 |
|
---|
1228 | test "$silent" = yes && exec 6>/dev/null
|
---|
1229 |
|
---|
1230 |
|
---|
1231 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1232 | ac_ls_di=`ls -di .` &&
|
---|
1233 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1234 | as_fn_error $? "working directory cannot be determined"
|
---|
1235 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1236 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1237 |
|
---|
1238 |
|
---|
1239 | # Find the source files, if location was not specified.
|
---|
1240 | if test -z "$srcdir"; then
|
---|
1241 | ac_srcdir_defaulted=yes
|
---|
1242 | # Try the directory containing this script, then the parent directory.
|
---|
1243 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1244 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1245 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1246 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1247 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1248 | $as_echo X"$as_myself" |
|
---|
1249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1250 | s//\1/
|
---|
1251 | q
|
---|
1252 | }
|
---|
1253 | /^X\(\/\/\)[^/].*/{
|
---|
1254 | s//\1/
|
---|
1255 | q
|
---|
1256 | }
|
---|
1257 | /^X\(\/\/\)$/{
|
---|
1258 | s//\1/
|
---|
1259 | q
|
---|
1260 | }
|
---|
1261 | /^X\(\/\).*/{
|
---|
1262 | s//\1/
|
---|
1263 | q
|
---|
1264 | }
|
---|
1265 | s/.*/./; q'`
|
---|
1266 | srcdir=$ac_confdir
|
---|
1267 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1268 | srcdir=..
|
---|
1269 | fi
|
---|
1270 | else
|
---|
1271 | ac_srcdir_defaulted=no
|
---|
1272 | fi
|
---|
1273 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1274 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1275 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1276 | fi
|
---|
1277 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1278 | ac_abs_confdir=`(
|
---|
1279 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1280 | pwd)`
|
---|
1281 | # When building in place, set srcdir=.
|
---|
1282 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1283 | srcdir=.
|
---|
1284 | fi
|
---|
1285 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1286 | # Double slashes in file names in object file debugging info
|
---|
1287 | # mess up M-x gdb in Emacs.
|
---|
1288 | case $srcdir in
|
---|
1289 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1290 | esac
|
---|
1291 | for ac_var in $ac_precious_vars; do
|
---|
1292 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1293 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1294 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1295 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1296 | done
|
---|
1297 |
|
---|
1298 | #
|
---|
1299 | # Report the --help message.
|
---|
1300 | #
|
---|
1301 | if test "$ac_init_help" = "long"; then
|
---|
1302 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1303 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1304 | cat <<_ACEOF
|
---|
1305 | \`configure' configures rdesktop 1.8.3 to adapt to many kinds of systems.
|
---|
1306 |
|
---|
1307 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1308 |
|
---|
1309 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1310 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1311 |
|
---|
1312 | Defaults for the options are specified in brackets.
|
---|
1313 |
|
---|
1314 | Configuration:
|
---|
1315 | -h, --help display this help and exit
|
---|
1316 | --help=short display options specific to this package
|
---|
1317 | --help=recursive display the short help of all the included packages
|
---|
1318 | -V, --version display version information and exit
|
---|
1319 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1320 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1321 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1322 | -n, --no-create do not create output files
|
---|
1323 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1324 |
|
---|
1325 | Installation directories:
|
---|
1326 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1327 | [$ac_default_prefix]
|
---|
1328 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1329 | [PREFIX]
|
---|
1330 |
|
---|
1331 | By default, \`make install' will install all the files in
|
---|
1332 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1333 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1334 | for instance \`--prefix=\$HOME'.
|
---|
1335 |
|
---|
1336 | For better control, use the options below.
|
---|
1337 |
|
---|
1338 | Fine tuning of the installation directories:
|
---|
1339 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1340 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1341 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1342 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1343 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1344 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1345 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1346 | --includedir=DIR C header files [PREFIX/include]
|
---|
1347 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1348 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1349 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1350 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1351 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1352 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1353 | --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
|
---|
1354 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1355 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1356 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1357 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1358 | _ACEOF
|
---|
1359 |
|
---|
1360 | cat <<\_ACEOF
|
---|
1361 |
|
---|
1362 | X features:
|
---|
1363 | --x-includes=DIR X include files are in DIR
|
---|
1364 | --x-libraries=DIR X library files are in DIR
|
---|
1365 |
|
---|
1366 | System types:
|
---|
1367 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1368 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1369 | _ACEOF
|
---|
1370 | fi
|
---|
1371 |
|
---|
1372 | if test -n "$ac_init_help"; then
|
---|
1373 | case $ac_init_help in
|
---|
1374 | short | recursive ) echo "Configuration of rdesktop 1.8.3:";;
|
---|
1375 | esac
|
---|
1376 | cat <<\_ACEOF
|
---|
1377 |
|
---|
1378 | Optional Features:
|
---|
1379 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1380 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1381 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1382 | --enable-static-openssl link OpenSSL statically
|
---|
1383 | --disable-credssp disable support for CredSSP
|
---|
1384 | --enable-static-gssglue
|
---|
1385 | --disable-smartcard disable support for smartcard
|
---|
1386 | --enable-static-libsamplerate link libsamplerate statically
|
---|
1387 | --disable-largefile omit support for large files
|
---|
1388 |
|
---|
1389 | Optional Packages:
|
---|
1390 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1391 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1392 | --with-x use the X Window System
|
---|
1393 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
1394 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
1395 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
1396 | --with-libvncserver make rdp2vnc
|
---|
1397 | --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
|
---|
1398 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
1399 | --with-ipv6 enable IPv6-support
|
---|
1400 | --with-debug enable protocol debugging output
|
---|
1401 | --with-debug-kbd enable debugging of keyboard handling
|
---|
1402 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
1403 | --with-debug-clipboard enable debugging of clipboard code
|
---|
1404 | --with-debug-sound enable debugging of sound code
|
---|
1405 | --with-debug-channel enable debugging of virtual channel code
|
---|
1406 | --with-debug-seamless enable debugging of SeamlessRDP code
|
---|
1407 | --with-debug-smartcard enable debugging of smart-card code
|
---|
1408 | --with-debug-credssp enable debugging of CredSSP code
|
---|
1409 |
|
---|
1410 | Some influential environment variables:
|
---|
1411 | CC C compiler command
|
---|
1412 | CFLAGS C compiler flags
|
---|
1413 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1414 | nonstandard directory <lib dir>
|
---|
1415 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1416 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1417 | you have headers in a nonstandard directory <include dir>
|
---|
1418 | CPP C preprocessor
|
---|
1419 | XMKMF Path to xmkmf, Makefile generator for X Window System
|
---|
1420 | PKG_CONFIG path to pkg-config utility
|
---|
1421 | PKG_CONFIG_PATH
|
---|
1422 | directories to add to pkg-config's search path
|
---|
1423 | PKG_CONFIG_LIBDIR
|
---|
1424 | path overriding pkg-config's built-in search path
|
---|
1425 | GSSGLUE_CFLAGS
|
---|
1426 | C compiler flags for GSSGLUE, overriding pkg-config
|
---|
1427 | GSSGLUE_LIBS
|
---|
1428 | linker flags for GSSGLUE, overriding pkg-config
|
---|
1429 | XRANDR_CFLAGS
|
---|
1430 | C compiler flags for XRANDR, overriding pkg-config
|
---|
1431 | XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
|
---|
1432 | PCSCLITE_CFLAGS
|
---|
1433 | C compiler flags for PCSCLITE, overriding pkg-config
|
---|
1434 | PCSCLITE_LIBS
|
---|
1435 | linker flags for PCSCLITE, overriding pkg-config
|
---|
1436 | LIBAO_CFLAGS
|
---|
1437 | C compiler flags for LIBAO, overriding pkg-config
|
---|
1438 | LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
|
---|
1439 | ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
|
---|
1440 | ALSA_LIBS linker flags for ALSA, overriding pkg-config
|
---|
1441 | LIBSAMPLERATE_CFLAGS
|
---|
1442 | C compiler flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1443 | LIBSAMPLERATE_LIBS
|
---|
1444 | linker flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1445 |
|
---|
1446 | Use these variables to override the choices made by `configure' or to help
|
---|
1447 | it to find libraries and programs with nonstandard names/locations.
|
---|
1448 |
|
---|
1449 | Report bugs to the package provider.
|
---|
1450 | _ACEOF
|
---|
1451 | ac_status=$?
|
---|
1452 | fi
|
---|
1453 |
|
---|
1454 | if test "$ac_init_help" = "recursive"; then
|
---|
1455 | # If there are subdirs, report their specific --help.
|
---|
1456 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1457 | test -d "$ac_dir" ||
|
---|
1458 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1459 | continue
|
---|
1460 | ac_builddir=.
|
---|
1461 |
|
---|
1462 | case "$ac_dir" in
|
---|
1463 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1464 | *)
|
---|
1465 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1466 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1467 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1468 | case $ac_top_builddir_sub in
|
---|
1469 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1470 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1471 | esac ;;
|
---|
1472 | esac
|
---|
1473 | ac_abs_top_builddir=$ac_pwd
|
---|
1474 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1475 | # for backward compatibility:
|
---|
1476 | ac_top_builddir=$ac_top_build_prefix
|
---|
1477 |
|
---|
1478 | case $srcdir in
|
---|
1479 | .) # We are building in place.
|
---|
1480 | ac_srcdir=.
|
---|
1481 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1482 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1483 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1484 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1485 | ac_top_srcdir=$srcdir
|
---|
1486 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1487 | *) # Relative name.
|
---|
1488 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1489 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1490 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1491 | esac
|
---|
1492 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1493 |
|
---|
1494 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1495 | # Check for guested configure.
|
---|
1496 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1497 | echo &&
|
---|
1498 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1499 | elif test -f "$ac_srcdir/configure"; then
|
---|
1500 | echo &&
|
---|
1501 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1502 | else
|
---|
1503 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1504 | fi || ac_status=$?
|
---|
1505 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1506 | done
|
---|
1507 | fi
|
---|
1508 |
|
---|
1509 | test -n "$ac_init_help" && exit $ac_status
|
---|
1510 | if $ac_init_version; then
|
---|
1511 | cat <<\_ACEOF
|
---|
1512 | rdesktop configure 1.8.3
|
---|
1513 | generated by GNU Autoconf 2.69
|
---|
1514 |
|
---|
1515 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1516 | This configure script is free software; the Free Software Foundation
|
---|
1517 | gives unlimited permission to copy, distribute and modify it.
|
---|
1518 | _ACEOF
|
---|
1519 | exit
|
---|
1520 | fi
|
---|
1521 |
|
---|
1522 | ## ------------------------ ##
|
---|
1523 | ## Autoconf initialization. ##
|
---|
1524 | ## ------------------------ ##
|
---|
1525 |
|
---|
1526 | # ac_fn_c_try_compile LINENO
|
---|
1527 | # --------------------------
|
---|
1528 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1529 | ac_fn_c_try_compile ()
|
---|
1530 | {
|
---|
1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1532 | rm -f conftest.$ac_objext
|
---|
1533 | if { { ac_try="$ac_compile"
|
---|
1534 | case "(($ac_try" in
|
---|
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1536 | *) ac_try_echo=$ac_try;;
|
---|
1537 | esac
|
---|
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1539 | $as_echo "$ac_try_echo"; } >&5
|
---|
1540 | (eval "$ac_compile") 2>conftest.err
|
---|
1541 | ac_status=$?
|
---|
1542 | if test -s conftest.err; then
|
---|
1543 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1544 | cat conftest.er1 >&5
|
---|
1545 | mv -f conftest.er1 conftest.err
|
---|
1546 | fi
|
---|
1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1548 | test $ac_status = 0; } && {
|
---|
1549 | test -z "$ac_c_werror_flag" ||
|
---|
1550 | test ! -s conftest.err
|
---|
1551 | } && test -s conftest.$ac_objext; then :
|
---|
1552 | ac_retval=0
|
---|
1553 | else
|
---|
1554 | $as_echo "$as_me: failed program was:" >&5
|
---|
1555 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1556 |
|
---|
1557 | ac_retval=1
|
---|
1558 | fi
|
---|
1559 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1560 | as_fn_set_status $ac_retval
|
---|
1561 |
|
---|
1562 | } # ac_fn_c_try_compile
|
---|
1563 |
|
---|
1564 | # ac_fn_c_try_cpp LINENO
|
---|
1565 | # ----------------------
|
---|
1566 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1567 | ac_fn_c_try_cpp ()
|
---|
1568 | {
|
---|
1569 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1570 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1571 | case "(($ac_try" in
|
---|
1572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1573 | *) ac_try_echo=$ac_try;;
|
---|
1574 | esac
|
---|
1575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1576 | $as_echo "$ac_try_echo"; } >&5
|
---|
1577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1578 | ac_status=$?
|
---|
1579 | if test -s conftest.err; then
|
---|
1580 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1581 | cat conftest.er1 >&5
|
---|
1582 | mv -f conftest.er1 conftest.err
|
---|
1583 | fi
|
---|
1584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1585 | test $ac_status = 0; } > conftest.i && {
|
---|
1586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1587 | test ! -s conftest.err
|
---|
1588 | }; then :
|
---|
1589 | ac_retval=0
|
---|
1590 | else
|
---|
1591 | $as_echo "$as_me: failed program was:" >&5
|
---|
1592 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1593 |
|
---|
1594 | ac_retval=1
|
---|
1595 | fi
|
---|
1596 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1597 | as_fn_set_status $ac_retval
|
---|
1598 |
|
---|
1599 | } # ac_fn_c_try_cpp
|
---|
1600 |
|
---|
1601 | # ac_fn_c_try_run LINENO
|
---|
1602 | # ----------------------
|
---|
1603 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1604 | # that executables *can* be run.
|
---|
1605 | ac_fn_c_try_run ()
|
---|
1606 | {
|
---|
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1608 | if { { ac_try="$ac_link"
|
---|
1609 | case "(($ac_try" in
|
---|
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1611 | *) ac_try_echo=$ac_try;;
|
---|
1612 | esac
|
---|
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1614 | $as_echo "$ac_try_echo"; } >&5
|
---|
1615 | (eval "$ac_link") 2>&5
|
---|
1616 | ac_status=$?
|
---|
1617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1618 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1619 | { { case "(($ac_try" in
|
---|
1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1621 | *) ac_try_echo=$ac_try;;
|
---|
1622 | esac
|
---|
1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1624 | $as_echo "$ac_try_echo"; } >&5
|
---|
1625 | (eval "$ac_try") 2>&5
|
---|
1626 | ac_status=$?
|
---|
1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1628 | test $ac_status = 0; }; }; then :
|
---|
1629 | ac_retval=0
|
---|
1630 | else
|
---|
1631 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1632 | $as_echo "$as_me: failed program was:" >&5
|
---|
1633 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1634 |
|
---|
1635 | ac_retval=$ac_status
|
---|
1636 | fi
|
---|
1637 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1638 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1639 | as_fn_set_status $ac_retval
|
---|
1640 |
|
---|
1641 | } # ac_fn_c_try_run
|
---|
1642 |
|
---|
1643 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1644 | # -------------------------------------------------------
|
---|
1645 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1646 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1647 | ac_fn_c_check_header_compile ()
|
---|
1648 | {
|
---|
1649 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1651 | $as_echo_n "checking for $2... " >&6; }
|
---|
1652 | if eval \${$3+:} false; then :
|
---|
1653 | $as_echo_n "(cached) " >&6
|
---|
1654 | else
|
---|
1655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1656 | /* end confdefs.h. */
|
---|
1657 | $4
|
---|
1658 | #include <$2>
|
---|
1659 | _ACEOF
|
---|
1660 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1661 | eval "$3=yes"
|
---|
1662 | else
|
---|
1663 | eval "$3=no"
|
---|
1664 | fi
|
---|
1665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1666 | fi
|
---|
1667 | eval ac_res=\$$3
|
---|
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1669 | $as_echo "$ac_res" >&6; }
|
---|
1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1671 |
|
---|
1672 | } # ac_fn_c_check_header_compile
|
---|
1673 |
|
---|
1674 | # ac_fn_c_try_link LINENO
|
---|
1675 | # -----------------------
|
---|
1676 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1677 | ac_fn_c_try_link ()
|
---|
1678 | {
|
---|
1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1680 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1681 | if { { ac_try="$ac_link"
|
---|
1682 | case "(($ac_try" in
|
---|
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1684 | *) ac_try_echo=$ac_try;;
|
---|
1685 | esac
|
---|
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1687 | $as_echo "$ac_try_echo"; } >&5
|
---|
1688 | (eval "$ac_link") 2>conftest.err
|
---|
1689 | ac_status=$?
|
---|
1690 | if test -s conftest.err; then
|
---|
1691 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1692 | cat conftest.er1 >&5
|
---|
1693 | mv -f conftest.er1 conftest.err
|
---|
1694 | fi
|
---|
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1696 | test $ac_status = 0; } && {
|
---|
1697 | test -z "$ac_c_werror_flag" ||
|
---|
1698 | test ! -s conftest.err
|
---|
1699 | } && test -s conftest$ac_exeext && {
|
---|
1700 | test "$cross_compiling" = yes ||
|
---|
1701 | test -x conftest$ac_exeext
|
---|
1702 | }; then :
|
---|
1703 | ac_retval=0
|
---|
1704 | else
|
---|
1705 | $as_echo "$as_me: failed program was:" >&5
|
---|
1706 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1707 |
|
---|
1708 | ac_retval=1
|
---|
1709 | fi
|
---|
1710 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1711 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1712 | # interfere with the next link command; also delete a directory that is
|
---|
1713 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1714 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1715 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1716 | as_fn_set_status $ac_retval
|
---|
1717 |
|
---|
1718 | } # ac_fn_c_try_link
|
---|
1719 |
|
---|
1720 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1721 | # ----------------------------------
|
---|
1722 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1723 | ac_fn_c_check_func ()
|
---|
1724 | {
|
---|
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1727 | $as_echo_n "checking for $2... " >&6; }
|
---|
1728 | if eval \${$3+:} false; then :
|
---|
1729 | $as_echo_n "(cached) " >&6
|
---|
1730 | else
|
---|
1731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1732 | /* end confdefs.h. */
|
---|
1733 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1735 | #define $2 innocuous_$2
|
---|
1736 |
|
---|
1737 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1738 | which can conflict with char $2 (); below.
|
---|
1739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1740 | <limits.h> exists even on freestanding compilers. */
|
---|
1741 |
|
---|
1742 | #ifdef __STDC__
|
---|
1743 | # include <limits.h>
|
---|
1744 | #else
|
---|
1745 | # include <assert.h>
|
---|
1746 | #endif
|
---|
1747 |
|
---|
1748 | #undef $2
|
---|
1749 |
|
---|
1750 | /* Override any GCC internal prototype to avoid an error.
|
---|
1751 | Use char because int might match the return type of a GCC
|
---|
1752 | builtin and then its argument prototype would still apply. */
|
---|
1753 | #ifdef __cplusplus
|
---|
1754 | extern "C"
|
---|
1755 | #endif
|
---|
1756 | char $2 ();
|
---|
1757 | /* The GNU C library defines this for functions which it implements
|
---|
1758 | to always fail with ENOSYS. Some functions are actually named
|
---|
1759 | something starting with __ and the normal name is an alias. */
|
---|
1760 | #if defined __stub_$2 || defined __stub___$2
|
---|
1761 | choke me
|
---|
1762 | #endif
|
---|
1763 |
|
---|
1764 | int
|
---|
1765 | main ()
|
---|
1766 | {
|
---|
1767 | return $2 ();
|
---|
1768 | ;
|
---|
1769 | return 0;
|
---|
1770 | }
|
---|
1771 | _ACEOF
|
---|
1772 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1773 | eval "$3=yes"
|
---|
1774 | else
|
---|
1775 | eval "$3=no"
|
---|
1776 | fi
|
---|
1777 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1778 | conftest$ac_exeext conftest.$ac_ext
|
---|
1779 | fi
|
---|
1780 | eval ac_res=\$$3
|
---|
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1782 | $as_echo "$ac_res" >&6; }
|
---|
1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1784 |
|
---|
1785 | } # ac_fn_c_check_func
|
---|
1786 |
|
---|
1787 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1788 | # -------------------------------------------------------
|
---|
1789 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1790 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1791 | # accordingly.
|
---|
1792 | ac_fn_c_check_header_mongrel ()
|
---|
1793 | {
|
---|
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1795 | if eval \${$3+:} false; then :
|
---|
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1797 | $as_echo_n "checking for $2... " >&6; }
|
---|
1798 | if eval \${$3+:} false; then :
|
---|
1799 | $as_echo_n "(cached) " >&6
|
---|
1800 | fi
|
---|
1801 | eval ac_res=\$$3
|
---|
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1803 | $as_echo "$ac_res" >&6; }
|
---|
1804 | else
|
---|
1805 | # Is the header compilable?
|
---|
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1807 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1809 | /* end confdefs.h. */
|
---|
1810 | $4
|
---|
1811 | #include <$2>
|
---|
1812 | _ACEOF
|
---|
1813 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1814 | ac_header_compiler=yes
|
---|
1815 | else
|
---|
1816 | ac_header_compiler=no
|
---|
1817 | fi
|
---|
1818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1820 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1821 |
|
---|
1822 | # Is the header present?
|
---|
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1824 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1826 | /* end confdefs.h. */
|
---|
1827 | #include <$2>
|
---|
1828 | _ACEOF
|
---|
1829 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1830 | ac_header_preproc=yes
|
---|
1831 | else
|
---|
1832 | ac_header_preproc=no
|
---|
1833 | fi
|
---|
1834 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1836 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1837 |
|
---|
1838 | # So? What about this header?
|
---|
1839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1840 | yes:no: )
|
---|
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1842 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1844 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1845 | ;;
|
---|
1846 | no:yes:* )
|
---|
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1848 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1850 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1852 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1854 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1856 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1857 | ;;
|
---|
1858 | esac
|
---|
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1860 | $as_echo_n "checking for $2... " >&6; }
|
---|
1861 | if eval \${$3+:} false; then :
|
---|
1862 | $as_echo_n "(cached) " >&6
|
---|
1863 | else
|
---|
1864 | eval "$3=\$ac_header_compiler"
|
---|
1865 | fi
|
---|
1866 | eval ac_res=\$$3
|
---|
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1868 | $as_echo "$ac_res" >&6; }
|
---|
1869 | fi
|
---|
1870 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1871 |
|
---|
1872 | } # ac_fn_c_check_header_mongrel
|
---|
1873 |
|
---|
1874 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
---|
1875 | # ---------------------------------------------
|
---|
1876 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
---|
1877 | # accordingly.
|
---|
1878 | ac_fn_c_check_decl ()
|
---|
1879 | {
|
---|
1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1881 | as_decl_name=`echo $2|sed 's/ *(.*//'`
|
---|
1882 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
---|
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
---|
1884 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
---|
1885 | if eval \${$3+:} false; then :
|
---|
1886 | $as_echo_n "(cached) " >&6
|
---|
1887 | else
|
---|
1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1889 | /* end confdefs.h. */
|
---|
1890 | $4
|
---|
1891 | int
|
---|
1892 | main ()
|
---|
1893 | {
|
---|
1894 | #ifndef $as_decl_name
|
---|
1895 | #ifdef __cplusplus
|
---|
1896 | (void) $as_decl_use;
|
---|
1897 | #else
|
---|
1898 | (void) $as_decl_name;
|
---|
1899 | #endif
|
---|
1900 | #endif
|
---|
1901 |
|
---|
1902 | ;
|
---|
1903 | return 0;
|
---|
1904 | }
|
---|
1905 | _ACEOF
|
---|
1906 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1907 | eval "$3=yes"
|
---|
1908 | else
|
---|
1909 | eval "$3=no"
|
---|
1910 | fi
|
---|
1911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1912 | fi
|
---|
1913 | eval ac_res=\$$3
|
---|
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1915 | $as_echo "$ac_res" >&6; }
|
---|
1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1917 |
|
---|
1918 | } # ac_fn_c_check_decl
|
---|
1919 |
|
---|
1920 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1921 | # -------------------------------------------
|
---|
1922 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1923 | # variable VAR accordingly.
|
---|
1924 | ac_fn_c_check_type ()
|
---|
1925 | {
|
---|
1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1928 | $as_echo_n "checking for $2... " >&6; }
|
---|
1929 | if eval \${$3+:} false; then :
|
---|
1930 | $as_echo_n "(cached) " >&6
|
---|
1931 | else
|
---|
1932 | eval "$3=no"
|
---|
1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1934 | /* end confdefs.h. */
|
---|
1935 | $4
|
---|
1936 | int
|
---|
1937 | main ()
|
---|
1938 | {
|
---|
1939 | if (sizeof ($2))
|
---|
1940 | return 0;
|
---|
1941 | ;
|
---|
1942 | return 0;
|
---|
1943 | }
|
---|
1944 | _ACEOF
|
---|
1945 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1947 | /* end confdefs.h. */
|
---|
1948 | $4
|
---|
1949 | int
|
---|
1950 | main ()
|
---|
1951 | {
|
---|
1952 | if (sizeof (($2)))
|
---|
1953 | return 0;
|
---|
1954 | ;
|
---|
1955 | return 0;
|
---|
1956 | }
|
---|
1957 | _ACEOF
|
---|
1958 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1959 |
|
---|
1960 | else
|
---|
1961 | eval "$3=yes"
|
---|
1962 | fi
|
---|
1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1964 | fi
|
---|
1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1966 | fi
|
---|
1967 | eval ac_res=\$$3
|
---|
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1969 | $as_echo "$ac_res" >&6; }
|
---|
1970 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1971 |
|
---|
1972 | } # ac_fn_c_check_type
|
---|
1973 |
|
---|
1974 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
---|
1975 | # ----------------------------------------------------
|
---|
1976 | # Tries to find if the field MEMBER exists in type AGGR, after including
|
---|
1977 | # INCLUDES, setting cache variable VAR accordingly.
|
---|
1978 | ac_fn_c_check_member ()
|
---|
1979 | {
|
---|
1980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
---|
1982 | $as_echo_n "checking for $2.$3... " >&6; }
|
---|
1983 | if eval \${$4+:} false; then :
|
---|
1984 | $as_echo_n "(cached) " >&6
|
---|
1985 | else
|
---|
1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1987 | /* end confdefs.h. */
|
---|
1988 | $5
|
---|
1989 | int
|
---|
1990 | main ()
|
---|
1991 | {
|
---|
1992 | static $2 ac_aggr;
|
---|
1993 | if (ac_aggr.$3)
|
---|
1994 | return 0;
|
---|
1995 | ;
|
---|
1996 | return 0;
|
---|
1997 | }
|
---|
1998 | _ACEOF
|
---|
1999 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2000 | eval "$4=yes"
|
---|
2001 | else
|
---|
2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2003 | /* end confdefs.h. */
|
---|
2004 | $5
|
---|
2005 | int
|
---|
2006 | main ()
|
---|
2007 | {
|
---|
2008 | static $2 ac_aggr;
|
---|
2009 | if (sizeof ac_aggr.$3)
|
---|
2010 | return 0;
|
---|
2011 | ;
|
---|
2012 | return 0;
|
---|
2013 | }
|
---|
2014 | _ACEOF
|
---|
2015 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2016 | eval "$4=yes"
|
---|
2017 | else
|
---|
2018 | eval "$4=no"
|
---|
2019 | fi
|
---|
2020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2021 | fi
|
---|
2022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2023 | fi
|
---|
2024 | eval ac_res=\$$4
|
---|
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
2026 | $as_echo "$ac_res" >&6; }
|
---|
2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2028 |
|
---|
2029 | } # ac_fn_c_check_member
|
---|
2030 | cat >config.log <<_ACEOF
|
---|
2031 | This file contains any messages produced by compilers while
|
---|
2032 | running configure, to aid debugging if configure makes a mistake.
|
---|
2033 |
|
---|
2034 | It was created by rdesktop $as_me 1.8.3, which was
|
---|
2035 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
2036 |
|
---|
2037 | $ $0 $@
|
---|
2038 |
|
---|
2039 | _ACEOF
|
---|
2040 | exec 5>>config.log
|
---|
2041 | {
|
---|
2042 | cat <<_ASUNAME
|
---|
2043 | ## --------- ##
|
---|
2044 | ## Platform. ##
|
---|
2045 | ## --------- ##
|
---|
2046 |
|
---|
2047 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2048 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2049 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2050 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2051 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2052 |
|
---|
2053 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2054 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2055 |
|
---|
2056 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2057 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2058 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2059 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2060 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2061 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2062 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2063 |
|
---|
2064 | _ASUNAME
|
---|
2065 |
|
---|
2066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2067 | for as_dir in $PATH
|
---|
2068 | do
|
---|
2069 | IFS=$as_save_IFS
|
---|
2070 | test -z "$as_dir" && as_dir=.
|
---|
2071 | $as_echo "PATH: $as_dir"
|
---|
2072 | done
|
---|
2073 | IFS=$as_save_IFS
|
---|
2074 |
|
---|
2075 | } >&5
|
---|
2076 |
|
---|
2077 | cat >&5 <<_ACEOF
|
---|
2078 |
|
---|
2079 |
|
---|
2080 | ## ----------- ##
|
---|
2081 | ## Core tests. ##
|
---|
2082 | ## ----------- ##
|
---|
2083 |
|
---|
2084 | _ACEOF
|
---|
2085 |
|
---|
2086 |
|
---|
2087 | # Keep a trace of the command line.
|
---|
2088 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2089 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2090 | # Also quote any args containing shell meta-characters.
|
---|
2091 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2092 | ac_configure_args=
|
---|
2093 | ac_configure_args0=
|
---|
2094 | ac_configure_args1=
|
---|
2095 | ac_must_keep_next=false
|
---|
2096 | for ac_pass in 1 2
|
---|
2097 | do
|
---|
2098 | for ac_arg
|
---|
2099 | do
|
---|
2100 | case $ac_arg in
|
---|
2101 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2102 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2103 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2104 | continue ;;
|
---|
2105 | *\'*)
|
---|
2106 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2107 | esac
|
---|
2108 | case $ac_pass in
|
---|
2109 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2110 | 2)
|
---|
2111 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2112 | if test $ac_must_keep_next = true; then
|
---|
2113 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2114 | else
|
---|
2115 | case $ac_arg in
|
---|
2116 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2117 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2118 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2119 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2120 | case "$ac_configure_args0 " in
|
---|
2121 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2122 | esac
|
---|
2123 | ;;
|
---|
2124 | -* ) ac_must_keep_next=true ;;
|
---|
2125 | esac
|
---|
2126 | fi
|
---|
2127 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2128 | ;;
|
---|
2129 | esac
|
---|
2130 | done
|
---|
2131 | done
|
---|
2132 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2133 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2134 |
|
---|
2135 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2136 | # config.log. We remove comments because anyway the quotes in there
|
---|
2137 | # would cause problems or look ugly.
|
---|
2138 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2139 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2140 | trap 'exit_status=$?
|
---|
2141 | # Save into config.log some information that might help in debugging.
|
---|
2142 | {
|
---|
2143 | echo
|
---|
2144 |
|
---|
2145 | $as_echo "## ---------------- ##
|
---|
2146 | ## Cache variables. ##
|
---|
2147 | ## ---------------- ##"
|
---|
2148 | echo
|
---|
2149 | # The following way of writing the cache mishandles newlines in values,
|
---|
2150 | (
|
---|
2151 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2152 | eval ac_val=\$$ac_var
|
---|
2153 | case $ac_val in #(
|
---|
2154 | *${as_nl}*)
|
---|
2155 | case $ac_var in #(
|
---|
2156 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2157 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2158 | esac
|
---|
2159 | case $ac_var in #(
|
---|
2160 | _ | IFS | as_nl) ;; #(
|
---|
2161 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2162 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2163 | esac ;;
|
---|
2164 | esac
|
---|
2165 | done
|
---|
2166 | (set) 2>&1 |
|
---|
2167 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2168 | *${as_nl}ac_space=\ *)
|
---|
2169 | sed -n \
|
---|
2170 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2171 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2172 | ;; #(
|
---|
2173 | *)
|
---|
2174 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2175 | ;;
|
---|
2176 | esac |
|
---|
2177 | sort
|
---|
2178 | )
|
---|
2179 | echo
|
---|
2180 |
|
---|
2181 | $as_echo "## ----------------- ##
|
---|
2182 | ## Output variables. ##
|
---|
2183 | ## ----------------- ##"
|
---|
2184 | echo
|
---|
2185 | for ac_var in $ac_subst_vars
|
---|
2186 | do
|
---|
2187 | eval ac_val=\$$ac_var
|
---|
2188 | case $ac_val in
|
---|
2189 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2190 | esac
|
---|
2191 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2192 | done | sort
|
---|
2193 | echo
|
---|
2194 |
|
---|
2195 | if test -n "$ac_subst_files"; then
|
---|
2196 | $as_echo "## ------------------- ##
|
---|
2197 | ## File substitutions. ##
|
---|
2198 | ## ------------------- ##"
|
---|
2199 | echo
|
---|
2200 | for ac_var in $ac_subst_files
|
---|
2201 | do
|
---|
2202 | eval ac_val=\$$ac_var
|
---|
2203 | case $ac_val in
|
---|
2204 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2205 | esac
|
---|
2206 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2207 | done | sort
|
---|
2208 | echo
|
---|
2209 | fi
|
---|
2210 |
|
---|
2211 | if test -s confdefs.h; then
|
---|
2212 | $as_echo "## ----------- ##
|
---|
2213 | ## confdefs.h. ##
|
---|
2214 | ## ----------- ##"
|
---|
2215 | echo
|
---|
2216 | cat confdefs.h
|
---|
2217 | echo
|
---|
2218 | fi
|
---|
2219 | test "$ac_signal" != 0 &&
|
---|
2220 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2221 | $as_echo "$as_me: exit $exit_status"
|
---|
2222 | } >&5
|
---|
2223 | rm -f core *.core core.conftest.* &&
|
---|
2224 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2225 | exit $exit_status
|
---|
2226 | ' 0
|
---|
2227 | for ac_signal in 1 2 13 15; do
|
---|
2228 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2229 | done
|
---|
2230 | ac_signal=0
|
---|
2231 |
|
---|
2232 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2233 | rm -f -r conftest* confdefs.h
|
---|
2234 |
|
---|
2235 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2236 |
|
---|
2237 | # Predefined preprocessor variables.
|
---|
2238 |
|
---|
2239 | cat >>confdefs.h <<_ACEOF
|
---|
2240 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2241 | _ACEOF
|
---|
2242 |
|
---|
2243 | cat >>confdefs.h <<_ACEOF
|
---|
2244 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2245 | _ACEOF
|
---|
2246 |
|
---|
2247 | cat >>confdefs.h <<_ACEOF
|
---|
2248 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2249 | _ACEOF
|
---|
2250 |
|
---|
2251 | cat >>confdefs.h <<_ACEOF
|
---|
2252 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2253 | _ACEOF
|
---|
2254 |
|
---|
2255 | cat >>confdefs.h <<_ACEOF
|
---|
2256 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2257 | _ACEOF
|
---|
2258 |
|
---|
2259 | cat >>confdefs.h <<_ACEOF
|
---|
2260 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2261 | _ACEOF
|
---|
2262 |
|
---|
2263 |
|
---|
2264 | # Let the site file select an alternate cache file if it wants to.
|
---|
2265 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2266 | ac_site_file1=NONE
|
---|
2267 | ac_site_file2=NONE
|
---|
2268 | if test -n "$CONFIG_SITE"; then
|
---|
2269 | # We do not want a PATH search for config.site.
|
---|
2270 | case $CONFIG_SITE in #((
|
---|
2271 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2272 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2273 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2274 | esac
|
---|
2275 | elif test "x$prefix" != xNONE; then
|
---|
2276 | ac_site_file1=$prefix/share/config.site
|
---|
2277 | ac_site_file2=$prefix/etc/config.site
|
---|
2278 | else
|
---|
2279 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2280 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2281 | fi
|
---|
2282 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2283 | do
|
---|
2284 | test "x$ac_site_file" = xNONE && continue
|
---|
2285 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2287 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2288 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2289 | . "$ac_site_file" \
|
---|
2290 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2292 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2293 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2294 | fi
|
---|
2295 | done
|
---|
2296 |
|
---|
2297 | if test -r "$cache_file"; then
|
---|
2298 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2299 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2300 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2302 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2303 | case $cache_file in
|
---|
2304 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2305 | *) . "./$cache_file";;
|
---|
2306 | esac
|
---|
2307 | fi
|
---|
2308 | else
|
---|
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2310 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2311 | >$cache_file
|
---|
2312 | fi
|
---|
2313 |
|
---|
2314 | # Check that the precious variables saved in the cache have kept the same
|
---|
2315 | # value.
|
---|
2316 | ac_cache_corrupted=false
|
---|
2317 | for ac_var in $ac_precious_vars; do
|
---|
2318 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2319 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2320 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2321 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2322 | case $ac_old_set,$ac_new_set in
|
---|
2323 | set,)
|
---|
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2325 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2326 | ac_cache_corrupted=: ;;
|
---|
2327 | ,set)
|
---|
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2329 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2330 | ac_cache_corrupted=: ;;
|
---|
2331 | ,);;
|
---|
2332 | *)
|
---|
2333 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2334 | # differences in whitespace do not lead to failure.
|
---|
2335 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2336 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2337 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2339 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2340 | ac_cache_corrupted=:
|
---|
2341 | else
|
---|
2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2343 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2344 | eval $ac_var=\$ac_old_val
|
---|
2345 | fi
|
---|
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2347 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2349 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2350 | fi;;
|
---|
2351 | esac
|
---|
2352 | # Pass precious variables to config.status.
|
---|
2353 | if test "$ac_new_set" = set; then
|
---|
2354 | case $ac_new_val in
|
---|
2355 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2356 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2357 | esac
|
---|
2358 | case " $ac_configure_args " in
|
---|
2359 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2360 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2361 | esac
|
---|
2362 | fi
|
---|
2363 | done
|
---|
2364 | if $ac_cache_corrupted; then
|
---|
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2368 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2369 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2370 | fi
|
---|
2371 | ## -------------------- ##
|
---|
2372 | ## Main body of script. ##
|
---|
2373 | ## -------------------- ##
|
---|
2374 |
|
---|
2375 | ac_ext=c
|
---|
2376 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2380 |
|
---|
2381 |
|
---|
2382 |
|
---|
2383 |
|
---|
2384 |
|
---|
2385 | ac_aux_dir=
|
---|
2386 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2387 | if test -f "$ac_dir/install-sh"; then
|
---|
2388 | ac_aux_dir=$ac_dir
|
---|
2389 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2390 | break
|
---|
2391 | elif test -f "$ac_dir/install.sh"; then
|
---|
2392 | ac_aux_dir=$ac_dir
|
---|
2393 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2394 | break
|
---|
2395 | elif test -f "$ac_dir/shtool"; then
|
---|
2396 | ac_aux_dir=$ac_dir
|
---|
2397 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2398 | break
|
---|
2399 | fi
|
---|
2400 | done
|
---|
2401 | if test -z "$ac_aux_dir"; then
|
---|
2402 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2403 | fi
|
---|
2404 |
|
---|
2405 | # These three variables are undocumented and unsupported,
|
---|
2406 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2407 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2408 | # whose full name contains unusual characters.
|
---|
2409 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2410 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2411 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2412 |
|
---|
2413 |
|
---|
2414 | # Make sure we can run config.sub.
|
---|
2415 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2416 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2417 |
|
---|
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2419 | $as_echo_n "checking build system type... " >&6; }
|
---|
2420 | if ${ac_cv_build+:} false; then :
|
---|
2421 | $as_echo_n "(cached) " >&6
|
---|
2422 | else
|
---|
2423 | ac_build_alias=$build_alias
|
---|
2424 | test "x$ac_build_alias" = x &&
|
---|
2425 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2426 | test "x$ac_build_alias" = x &&
|
---|
2427 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2428 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2429 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2430 |
|
---|
2431 | fi
|
---|
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2433 | $as_echo "$ac_cv_build" >&6; }
|
---|
2434 | case $ac_cv_build in
|
---|
2435 | *-*-*) ;;
|
---|
2436 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2437 | esac
|
---|
2438 | build=$ac_cv_build
|
---|
2439 | ac_save_IFS=$IFS; IFS='-'
|
---|
2440 | set x $ac_cv_build
|
---|
2441 | shift
|
---|
2442 | build_cpu=$1
|
---|
2443 | build_vendor=$2
|
---|
2444 | shift; shift
|
---|
2445 | # Remember, the first character of IFS is used to create $*,
|
---|
2446 | # except with old shells:
|
---|
2447 | build_os=$*
|
---|
2448 | IFS=$ac_save_IFS
|
---|
2449 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2450 |
|
---|
2451 |
|
---|
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2453 | $as_echo_n "checking host system type... " >&6; }
|
---|
2454 | if ${ac_cv_host+:} false; then :
|
---|
2455 | $as_echo_n "(cached) " >&6
|
---|
2456 | else
|
---|
2457 | if test "x$host_alias" = x; then
|
---|
2458 | ac_cv_host=$ac_cv_build
|
---|
2459 | else
|
---|
2460 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2461 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2462 | fi
|
---|
2463 |
|
---|
2464 | fi
|
---|
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2466 | $as_echo "$ac_cv_host" >&6; }
|
---|
2467 | case $ac_cv_host in
|
---|
2468 | *-*-*) ;;
|
---|
2469 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2470 | esac
|
---|
2471 | host=$ac_cv_host
|
---|
2472 | ac_save_IFS=$IFS; IFS='-'
|
---|
2473 | set x $ac_cv_host
|
---|
2474 | shift
|
---|
2475 | host_cpu=$1
|
---|
2476 | host_vendor=$2
|
---|
2477 | shift; shift
|
---|
2478 | # Remember, the first character of IFS is used to create $*,
|
---|
2479 | # except with old shells:
|
---|
2480 | host_os=$*
|
---|
2481 | IFS=$ac_save_IFS
|
---|
2482 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2483 |
|
---|
2484 |
|
---|
2485 |
|
---|
2486 | ac_ext=c
|
---|
2487 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2491 | if test -n "$ac_tool_prefix"; then
|
---|
2492 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2493 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2495 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2496 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2497 | $as_echo_n "(cached) " >&6
|
---|
2498 | else
|
---|
2499 | if test -n "$CC"; then
|
---|
2500 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2501 | else
|
---|
2502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2503 | for as_dir in $PATH
|
---|
2504 | do
|
---|
2505 | IFS=$as_save_IFS
|
---|
2506 | test -z "$as_dir" && as_dir=.
|
---|
2507 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2509 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2511 | break 2
|
---|
2512 | fi
|
---|
2513 | done
|
---|
2514 | done
|
---|
2515 | IFS=$as_save_IFS
|
---|
2516 |
|
---|
2517 | fi
|
---|
2518 | fi
|
---|
2519 | CC=$ac_cv_prog_CC
|
---|
2520 | if test -n "$CC"; then
|
---|
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2522 | $as_echo "$CC" >&6; }
|
---|
2523 | else
|
---|
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2525 | $as_echo "no" >&6; }
|
---|
2526 | fi
|
---|
2527 |
|
---|
2528 |
|
---|
2529 | fi
|
---|
2530 | if test -z "$ac_cv_prog_CC"; then
|
---|
2531 | ac_ct_CC=$CC
|
---|
2532 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2533 | set dummy gcc; ac_word=$2
|
---|
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2535 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2536 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2537 | $as_echo_n "(cached) " >&6
|
---|
2538 | else
|
---|
2539 | if test -n "$ac_ct_CC"; then
|
---|
2540 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2541 | else
|
---|
2542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2543 | for as_dir in $PATH
|
---|
2544 | do
|
---|
2545 | IFS=$as_save_IFS
|
---|
2546 | test -z "$as_dir" && as_dir=.
|
---|
2547 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2549 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2551 | break 2
|
---|
2552 | fi
|
---|
2553 | done
|
---|
2554 | done
|
---|
2555 | IFS=$as_save_IFS
|
---|
2556 |
|
---|
2557 | fi
|
---|
2558 | fi
|
---|
2559 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2560 | if test -n "$ac_ct_CC"; then
|
---|
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2562 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2563 | else
|
---|
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2565 | $as_echo "no" >&6; }
|
---|
2566 | fi
|
---|
2567 |
|
---|
2568 | if test "x$ac_ct_CC" = x; then
|
---|
2569 | CC=""
|
---|
2570 | else
|
---|
2571 | case $cross_compiling:$ac_tool_warned in
|
---|
2572 | yes:)
|
---|
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2575 | ac_tool_warned=yes ;;
|
---|
2576 | esac
|
---|
2577 | CC=$ac_ct_CC
|
---|
2578 | fi
|
---|
2579 | else
|
---|
2580 | CC="$ac_cv_prog_CC"
|
---|
2581 | fi
|
---|
2582 |
|
---|
2583 | if test -z "$CC"; then
|
---|
2584 | if test -n "$ac_tool_prefix"; then
|
---|
2585 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2586 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2588 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2589 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2590 | $as_echo_n "(cached) " >&6
|
---|
2591 | else
|
---|
2592 | if test -n "$CC"; then
|
---|
2593 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2594 | else
|
---|
2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2596 | for as_dir in $PATH
|
---|
2597 | do
|
---|
2598 | IFS=$as_save_IFS
|
---|
2599 | test -z "$as_dir" && as_dir=.
|
---|
2600 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2602 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2604 | break 2
|
---|
2605 | fi
|
---|
2606 | done
|
---|
2607 | done
|
---|
2608 | IFS=$as_save_IFS
|
---|
2609 |
|
---|
2610 | fi
|
---|
2611 | fi
|
---|
2612 | CC=$ac_cv_prog_CC
|
---|
2613 | if test -n "$CC"; then
|
---|
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2615 | $as_echo "$CC" >&6; }
|
---|
2616 | else
|
---|
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2618 | $as_echo "no" >&6; }
|
---|
2619 | fi
|
---|
2620 |
|
---|
2621 |
|
---|
2622 | fi
|
---|
2623 | fi
|
---|
2624 | if test -z "$CC"; then
|
---|
2625 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2626 | set dummy cc; ac_word=$2
|
---|
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2628 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2629 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2630 | $as_echo_n "(cached) " >&6
|
---|
2631 | else
|
---|
2632 | if test -n "$CC"; then
|
---|
2633 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2634 | else
|
---|
2635 | ac_prog_rejected=no
|
---|
2636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2637 | for as_dir in $PATH
|
---|
2638 | do
|
---|
2639 | IFS=$as_save_IFS
|
---|
2640 | test -z "$as_dir" && as_dir=.
|
---|
2641 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2643 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2644 | ac_prog_rejected=yes
|
---|
2645 | continue
|
---|
2646 | fi
|
---|
2647 | ac_cv_prog_CC="cc"
|
---|
2648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2649 | break 2
|
---|
2650 | fi
|
---|
2651 | done
|
---|
2652 | done
|
---|
2653 | IFS=$as_save_IFS
|
---|
2654 |
|
---|
2655 | if test $ac_prog_rejected = yes; then
|
---|
2656 | # We found a bogon in the path, so make sure we never use it.
|
---|
2657 | set dummy $ac_cv_prog_CC
|
---|
2658 | shift
|
---|
2659 | if test $# != 0; then
|
---|
2660 | # We chose a different compiler from the bogus one.
|
---|
2661 | # However, it has the same basename, so the bogon will be chosen
|
---|
2662 | # first if we set CC to just the basename; use the full file name.
|
---|
2663 | shift
|
---|
2664 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2665 | fi
|
---|
2666 | fi
|
---|
2667 | fi
|
---|
2668 | fi
|
---|
2669 | CC=$ac_cv_prog_CC
|
---|
2670 | if test -n "$CC"; then
|
---|
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2672 | $as_echo "$CC" >&6; }
|
---|
2673 | else
|
---|
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2675 | $as_echo "no" >&6; }
|
---|
2676 | fi
|
---|
2677 |
|
---|
2678 |
|
---|
2679 | fi
|
---|
2680 | if test -z "$CC"; then
|
---|
2681 | if test -n "$ac_tool_prefix"; then
|
---|
2682 | for ac_prog in cl.exe
|
---|
2683 | do
|
---|
2684 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2685 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2687 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2688 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2689 | $as_echo_n "(cached) " >&6
|
---|
2690 | else
|
---|
2691 | if test -n "$CC"; then
|
---|
2692 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2693 | else
|
---|
2694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2695 | for as_dir in $PATH
|
---|
2696 | do
|
---|
2697 | IFS=$as_save_IFS
|
---|
2698 | test -z "$as_dir" && as_dir=.
|
---|
2699 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2701 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2703 | break 2
|
---|
2704 | fi
|
---|
2705 | done
|
---|
2706 | done
|
---|
2707 | IFS=$as_save_IFS
|
---|
2708 |
|
---|
2709 | fi
|
---|
2710 | fi
|
---|
2711 | CC=$ac_cv_prog_CC
|
---|
2712 | if test -n "$CC"; then
|
---|
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2714 | $as_echo "$CC" >&6; }
|
---|
2715 | else
|
---|
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2717 | $as_echo "no" >&6; }
|
---|
2718 | fi
|
---|
2719 |
|
---|
2720 |
|
---|
2721 | test -n "$CC" && break
|
---|
2722 | done
|
---|
2723 | fi
|
---|
2724 | if test -z "$CC"; then
|
---|
2725 | ac_ct_CC=$CC
|
---|
2726 | for ac_prog in cl.exe
|
---|
2727 | do
|
---|
2728 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2729 | set dummy $ac_prog; ac_word=$2
|
---|
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2731 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2732 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2733 | $as_echo_n "(cached) " >&6
|
---|
2734 | else
|
---|
2735 | if test -n "$ac_ct_CC"; then
|
---|
2736 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2737 | else
|
---|
2738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2739 | for as_dir in $PATH
|
---|
2740 | do
|
---|
2741 | IFS=$as_save_IFS
|
---|
2742 | test -z "$as_dir" && as_dir=.
|
---|
2743 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2745 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2747 | break 2
|
---|
2748 | fi
|
---|
2749 | done
|
---|
2750 | done
|
---|
2751 | IFS=$as_save_IFS
|
---|
2752 |
|
---|
2753 | fi
|
---|
2754 | fi
|
---|
2755 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2756 | if test -n "$ac_ct_CC"; then
|
---|
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2758 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2759 | else
|
---|
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2761 | $as_echo "no" >&6; }
|
---|
2762 | fi
|
---|
2763 |
|
---|
2764 |
|
---|
2765 | test -n "$ac_ct_CC" && break
|
---|
2766 | done
|
---|
2767 |
|
---|
2768 | if test "x$ac_ct_CC" = x; then
|
---|
2769 | CC=""
|
---|
2770 | else
|
---|
2771 | case $cross_compiling:$ac_tool_warned in
|
---|
2772 | yes:)
|
---|
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2775 | ac_tool_warned=yes ;;
|
---|
2776 | esac
|
---|
2777 | CC=$ac_ct_CC
|
---|
2778 | fi
|
---|
2779 | fi
|
---|
2780 |
|
---|
2781 | fi
|
---|
2782 |
|
---|
2783 |
|
---|
2784 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2785 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2786 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2787 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2788 |
|
---|
2789 | # Provide some information about the compiler.
|
---|
2790 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2791 | set X $ac_compile
|
---|
2792 | ac_compiler=$2
|
---|
2793 | for ac_option in --version -v -V -qversion; do
|
---|
2794 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2795 | case "(($ac_try" in
|
---|
2796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2797 | *) ac_try_echo=$ac_try;;
|
---|
2798 | esac
|
---|
2799 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2800 | $as_echo "$ac_try_echo"; } >&5
|
---|
2801 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2802 | ac_status=$?
|
---|
2803 | if test -s conftest.err; then
|
---|
2804 | sed '10a\
|
---|
2805 | ... rest of stderr output deleted ...
|
---|
2806 | 10q' conftest.err >conftest.er1
|
---|
2807 | cat conftest.er1 >&5
|
---|
2808 | fi
|
---|
2809 | rm -f conftest.er1 conftest.err
|
---|
2810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2811 | test $ac_status = 0; }
|
---|
2812 | done
|
---|
2813 |
|
---|
2814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2815 | /* end confdefs.h. */
|
---|
2816 |
|
---|
2817 | int
|
---|
2818 | main ()
|
---|
2819 | {
|
---|
2820 |
|
---|
2821 | ;
|
---|
2822 | return 0;
|
---|
2823 | }
|
---|
2824 | _ACEOF
|
---|
2825 | ac_clean_files_save=$ac_clean_files
|
---|
2826 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2827 | # Try to create an executable without -o first, disregard a.out.
|
---|
2828 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2829 | # of exeext.
|
---|
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2831 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2832 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2833 |
|
---|
2834 | # The possible output files:
|
---|
2835 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2836 |
|
---|
2837 | ac_rmfiles=
|
---|
2838 | for ac_file in $ac_files
|
---|
2839 | do
|
---|
2840 | case $ac_file in
|
---|
2841 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2842 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2843 | esac
|
---|
2844 | done
|
---|
2845 | rm -f $ac_rmfiles
|
---|
2846 |
|
---|
2847 | if { { ac_try="$ac_link_default"
|
---|
2848 | case "(($ac_try" in
|
---|
2849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2850 | *) ac_try_echo=$ac_try;;
|
---|
2851 | esac
|
---|
2852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2853 | $as_echo "$ac_try_echo"; } >&5
|
---|
2854 | (eval "$ac_link_default") 2>&5
|
---|
2855 | ac_status=$?
|
---|
2856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2857 | test $ac_status = 0; }; then :
|
---|
2858 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2859 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2860 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2861 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2862 | # Autoconf.
|
---|
2863 | for ac_file in $ac_files ''
|
---|
2864 | do
|
---|
2865 | test -f "$ac_file" || continue
|
---|
2866 | case $ac_file in
|
---|
2867 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2868 | ;;
|
---|
2869 | [ab].out )
|
---|
2870 | # We found the default executable, but exeext='' is most
|
---|
2871 | # certainly right.
|
---|
2872 | break;;
|
---|
2873 | *.* )
|
---|
2874 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2875 | then :; else
|
---|
2876 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2877 | fi
|
---|
2878 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2879 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2880 | # argument, so we may need to know it at that point already.
|
---|
2881 | # Even if this section looks crufty: it has the advantage of
|
---|
2882 | # actually working.
|
---|
2883 | break;;
|
---|
2884 | * )
|
---|
2885 | break;;
|
---|
2886 | esac
|
---|
2887 | done
|
---|
2888 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2889 |
|
---|
2890 | else
|
---|
2891 | ac_file=''
|
---|
2892 | fi
|
---|
2893 | if test -z "$ac_file"; then :
|
---|
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2895 | $as_echo "no" >&6; }
|
---|
2896 | $as_echo "$as_me: failed program was:" >&5
|
---|
2897 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2898 |
|
---|
2899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2901 | as_fn_error 77 "C compiler cannot create executables
|
---|
2902 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2903 | else
|
---|
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2905 | $as_echo "yes" >&6; }
|
---|
2906 | fi
|
---|
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2908 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2910 | $as_echo "$ac_file" >&6; }
|
---|
2911 | ac_exeext=$ac_cv_exeext
|
---|
2912 |
|
---|
2913 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2914 | ac_clean_files=$ac_clean_files_save
|
---|
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2916 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2917 | if { { ac_try="$ac_link"
|
---|
2918 | case "(($ac_try" in
|
---|
2919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2920 | *) ac_try_echo=$ac_try;;
|
---|
2921 | esac
|
---|
2922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2923 | $as_echo "$ac_try_echo"; } >&5
|
---|
2924 | (eval "$ac_link") 2>&5
|
---|
2925 | ac_status=$?
|
---|
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2927 | test $ac_status = 0; }; then :
|
---|
2928 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2929 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2930 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2931 | # `rm'.
|
---|
2932 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2933 | test -f "$ac_file" || continue
|
---|
2934 | case $ac_file in
|
---|
2935 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2936 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2937 | break;;
|
---|
2938 | * ) break;;
|
---|
2939 | esac
|
---|
2940 | done
|
---|
2941 | else
|
---|
2942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2944 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2945 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2946 | fi
|
---|
2947 | rm -f conftest conftest$ac_cv_exeext
|
---|
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2949 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2950 |
|
---|
2951 | rm -f conftest.$ac_ext
|
---|
2952 | EXEEXT=$ac_cv_exeext
|
---|
2953 | ac_exeext=$EXEEXT
|
---|
2954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2955 | /* end confdefs.h. */
|
---|
2956 | #include <stdio.h>
|
---|
2957 | int
|
---|
2958 | main ()
|
---|
2959 | {
|
---|
2960 | FILE *f = fopen ("conftest.out", "w");
|
---|
2961 | return ferror (f) || fclose (f) != 0;
|
---|
2962 |
|
---|
2963 | ;
|
---|
2964 | return 0;
|
---|
2965 | }
|
---|
2966 | _ACEOF
|
---|
2967 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2968 | # Check that the compiler produces executables we can run. If not, either
|
---|
2969 | # the compiler is broken, or we cross compile.
|
---|
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2971 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2972 | if test "$cross_compiling" != yes; then
|
---|
2973 | { { ac_try="$ac_link"
|
---|
2974 | case "(($ac_try" in
|
---|
2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2976 | *) ac_try_echo=$ac_try;;
|
---|
2977 | esac
|
---|
2978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2979 | $as_echo "$ac_try_echo"; } >&5
|
---|
2980 | (eval "$ac_link") 2>&5
|
---|
2981 | ac_status=$?
|
---|
2982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2983 | test $ac_status = 0; }
|
---|
2984 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2985 | { { case "(($ac_try" in
|
---|
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2987 | *) ac_try_echo=$ac_try;;
|
---|
2988 | esac
|
---|
2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2990 | $as_echo "$ac_try_echo"; } >&5
|
---|
2991 | (eval "$ac_try") 2>&5
|
---|
2992 | ac_status=$?
|
---|
2993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2994 | test $ac_status = 0; }; }; then
|
---|
2995 | cross_compiling=no
|
---|
2996 | else
|
---|
2997 | if test "$cross_compiling" = maybe; then
|
---|
2998 | cross_compiling=yes
|
---|
2999 | else
|
---|
3000 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3001 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3002 | as_fn_error $? "cannot run C compiled programs.
|
---|
3003 | If you meant to cross compile, use \`--host'.
|
---|
3004 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3005 | fi
|
---|
3006 | fi
|
---|
3007 | fi
|
---|
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3009 | $as_echo "$cross_compiling" >&6; }
|
---|
3010 |
|
---|
3011 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3012 | ac_clean_files=$ac_clean_files_save
|
---|
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3014 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3015 | if ${ac_cv_objext+:} false; then :
|
---|
3016 | $as_echo_n "(cached) " >&6
|
---|
3017 | else
|
---|
3018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3019 | /* end confdefs.h. */
|
---|
3020 |
|
---|
3021 | int
|
---|
3022 | main ()
|
---|
3023 | {
|
---|
3024 |
|
---|
3025 | ;
|
---|
3026 | return 0;
|
---|
3027 | }
|
---|
3028 | _ACEOF
|
---|
3029 | rm -f conftest.o conftest.obj
|
---|
3030 | if { { ac_try="$ac_compile"
|
---|
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_compile") 2>&5
|
---|
3038 | ac_status=$?
|
---|
3039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3040 | test $ac_status = 0; }; then :
|
---|
3041 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3042 | test -f "$ac_file" || continue;
|
---|
3043 | case $ac_file in
|
---|
3044 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3045 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3046 | break;;
|
---|
3047 | esac
|
---|
3048 | done
|
---|
3049 | else
|
---|
3050 | $as_echo "$as_me: failed program was:" >&5
|
---|
3051 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3052 |
|
---|
3053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3055 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3056 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3057 | fi
|
---|
3058 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3059 | fi
|
---|
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3061 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3062 | OBJEXT=$ac_cv_objext
|
---|
3063 | ac_objext=$OBJEXT
|
---|
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3065 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3066 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3067 | $as_echo_n "(cached) " >&6
|
---|
3068 | else
|
---|
3069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3070 | /* end confdefs.h. */
|
---|
3071 |
|
---|
3072 | int
|
---|
3073 | main ()
|
---|
3074 | {
|
---|
3075 | #ifndef __GNUC__
|
---|
3076 | choke me
|
---|
3077 | #endif
|
---|
3078 |
|
---|
3079 | ;
|
---|
3080 | return 0;
|
---|
3081 | }
|
---|
3082 | _ACEOF
|
---|
3083 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3084 | ac_compiler_gnu=yes
|
---|
3085 | else
|
---|
3086 | ac_compiler_gnu=no
|
---|
3087 | fi
|
---|
3088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3089 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3090 |
|
---|
3091 | fi
|
---|
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3093 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3094 | if test $ac_compiler_gnu = yes; then
|
---|
3095 | GCC=yes
|
---|
3096 | else
|
---|
3097 | GCC=
|
---|
3098 | fi
|
---|
3099 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3100 | ac_save_CFLAGS=$CFLAGS
|
---|
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3102 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3103 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3104 | $as_echo_n "(cached) " >&6
|
---|
3105 | else
|
---|
3106 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3107 | ac_c_werror_flag=yes
|
---|
3108 | ac_cv_prog_cc_g=no
|
---|
3109 | CFLAGS="-g"
|
---|
3110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3111 | /* end confdefs.h. */
|
---|
3112 |
|
---|
3113 | int
|
---|
3114 | main ()
|
---|
3115 | {
|
---|
3116 |
|
---|
3117 | ;
|
---|
3118 | return 0;
|
---|
3119 | }
|
---|
3120 | _ACEOF
|
---|
3121 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3122 | ac_cv_prog_cc_g=yes
|
---|
3123 | else
|
---|
3124 | CFLAGS=""
|
---|
3125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3126 | /* end confdefs.h. */
|
---|
3127 |
|
---|
3128 | int
|
---|
3129 | main ()
|
---|
3130 | {
|
---|
3131 |
|
---|
3132 | ;
|
---|
3133 | return 0;
|
---|
3134 | }
|
---|
3135 | _ACEOF
|
---|
3136 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3137 |
|
---|
3138 | else
|
---|
3139 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3140 | CFLAGS="-g"
|
---|
3141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3142 | /* end confdefs.h. */
|
---|
3143 |
|
---|
3144 | int
|
---|
3145 | main ()
|
---|
3146 | {
|
---|
3147 |
|
---|
3148 | ;
|
---|
3149 | return 0;
|
---|
3150 | }
|
---|
3151 | _ACEOF
|
---|
3152 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3153 | ac_cv_prog_cc_g=yes
|
---|
3154 | fi
|
---|
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3156 | fi
|
---|
3157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3158 | fi
|
---|
3159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3160 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3161 | fi
|
---|
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3163 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3164 | if test "$ac_test_CFLAGS" = set; then
|
---|
3165 | CFLAGS=$ac_save_CFLAGS
|
---|
3166 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3167 | if test "$GCC" = yes; then
|
---|
3168 | CFLAGS="-g -O2"
|
---|
3169 | else
|
---|
3170 | CFLAGS="-g"
|
---|
3171 | fi
|
---|
3172 | else
|
---|
3173 | if test "$GCC" = yes; then
|
---|
3174 | CFLAGS="-O2"
|
---|
3175 | else
|
---|
3176 | CFLAGS=
|
---|
3177 | fi
|
---|
3178 | fi
|
---|
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3180 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3181 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3182 | $as_echo_n "(cached) " >&6
|
---|
3183 | else
|
---|
3184 | ac_cv_prog_cc_c89=no
|
---|
3185 | ac_save_CC=$CC
|
---|
3186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3187 | /* end confdefs.h. */
|
---|
3188 | #include <stdarg.h>
|
---|
3189 | #include <stdio.h>
|
---|
3190 | struct stat;
|
---|
3191 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3192 | struct buf { int x; };
|
---|
3193 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3194 | static char *e (p, i)
|
---|
3195 | char **p;
|
---|
3196 | int i;
|
---|
3197 | {
|
---|
3198 | return p[i];
|
---|
3199 | }
|
---|
3200 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3201 | {
|
---|
3202 | char *s;
|
---|
3203 | va_list v;
|
---|
3204 | va_start (v,p);
|
---|
3205 | s = g (p, va_arg (v,int));
|
---|
3206 | va_end (v);
|
---|
3207 | return s;
|
---|
3208 | }
|
---|
3209 |
|
---|
3210 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3211 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3212 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3213 | as 'x'. The following induces an error, until -std is added to get
|
---|
3214 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3215 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3216 | that's true only with -std. */
|
---|
3217 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3218 |
|
---|
3219 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3220 | inside strings and character constants. */
|
---|
3221 | #define FOO(x) 'x'
|
---|
3222 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3223 |
|
---|
3224 | int test (int i, double x);
|
---|
3225 | struct s1 {int (*f) (int a);};
|
---|
3226 | struct s2 {int (*f) (double a);};
|
---|
3227 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3228 | int argc;
|
---|
3229 | char **argv;
|
---|
3230 | int
|
---|
3231 | main ()
|
---|
3232 | {
|
---|
3233 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3234 | ;
|
---|
3235 | return 0;
|
---|
3236 | }
|
---|
3237 | _ACEOF
|
---|
3238 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3239 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3240 | do
|
---|
3241 | CC="$ac_save_CC $ac_arg"
|
---|
3242 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3243 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3244 | fi
|
---|
3245 | rm -f core conftest.err conftest.$ac_objext
|
---|
3246 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3247 | done
|
---|
3248 | rm -f conftest.$ac_ext
|
---|
3249 | CC=$ac_save_CC
|
---|
3250 |
|
---|
3251 | fi
|
---|
3252 | # AC_CACHE_VAL
|
---|
3253 | case "x$ac_cv_prog_cc_c89" in
|
---|
3254 | x)
|
---|
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3256 | $as_echo "none needed" >&6; } ;;
|
---|
3257 | xno)
|
---|
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3259 | $as_echo "unsupported" >&6; } ;;
|
---|
3260 | *)
|
---|
3261 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3263 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3264 | esac
|
---|
3265 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3266 |
|
---|
3267 | fi
|
---|
3268 |
|
---|
3269 | ac_ext=c
|
---|
3270 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3274 |
|
---|
3275 | if test "$GCC" = yes; then
|
---|
3276 | CFLAGS="$CFLAGS -Wall"
|
---|
3277 | fi
|
---|
3278 |
|
---|
3279 | # Find a good install program. We prefer a C program (faster),
|
---|
3280 | # so one script is as good as another. But avoid the broken or
|
---|
3281 | # incompatible versions:
|
---|
3282 | # SysV /etc/install, /usr/sbin/install
|
---|
3283 | # SunOS /usr/etc/install
|
---|
3284 | # IRIX /sbin/install
|
---|
3285 | # AIX /bin/install
|
---|
3286 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3287 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3288 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3289 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3290 | # OS/2's system install, which has a completely different semantic
|
---|
3291 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3292 | # Reject install programs that cannot install multiple files.
|
---|
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3294 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3295 | if test -z "$INSTALL"; then
|
---|
3296 | if ${ac_cv_path_install+:} false; then :
|
---|
3297 | $as_echo_n "(cached) " >&6
|
---|
3298 | else
|
---|
3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3300 | for as_dir in $PATH
|
---|
3301 | do
|
---|
3302 | IFS=$as_save_IFS
|
---|
3303 | test -z "$as_dir" && as_dir=.
|
---|
3304 | # Account for people who put trailing slashes in PATH elements.
|
---|
3305 | case $as_dir/ in #((
|
---|
3306 | ./ | .// | /[cC]/* | \
|
---|
3307 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3308 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3309 | /usr/ucb/* ) ;;
|
---|
3310 | *)
|
---|
3311 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3312 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3313 | # by default.
|
---|
3314 | for ac_prog in ginstall scoinst install; do
|
---|
3315 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3316 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3317 | if test $ac_prog = install &&
|
---|
3318 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3319 | # AIX install. It has an incompatible calling convention.
|
---|
3320 | :
|
---|
3321 | elif test $ac_prog = install &&
|
---|
3322 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3323 | # program-specific install script used by HP pwplus--don't use.
|
---|
3324 | :
|
---|
3325 | else
|
---|
3326 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3327 | echo one > conftest.one
|
---|
3328 | echo two > conftest.two
|
---|
3329 | mkdir conftest.dir
|
---|
3330 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3331 | test -s conftest.one && test -s conftest.two &&
|
---|
3332 | test -s conftest.dir/conftest.one &&
|
---|
3333 | test -s conftest.dir/conftest.two
|
---|
3334 | then
|
---|
3335 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3336 | break 3
|
---|
3337 | fi
|
---|
3338 | fi
|
---|
3339 | fi
|
---|
3340 | done
|
---|
3341 | done
|
---|
3342 | ;;
|
---|
3343 | esac
|
---|
3344 |
|
---|
3345 | done
|
---|
3346 | IFS=$as_save_IFS
|
---|
3347 |
|
---|
3348 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3349 |
|
---|
3350 | fi
|
---|
3351 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3352 | INSTALL=$ac_cv_path_install
|
---|
3353 | else
|
---|
3354 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3355 | # value for INSTALL within a source directory, because that will
|
---|
3356 | # break other packages using the cache if that directory is
|
---|
3357 | # removed, or if the value is a relative name.
|
---|
3358 | INSTALL=$ac_install_sh
|
---|
3359 | fi
|
---|
3360 | fi
|
---|
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3362 | $as_echo "$INSTALL" >&6; }
|
---|
3363 |
|
---|
3364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3365 | # It thinks the first close brace ends the variable substitution.
|
---|
3366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3367 |
|
---|
3368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3369 |
|
---|
3370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3371 |
|
---|
3372 | ac_ext=c
|
---|
3373 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3377 |
|
---|
3378 |
|
---|
3379 | ac_ext=c
|
---|
3380 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
3385 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
3386 | # On Suns, sometimes $CPP names a directory.
|
---|
3387 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3388 | CPP=
|
---|
3389 | fi
|
---|
3390 | if test -z "$CPP"; then
|
---|
3391 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
3392 | $as_echo_n "(cached) " >&6
|
---|
3393 | else
|
---|
3394 | # Double quotes because CPP needs to be expanded
|
---|
3395 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3396 | do
|
---|
3397 | ac_preproc_ok=false
|
---|
3398 | for ac_c_preproc_warn_flag in '' yes
|
---|
3399 | do
|
---|
3400 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3401 | # with a fresh cross-compiler works.
|
---|
3402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3403 | # <limits.h> exists even on freestanding compilers.
|
---|
3404 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3405 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3407 | /* end confdefs.h. */
|
---|
3408 | #ifdef __STDC__
|
---|
3409 | # include <limits.h>
|
---|
3410 | #else
|
---|
3411 | # include <assert.h>
|
---|
3412 | #endif
|
---|
3413 | Syntax error
|
---|
3414 | _ACEOF
|
---|
3415 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3416 |
|
---|
3417 | else
|
---|
3418 | # Broken: fails on valid input.
|
---|
3419 | continue
|
---|
3420 | fi
|
---|
3421 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3422 |
|
---|
3423 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3424 | # can be detected and how.
|
---|
3425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3426 | /* end confdefs.h. */
|
---|
3427 | #include <ac_nonexistent.h>
|
---|
3428 | _ACEOF
|
---|
3429 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3430 | # Broken: success on invalid input.
|
---|
3431 | continue
|
---|
3432 | else
|
---|
3433 | # Passes both tests.
|
---|
3434 | ac_preproc_ok=:
|
---|
3435 | break
|
---|
3436 | fi
|
---|
3437 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3438 |
|
---|
3439 | done
|
---|
3440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3441 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3442 | if $ac_preproc_ok; then :
|
---|
3443 | break
|
---|
3444 | fi
|
---|
3445 |
|
---|
3446 | done
|
---|
3447 | ac_cv_prog_CPP=$CPP
|
---|
3448 |
|
---|
3449 | fi
|
---|
3450 | CPP=$ac_cv_prog_CPP
|
---|
3451 | else
|
---|
3452 | ac_cv_prog_CPP=$CPP
|
---|
3453 | fi
|
---|
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
3455 | $as_echo "$CPP" >&6; }
|
---|
3456 | ac_preproc_ok=false
|
---|
3457 | for ac_c_preproc_warn_flag in '' yes
|
---|
3458 | do
|
---|
3459 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3460 | # with a fresh cross-compiler works.
|
---|
3461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3462 | # <limits.h> exists even on freestanding compilers.
|
---|
3463 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3464 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3466 | /* end confdefs.h. */
|
---|
3467 | #ifdef __STDC__
|
---|
3468 | # include <limits.h>
|
---|
3469 | #else
|
---|
3470 | # include <assert.h>
|
---|
3471 | #endif
|
---|
3472 | Syntax error
|
---|
3473 | _ACEOF
|
---|
3474 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3475 |
|
---|
3476 | else
|
---|
3477 | # Broken: fails on valid input.
|
---|
3478 | continue
|
---|
3479 | fi
|
---|
3480 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3481 |
|
---|
3482 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3483 | # can be detected and how.
|
---|
3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3485 | /* end confdefs.h. */
|
---|
3486 | #include <ac_nonexistent.h>
|
---|
3487 | _ACEOF
|
---|
3488 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3489 | # Broken: success on invalid input.
|
---|
3490 | continue
|
---|
3491 | else
|
---|
3492 | # Passes both tests.
|
---|
3493 | ac_preproc_ok=:
|
---|
3494 | break
|
---|
3495 | fi
|
---|
3496 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3497 |
|
---|
3498 | done
|
---|
3499 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3500 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3501 | if $ac_preproc_ok; then :
|
---|
3502 |
|
---|
3503 | else
|
---|
3504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3506 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
3507 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3508 | fi
|
---|
3509 |
|
---|
3510 | ac_ext=c
|
---|
3511 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3515 |
|
---|
3516 |
|
---|
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3518 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3519 | if ${ac_cv_path_GREP+:} false; then :
|
---|
3520 | $as_echo_n "(cached) " >&6
|
---|
3521 | else
|
---|
3522 | if test -z "$GREP"; then
|
---|
3523 | ac_path_GREP_found=false
|
---|
3524 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3526 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3527 | do
|
---|
3528 | IFS=$as_save_IFS
|
---|
3529 | test -z "$as_dir" && as_dir=.
|
---|
3530 | for ac_prog in grep ggrep; do
|
---|
3531 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3532 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3533 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
3534 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3535 | # Check for GNU $ac_path_GREP
|
---|
3536 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3537 | *GNU*)
|
---|
3538 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3539 | *)
|
---|
3540 | ac_count=0
|
---|
3541 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3542 | while :
|
---|
3543 | do
|
---|
3544 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3545 | mv "conftest.tmp" "conftest.in"
|
---|
3546 | cp "conftest.in" "conftest.nl"
|
---|
3547 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3548 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3549 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3550 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3551 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3552 | # Best one so far, save it but keep looking for a better one
|
---|
3553 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3554 | ac_path_GREP_max=$ac_count
|
---|
3555 | fi
|
---|
3556 | # 10*(2^10) chars as input seems more than enough
|
---|
3557 | test $ac_count -gt 10 && break
|
---|
3558 | done
|
---|
3559 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3560 | esac
|
---|
3561 |
|
---|
3562 | $ac_path_GREP_found && break 3
|
---|
3563 | done
|
---|
3564 | done
|
---|
3565 | done
|
---|
3566 | IFS=$as_save_IFS
|
---|
3567 | if test -z "$ac_cv_path_GREP"; then
|
---|
3568 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3569 | fi
|
---|
3570 | else
|
---|
3571 | ac_cv_path_GREP=$GREP
|
---|
3572 | fi
|
---|
3573 |
|
---|
3574 | fi
|
---|
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3576 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3577 | GREP="$ac_cv_path_GREP"
|
---|
3578 |
|
---|
3579 |
|
---|
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3581 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3582 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
3583 | $as_echo_n "(cached) " >&6
|
---|
3584 | else
|
---|
3585 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3586 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3587 | else
|
---|
3588 | if test -z "$EGREP"; then
|
---|
3589 | ac_path_EGREP_found=false
|
---|
3590 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3592 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3593 | do
|
---|
3594 | IFS=$as_save_IFS
|
---|
3595 | test -z "$as_dir" && as_dir=.
|
---|
3596 | for ac_prog in egrep; do
|
---|
3597 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3598 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3599 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
3600 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3601 | # Check for GNU $ac_path_EGREP
|
---|
3602 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3603 | *GNU*)
|
---|
3604 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3605 | *)
|
---|
3606 | ac_count=0
|
---|
3607 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3608 | while :
|
---|
3609 | do
|
---|
3610 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3611 | mv "conftest.tmp" "conftest.in"
|
---|
3612 | cp "conftest.in" "conftest.nl"
|
---|
3613 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3614 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3615 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3616 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3617 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3618 | # Best one so far, save it but keep looking for a better one
|
---|
3619 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3620 | ac_path_EGREP_max=$ac_count
|
---|
3621 | fi
|
---|
3622 | # 10*(2^10) chars as input seems more than enough
|
---|
3623 | test $ac_count -gt 10 && break
|
---|
3624 | done
|
---|
3625 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3626 | esac
|
---|
3627 |
|
---|
3628 | $ac_path_EGREP_found && break 3
|
---|
3629 | done
|
---|
3630 | done
|
---|
3631 | done
|
---|
3632 | IFS=$as_save_IFS
|
---|
3633 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3634 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3635 | fi
|
---|
3636 | else
|
---|
3637 | ac_cv_path_EGREP=$EGREP
|
---|
3638 | fi
|
---|
3639 |
|
---|
3640 | fi
|
---|
3641 | fi
|
---|
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3643 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3644 | EGREP="$ac_cv_path_EGREP"
|
---|
3645 |
|
---|
3646 |
|
---|
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
3648 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
3649 | if ${ac_cv_header_stdc+:} false; then :
|
---|
3650 | $as_echo_n "(cached) " >&6
|
---|
3651 | else
|
---|
3652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3653 | /* end confdefs.h. */
|
---|
3654 | #include <stdlib.h>
|
---|
3655 | #include <stdarg.h>
|
---|
3656 | #include <string.h>
|
---|
3657 | #include <float.h>
|
---|
3658 |
|
---|
3659 | int
|
---|
3660 | main ()
|
---|
3661 | {
|
---|
3662 |
|
---|
3663 | ;
|
---|
3664 | return 0;
|
---|
3665 | }
|
---|
3666 | _ACEOF
|
---|
3667 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3668 | ac_cv_header_stdc=yes
|
---|
3669 | else
|
---|
3670 | ac_cv_header_stdc=no
|
---|
3671 | fi
|
---|
3672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3673 |
|
---|
3674 | if test $ac_cv_header_stdc = yes; then
|
---|
3675 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3677 | /* end confdefs.h. */
|
---|
3678 | #include <string.h>
|
---|
3679 |
|
---|
3680 | _ACEOF
|
---|
3681 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3682 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
3683 |
|
---|
3684 | else
|
---|
3685 | ac_cv_header_stdc=no
|
---|
3686 | fi
|
---|
3687 | rm -f conftest*
|
---|
3688 |
|
---|
3689 | fi
|
---|
3690 |
|
---|
3691 | if test $ac_cv_header_stdc = yes; then
|
---|
3692 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3694 | /* end confdefs.h. */
|
---|
3695 | #include <stdlib.h>
|
---|
3696 |
|
---|
3697 | _ACEOF
|
---|
3698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3699 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
3700 |
|
---|
3701 | else
|
---|
3702 | ac_cv_header_stdc=no
|
---|
3703 | fi
|
---|
3704 | rm -f conftest*
|
---|
3705 |
|
---|
3706 | fi
|
---|
3707 |
|
---|
3708 | if test $ac_cv_header_stdc = yes; then
|
---|
3709 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3710 | if test "$cross_compiling" = yes; then :
|
---|
3711 | :
|
---|
3712 | else
|
---|
3713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3714 | /* end confdefs.h. */
|
---|
3715 | #include <ctype.h>
|
---|
3716 | #include <stdlib.h>
|
---|
3717 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3718 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3719 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3720 | #else
|
---|
3721 | # define ISLOWER(c) \
|
---|
3722 | (('a' <= (c) && (c) <= 'i') \
|
---|
3723 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3724 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3725 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3726 | #endif
|
---|
3727 |
|
---|
3728 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3729 | int
|
---|
3730 | main ()
|
---|
3731 | {
|
---|
3732 | int i;
|
---|
3733 | for (i = 0; i < 256; i++)
|
---|
3734 | if (XOR (islower (i), ISLOWER (i))
|
---|
3735 | || toupper (i) != TOUPPER (i))
|
---|
3736 | return 2;
|
---|
3737 | return 0;
|
---|
3738 | }
|
---|
3739 | _ACEOF
|
---|
3740 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
3741 |
|
---|
3742 | else
|
---|
3743 | ac_cv_header_stdc=no
|
---|
3744 | fi
|
---|
3745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
3746 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
3747 | fi
|
---|
3748 |
|
---|
3749 | fi
|
---|
3750 | fi
|
---|
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
3752 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
3753 | if test $ac_cv_header_stdc = yes; then
|
---|
3754 |
|
---|
3755 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
3756 |
|
---|
3757 | fi
|
---|
3758 |
|
---|
3759 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3760 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3761 | inttypes.h stdint.h unistd.h
|
---|
3762 | do :
|
---|
3763 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3764 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
3765 | "
|
---|
3766 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
3767 | cat >>confdefs.h <<_ACEOF
|
---|
3768 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3769 | _ACEOF
|
---|
3770 |
|
---|
3771 | fi
|
---|
3772 |
|
---|
3773 | done
|
---|
3774 |
|
---|
3775 |
|
---|
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
3777 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
3778 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
3779 | $as_echo_n "(cached) " >&6
|
---|
3780 | else
|
---|
3781 | ac_cv_c_bigendian=unknown
|
---|
3782 | # See if we're dealing with a universal compiler.
|
---|
3783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3784 | /* end confdefs.h. */
|
---|
3785 | #ifndef __APPLE_CC__
|
---|
3786 | not a universal capable compiler
|
---|
3787 | #endif
|
---|
3788 | typedef int dummy;
|
---|
3789 |
|
---|
3790 | _ACEOF
|
---|
3791 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3792 |
|
---|
3793 | # Check for potential -arch flags. It is not universal unless
|
---|
3794 | # there are at least two -arch flags with different values.
|
---|
3795 | ac_arch=
|
---|
3796 | ac_prev=
|
---|
3797 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
3798 | if test -n "$ac_prev"; then
|
---|
3799 | case $ac_word in
|
---|
3800 | i?86 | x86_64 | ppc | ppc64)
|
---|
3801 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
3802 | ac_arch=$ac_word
|
---|
3803 | else
|
---|
3804 | ac_cv_c_bigendian=universal
|
---|
3805 | break
|
---|
3806 | fi
|
---|
3807 | ;;
|
---|
3808 | esac
|
---|
3809 | ac_prev=
|
---|
3810 | elif test "x$ac_word" = "x-arch"; then
|
---|
3811 | ac_prev=arch
|
---|
3812 | fi
|
---|
3813 | done
|
---|
3814 | fi
|
---|
3815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3816 | if test $ac_cv_c_bigendian = unknown; then
|
---|
3817 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3819 | /* end confdefs.h. */
|
---|
3820 | #include <sys/types.h>
|
---|
3821 | #include <sys/param.h>
|
---|
3822 |
|
---|
3823 | int
|
---|
3824 | main ()
|
---|
3825 | {
|
---|
3826 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
3827 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
3828 | && LITTLE_ENDIAN)
|
---|
3829 | bogus endian macros
|
---|
3830 | #endif
|
---|
3831 |
|
---|
3832 | ;
|
---|
3833 | return 0;
|
---|
3834 | }
|
---|
3835 | _ACEOF
|
---|
3836 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3837 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
3838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3839 | /* end confdefs.h. */
|
---|
3840 | #include <sys/types.h>
|
---|
3841 | #include <sys/param.h>
|
---|
3842 |
|
---|
3843 | int
|
---|
3844 | main ()
|
---|
3845 | {
|
---|
3846 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
3847 | not big endian
|
---|
3848 | #endif
|
---|
3849 |
|
---|
3850 | ;
|
---|
3851 | return 0;
|
---|
3852 | }
|
---|
3853 | _ACEOF
|
---|
3854 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3855 | ac_cv_c_bigendian=yes
|
---|
3856 | else
|
---|
3857 | ac_cv_c_bigendian=no
|
---|
3858 | fi
|
---|
3859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3860 | fi
|
---|
3861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3862 | fi
|
---|
3863 | if test $ac_cv_c_bigendian = unknown; then
|
---|
3864 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
3865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3866 | /* end confdefs.h. */
|
---|
3867 | #include <limits.h>
|
---|
3868 |
|
---|
3869 | int
|
---|
3870 | main ()
|
---|
3871 | {
|
---|
3872 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
3873 | bogus endian macros
|
---|
3874 | #endif
|
---|
3875 |
|
---|
3876 | ;
|
---|
3877 | return 0;
|
---|
3878 | }
|
---|
3879 | _ACEOF
|
---|
3880 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3881 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
3882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3883 | /* end confdefs.h. */
|
---|
3884 | #include <limits.h>
|
---|
3885 |
|
---|
3886 | int
|
---|
3887 | main ()
|
---|
3888 | {
|
---|
3889 | #ifndef _BIG_ENDIAN
|
---|
3890 | not big endian
|
---|
3891 | #endif
|
---|
3892 |
|
---|
3893 | ;
|
---|
3894 | return 0;
|
---|
3895 | }
|
---|
3896 | _ACEOF
|
---|
3897 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3898 | ac_cv_c_bigendian=yes
|
---|
3899 | else
|
---|
3900 | ac_cv_c_bigendian=no
|
---|
3901 | fi
|
---|
3902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3903 | fi
|
---|
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3905 | fi
|
---|
3906 | if test $ac_cv_c_bigendian = unknown; then
|
---|
3907 | # Compile a test program.
|
---|
3908 | if test "$cross_compiling" = yes; then :
|
---|
3909 | # Try to guess by grepping values from an object file.
|
---|
3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3911 | /* end confdefs.h. */
|
---|
3912 | short int ascii_mm[] =
|
---|
3913 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
3914 | short int ascii_ii[] =
|
---|
3915 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
3916 | int use_ascii (int i) {
|
---|
3917 | return ascii_mm[i] + ascii_ii[i];
|
---|
3918 | }
|
---|
3919 | short int ebcdic_ii[] =
|
---|
3920 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
3921 | short int ebcdic_mm[] =
|
---|
3922 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
3923 | int use_ebcdic (int i) {
|
---|
3924 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
3925 | }
|
---|
3926 | extern int foo;
|
---|
3927 |
|
---|
3928 | int
|
---|
3929 | main ()
|
---|
3930 | {
|
---|
3931 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
3932 | ;
|
---|
3933 | return 0;
|
---|
3934 | }
|
---|
3935 | _ACEOF
|
---|
3936 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3937 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
3938 | ac_cv_c_bigendian=yes
|
---|
3939 | fi
|
---|
3940 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
3941 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
3942 | ac_cv_c_bigendian=no
|
---|
3943 | else
|
---|
3944 | # finding both strings is unlikely to happen, but who knows?
|
---|
3945 | ac_cv_c_bigendian=unknown
|
---|
3946 | fi
|
---|
3947 | fi
|
---|
3948 | fi
|
---|
3949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3950 | else
|
---|
3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3952 | /* end confdefs.h. */
|
---|
3953 | $ac_includes_default
|
---|
3954 | int
|
---|
3955 | main ()
|
---|
3956 | {
|
---|
3957 |
|
---|
3958 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
3959 | union
|
---|
3960 | {
|
---|
3961 | long int l;
|
---|
3962 | char c[sizeof (long int)];
|
---|
3963 | } u;
|
---|
3964 | u.l = 1;
|
---|
3965 | return u.c[sizeof (long int) - 1] == 1;
|
---|
3966 |
|
---|
3967 | ;
|
---|
3968 | return 0;
|
---|
3969 | }
|
---|
3970 | _ACEOF
|
---|
3971 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
3972 | ac_cv_c_bigendian=no
|
---|
3973 | else
|
---|
3974 | ac_cv_c_bigendian=yes
|
---|
3975 | fi
|
---|
3976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
3977 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
3978 | fi
|
---|
3979 |
|
---|
3980 | fi
|
---|
3981 | fi
|
---|
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
3983 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
3984 | case $ac_cv_c_bigendian in #(
|
---|
3985 | yes)
|
---|
3986 | $as_echo "#define B_ENDIAN 1" >>confdefs.h
|
---|
3987 | ;; #(
|
---|
3988 | no)
|
---|
3989 | $as_echo "#define L_ENDIAN 1" >>confdefs.h
|
---|
3990 | ;; #(
|
---|
3991 | universal)
|
---|
3992 |
|
---|
3993 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
3994 |
|
---|
3995 | ;; #(
|
---|
3996 | *)
|
---|
3997 | as_fn_error $? "unknown endianness
|
---|
3998 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
3999 | esac
|
---|
4000 |
|
---|
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
|
---|
4002 | $as_echo_n "checking for X... " >&6; }
|
---|
4003 |
|
---|
4004 |
|
---|
4005 | # Check whether --with-x was given.
|
---|
4006 | if test "${with_x+set}" = set; then :
|
---|
4007 | withval=$with_x;
|
---|
4008 | fi
|
---|
4009 |
|
---|
4010 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
4011 | if test "x$with_x" = xno; then
|
---|
4012 | # The user explicitly disabled X.
|
---|
4013 | have_x=disabled
|
---|
4014 | else
|
---|
4015 | case $x_includes,$x_libraries in #(
|
---|
4016 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
|
---|
4017 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
|
---|
4018 | $as_echo_n "(cached) " >&6
|
---|
4019 | else
|
---|
4020 | # One or both of the vars are not set, and there is no cached value.
|
---|
4021 | ac_x_includes=no ac_x_libraries=no
|
---|
4022 | rm -f -r conftest.dir
|
---|
4023 | if mkdir conftest.dir; then
|
---|
4024 | cd conftest.dir
|
---|
4025 | cat >Imakefile <<'_ACEOF'
|
---|
4026 | incroot:
|
---|
4027 | @echo incroot='${INCROOT}'
|
---|
4028 | usrlibdir:
|
---|
4029 | @echo usrlibdir='${USRLIBDIR}'
|
---|
4030 | libdir:
|
---|
4031 | @echo libdir='${LIBDIR}'
|
---|
4032 | _ACEOF
|
---|
4033 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
4034 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4035 | for ac_var in incroot usrlibdir libdir; do
|
---|
4036 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
|
---|
4037 | done
|
---|
4038 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
4039 | for ac_extension in a so sl dylib la dll; do
|
---|
4040 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
|
---|
4041 | test -f "$ac_im_libdir/libX11.$ac_extension"; then
|
---|
4042 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
4043 | fi
|
---|
4044 | done
|
---|
4045 | # Screen out bogus values from the imake configuration. They are
|
---|
4046 | # bogus both because they are the default anyway, and because
|
---|
4047 | # using them would break gcc on systems where it needs fixed includes.
|
---|
4048 | case $ac_im_incroot in
|
---|
4049 | /usr/include) ac_x_includes= ;;
|
---|
4050 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
4051 | esac
|
---|
4052 | case $ac_im_usrlibdir in
|
---|
4053 | /usr/lib | /usr/lib64 | /lib | /lib64) ;;
|
---|
4054 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
4055 | esac
|
---|
4056 | fi
|
---|
4057 | cd ..
|
---|
4058 | rm -f -r conftest.dir
|
---|
4059 | fi
|
---|
4060 |
|
---|
4061 | # Standard set of common directories for X headers.
|
---|
4062 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4063 | ac_x_header_dirs='
|
---|
4064 | /usr/X11/include
|
---|
4065 | /usr/X11R7/include
|
---|
4066 | /usr/X11R6/include
|
---|
4067 | /usr/X11R5/include
|
---|
4068 | /usr/X11R4/include
|
---|
4069 |
|
---|
4070 | /usr/include/X11
|
---|
4071 | /usr/include/X11R7
|
---|
4072 | /usr/include/X11R6
|
---|
4073 | /usr/include/X11R5
|
---|
4074 | /usr/include/X11R4
|
---|
4075 |
|
---|
4076 | /usr/local/X11/include
|
---|
4077 | /usr/local/X11R7/include
|
---|
4078 | /usr/local/X11R6/include
|
---|
4079 | /usr/local/X11R5/include
|
---|
4080 | /usr/local/X11R4/include
|
---|
4081 |
|
---|
4082 | /usr/local/include/X11
|
---|
4083 | /usr/local/include/X11R7
|
---|
4084 | /usr/local/include/X11R6
|
---|
4085 | /usr/local/include/X11R5
|
---|
4086 | /usr/local/include/X11R4
|
---|
4087 |
|
---|
4088 | /usr/X386/include
|
---|
4089 | /usr/x386/include
|
---|
4090 | /usr/XFree86/include/X11
|
---|
4091 |
|
---|
4092 | /usr/include
|
---|
4093 | /usr/local/include
|
---|
4094 | /usr/unsupported/include
|
---|
4095 | /usr/athena/include
|
---|
4096 | /usr/local/x11r5/include
|
---|
4097 | /usr/lpp/Xamples/include
|
---|
4098 |
|
---|
4099 | /usr/openwin/include
|
---|
4100 | /usr/openwin/share/include'
|
---|
4101 |
|
---|
4102 | if test "$ac_x_includes" = no; then
|
---|
4103 | # Guess where to find include files, by looking for Xlib.h.
|
---|
4104 | # First, try using that file with no special directory specified.
|
---|
4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4106 | /* end confdefs.h. */
|
---|
4107 | #include <X11/Xlib.h>
|
---|
4108 | _ACEOF
|
---|
4109 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4110 | # We can compile using X headers with no special include directory.
|
---|
4111 | ac_x_includes=
|
---|
4112 | else
|
---|
4113 | for ac_dir in $ac_x_header_dirs; do
|
---|
4114 | if test -r "$ac_dir/X11/Xlib.h"; then
|
---|
4115 | ac_x_includes=$ac_dir
|
---|
4116 | break
|
---|
4117 | fi
|
---|
4118 | done
|
---|
4119 | fi
|
---|
4120 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4121 | fi # $ac_x_includes = no
|
---|
4122 |
|
---|
4123 | if test "$ac_x_libraries" = no; then
|
---|
4124 | # Check for the libraries.
|
---|
4125 | # See if we find them without any special options.
|
---|
4126 | # Don't add to $LIBS permanently.
|
---|
4127 | ac_save_LIBS=$LIBS
|
---|
4128 | LIBS="-lX11 $LIBS"
|
---|
4129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4130 | /* end confdefs.h. */
|
---|
4131 | #include <X11/Xlib.h>
|
---|
4132 | int
|
---|
4133 | main ()
|
---|
4134 | {
|
---|
4135 | XrmInitialize ()
|
---|
4136 | ;
|
---|
4137 | return 0;
|
---|
4138 | }
|
---|
4139 | _ACEOF
|
---|
4140 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4141 | LIBS=$ac_save_LIBS
|
---|
4142 | # We can link X programs with no special library path.
|
---|
4143 | ac_x_libraries=
|
---|
4144 | else
|
---|
4145 | LIBS=$ac_save_LIBS
|
---|
4146 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
4147 | do
|
---|
4148 | # Don't even attempt the hair of trying to link an X program!
|
---|
4149 | for ac_extension in a so sl dylib la dll; do
|
---|
4150 | if test -r "$ac_dir/libX11.$ac_extension"; then
|
---|
4151 | ac_x_libraries=$ac_dir
|
---|
4152 | break 2
|
---|
4153 | fi
|
---|
4154 | done
|
---|
4155 | done
|
---|
4156 | fi
|
---|
4157 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4158 | conftest$ac_exeext conftest.$ac_ext
|
---|
4159 | fi # $ac_x_libraries = no
|
---|
4160 |
|
---|
4161 | case $ac_x_includes,$ac_x_libraries in #(
|
---|
4162 | no,* | *,no | *\'*)
|
---|
4163 | # Didn't find X, or a directory has "'" in its name.
|
---|
4164 | ac_cv_have_x="have_x=no";; #(
|
---|
4165 | *)
|
---|
4166 | # Record where we found X for the cache.
|
---|
4167 | ac_cv_have_x="have_x=yes\
|
---|
4168 | ac_x_includes='$ac_x_includes'\
|
---|
4169 | ac_x_libraries='$ac_x_libraries'"
|
---|
4170 | esac
|
---|
4171 | fi
|
---|
4172 | ;; #(
|
---|
4173 | *) have_x=yes;;
|
---|
4174 | esac
|
---|
4175 | eval "$ac_cv_have_x"
|
---|
4176 | fi # $with_x != no
|
---|
4177 |
|
---|
4178 | if test "$have_x" != yes; then
|
---|
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
|
---|
4180 | $as_echo "$have_x" >&6; }
|
---|
4181 | no_x=yes
|
---|
4182 | else
|
---|
4183 | # If each of the values was on the command line, it overrides each guess.
|
---|
4184 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
4185 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
4186 | # Update the cache value to reflect the command line values.
|
---|
4187 | ac_cv_have_x="have_x=yes\
|
---|
4188 | ac_x_includes='$x_includes'\
|
---|
4189 | ac_x_libraries='$x_libraries'"
|
---|
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
4191 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
|
---|
4192 | fi
|
---|
4193 |
|
---|
4194 | if test "$no_x" = yes; then
|
---|
4195 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
4196 |
|
---|
4197 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
|
---|
4198 |
|
---|
4199 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
4200 | else
|
---|
4201 | if test -n "$x_includes"; then
|
---|
4202 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
4203 | fi
|
---|
4204 |
|
---|
4205 | # It would also be nice to do this for all -L options, not just this one.
|
---|
4206 | if test -n "$x_libraries"; then
|
---|
4207 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
4208 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
4209 | # others require no space. Words are not sufficient . . . .
|
---|
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
|
---|
4211 | $as_echo_n "checking whether -R must be followed by a space... " >&6; }
|
---|
4212 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
4213 | ac_xsave_c_werror_flag=$ac_c_werror_flag
|
---|
4214 | ac_c_werror_flag=yes
|
---|
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4216 | /* end confdefs.h. */
|
---|
4217 |
|
---|
4218 | int
|
---|
4219 | main ()
|
---|
4220 | {
|
---|
4221 |
|
---|
4222 | ;
|
---|
4223 | return 0;
|
---|
4224 | }
|
---|
4225 | _ACEOF
|
---|
4226 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4228 | $as_echo "no" >&6; }
|
---|
4229 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
4230 | else
|
---|
4231 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
4232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4233 | /* end confdefs.h. */
|
---|
4234 |
|
---|
4235 | int
|
---|
4236 | main ()
|
---|
4237 | {
|
---|
4238 |
|
---|
4239 | ;
|
---|
4240 | return 0;
|
---|
4241 | }
|
---|
4242 | _ACEOF
|
---|
4243 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4245 | $as_echo "yes" >&6; }
|
---|
4246 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
4247 | else
|
---|
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
|
---|
4249 | $as_echo "neither works" >&6; }
|
---|
4250 | fi
|
---|
4251 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4252 | conftest$ac_exeext conftest.$ac_ext
|
---|
4253 | fi
|
---|
4254 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4255 | conftest$ac_exeext conftest.$ac_ext
|
---|
4256 | ac_c_werror_flag=$ac_xsave_c_werror_flag
|
---|
4257 | LIBS=$ac_xsave_LIBS
|
---|
4258 | fi
|
---|
4259 |
|
---|
4260 | # Check for system-dependent libraries X programs must link with.
|
---|
4261 | # Do this before checking for the system-independent R6 libraries
|
---|
4262 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
4263 |
|
---|
4264 | if test "$ISC" = yes; then
|
---|
4265 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
4266 | else
|
---|
4267 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
4268 | # libraries were built with DECnet support. And Karl Berry says
|
---|
4269 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
4270 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
4271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4272 | /* end confdefs.h. */
|
---|
4273 |
|
---|
4274 | /* Override any GCC internal prototype to avoid an error.
|
---|
4275 | Use char because int might match the return type of a GCC
|
---|
4276 | builtin and then its argument prototype would still apply. */
|
---|
4277 | #ifdef __cplusplus
|
---|
4278 | extern "C"
|
---|
4279 | #endif
|
---|
4280 | char XOpenDisplay ();
|
---|
4281 | int
|
---|
4282 | main ()
|
---|
4283 | {
|
---|
4284 | return XOpenDisplay ();
|
---|
4285 | ;
|
---|
4286 | return 0;
|
---|
4287 | }
|
---|
4288 | _ACEOF
|
---|
4289 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4290 |
|
---|
4291 | else
|
---|
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
|
---|
4293 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
|
---|
4294 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
|
---|
4295 | $as_echo_n "(cached) " >&6
|
---|
4296 | else
|
---|
4297 | ac_check_lib_save_LIBS=$LIBS
|
---|
4298 | LIBS="-ldnet $LIBS"
|
---|
4299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4300 | /* end confdefs.h. */
|
---|
4301 |
|
---|
4302 | /* Override any GCC internal prototype to avoid an error.
|
---|
4303 | Use char because int might match the return type of a GCC
|
---|
4304 | builtin and then its argument prototype would still apply. */
|
---|
4305 | #ifdef __cplusplus
|
---|
4306 | extern "C"
|
---|
4307 | #endif
|
---|
4308 | char dnet_ntoa ();
|
---|
4309 | int
|
---|
4310 | main ()
|
---|
4311 | {
|
---|
4312 | return dnet_ntoa ();
|
---|
4313 | ;
|
---|
4314 | return 0;
|
---|
4315 | }
|
---|
4316 | _ACEOF
|
---|
4317 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4318 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
4319 | else
|
---|
4320 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
4321 | fi
|
---|
4322 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4323 | conftest$ac_exeext conftest.$ac_ext
|
---|
4324 | LIBS=$ac_check_lib_save_LIBS
|
---|
4325 | fi
|
---|
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
4327 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
|
---|
4328 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
|
---|
4329 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
4330 | fi
|
---|
4331 |
|
---|
4332 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
4334 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
|
---|
4335 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
|
---|
4336 | $as_echo_n "(cached) " >&6
|
---|
4337 | else
|
---|
4338 | ac_check_lib_save_LIBS=$LIBS
|
---|
4339 | LIBS="-ldnet_stub $LIBS"
|
---|
4340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4341 | /* end confdefs.h. */
|
---|
4342 |
|
---|
4343 | /* Override any GCC internal prototype to avoid an error.
|
---|
4344 | Use char because int might match the return type of a GCC
|
---|
4345 | builtin and then its argument prototype would still apply. */
|
---|
4346 | #ifdef __cplusplus
|
---|
4347 | extern "C"
|
---|
4348 | #endif
|
---|
4349 | char dnet_ntoa ();
|
---|
4350 | int
|
---|
4351 | main ()
|
---|
4352 | {
|
---|
4353 | return dnet_ntoa ();
|
---|
4354 | ;
|
---|
4355 | return 0;
|
---|
4356 | }
|
---|
4357 | _ACEOF
|
---|
4358 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4359 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
4360 | else
|
---|
4361 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
4362 | fi
|
---|
4363 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4364 | conftest$ac_exeext conftest.$ac_ext
|
---|
4365 | LIBS=$ac_check_lib_save_LIBS
|
---|
4366 | fi
|
---|
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
4368 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
|
---|
4369 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
|
---|
4370 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
4371 | fi
|
---|
4372 |
|
---|
4373 | fi
|
---|
4374 | fi
|
---|
4375 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4376 | conftest$ac_exeext conftest.$ac_ext
|
---|
4377 | LIBS="$ac_xsave_LIBS"
|
---|
4378 |
|
---|
4379 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
4380 | # to get the SysV transport functions.
|
---|
4381 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
4382 | # needs -lnsl.
|
---|
4383 | # The nsl library prevents programs from opening the X display
|
---|
4384 | # on Irix 5.2, according to T.E. Dickey.
|
---|
4385 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
4386 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
4387 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
|
---|
4388 | if test "x$ac_cv_func_gethostbyname" = xyes; then :
|
---|
4389 |
|
---|
4390 | fi
|
---|
4391 |
|
---|
4392 | if test $ac_cv_func_gethostbyname = no; then
|
---|
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
|
---|
4394 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
|
---|
4395 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
|
---|
4396 | $as_echo_n "(cached) " >&6
|
---|
4397 | else
|
---|
4398 | ac_check_lib_save_LIBS=$LIBS
|
---|
4399 | LIBS="-lnsl $LIBS"
|
---|
4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4401 | /* end confdefs.h. */
|
---|
4402 |
|
---|
4403 | /* Override any GCC internal prototype to avoid an error.
|
---|
4404 | Use char because int might match the return type of a GCC
|
---|
4405 | builtin and then its argument prototype would still apply. */
|
---|
4406 | #ifdef __cplusplus
|
---|
4407 | extern "C"
|
---|
4408 | #endif
|
---|
4409 | char gethostbyname ();
|
---|
4410 | int
|
---|
4411 | main ()
|
---|
4412 | {
|
---|
4413 | return gethostbyname ();
|
---|
4414 | ;
|
---|
4415 | return 0;
|
---|
4416 | }
|
---|
4417 | _ACEOF
|
---|
4418 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4419 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
4420 | else
|
---|
4421 | ac_cv_lib_nsl_gethostbyname=no
|
---|
4422 | fi
|
---|
4423 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4424 | conftest$ac_exeext conftest.$ac_ext
|
---|
4425 | LIBS=$ac_check_lib_save_LIBS
|
---|
4426 | fi
|
---|
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
4428 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
|
---|
4429 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
|
---|
4430 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
4431 | fi
|
---|
4432 |
|
---|
4433 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
|
---|
4435 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
|
---|
4436 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
|
---|
4437 | $as_echo_n "(cached) " >&6
|
---|
4438 | else
|
---|
4439 | ac_check_lib_save_LIBS=$LIBS
|
---|
4440 | LIBS="-lbsd $LIBS"
|
---|
4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4442 | /* end confdefs.h. */
|
---|
4443 |
|
---|
4444 | /* Override any GCC internal prototype to avoid an error.
|
---|
4445 | Use char because int might match the return type of a GCC
|
---|
4446 | builtin and then its argument prototype would still apply. */
|
---|
4447 | #ifdef __cplusplus
|
---|
4448 | extern "C"
|
---|
4449 | #endif
|
---|
4450 | char gethostbyname ();
|
---|
4451 | int
|
---|
4452 | main ()
|
---|
4453 | {
|
---|
4454 | return gethostbyname ();
|
---|
4455 | ;
|
---|
4456 | return 0;
|
---|
4457 | }
|
---|
4458 | _ACEOF
|
---|
4459 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4460 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
4461 | else
|
---|
4462 | ac_cv_lib_bsd_gethostbyname=no
|
---|
4463 | fi
|
---|
4464 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4465 | conftest$ac_exeext conftest.$ac_ext
|
---|
4466 | LIBS=$ac_check_lib_save_LIBS
|
---|
4467 | fi
|
---|
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
4469 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
|
---|
4470 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
|
---|
4471 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
4472 | fi
|
---|
4473 |
|
---|
4474 | fi
|
---|
4475 | fi
|
---|
4476 |
|
---|
4477 | # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
---|
4478 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
4479 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
4480 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
4481 | # variants that don't use the name server (or something). -lsocket
|
---|
4482 | # must be given before -lnsl if both are needed. We assume that
|
---|
4483 | # if connect needs -lnsl, so does gethostbyname.
|
---|
4484 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
|
---|
4485 | if test "x$ac_cv_func_connect" = xyes; then :
|
---|
4486 |
|
---|
4487 | fi
|
---|
4488 |
|
---|
4489 | if test $ac_cv_func_connect = no; then
|
---|
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
|
---|
4491 | $as_echo_n "checking for connect in -lsocket... " >&6; }
|
---|
4492 | if ${ac_cv_lib_socket_connect+:} false; then :
|
---|
4493 | $as_echo_n "(cached) " >&6
|
---|
4494 | else
|
---|
4495 | ac_check_lib_save_LIBS=$LIBS
|
---|
4496 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4498 | /* end confdefs.h. */
|
---|
4499 |
|
---|
4500 | /* Override any GCC internal prototype to avoid an error.
|
---|
4501 | Use char because int might match the return type of a GCC
|
---|
4502 | builtin and then its argument prototype would still apply. */
|
---|
4503 | #ifdef __cplusplus
|
---|
4504 | extern "C"
|
---|
4505 | #endif
|
---|
4506 | char connect ();
|
---|
4507 | int
|
---|
4508 | main ()
|
---|
4509 | {
|
---|
4510 | return connect ();
|
---|
4511 | ;
|
---|
4512 | return 0;
|
---|
4513 | }
|
---|
4514 | _ACEOF
|
---|
4515 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4516 | ac_cv_lib_socket_connect=yes
|
---|
4517 | else
|
---|
4518 | ac_cv_lib_socket_connect=no
|
---|
4519 | fi
|
---|
4520 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4521 | conftest$ac_exeext conftest.$ac_ext
|
---|
4522 | LIBS=$ac_check_lib_save_LIBS
|
---|
4523 | fi
|
---|
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
|
---|
4525 | $as_echo "$ac_cv_lib_socket_connect" >&6; }
|
---|
4526 | if test "x$ac_cv_lib_socket_connect" = xyes; then :
|
---|
4527 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4528 | fi
|
---|
4529 |
|
---|
4530 | fi
|
---|
4531 |
|
---|
4532 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4533 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
|
---|
4534 | if test "x$ac_cv_func_remove" = xyes; then :
|
---|
4535 |
|
---|
4536 | fi
|
---|
4537 |
|
---|
4538 | if test $ac_cv_func_remove = no; then
|
---|
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
|
---|
4540 | $as_echo_n "checking for remove in -lposix... " >&6; }
|
---|
4541 | if ${ac_cv_lib_posix_remove+:} false; then :
|
---|
4542 | $as_echo_n "(cached) " >&6
|
---|
4543 | else
|
---|
4544 | ac_check_lib_save_LIBS=$LIBS
|
---|
4545 | LIBS="-lposix $LIBS"
|
---|
4546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4547 | /* end confdefs.h. */
|
---|
4548 |
|
---|
4549 | /* Override any GCC internal prototype to avoid an error.
|
---|
4550 | Use char because int might match the return type of a GCC
|
---|
4551 | builtin and then its argument prototype would still apply. */
|
---|
4552 | #ifdef __cplusplus
|
---|
4553 | extern "C"
|
---|
4554 | #endif
|
---|
4555 | char remove ();
|
---|
4556 | int
|
---|
4557 | main ()
|
---|
4558 | {
|
---|
4559 | return remove ();
|
---|
4560 | ;
|
---|
4561 | return 0;
|
---|
4562 | }
|
---|
4563 | _ACEOF
|
---|
4564 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4565 | ac_cv_lib_posix_remove=yes
|
---|
4566 | else
|
---|
4567 | ac_cv_lib_posix_remove=no
|
---|
4568 | fi
|
---|
4569 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4570 | conftest$ac_exeext conftest.$ac_ext
|
---|
4571 | LIBS=$ac_check_lib_save_LIBS
|
---|
4572 | fi
|
---|
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
|
---|
4574 | $as_echo "$ac_cv_lib_posix_remove" >&6; }
|
---|
4575 | if test "x$ac_cv_lib_posix_remove" = xyes; then :
|
---|
4576 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4577 | fi
|
---|
4578 |
|
---|
4579 | fi
|
---|
4580 |
|
---|
4581 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4582 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
|
---|
4583 | if test "x$ac_cv_func_shmat" = xyes; then :
|
---|
4584 |
|
---|
4585 | fi
|
---|
4586 |
|
---|
4587 | if test $ac_cv_func_shmat = no; then
|
---|
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
|
---|
4589 | $as_echo_n "checking for shmat in -lipc... " >&6; }
|
---|
4590 | if ${ac_cv_lib_ipc_shmat+:} false; then :
|
---|
4591 | $as_echo_n "(cached) " >&6
|
---|
4592 | else
|
---|
4593 | ac_check_lib_save_LIBS=$LIBS
|
---|
4594 | LIBS="-lipc $LIBS"
|
---|
4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4596 | /* end confdefs.h. */
|
---|
4597 |
|
---|
4598 | /* Override any GCC internal prototype to avoid an error.
|
---|
4599 | Use char because int might match the return type of a GCC
|
---|
4600 | builtin and then its argument prototype would still apply. */
|
---|
4601 | #ifdef __cplusplus
|
---|
4602 | extern "C"
|
---|
4603 | #endif
|
---|
4604 | char shmat ();
|
---|
4605 | int
|
---|
4606 | main ()
|
---|
4607 | {
|
---|
4608 | return shmat ();
|
---|
4609 | ;
|
---|
4610 | return 0;
|
---|
4611 | }
|
---|
4612 | _ACEOF
|
---|
4613 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4614 | ac_cv_lib_ipc_shmat=yes
|
---|
4615 | else
|
---|
4616 | ac_cv_lib_ipc_shmat=no
|
---|
4617 | fi
|
---|
4618 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4619 | conftest$ac_exeext conftest.$ac_ext
|
---|
4620 | LIBS=$ac_check_lib_save_LIBS
|
---|
4621 | fi
|
---|
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4623 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
|
---|
4624 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
|
---|
4625 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4626 | fi
|
---|
4627 |
|
---|
4628 | fi
|
---|
4629 | fi
|
---|
4630 |
|
---|
4631 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4632 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4633 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4634 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4635 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4636 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4637 | # These have to be linked with before -lX11, unlike the other
|
---|
4638 | # libraries we check for below, so use a different variable.
|
---|
4639 | # John Interrante, Karl Berry
|
---|
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
|
---|
4641 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
|
---|
4642 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
|
---|
4643 | $as_echo_n "(cached) " >&6
|
---|
4644 | else
|
---|
4645 | ac_check_lib_save_LIBS=$LIBS
|
---|
4646 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4648 | /* end confdefs.h. */
|
---|
4649 |
|
---|
4650 | /* Override any GCC internal prototype to avoid an error.
|
---|
4651 | Use char because int might match the return type of a GCC
|
---|
4652 | builtin and then its argument prototype would still apply. */
|
---|
4653 | #ifdef __cplusplus
|
---|
4654 | extern "C"
|
---|
4655 | #endif
|
---|
4656 | char IceConnectionNumber ();
|
---|
4657 | int
|
---|
4658 | main ()
|
---|
4659 | {
|
---|
4660 | return IceConnectionNumber ();
|
---|
4661 | ;
|
---|
4662 | return 0;
|
---|
4663 | }
|
---|
4664 | _ACEOF
|
---|
4665 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4666 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4667 | else
|
---|
4668 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4669 | fi
|
---|
4670 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4671 | conftest$ac_exeext conftest.$ac_ext
|
---|
4672 | LIBS=$ac_check_lib_save_LIBS
|
---|
4673 | fi
|
---|
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
4675 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
|
---|
4676 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
|
---|
4677 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
4678 | fi
|
---|
4679 |
|
---|
4680 | LDFLAGS=$ac_save_LDFLAGS
|
---|
4681 |
|
---|
4682 | fi
|
---|
4683 |
|
---|
4684 | if test "$no_x" = "yes"; then
|
---|
4685 | echo
|
---|
4686 | echo "ERROR: Could not find X Window System headers/libraries."
|
---|
4687 | if test -f /etc/debian_version; then
|
---|
4688 | echo "Probably you need to install the libx11-dev package."
|
---|
4689 | elif test -f /etc/redhat-release; then
|
---|
4690 | echo "Probably you need to install the libX11-devel package."
|
---|
4691 | fi
|
---|
4692 | echo "To specify paths manually, use the options --x-includes and --x-libraries."
|
---|
4693 | echo
|
---|
4694 | exit 1
|
---|
4695 | fi
|
---|
4696 |
|
---|
4697 | if test -n "$ac_tool_prefix"; then
|
---|
4698 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
---|
4699 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
---|
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4701 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4702 | if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
---|
4703 | $as_echo_n "(cached) " >&6
|
---|
4704 | else
|
---|
4705 | case $PKG_CONFIG in
|
---|
4706 | [\\/]* | ?:[\\/]*)
|
---|
4707 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
4708 | ;;
|
---|
4709 | *)
|
---|
4710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4711 | for as_dir in $PATH
|
---|
4712 | do
|
---|
4713 | IFS=$as_save_IFS
|
---|
4714 | test -z "$as_dir" && as_dir=.
|
---|
4715 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4717 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
4718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4719 | break 2
|
---|
4720 | fi
|
---|
4721 | done
|
---|
4722 | done
|
---|
4723 | IFS=$as_save_IFS
|
---|
4724 |
|
---|
4725 | ;;
|
---|
4726 | esac
|
---|
4727 | fi
|
---|
4728 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
4729 | if test -n "$PKG_CONFIG"; then
|
---|
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
4731 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
4732 | else
|
---|
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4734 | $as_echo "no" >&6; }
|
---|
4735 | fi
|
---|
4736 |
|
---|
4737 |
|
---|
4738 | fi
|
---|
4739 | if test -z "$ac_cv_path_PKG_CONFIG"; then
|
---|
4740 | ac_pt_PKG_CONFIG=$PKG_CONFIG
|
---|
4741 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
4742 | set dummy pkg-config; ac_word=$2
|
---|
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4744 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4745 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
---|
4746 | $as_echo_n "(cached) " >&6
|
---|
4747 | else
|
---|
4748 | case $ac_pt_PKG_CONFIG in
|
---|
4749 | [\\/]* | ?:[\\/]*)
|
---|
4750 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
---|
4751 | ;;
|
---|
4752 | *)
|
---|
4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4754 | for as_dir in $PATH
|
---|
4755 | do
|
---|
4756 | IFS=$as_save_IFS
|
---|
4757 | test -z "$as_dir" && as_dir=.
|
---|
4758 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4760 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
4761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4762 | break 2
|
---|
4763 | fi
|
---|
4764 | done
|
---|
4765 | done
|
---|
4766 | IFS=$as_save_IFS
|
---|
4767 |
|
---|
4768 | ;;
|
---|
4769 | esac
|
---|
4770 | fi
|
---|
4771 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
---|
4772 | if test -n "$ac_pt_PKG_CONFIG"; then
|
---|
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
---|
4774 | $as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
---|
4775 | else
|
---|
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4777 | $as_echo "no" >&6; }
|
---|
4778 | fi
|
---|
4779 |
|
---|
4780 | if test "x$ac_pt_PKG_CONFIG" = x; then
|
---|
4781 | PKG_CONFIG=""
|
---|
4782 | else
|
---|
4783 | case $cross_compiling:$ac_tool_warned in
|
---|
4784 | yes:)
|
---|
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4786 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4787 | ac_tool_warned=yes ;;
|
---|
4788 | esac
|
---|
4789 | PKG_CONFIG=$ac_pt_PKG_CONFIG
|
---|
4790 | fi
|
---|
4791 | else
|
---|
4792 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
---|
4793 | fi
|
---|
4794 |
|
---|
4795 |
|
---|
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
|
---|
4797 | $as_echo_n "checking for library containing socket... " >&6; }
|
---|
4798 | if ${ac_cv_search_socket+:} false; then :
|
---|
4799 | $as_echo_n "(cached) " >&6
|
---|
4800 | else
|
---|
4801 | ac_func_search_save_LIBS=$LIBS
|
---|
4802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4803 | /* end confdefs.h. */
|
---|
4804 |
|
---|
4805 | /* Override any GCC internal prototype to avoid an error.
|
---|
4806 | Use char because int might match the return type of a GCC
|
---|
4807 | builtin and then its argument prototype would still apply. */
|
---|
4808 | #ifdef __cplusplus
|
---|
4809 | extern "C"
|
---|
4810 | #endif
|
---|
4811 | char socket ();
|
---|
4812 | int
|
---|
4813 | main ()
|
---|
4814 | {
|
---|
4815 | return socket ();
|
---|
4816 | ;
|
---|
4817 | return 0;
|
---|
4818 | }
|
---|
4819 | _ACEOF
|
---|
4820 | for ac_lib in '' socket; do
|
---|
4821 | if test -z "$ac_lib"; then
|
---|
4822 | ac_res="none required"
|
---|
4823 | else
|
---|
4824 | ac_res=-l$ac_lib
|
---|
4825 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4826 | fi
|
---|
4827 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4828 | ac_cv_search_socket=$ac_res
|
---|
4829 | fi
|
---|
4830 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4831 | conftest$ac_exeext
|
---|
4832 | if ${ac_cv_search_socket+:} false; then :
|
---|
4833 | break
|
---|
4834 | fi
|
---|
4835 | done
|
---|
4836 | if ${ac_cv_search_socket+:} false; then :
|
---|
4837 |
|
---|
4838 | else
|
---|
4839 | ac_cv_search_socket=no
|
---|
4840 | fi
|
---|
4841 | rm conftest.$ac_ext
|
---|
4842 | LIBS=$ac_func_search_save_LIBS
|
---|
4843 | fi
|
---|
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
|
---|
4845 | $as_echo "$ac_cv_search_socket" >&6; }
|
---|
4846 | ac_res=$ac_cv_search_socket
|
---|
4847 | if test "$ac_res" != no; then :
|
---|
4848 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4849 |
|
---|
4850 | fi
|
---|
4851 |
|
---|
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
|
---|
4853 | $as_echo_n "checking for library containing inet_aton... " >&6; }
|
---|
4854 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4855 | $as_echo_n "(cached) " >&6
|
---|
4856 | else
|
---|
4857 | ac_func_search_save_LIBS=$LIBS
|
---|
4858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4859 | /* end confdefs.h. */
|
---|
4860 |
|
---|
4861 | /* Override any GCC internal prototype to avoid an error.
|
---|
4862 | Use char because int might match the return type of a GCC
|
---|
4863 | builtin and then its argument prototype would still apply. */
|
---|
4864 | #ifdef __cplusplus
|
---|
4865 | extern "C"
|
---|
4866 | #endif
|
---|
4867 | char inet_aton ();
|
---|
4868 | int
|
---|
4869 | main ()
|
---|
4870 | {
|
---|
4871 | return inet_aton ();
|
---|
4872 | ;
|
---|
4873 | return 0;
|
---|
4874 | }
|
---|
4875 | _ACEOF
|
---|
4876 | for ac_lib in '' resolv; do
|
---|
4877 | if test -z "$ac_lib"; then
|
---|
4878 | ac_res="none required"
|
---|
4879 | else
|
---|
4880 | ac_res=-l$ac_lib
|
---|
4881 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4882 | fi
|
---|
4883 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4884 | ac_cv_search_inet_aton=$ac_res
|
---|
4885 | fi
|
---|
4886 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4887 | conftest$ac_exeext
|
---|
4888 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4889 | break
|
---|
4890 | fi
|
---|
4891 | done
|
---|
4892 | if ${ac_cv_search_inet_aton+:} false; then :
|
---|
4893 |
|
---|
4894 | else
|
---|
4895 | ac_cv_search_inet_aton=no
|
---|
4896 | fi
|
---|
4897 | rm conftest.$ac_ext
|
---|
4898 | LIBS=$ac_func_search_save_LIBS
|
---|
4899 | fi
|
---|
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
|
---|
4901 | $as_echo "$ac_cv_search_inet_aton" >&6; }
|
---|
4902 | ac_res=$ac_cv_search_inet_aton
|
---|
4903 | if test "$ac_res" != no; then :
|
---|
4904 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4905 |
|
---|
4906 | fi
|
---|
4907 |
|
---|
4908 |
|
---|
4909 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
|
---|
4910 | if test "x$ac_cv_header_sys_select_h" = xyes; then :
|
---|
4911 | $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
|
---|
4912 |
|
---|
4913 | fi
|
---|
4914 |
|
---|
4915 |
|
---|
4916 | ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
|
---|
4917 | if test "x$ac_cv_header_sys_modem_h" = xyes; then :
|
---|
4918 | $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
|
---|
4919 |
|
---|
4920 | fi
|
---|
4921 |
|
---|
4922 |
|
---|
4923 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
|
---|
4924 | if test "x$ac_cv_header_sys_filio_h" = xyes; then :
|
---|
4925 | $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
|
---|
4926 |
|
---|
4927 | fi
|
---|
4928 |
|
---|
4929 |
|
---|
4930 | ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
|
---|
4931 | if test "x$ac_cv_header_sys_strtio_h" = xyes; then :
|
---|
4932 | $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
|
---|
4933 |
|
---|
4934 | fi
|
---|
4935 |
|
---|
4936 |
|
---|
4937 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
---|
4938 | if test "x$ac_cv_header_locale_h" = xyes; then :
|
---|
4939 | $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
|
---|
4940 |
|
---|
4941 | fi
|
---|
4942 |
|
---|
4943 |
|
---|
4944 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
|
---|
4945 | if test "x$ac_cv_header_langinfo_h" = xyes; then :
|
---|
4946 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
|
---|
4947 |
|
---|
4948 | fi
|
---|
4949 |
|
---|
4950 |
|
---|
4951 | ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
|
---|
4952 | if test "x$ac_cv_header_sysexits_h" = xyes; then :
|
---|
4953 | $as_echo "#define HAVE_SYSEXITS_H 1" >>confdefs.h
|
---|
4954 |
|
---|
4955 | fi
|
---|
4956 |
|
---|
4957 |
|
---|
4958 |
|
---|
4959 | if test -n "$ac_tool_prefix"; then
|
---|
4960 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
4961 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4963 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4964 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
4965 | $as_echo_n "(cached) " >&6
|
---|
4966 | else
|
---|
4967 | if test -n "$STRIP"; then
|
---|
4968 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
4969 | else
|
---|
4970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4971 | for as_dir in $PATH
|
---|
4972 | do
|
---|
4973 | IFS=$as_save_IFS
|
---|
4974 | test -z "$as_dir" && as_dir=.
|
---|
4975 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4977 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
4978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4979 | break 2
|
---|
4980 | fi
|
---|
4981 | done
|
---|
4982 | done
|
---|
4983 | IFS=$as_save_IFS
|
---|
4984 |
|
---|
4985 | fi
|
---|
4986 | fi
|
---|
4987 | STRIP=$ac_cv_prog_STRIP
|
---|
4988 | if test -n "$STRIP"; then
|
---|
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
4990 | $as_echo "$STRIP" >&6; }
|
---|
4991 | else
|
---|
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4993 | $as_echo "no" >&6; }
|
---|
4994 | fi
|
---|
4995 |
|
---|
4996 |
|
---|
4997 | fi
|
---|
4998 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
4999 | ac_ct_STRIP=$STRIP
|
---|
5000 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5001 | set dummy strip; ac_word=$2
|
---|
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5003 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5004 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
5005 | $as_echo_n "(cached) " >&6
|
---|
5006 | else
|
---|
5007 | if test -n "$ac_ct_STRIP"; then
|
---|
5008 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5009 | else
|
---|
5010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5011 | for as_dir in $PATH
|
---|
5012 | do
|
---|
5013 | IFS=$as_save_IFS
|
---|
5014 | test -z "$as_dir" && as_dir=.
|
---|
5015 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5017 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5019 | break 2
|
---|
5020 | fi
|
---|
5021 | done
|
---|
5022 | done
|
---|
5023 | IFS=$as_save_IFS
|
---|
5024 |
|
---|
5025 | fi
|
---|
5026 | fi
|
---|
5027 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5028 | if test -n "$ac_ct_STRIP"; then
|
---|
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
5030 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
5031 | else
|
---|
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5033 | $as_echo "no" >&6; }
|
---|
5034 | fi
|
---|
5035 |
|
---|
5036 | if test "x$ac_ct_STRIP" = x; then
|
---|
5037 | STRIP=":"
|
---|
5038 | else
|
---|
5039 | case $cross_compiling:$ac_tool_warned in
|
---|
5040 | yes:)
|
---|
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5043 | ac_tool_warned=yes ;;
|
---|
5044 | esac
|
---|
5045 | STRIP=$ac_ct_STRIP
|
---|
5046 | fi
|
---|
5047 | else
|
---|
5048 | STRIP="$ac_cv_prog_STRIP"
|
---|
5049 | fi
|
---|
5050 |
|
---|
5051 |
|
---|
5052 |
|
---|
5053 |
|
---|
5054 | #
|
---|
5055 | # OpenSSL detection borrowed from stunnel
|
---|
5056 | #
|
---|
5057 | checkssldir() { :
|
---|
5058 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
5059 | ssldir="$1"
|
---|
5060 | return 0
|
---|
5061 | fi
|
---|
5062 | return 1
|
---|
5063 | }
|
---|
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
|
---|
5065 | $as_echo_n "checking for OpenSSL directory... " >&6; }
|
---|
5066 |
|
---|
5067 | # Check whether --with-openssl was given.
|
---|
5068 | if test "${with_openssl+set}" = set; then :
|
---|
5069 | withval=$with_openssl;
|
---|
5070 | checkssldir "$withval"
|
---|
5071 |
|
---|
5072 | else
|
---|
5073 |
|
---|
5074 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
5075 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
5076 | checkssldir $dir && break 2
|
---|
5077 | done
|
---|
5078 | done
|
---|
5079 |
|
---|
5080 |
|
---|
5081 | fi
|
---|
5082 |
|
---|
5083 | if test -z "$ssldir"; then
|
---|
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
|
---|
5085 | $as_echo "Not found" >&6; }
|
---|
5086 | echo
|
---|
5087 | echo "ERROR: Could not find OpenSSL headers/libraries."
|
---|
5088 | if test -f /etc/debian_version; then
|
---|
5089 | echo "Probably you need to install the libssl-dev package."
|
---|
5090 | elif test -f /etc/redhat-release; then
|
---|
5091 | echo "Probably you need to install the openssl-devel package."
|
---|
5092 | fi
|
---|
5093 | echo "To specify a path manually, use the --with-openssl option."
|
---|
5094 | echo
|
---|
5095 | exit 1
|
---|
5096 | fi
|
---|
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
|
---|
5098 | $as_echo "$ssldir" >&6; }
|
---|
5099 |
|
---|
5100 | cat >>confdefs.h <<_ACEOF
|
---|
5101 | #define ssldir "$ssldir"
|
---|
5102 | _ACEOF
|
---|
5103 |
|
---|
5104 |
|
---|
5105 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
5106 | # Check whether --enable-static-openssl was given.
|
---|
5107 | if test "${enable_static_openssl+set}" = set; then :
|
---|
5108 | enableval=$enable_static_openssl; static_openssl=yes
|
---|
5109 | else
|
---|
5110 | static_openssl=no
|
---|
5111 | fi
|
---|
5112 |
|
---|
5113 | if test x"$static_openssl" = "xyes"; then
|
---|
5114 | # OpenSSL generally relies on libz
|
---|
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
|
---|
5116 | $as_echo_n "checking for library containing deflate... " >&6; }
|
---|
5117 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5118 | $as_echo_n "(cached) " >&6
|
---|
5119 | else
|
---|
5120 | ac_func_search_save_LIBS=$LIBS
|
---|
5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5122 | /* end confdefs.h. */
|
---|
5123 |
|
---|
5124 | /* Override any GCC internal prototype to avoid an error.
|
---|
5125 | Use char because int might match the return type of a GCC
|
---|
5126 | builtin and then its argument prototype would still apply. */
|
---|
5127 | #ifdef __cplusplus
|
---|
5128 | extern "C"
|
---|
5129 | #endif
|
---|
5130 | char deflate ();
|
---|
5131 | int
|
---|
5132 | main ()
|
---|
5133 | {
|
---|
5134 | return deflate ();
|
---|
5135 | ;
|
---|
5136 | return 0;
|
---|
5137 | }
|
---|
5138 | _ACEOF
|
---|
5139 | for ac_lib in '' z; do
|
---|
5140 | if test -z "$ac_lib"; then
|
---|
5141 | ac_res="none required"
|
---|
5142 | else
|
---|
5143 | ac_res=-l$ac_lib
|
---|
5144 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5145 | fi
|
---|
5146 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5147 | ac_cv_search_deflate=$ac_res
|
---|
5148 | fi
|
---|
5149 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5150 | conftest$ac_exeext
|
---|
5151 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5152 | break
|
---|
5153 | fi
|
---|
5154 | done
|
---|
5155 | if ${ac_cv_search_deflate+:} false; then :
|
---|
5156 |
|
---|
5157 | else
|
---|
5158 | ac_cv_search_deflate=no
|
---|
5159 | fi
|
---|
5160 | rm conftest.$ac_ext
|
---|
5161 | LIBS=$ac_func_search_save_LIBS
|
---|
5162 | fi
|
---|
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
|
---|
5164 | $as_echo "$ac_cv_search_deflate" >&6; }
|
---|
5165 | ac_res=$ac_cv_search_deflate
|
---|
5166 | if test "$ac_res" != no; then :
|
---|
5167 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5168 |
|
---|
5169 | fi
|
---|
5170 |
|
---|
5171 | LIBS="-L$ssldir/lib -L$ssldir/lib64 -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic $LIBS"
|
---|
5172 | else
|
---|
5173 | LIBS="-L$ssldir/lib -L$ssldir/lib64 -lssl -lcrypto $LIBS"
|
---|
5174 |
|
---|
5175 | #
|
---|
5176 | # target-specific stuff
|
---|
5177 | #
|
---|
5178 | case "$host" in
|
---|
5179 | *-*-solaris*)
|
---|
5180 | LDFLAGS="$LDFLAGS -R$ssldir/lib"
|
---|
5181 | ;;
|
---|
5182 | *-dec-osf*)
|
---|
5183 | LDFLAGS="$LDFLAGS -Wl,-rpath,$ssldir/lib"
|
---|
5184 | ;;
|
---|
5185 | esac
|
---|
5186 | fi
|
---|
5187 |
|
---|
5188 | # Check whether --enable-credssp was given.
|
---|
5189 | if test "${enable_credssp+set}" = set; then :
|
---|
5190 | enableval=$enable_credssp;
|
---|
5191 | fi
|
---|
5192 |
|
---|
5193 | # Check whether --enable-static-gssglue was given.
|
---|
5194 | if test "${enable_static_gssglue+set}" = set; then :
|
---|
5195 | enableval=$enable_static_gssglue; static_gssglue=yes
|
---|
5196 | else
|
---|
5197 | static_gssglue=no
|
---|
5198 | fi
|
---|
5199 |
|
---|
5200 |
|
---|
5201 |
|
---|
5202 |
|
---|
5203 |
|
---|
5204 |
|
---|
5205 |
|
---|
5206 |
|
---|
5207 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
---|
5208 | if test -n "$ac_tool_prefix"; then
|
---|
5209 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
---|
5210 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
---|
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5212 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5213 | if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
---|
5214 | $as_echo_n "(cached) " >&6
|
---|
5215 | else
|
---|
5216 | case $PKG_CONFIG in
|
---|
5217 | [\\/]* | ?:[\\/]*)
|
---|
5218 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
5219 | ;;
|
---|
5220 | *)
|
---|
5221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5222 | for as_dir in $PATH
|
---|
5223 | do
|
---|
5224 | IFS=$as_save_IFS
|
---|
5225 | test -z "$as_dir" && as_dir=.
|
---|
5226 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5228 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5230 | break 2
|
---|
5231 | fi
|
---|
5232 | done
|
---|
5233 | done
|
---|
5234 | IFS=$as_save_IFS
|
---|
5235 |
|
---|
5236 | ;;
|
---|
5237 | esac
|
---|
5238 | fi
|
---|
5239 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
5240 | if test -n "$PKG_CONFIG"; then
|
---|
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
5242 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
5243 | else
|
---|
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5245 | $as_echo "no" >&6; }
|
---|
5246 | fi
|
---|
5247 |
|
---|
5248 |
|
---|
5249 | fi
|
---|
5250 | if test -z "$ac_cv_path_PKG_CONFIG"; then
|
---|
5251 | ac_pt_PKG_CONFIG=$PKG_CONFIG
|
---|
5252 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
5253 | set dummy pkg-config; ac_word=$2
|
---|
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5255 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5256 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
---|
5257 | $as_echo_n "(cached) " >&6
|
---|
5258 | else
|
---|
5259 | case $ac_pt_PKG_CONFIG in
|
---|
5260 | [\\/]* | ?:[\\/]*)
|
---|
5261 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
---|
5262 | ;;
|
---|
5263 | *)
|
---|
5264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5265 | for as_dir in $PATH
|
---|
5266 | do
|
---|
5267 | IFS=$as_save_IFS
|
---|
5268 | test -z "$as_dir" && as_dir=.
|
---|
5269 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5271 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5273 | break 2
|
---|
5274 | fi
|
---|
5275 | done
|
---|
5276 | done
|
---|
5277 | IFS=$as_save_IFS
|
---|
5278 |
|
---|
5279 | ;;
|
---|
5280 | esac
|
---|
5281 | fi
|
---|
5282 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
---|
5283 | if test -n "$ac_pt_PKG_CONFIG"; then
|
---|
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
---|
5285 | $as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
---|
5286 | else
|
---|
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5288 | $as_echo "no" >&6; }
|
---|
5289 | fi
|
---|
5290 |
|
---|
5291 | if test "x$ac_pt_PKG_CONFIG" = x; then
|
---|
5292 | PKG_CONFIG=""
|
---|
5293 | else
|
---|
5294 | case $cross_compiling:$ac_tool_warned in
|
---|
5295 | yes:)
|
---|
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5298 | ac_tool_warned=yes ;;
|
---|
5299 | esac
|
---|
5300 | PKG_CONFIG=$ac_pt_PKG_CONFIG
|
---|
5301 | fi
|
---|
5302 | else
|
---|
5303 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
---|
5304 | fi
|
---|
5305 |
|
---|
5306 | fi
|
---|
5307 | if test -n "$PKG_CONFIG"; then
|
---|
5308 | _pkg_min_version=0.9.0
|
---|
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
|
---|
5310 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
|
---|
5311 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
---|
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5313 | $as_echo "yes" >&6; }
|
---|
5314 | else
|
---|
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5316 | $as_echo "no" >&6; }
|
---|
5317 | PKG_CONFIG=""
|
---|
5318 | fi
|
---|
5319 | fi
|
---|
5320 | if test "x$enable_credssp" != "xno"; then :
|
---|
5321 |
|
---|
5322 | if test -n "$PKG_CONFIG"; then
|
---|
5323 |
|
---|
5324 | pkg_failed=no
|
---|
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
|
---|
5326 | $as_echo_n "checking for GSSGLUE... " >&6; }
|
---|
5327 |
|
---|
5328 | if test -n "$GSSGLUE_CFLAGS"; then
|
---|
5329 | pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
|
---|
5330 | elif test -n "$PKG_CONFIG"; then
|
---|
5331 | if test -n "$PKG_CONFIG" && \
|
---|
5332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
|
---|
5333 | ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
|
---|
5334 | ac_status=$?
|
---|
5335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5336 | test $ac_status = 0; }; then
|
---|
5337 | pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue" 2>/dev/null`
|
---|
5338 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5339 | else
|
---|
5340 | pkg_failed=yes
|
---|
5341 | fi
|
---|
5342 | else
|
---|
5343 | pkg_failed=untried
|
---|
5344 | fi
|
---|
5345 | if test -n "$GSSGLUE_LIBS"; then
|
---|
5346 | pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
|
---|
5347 | elif test -n "$PKG_CONFIG"; then
|
---|
5348 | if test -n "$PKG_CONFIG" && \
|
---|
5349 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
|
---|
5350 | ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
|
---|
5351 | ac_status=$?
|
---|
5352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5353 | test $ac_status = 0; }; then
|
---|
5354 | pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue" 2>/dev/null`
|
---|
5355 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5356 | else
|
---|
5357 | pkg_failed=yes
|
---|
5358 | fi
|
---|
5359 | else
|
---|
5360 | pkg_failed=untried
|
---|
5361 | fi
|
---|
5362 |
|
---|
5363 |
|
---|
5364 |
|
---|
5365 | if test $pkg_failed = yes; then
|
---|
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5367 | $as_echo "no" >&6; }
|
---|
5368 |
|
---|
5369 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5370 | _pkg_short_errors_supported=yes
|
---|
5371 | else
|
---|
5372 | _pkg_short_errors_supported=no
|
---|
5373 | fi
|
---|
5374 | if test $_pkg_short_errors_supported = yes; then
|
---|
5375 | GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgssglue" 2>&1`
|
---|
5376 | else
|
---|
5377 | GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgssglue" 2>&1`
|
---|
5378 | fi
|
---|
5379 | # Put the nasty error message in config.log where it belongs
|
---|
5380 | echo "$GSSGLUE_PKG_ERRORS" >&5
|
---|
5381 |
|
---|
5382 | WITH_CREDSSP=0
|
---|
5383 | elif test $pkg_failed = untried; then
|
---|
5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5385 | $as_echo "no" >&6; }
|
---|
5386 | WITH_CREDSSP=0
|
---|
5387 | else
|
---|
5388 | GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
|
---|
5389 | GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
|
---|
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5391 | $as_echo "yes" >&6; }
|
---|
5392 | WITH_CREDSSP=1
|
---|
5393 | fi
|
---|
5394 | fi
|
---|
5395 |
|
---|
5396 | if test x"$WITH_CREDSSP" = "x1"; then
|
---|
5397 | CREDSSPOBJ="cssp.o"
|
---|
5398 | CFLAGS="$CFLAGS $GSSGLUE_CFLAGS"
|
---|
5399 |
|
---|
5400 | if test "x$static_gssglue" != "xno"; then :
|
---|
5401 |
|
---|
5402 | LIBS="$LIBS -Wl,-Bstatic -lgssglue -Wl,-Bdynamic"
|
---|
5403 |
|
---|
5404 | else
|
---|
5405 |
|
---|
5406 | LIBS="$LIBS -lgssglue"
|
---|
5407 |
|
---|
5408 | fi
|
---|
5409 |
|
---|
5410 | $as_echo "#define WITH_CREDSSP 1" >>confdefs.h
|
---|
5411 |
|
---|
5412 | else
|
---|
5413 | echo
|
---|
5414 | echo "CredSSP support requires libgssglue, install the dependency"
|
---|
5415 | echo "or disable the feature using --disable-credssp."
|
---|
5416 | echo
|
---|
5417 | exit 1
|
---|
5418 | fi
|
---|
5419 |
|
---|
5420 | fi
|
---|
5421 |
|
---|
5422 |
|
---|
5423 | # xrandr
|
---|
5424 | if test -n "$PKG_CONFIG"; then
|
---|
5425 |
|
---|
5426 | pkg_failed=no
|
---|
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
|
---|
5428 | $as_echo_n "checking for XRANDR... " >&6; }
|
---|
5429 |
|
---|
5430 | if test -n "$XRANDR_CFLAGS"; then
|
---|
5431 | pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
|
---|
5432 | elif test -n "$PKG_CONFIG"; then
|
---|
5433 | if test -n "$PKG_CONFIG" && \
|
---|
5434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
|
---|
5435 | ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
|
---|
5436 | ac_status=$?
|
---|
5437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5438 | test $ac_status = 0; }; then
|
---|
5439 | pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
|
---|
5440 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5441 | else
|
---|
5442 | pkg_failed=yes
|
---|
5443 | fi
|
---|
5444 | else
|
---|
5445 | pkg_failed=untried
|
---|
5446 | fi
|
---|
5447 | if test -n "$XRANDR_LIBS"; then
|
---|
5448 | pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
|
---|
5449 | elif test -n "$PKG_CONFIG"; then
|
---|
5450 | if test -n "$PKG_CONFIG" && \
|
---|
5451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
|
---|
5452 | ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
|
---|
5453 | ac_status=$?
|
---|
5454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5455 | test $ac_status = 0; }; then
|
---|
5456 | pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
|
---|
5457 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5458 | else
|
---|
5459 | pkg_failed=yes
|
---|
5460 | fi
|
---|
5461 | else
|
---|
5462 | pkg_failed=untried
|
---|
5463 | fi
|
---|
5464 |
|
---|
5465 |
|
---|
5466 |
|
---|
5467 | if test $pkg_failed = yes; then
|
---|
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5469 | $as_echo "no" >&6; }
|
---|
5470 |
|
---|
5471 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5472 | _pkg_short_errors_supported=yes
|
---|
5473 | else
|
---|
5474 | _pkg_short_errors_supported=no
|
---|
5475 | fi
|
---|
5476 | if test $_pkg_short_errors_supported = yes; then
|
---|
5477 | XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
|
---|
5478 | else
|
---|
5479 | XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
|
---|
5480 | fi
|
---|
5481 | # Put the nasty error message in config.log where it belongs
|
---|
5482 | echo "$XRANDR_PKG_ERRORS" >&5
|
---|
5483 |
|
---|
5484 | HAVE_XRANDR=0
|
---|
5485 | elif test $pkg_failed = untried; then
|
---|
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5487 | $as_echo "no" >&6; }
|
---|
5488 | HAVE_XRANDR=0
|
---|
5489 | else
|
---|
5490 | XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
|
---|
5491 | XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
|
---|
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5493 | $as_echo "yes" >&6; }
|
---|
5494 | HAVE_XRANDR=1
|
---|
5495 | fi
|
---|
5496 | fi
|
---|
5497 | if test x"$HAVE_XRANDR" = "x1"; then
|
---|
5498 | CFLAGS="$CFLAGS $XRANDR_CFLAGS"
|
---|
5499 | LIBS="$LIBS $XRANDR_LIBS"
|
---|
5500 | $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
|
---|
5501 |
|
---|
5502 | fi
|
---|
5503 |
|
---|
5504 | # Check whether --enable-smartcard was given.
|
---|
5505 | if test "${enable_smartcard+set}" = set; then :
|
---|
5506 | enableval=$enable_smartcard;
|
---|
5507 | fi
|
---|
5508 |
|
---|
5509 | if test "x$enable_smartcard" != "xno"; then :
|
---|
5510 |
|
---|
5511 | case "$OSTYPE" in
|
---|
5512 | darwin*)
|
---|
5513 | ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
|
---|
5514 | if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes; then :
|
---|
5515 | WITH_SCARD=1
|
---|
5516 | else
|
---|
5517 | WITH_SCARD=0
|
---|
5518 | fi
|
---|
5519 |
|
---|
5520 |
|
---|
5521 | PCSCLITE_CFLAGS=""
|
---|
5522 | PCSCLITE_LIBS="-framework PCSC"
|
---|
5523 | ;;
|
---|
5524 | *)
|
---|
5525 | if test -n "$PKG_CONFIG"; then
|
---|
5526 |
|
---|
5527 | pkg_failed=no
|
---|
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCSCLITE" >&5
|
---|
5529 | $as_echo_n "checking for PCSCLITE... " >&6; }
|
---|
5530 |
|
---|
5531 | if test -n "$PCSCLITE_CFLAGS"; then
|
---|
5532 | pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
|
---|
5533 | elif test -n "$PKG_CONFIG"; then
|
---|
5534 | if test -n "$PKG_CONFIG" && \
|
---|
5535 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
|
---|
5536 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
5537 | ac_status=$?
|
---|
5538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5539 | test $ac_status = 0; }; then
|
---|
5540 | pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
|
---|
5541 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5542 | else
|
---|
5543 | pkg_failed=yes
|
---|
5544 | fi
|
---|
5545 | else
|
---|
5546 | pkg_failed=untried
|
---|
5547 | fi
|
---|
5548 | if test -n "$PCSCLITE_LIBS"; then
|
---|
5549 | pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
|
---|
5550 | elif test -n "$PKG_CONFIG"; then
|
---|
5551 | if test -n "$PKG_CONFIG" && \
|
---|
5552 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
|
---|
5553 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
5554 | ac_status=$?
|
---|
5555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5556 | test $ac_status = 0; }; then
|
---|
5557 | pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
|
---|
5558 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5559 | else
|
---|
5560 | pkg_failed=yes
|
---|
5561 | fi
|
---|
5562 | else
|
---|
5563 | pkg_failed=untried
|
---|
5564 | fi
|
---|
5565 |
|
---|
5566 |
|
---|
5567 |
|
---|
5568 | if test $pkg_failed = yes; then
|
---|
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5570 | $as_echo "no" >&6; }
|
---|
5571 |
|
---|
5572 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5573 | _pkg_short_errors_supported=yes
|
---|
5574 | else
|
---|
5575 | _pkg_short_errors_supported=no
|
---|
5576 | fi
|
---|
5577 | if test $_pkg_short_errors_supported = yes; then
|
---|
5578 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite" 2>&1`
|
---|
5579 | else
|
---|
5580 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite" 2>&1`
|
---|
5581 | fi
|
---|
5582 | # Put the nasty error message in config.log where it belongs
|
---|
5583 | echo "$PCSCLITE_PKG_ERRORS" >&5
|
---|
5584 |
|
---|
5585 | WITH_SCARD=0
|
---|
5586 | elif test $pkg_failed = untried; then
|
---|
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5588 | $as_echo "no" >&6; }
|
---|
5589 | WITH_SCARD=0
|
---|
5590 | else
|
---|
5591 | PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
|
---|
5592 | PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
|
---|
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5594 | $as_echo "yes" >&6; }
|
---|
5595 | WITH_SCARD=1
|
---|
5596 | fi
|
---|
5597 | fi
|
---|
5598 | ;;
|
---|
5599 | esac
|
---|
5600 |
|
---|
5601 | if test x"$WITH_SCARD" = "x1"; then
|
---|
5602 | SCARDOBJ="scard.o"
|
---|
5603 | CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
|
---|
5604 | LIBS="$LIBS $PCSCLITE_LIBS"
|
---|
5605 | $as_echo "#define WITH_SCARD 1" >>confdefs.h
|
---|
5606 |
|
---|
5607 | else
|
---|
5608 | echo
|
---|
5609 | echo "SmartCard support requires PCSC, install the dependency"
|
---|
5610 | echo "or disable the feature using --disable-smartcard."
|
---|
5611 | echo
|
---|
5612 | exit 1
|
---|
5613 | fi
|
---|
5614 |
|
---|
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
|
---|
5616 | $as_echo_n "checking for old version of PCSC... " >&6; }
|
---|
5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5618 | /* end confdefs.h. */
|
---|
5619 |
|
---|
5620 | #include <stdlib.h>
|
---|
5621 | #ifdef __APPLE__
|
---|
5622 | #include <PCSC/wintypes.h>
|
---|
5623 | #include <PCSC/winscard.h>
|
---|
5624 | #else
|
---|
5625 | #include <winscard.h>
|
---|
5626 | #endif
|
---|
5627 |
|
---|
5628 | int
|
---|
5629 | main ()
|
---|
5630 | {
|
---|
5631 | SCardControl(NULL, NULL, 0, NULL, NULL);
|
---|
5632 | ;
|
---|
5633 | return 0;
|
---|
5634 | }
|
---|
5635 | _ACEOF
|
---|
5636 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5638 | $as_echo "yes" >&6; }
|
---|
5639 | $as_echo "#define WITH_PCSC120 1" >>confdefs.h
|
---|
5640 |
|
---|
5641 | else
|
---|
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5643 | $as_echo "no" >&6; }
|
---|
5644 | fi
|
---|
5645 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5646 | conftest$ac_exeext conftest.$ac_ext
|
---|
5647 |
|
---|
5648 | fi
|
---|
5649 |
|
---|
5650 |
|
---|
5651 | #
|
---|
5652 | # Alignment
|
---|
5653 | #
|
---|
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
|
---|
5655 | $as_echo_n "checking if architecture needs alignment... " >&6; }
|
---|
5656 | if test "$cross_compiling" = yes; then :
|
---|
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
|
---|
5658 | $as_echo "assuming yes" >&6; }
|
---|
5659 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5660 |
|
---|
5661 | else
|
---|
5662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5663 | /* end confdefs.h. */
|
---|
5664 |
|
---|
5665 | #include <stdlib.h>
|
---|
5666 | #include <signal.h>
|
---|
5667 | int main(int argc, char **argv)
|
---|
5668 | {
|
---|
5669 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
5670 | signal(SIGBUS, exit);
|
---|
5671 | signal(SIGABRT, exit);
|
---|
5672 | signal(SIGSEGV, exit);
|
---|
5673 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
5674 | return 1;
|
---|
5675 | }
|
---|
5676 | return 0;
|
---|
5677 | }
|
---|
5678 | _ACEOF
|
---|
5679 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5681 | $as_echo "no" >&6; }
|
---|
5682 | else
|
---|
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5684 | $as_echo "yes" >&6; }
|
---|
5685 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5686 |
|
---|
5687 | fi
|
---|
5688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5689 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5690 | fi
|
---|
5691 |
|
---|
5692 |
|
---|
5693 |
|
---|
5694 | #
|
---|
5695 | # EGD
|
---|
5696 | #
|
---|
5697 |
|
---|
5698 | # Check whether --with-egd-socket was given.
|
---|
5699 | if test "${with_egd_socket+set}" = set; then :
|
---|
5700 | withval=$with_egd_socket; EGD_SOCKET="$withval"
|
---|
5701 | else
|
---|
5702 | EGD_SOCKET="/var/run/egd-pool"
|
---|
5703 |
|
---|
5704 | fi
|
---|
5705 |
|
---|
5706 | cat >>confdefs.h <<_ACEOF
|
---|
5707 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
5708 | _ACEOF
|
---|
5709 |
|
---|
5710 |
|
---|
5711 |
|
---|
5712 | #
|
---|
5713 | # rdp2vnc
|
---|
5714 | #
|
---|
5715 | vncserverconfig=libvncserver-config
|
---|
5716 |
|
---|
5717 | # Check whether --with-libvncserver-config was given.
|
---|
5718 | if test "${with_libvncserver_config+set}" = set; then :
|
---|
5719 | withval=$with_libvncserver_config; vncserverconfig="$withval"
|
---|
5720 |
|
---|
5721 | fi
|
---|
5722 |
|
---|
5723 |
|
---|
5724 | # Check whether --with-libvncserver was given.
|
---|
5725 | if test "${with_libvncserver+set}" = set; then :
|
---|
5726 | withval=$with_libvncserver;
|
---|
5727 | VNCINC=`$vncserverconfig --cflags`
|
---|
5728 |
|
---|
5729 | LDVNC=`$vncserverconfig --libs`
|
---|
5730 |
|
---|
5731 | VNCLINK=`$vncserverconfig --link`
|
---|
5732 |
|
---|
5733 | RDP2VNCTARGET="rdp2vnc"
|
---|
5734 |
|
---|
5735 |
|
---|
5736 |
|
---|
5737 | fi
|
---|
5738 |
|
---|
5739 |
|
---|
5740 | #
|
---|
5741 | # sound
|
---|
5742 | #
|
---|
5743 |
|
---|
5744 | sound="yes"
|
---|
5745 |
|
---|
5746 | # Check whether --with-sound was given.
|
---|
5747 | if test "${with_sound+set}" = set; then :
|
---|
5748 | withval=$with_sound;
|
---|
5749 | sound="$withval"
|
---|
5750 |
|
---|
5751 | fi
|
---|
5752 |
|
---|
5753 |
|
---|
5754 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
|
---|
5755 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
|
---|
5756 | HAVE_OSS=1
|
---|
5757 | else
|
---|
5758 | HAVE_OSS=0
|
---|
5759 | fi
|
---|
5760 |
|
---|
5761 |
|
---|
5762 | ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
|
---|
5763 | if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
|
---|
5764 | HAVE_SGI=1
|
---|
5765 | else
|
---|
5766 | HAVE_SGI=0
|
---|
5767 | fi
|
---|
5768 |
|
---|
5769 |
|
---|
5770 | ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
|
---|
5771 | if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
|
---|
5772 | HAVE_SUN=1
|
---|
5773 | else
|
---|
5774 | HAVE_SUN=0
|
---|
5775 | fi
|
---|
5776 |
|
---|
5777 |
|
---|
5778 |
|
---|
5779 | # Check whether --enable-static-libsamplerate was given.
|
---|
5780 | if test "${enable_static_libsamplerate+set}" = set; then :
|
---|
5781 | enableval=$enable_static_libsamplerate; static_libsamplerate=yes
|
---|
5782 | else
|
---|
5783 | static_libsamplerate=no
|
---|
5784 | fi
|
---|
5785 |
|
---|
5786 |
|
---|
5787 | if test -n "$PKG_CONFIG"; then
|
---|
5788 |
|
---|
5789 | pkg_failed=no
|
---|
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAO" >&5
|
---|
5791 | $as_echo_n "checking for LIBAO... " >&6; }
|
---|
5792 |
|
---|
5793 | if test -n "$LIBAO_CFLAGS"; then
|
---|
5794 | pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
|
---|
5795 | elif test -n "$PKG_CONFIG"; then
|
---|
5796 | if test -n "$PKG_CONFIG" && \
|
---|
5797 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
|
---|
5798 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
5799 | ac_status=$?
|
---|
5800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5801 | test $ac_status = 0; }; then
|
---|
5802 | pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
|
---|
5803 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5804 | else
|
---|
5805 | pkg_failed=yes
|
---|
5806 | fi
|
---|
5807 | else
|
---|
5808 | pkg_failed=untried
|
---|
5809 | fi
|
---|
5810 | if test -n "$LIBAO_LIBS"; then
|
---|
5811 | pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
|
---|
5812 | elif test -n "$PKG_CONFIG"; then
|
---|
5813 | if test -n "$PKG_CONFIG" && \
|
---|
5814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
|
---|
5815 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
5816 | ac_status=$?
|
---|
5817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5818 | test $ac_status = 0; }; then
|
---|
5819 | pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
|
---|
5820 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5821 | else
|
---|
5822 | pkg_failed=yes
|
---|
5823 | fi
|
---|
5824 | else
|
---|
5825 | pkg_failed=untried
|
---|
5826 | fi
|
---|
5827 |
|
---|
5828 |
|
---|
5829 |
|
---|
5830 | if test $pkg_failed = yes; then
|
---|
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5832 | $as_echo "no" >&6; }
|
---|
5833 |
|
---|
5834 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5835 | _pkg_short_errors_supported=yes
|
---|
5836 | else
|
---|
5837 | _pkg_short_errors_supported=no
|
---|
5838 | fi
|
---|
5839 | if test $_pkg_short_errors_supported = yes; then
|
---|
5840 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ao" 2>&1`
|
---|
5841 | else
|
---|
5842 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ao" 2>&1`
|
---|
5843 | fi
|
---|
5844 | # Put the nasty error message in config.log where it belongs
|
---|
5845 | echo "$LIBAO_PKG_ERRORS" >&5
|
---|
5846 |
|
---|
5847 | HAVE_LIBAO=0
|
---|
5848 | elif test $pkg_failed = untried; then
|
---|
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5850 | $as_echo "no" >&6; }
|
---|
5851 | HAVE_LIBAO=0
|
---|
5852 | else
|
---|
5853 | LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
|
---|
5854 | LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
|
---|
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5856 | $as_echo "yes" >&6; }
|
---|
5857 | HAVE_LIBAO=1
|
---|
5858 | fi
|
---|
5859 |
|
---|
5860 | pkg_failed=no
|
---|
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
|
---|
5862 | $as_echo_n "checking for ALSA... " >&6; }
|
---|
5863 |
|
---|
5864 | if test -n "$ALSA_CFLAGS"; then
|
---|
5865 | pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
|
---|
5866 | elif test -n "$PKG_CONFIG"; then
|
---|
5867 | if test -n "$PKG_CONFIG" && \
|
---|
5868 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
|
---|
5869 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
5870 | ac_status=$?
|
---|
5871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5872 | test $ac_status = 0; }; then
|
---|
5873 | pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
|
---|
5874 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5875 | else
|
---|
5876 | pkg_failed=yes
|
---|
5877 | fi
|
---|
5878 | else
|
---|
5879 | pkg_failed=untried
|
---|
5880 | fi
|
---|
5881 | if test -n "$ALSA_LIBS"; then
|
---|
5882 | pkg_cv_ALSA_LIBS="$ALSA_LIBS"
|
---|
5883 | elif test -n "$PKG_CONFIG"; then
|
---|
5884 | if test -n "$PKG_CONFIG" && \
|
---|
5885 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
|
---|
5886 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
5887 | ac_status=$?
|
---|
5888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5889 | test $ac_status = 0; }; then
|
---|
5890 | pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
|
---|
5891 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5892 | else
|
---|
5893 | pkg_failed=yes
|
---|
5894 | fi
|
---|
5895 | else
|
---|
5896 | pkg_failed=untried
|
---|
5897 | fi
|
---|
5898 |
|
---|
5899 |
|
---|
5900 |
|
---|
5901 | if test $pkg_failed = yes; then
|
---|
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5903 | $as_echo "no" >&6; }
|
---|
5904 |
|
---|
5905 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5906 | _pkg_short_errors_supported=yes
|
---|
5907 | else
|
---|
5908 | _pkg_short_errors_supported=no
|
---|
5909 | fi
|
---|
5910 | if test $_pkg_short_errors_supported = yes; then
|
---|
5911 | ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
|
---|
5912 | else
|
---|
5913 | ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
|
---|
5914 | fi
|
---|
5915 | # Put the nasty error message in config.log where it belongs
|
---|
5916 | echo "$ALSA_PKG_ERRORS" >&5
|
---|
5917 |
|
---|
5918 | HAVE_ALSA=0
|
---|
5919 | elif test $pkg_failed = untried; then
|
---|
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5921 | $as_echo "no" >&6; }
|
---|
5922 | HAVE_ALSA=0
|
---|
5923 | else
|
---|
5924 | ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
|
---|
5925 | ALSA_LIBS=$pkg_cv_ALSA_LIBS
|
---|
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5927 | $as_echo "yes" >&6; }
|
---|
5928 | HAVE_ALSA=1
|
---|
5929 | fi
|
---|
5930 |
|
---|
5931 | pkg_failed=no
|
---|
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSAMPLERATE" >&5
|
---|
5933 | $as_echo_n "checking for LIBSAMPLERATE... " >&6; }
|
---|
5934 |
|
---|
5935 | if test -n "$LIBSAMPLERATE_CFLAGS"; then
|
---|
5936 | pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
|
---|
5937 | elif test -n "$PKG_CONFIG"; then
|
---|
5938 | if test -n "$PKG_CONFIG" && \
|
---|
5939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
|
---|
5940 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
5941 | ac_status=$?
|
---|
5942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5943 | test $ac_status = 0; }; then
|
---|
5944 | pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
|
---|
5945 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5946 | else
|
---|
5947 | pkg_failed=yes
|
---|
5948 | fi
|
---|
5949 | else
|
---|
5950 | pkg_failed=untried
|
---|
5951 | fi
|
---|
5952 | if test -n "$LIBSAMPLERATE_LIBS"; then
|
---|
5953 | pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
|
---|
5954 | elif test -n "$PKG_CONFIG"; then
|
---|
5955 | if test -n "$PKG_CONFIG" && \
|
---|
5956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
|
---|
5957 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
5958 | ac_status=$?
|
---|
5959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5960 | test $ac_status = 0; }; then
|
---|
5961 | pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
|
---|
5962 | test "x$?" != "x0" && pkg_failed=yes
|
---|
5963 | else
|
---|
5964 | pkg_failed=yes
|
---|
5965 | fi
|
---|
5966 | else
|
---|
5967 | pkg_failed=untried
|
---|
5968 | fi
|
---|
5969 |
|
---|
5970 |
|
---|
5971 |
|
---|
5972 | if test $pkg_failed = yes; then
|
---|
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5974 | $as_echo "no" >&6; }
|
---|
5975 |
|
---|
5976 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
5977 | _pkg_short_errors_supported=yes
|
---|
5978 | else
|
---|
5979 | _pkg_short_errors_supported=no
|
---|
5980 | fi
|
---|
5981 | if test $_pkg_short_errors_supported = yes; then
|
---|
5982 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
|
---|
5983 | else
|
---|
5984 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
|
---|
5985 | fi
|
---|
5986 | # Put the nasty error message in config.log where it belongs
|
---|
5987 | echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
|
---|
5988 |
|
---|
5989 | HAVE_LIBSAMPLERATE=0
|
---|
5990 | elif test $pkg_failed = untried; then
|
---|
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5992 | $as_echo "no" >&6; }
|
---|
5993 | HAVE_LIBSAMPLERATE=0
|
---|
5994 | else
|
---|
5995 | LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
|
---|
5996 | LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
|
---|
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5998 | $as_echo "yes" >&6; }
|
---|
5999 | HAVE_LIBSAMPLERATE=1
|
---|
6000 | fi
|
---|
6001 | if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
|
---|
6002 | $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
|
---|
6003 |
|
---|
6004 | if test x"$static_libsamplerate" = "xyes"; then
|
---|
6005 | _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
|
---|
6006 | LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
|
---|
6007 | LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
|
---|
6008 | fi
|
---|
6009 | fi
|
---|
6010 | fi
|
---|
6011 |
|
---|
6012 | if test "$sound" != "no"; then
|
---|
6013 | SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
|
---|
6014 | CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
|
---|
6015 | LIBS="$LIBS $LIBSAMPLERATE_LIBS"
|
---|
6016 | $as_echo "#define WITH_RDPSND 1" >>confdefs.h
|
---|
6017 |
|
---|
6018 | fi
|
---|
6019 |
|
---|
6020 | case $sound in
|
---|
6021 | yes)
|
---|
6022 | if test x"$HAVE_OSS" = "x1"; then
|
---|
6023 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
6024 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
6025 |
|
---|
6026 | fi
|
---|
6027 |
|
---|
6028 | if test x"$HAVE_SGI" = "x1"; then
|
---|
6029 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
6030 | LIBS="$LIBS -laudio"
|
---|
6031 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
6032 |
|
---|
6033 | fi
|
---|
6034 |
|
---|
6035 | if test x"$HAVE_SUN" = "x1"; then
|
---|
6036 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
6037 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
6038 |
|
---|
6039 | fi
|
---|
6040 |
|
---|
6041 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
6042 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
6043 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
6044 | LIBS="$LIBS $ALSA_LIBS"
|
---|
6045 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
6046 |
|
---|
6047 | fi
|
---|
6048 |
|
---|
6049 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
6050 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
6051 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
6052 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
6053 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
6054 |
|
---|
6055 | fi
|
---|
6056 |
|
---|
6057 | ;;
|
---|
6058 |
|
---|
6059 | oss)
|
---|
6060 | if test x"$HAVE_OSS" = "x1"; then
|
---|
6061 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
6062 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
6063 |
|
---|
6064 | else
|
---|
6065 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6066 | fi
|
---|
6067 | ;;
|
---|
6068 |
|
---|
6069 | sgi)
|
---|
6070 | if test x"$HAVE_SGI" = "x1"; then
|
---|
6071 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
6072 | LIBS="$LIBS -laudio"
|
---|
6073 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
6074 |
|
---|
6075 | else
|
---|
6076 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6077 | fi
|
---|
6078 | ;;
|
---|
6079 |
|
---|
6080 | sun)
|
---|
6081 | if test x"$HAVE_SUN" = "x1"; then
|
---|
6082 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
6083 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
6084 |
|
---|
6085 | else
|
---|
6086 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6087 | fi
|
---|
6088 | ;;
|
---|
6089 |
|
---|
6090 | alsa)
|
---|
6091 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
6092 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
6093 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
6094 | LIBS="$LIBS $ALSA_LIBS"
|
---|
6095 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
6096 |
|
---|
6097 | else
|
---|
6098 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6099 | fi
|
---|
6100 | ;;
|
---|
6101 |
|
---|
6102 | libao)
|
---|
6103 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
6104 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
6105 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
6106 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
6107 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
6108 |
|
---|
6109 | else
|
---|
6110 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
6111 | fi
|
---|
6112 | ;;
|
---|
6113 |
|
---|
6114 | no)
|
---|
6115 | ;;
|
---|
6116 |
|
---|
6117 | *)
|
---|
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
|
---|
6119 | $as_echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
6120 | { $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
|
---|
6121 | $as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
|
---|
6122 | ;;
|
---|
6123 | esac
|
---|
6124 |
|
---|
6125 |
|
---|
6126 |
|
---|
6127 | #
|
---|
6128 | # dirfd
|
---|
6129 | #
|
---|
6130 |
|
---|
6131 |
|
---|
6132 |
|
---|
6133 |
|
---|
6134 |
|
---|
6135 | ac_header_dirent=no
|
---|
6136 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
6137 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
6139 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
6140 | if eval \${$as_ac_Header+:} false; then :
|
---|
6141 | $as_echo_n "(cached) " >&6
|
---|
6142 | else
|
---|
6143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6144 | /* end confdefs.h. */
|
---|
6145 | #include <sys/types.h>
|
---|
6146 | #include <$ac_hdr>
|
---|
6147 |
|
---|
6148 | int
|
---|
6149 | main ()
|
---|
6150 | {
|
---|
6151 | if ((DIR *) 0)
|
---|
6152 | return 0;
|
---|
6153 | ;
|
---|
6154 | return 0;
|
---|
6155 | }
|
---|
6156 | _ACEOF
|
---|
6157 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6158 | eval "$as_ac_Header=yes"
|
---|
6159 | else
|
---|
6160 | eval "$as_ac_Header=no"
|
---|
6161 | fi
|
---|
6162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6163 | fi
|
---|
6164 | eval ac_res=\$$as_ac_Header
|
---|
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
6166 | $as_echo "$ac_res" >&6; }
|
---|
6167 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
6168 | cat >>confdefs.h <<_ACEOF
|
---|
6169 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
6170 | _ACEOF
|
---|
6171 |
|
---|
6172 | ac_header_dirent=$ac_hdr; break
|
---|
6173 | fi
|
---|
6174 |
|
---|
6175 | done
|
---|
6176 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
6177 | if test $ac_header_dirent = dirent.h; then
|
---|
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
6179 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
6180 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6181 | $as_echo_n "(cached) " >&6
|
---|
6182 | else
|
---|
6183 | ac_func_search_save_LIBS=$LIBS
|
---|
6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6185 | /* end confdefs.h. */
|
---|
6186 |
|
---|
6187 | /* Override any GCC internal prototype to avoid an error.
|
---|
6188 | Use char because int might match the return type of a GCC
|
---|
6189 | builtin and then its argument prototype would still apply. */
|
---|
6190 | #ifdef __cplusplus
|
---|
6191 | extern "C"
|
---|
6192 | #endif
|
---|
6193 | char opendir ();
|
---|
6194 | int
|
---|
6195 | main ()
|
---|
6196 | {
|
---|
6197 | return opendir ();
|
---|
6198 | ;
|
---|
6199 | return 0;
|
---|
6200 | }
|
---|
6201 | _ACEOF
|
---|
6202 | for ac_lib in '' dir; do
|
---|
6203 | if test -z "$ac_lib"; then
|
---|
6204 | ac_res="none required"
|
---|
6205 | else
|
---|
6206 | ac_res=-l$ac_lib
|
---|
6207 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6208 | fi
|
---|
6209 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6210 | ac_cv_search_opendir=$ac_res
|
---|
6211 | fi
|
---|
6212 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6213 | conftest$ac_exeext
|
---|
6214 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6215 | break
|
---|
6216 | fi
|
---|
6217 | done
|
---|
6218 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6219 |
|
---|
6220 | else
|
---|
6221 | ac_cv_search_opendir=no
|
---|
6222 | fi
|
---|
6223 | rm conftest.$ac_ext
|
---|
6224 | LIBS=$ac_func_search_save_LIBS
|
---|
6225 | fi
|
---|
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
6227 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
6228 | ac_res=$ac_cv_search_opendir
|
---|
6229 | if test "$ac_res" != no; then :
|
---|
6230 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
6231 |
|
---|
6232 | fi
|
---|
6233 |
|
---|
6234 | else
|
---|
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
6236 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
6237 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6238 | $as_echo_n "(cached) " >&6
|
---|
6239 | else
|
---|
6240 | ac_func_search_save_LIBS=$LIBS
|
---|
6241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6242 | /* end confdefs.h. */
|
---|
6243 |
|
---|
6244 | /* Override any GCC internal prototype to avoid an error.
|
---|
6245 | Use char because int might match the return type of a GCC
|
---|
6246 | builtin and then its argument prototype would still apply. */
|
---|
6247 | #ifdef __cplusplus
|
---|
6248 | extern "C"
|
---|
6249 | #endif
|
---|
6250 | char opendir ();
|
---|
6251 | int
|
---|
6252 | main ()
|
---|
6253 | {
|
---|
6254 | return opendir ();
|
---|
6255 | ;
|
---|
6256 | return 0;
|
---|
6257 | }
|
---|
6258 | _ACEOF
|
---|
6259 | for ac_lib in '' x; do
|
---|
6260 | if test -z "$ac_lib"; then
|
---|
6261 | ac_res="none required"
|
---|
6262 | else
|
---|
6263 | ac_res=-l$ac_lib
|
---|
6264 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6265 | fi
|
---|
6266 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6267 | ac_cv_search_opendir=$ac_res
|
---|
6268 | fi
|
---|
6269 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6270 | conftest$ac_exeext
|
---|
6271 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6272 | break
|
---|
6273 | fi
|
---|
6274 | done
|
---|
6275 | if ${ac_cv_search_opendir+:} false; then :
|
---|
6276 |
|
---|
6277 | else
|
---|
6278 | ac_cv_search_opendir=no
|
---|
6279 | fi
|
---|
6280 | rm conftest.$ac_ext
|
---|
6281 | LIBS=$ac_func_search_save_LIBS
|
---|
6282 | fi
|
---|
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
6284 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
6285 | ac_res=$ac_cv_search_opendir
|
---|
6286 | if test "$ac_res" != no; then :
|
---|
6287 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
6288 |
|
---|
6289 | fi
|
---|
6290 |
|
---|
6291 | fi
|
---|
6292 |
|
---|
6293 | dirfd_headers='
|
---|
6294 | #if HAVE_DIRENT_H
|
---|
6295 | # include <dirent.h>
|
---|
6296 | #else /* not HAVE_DIRENT_H */
|
---|
6297 | # define dirent direct
|
---|
6298 | # if HAVE_SYS_NDIR_H
|
---|
6299 | # include <sys/ndir.h>
|
---|
6300 | # endif /* HAVE_SYS_NDIR_H */
|
---|
6301 | # if HAVE_SYS_DIR_H
|
---|
6302 | # include <sys/dir.h>
|
---|
6303 | # endif /* HAVE_SYS_DIR_H */
|
---|
6304 | # if HAVE_NDIR_H
|
---|
6305 | # include <ndir.h>
|
---|
6306 | # endif /* HAVE_NDIR_H */
|
---|
6307 | #endif /* HAVE_DIRENT_H */
|
---|
6308 | '
|
---|
6309 | for ac_func in dirfd
|
---|
6310 | do :
|
---|
6311 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
6312 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
6313 | cat >>confdefs.h <<_ACEOF
|
---|
6314 | #define HAVE_DIRFD 1
|
---|
6315 | _ACEOF
|
---|
6316 |
|
---|
6317 | fi
|
---|
6318 | done
|
---|
6319 |
|
---|
6320 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
|
---|
6321 | "
|
---|
6322 | if test "x$ac_cv_have_decl_dirfd" = xyes; then :
|
---|
6323 | ac_have_decl=1
|
---|
6324 | else
|
---|
6325 | ac_have_decl=0
|
---|
6326 | fi
|
---|
6327 |
|
---|
6328 | cat >>confdefs.h <<_ACEOF
|
---|
6329 | #define HAVE_DECL_DIRFD $ac_have_decl
|
---|
6330 | _ACEOF
|
---|
6331 |
|
---|
6332 |
|
---|
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
|
---|
6334 | $as_echo_n "checking whether dirfd is a macro... " >&6; }
|
---|
6335 | if ${jm_cv_func_dirfd_macro+:} false; then :
|
---|
6336 | $as_echo_n "(cached) " >&6
|
---|
6337 | else
|
---|
6338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6339 | /* end confdefs.h. */
|
---|
6340 | $dirfd_headers
|
---|
6341 | #ifdef dirfd
|
---|
6342 | dirent_header_defines_dirfd
|
---|
6343 | #endif
|
---|
6344 | _ACEOF
|
---|
6345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6346 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
|
---|
6347 | jm_cv_func_dirfd_macro=yes
|
---|
6348 | else
|
---|
6349 | jm_cv_func_dirfd_macro=no
|
---|
6350 | fi
|
---|
6351 | rm -f conftest*
|
---|
6352 |
|
---|
6353 | fi
|
---|
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
|
---|
6355 | $as_echo "$jm_cv_func_dirfd_macro" >&6; }
|
---|
6356 |
|
---|
6357 | # Use the replacement only if we have no function, macro,
|
---|
6358 | # or declaration with that name.
|
---|
6359 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
6360 | = no,no,no; then
|
---|
6361 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
6362 | if test "x$ac_cv_func_dirfd" = xyes; then :
|
---|
6363 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
|
---|
6364 |
|
---|
6365 | else
|
---|
6366 | case " $LIBOBJS " in
|
---|
6367 | *" dirfd.$ac_objext "* ) ;;
|
---|
6368 | *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
|
---|
6369 | ;;
|
---|
6370 | esac
|
---|
6371 |
|
---|
6372 | fi
|
---|
6373 |
|
---|
6374 |
|
---|
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
6376 | $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
|
---|
6377 | if ${gl_cv_sys_dir_fd_member_name+:} false; then :
|
---|
6378 | $as_echo_n "(cached) " >&6
|
---|
6379 | else
|
---|
6380 |
|
---|
6381 | dirfd_save_CFLAGS=$CFLAGS
|
---|
6382 | for ac_expr in d_fd dd_fd; do
|
---|
6383 |
|
---|
6384 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
6385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6386 | /* end confdefs.h. */
|
---|
6387 | $dirfd_headers
|
---|
6388 |
|
---|
6389 | int
|
---|
6390 | main ()
|
---|
6391 | {
|
---|
6392 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
6393 | ;
|
---|
6394 | return 0;
|
---|
6395 | }
|
---|
6396 | _ACEOF
|
---|
6397 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6398 | dir_fd_found=yes
|
---|
6399 |
|
---|
6400 | fi
|
---|
6401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6402 | CFLAGS=$dirfd_save_CFLAGS
|
---|
6403 | test "$dir_fd_found" = yes && break
|
---|
6404 | done
|
---|
6405 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
6406 |
|
---|
6407 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
6408 |
|
---|
6409 |
|
---|
6410 | fi
|
---|
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
6412 | $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
|
---|
6413 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
6414 |
|
---|
6415 | cat >>confdefs.h <<_ACEOF
|
---|
6416 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
6417 | _ACEOF
|
---|
6418 |
|
---|
6419 | fi
|
---|
6420 |
|
---|
6421 | fi
|
---|
6422 |
|
---|
6423 |
|
---|
6424 | #
|
---|
6425 | # iconv
|
---|
6426 | #
|
---|
6427 |
|
---|
6428 |
|
---|
6429 |
|
---|
6430 |
|
---|
6431 |
|
---|
6432 |
|
---|
6433 |
|
---|
6434 | # Check whether --with-libiconv-prefix was given.
|
---|
6435 | if test "${with_libiconv_prefix+set}" = set; then :
|
---|
6436 | withval=$with_libiconv_prefix;
|
---|
6437 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
6438 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
6439 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
6440 | done
|
---|
6441 |
|
---|
6442 | fi
|
---|
6443 |
|
---|
6444 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
|
---|
6445 | if test "x$ac_cv_header_iconv_h" = xyes; then :
|
---|
6446 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
|
---|
6447 |
|
---|
6448 | fi
|
---|
6449 |
|
---|
6450 |
|
---|
6451 |
|
---|
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
---|
6453 | $as_echo_n "checking for iconv... " >&6; }
|
---|
6454 | if ${am_cv_func_iconv+:} false; then :
|
---|
6455 | $as_echo_n "(cached) " >&6
|
---|
6456 | else
|
---|
6457 |
|
---|
6458 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
6459 | am_cv_lib_iconv=no
|
---|
6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6461 | /* end confdefs.h. */
|
---|
6462 | #include <stdlib.h>
|
---|
6463 | #include <iconv.h>
|
---|
6464 | int
|
---|
6465 | main ()
|
---|
6466 | {
|
---|
6467 | iconv_t cd = iconv_open("","");
|
---|
6468 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6469 | iconv_close(cd);
|
---|
6470 | ;
|
---|
6471 | return 0;
|
---|
6472 | }
|
---|
6473 | _ACEOF
|
---|
6474 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6475 | am_cv_func_iconv=yes
|
---|
6476 | fi
|
---|
6477 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6478 | conftest$ac_exeext conftest.$ac_ext
|
---|
6479 | if test "$am_cv_func_iconv" != yes; then
|
---|
6480 | am_save_LIBS="$LIBS"
|
---|
6481 | LIBS="$LIBS -liconv"
|
---|
6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6483 | /* end confdefs.h. */
|
---|
6484 | #include <stdlib.h>
|
---|
6485 | #include <iconv.h>
|
---|
6486 | int
|
---|
6487 | main ()
|
---|
6488 | {
|
---|
6489 | iconv_t cd = iconv_open("","");
|
---|
6490 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6491 | iconv_close(cd);
|
---|
6492 | ;
|
---|
6493 | return 0;
|
---|
6494 | }
|
---|
6495 | _ACEOF
|
---|
6496 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6497 | am_cv_lib_iconv=yes
|
---|
6498 | am_cv_func_iconv=yes
|
---|
6499 | fi
|
---|
6500 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6501 | conftest$ac_exeext conftest.$ac_ext
|
---|
6502 | LIBS="$am_save_LIBS"
|
---|
6503 | fi
|
---|
6504 |
|
---|
6505 | fi
|
---|
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
---|
6507 | $as_echo "$am_cv_func_iconv" >&6; }
|
---|
6508 | if test "$am_cv_func_iconv" = yes; then
|
---|
6509 |
|
---|
6510 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h
|
---|
6511 |
|
---|
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
---|
6513 | $as_echo_n "checking for iconv declaration... " >&6; }
|
---|
6514 | if ${am_cv_proto_iconv+:} false; then :
|
---|
6515 | $as_echo_n "(cached) " >&6
|
---|
6516 | else
|
---|
6517 |
|
---|
6518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6519 | /* end confdefs.h. */
|
---|
6520 |
|
---|
6521 | #include <stdlib.h>
|
---|
6522 | #include <iconv.h>
|
---|
6523 | extern
|
---|
6524 | #ifdef __cplusplus
|
---|
6525 | "C"
|
---|
6526 | #endif
|
---|
6527 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
6528 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
6529 | #else
|
---|
6530 | size_t iconv();
|
---|
6531 | #endif
|
---|
6532 |
|
---|
6533 | int
|
---|
6534 | main ()
|
---|
6535 | {
|
---|
6536 |
|
---|
6537 | ;
|
---|
6538 | return 0;
|
---|
6539 | }
|
---|
6540 | _ACEOF
|
---|
6541 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6542 | am_cv_proto_iconv_arg1=""
|
---|
6543 | else
|
---|
6544 | am_cv_proto_iconv_arg1="const"
|
---|
6545 | fi
|
---|
6546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6547 | 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);"
|
---|
6548 | fi
|
---|
6549 |
|
---|
6550 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
|
---|
6552 | }$am_cv_proto_iconv" >&5
|
---|
6553 | $as_echo "${ac_t:-
|
---|
6554 | }$am_cv_proto_iconv" >&6; }
|
---|
6555 |
|
---|
6556 | cat >>confdefs.h <<_ACEOF
|
---|
6557 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
6558 | _ACEOF
|
---|
6559 |
|
---|
6560 | fi
|
---|
6561 | LIBICONV=
|
---|
6562 | if test "$am_cv_lib_iconv" = yes; then
|
---|
6563 | LIBICONV="-liconv"
|
---|
6564 | fi
|
---|
6565 |
|
---|
6566 |
|
---|
6567 | LIBS="$LIBS $LIBICONV"
|
---|
6568 |
|
---|
6569 | #
|
---|
6570 | # socklen_t
|
---|
6571 | # from curl
|
---|
6572 |
|
---|
6573 |
|
---|
6574 |
|
---|
6575 |
|
---|
6576 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
|
---|
6577 | #include <sys/socket.h>
|
---|
6578 | "
|
---|
6579 | if test "x$ac_cv_type_socklen_t" = xyes; then :
|
---|
6580 |
|
---|
6581 | else
|
---|
6582 |
|
---|
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
|
---|
6584 | $as_echo_n "checking for socklen_t equivalent... " >&6; }
|
---|
6585 | if ${socklen_t_cv_equiv+:} false; then :
|
---|
6586 | $as_echo_n "(cached) " >&6
|
---|
6587 | else
|
---|
6588 |
|
---|
6589 | # Systems have either "struct sockaddr *" or
|
---|
6590 | # "void *" as the second argument to getpeername
|
---|
6591 | socklen_t_cv_equiv=
|
---|
6592 | for arg2 in "struct sockaddr" void; do
|
---|
6593 | for t in int size_t unsigned long "unsigned long"; do
|
---|
6594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6595 | /* end confdefs.h. */
|
---|
6596 |
|
---|
6597 | #include <sys/types.h>
|
---|
6598 | #include <sys/socket.h>
|
---|
6599 |
|
---|
6600 | int getpeername (int, $arg2 *, $t *);
|
---|
6601 |
|
---|
6602 | int
|
---|
6603 | main ()
|
---|
6604 | {
|
---|
6605 |
|
---|
6606 | $t len;
|
---|
6607 | getpeername(0,0,&len);
|
---|
6608 |
|
---|
6609 | ;
|
---|
6610 | return 0;
|
---|
6611 | }
|
---|
6612 | _ACEOF
|
---|
6613 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6614 |
|
---|
6615 | socklen_t_cv_equiv="$t"
|
---|
6616 | break
|
---|
6617 |
|
---|
6618 | fi
|
---|
6619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6620 | done
|
---|
6621 | done
|
---|
6622 |
|
---|
6623 | if test "x$socklen_t_cv_equiv" = x; then
|
---|
6624 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
|
---|
6625 | fi
|
---|
6626 |
|
---|
6627 | fi
|
---|
6628 |
|
---|
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_cv_equiv" >&5
|
---|
6630 | $as_echo "$socklen_t_cv_equiv" >&6; }
|
---|
6631 |
|
---|
6632 | cat >>confdefs.h <<_ACEOF
|
---|
6633 | #define socklen_t $socklen_t_cv_equiv
|
---|
6634 | _ACEOF
|
---|
6635 |
|
---|
6636 | fi
|
---|
6637 |
|
---|
6638 |
|
---|
6639 |
|
---|
6640 | #
|
---|
6641 | # statfs stuff
|
---|
6642 | #
|
---|
6643 | for ac_header in sys/vfs.h
|
---|
6644 | do :
|
---|
6645 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
|
---|
6646 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
|
---|
6647 | cat >>confdefs.h <<_ACEOF
|
---|
6648 | #define HAVE_SYS_VFS_H 1
|
---|
6649 | _ACEOF
|
---|
6650 |
|
---|
6651 | fi
|
---|
6652 |
|
---|
6653 | done
|
---|
6654 |
|
---|
6655 | for ac_header in sys/statvfs.h
|
---|
6656 | do :
|
---|
6657 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
|
---|
6658 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
|
---|
6659 | cat >>confdefs.h <<_ACEOF
|
---|
6660 | #define HAVE_SYS_STATVFS_H 1
|
---|
6661 | _ACEOF
|
---|
6662 |
|
---|
6663 | fi
|
---|
6664 |
|
---|
6665 | done
|
---|
6666 |
|
---|
6667 | for ac_header in sys/statfs.h
|
---|
6668 | do :
|
---|
6669 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
|
---|
6670 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
|
---|
6671 | cat >>confdefs.h <<_ACEOF
|
---|
6672 | #define HAVE_SYS_STATFS_H 1
|
---|
6673 | _ACEOF
|
---|
6674 |
|
---|
6675 | fi
|
---|
6676 |
|
---|
6677 | done
|
---|
6678 |
|
---|
6679 | for ac_header in sys/param.h
|
---|
6680 | do :
|
---|
6681 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
|
---|
6682 | if test "x$ac_cv_header_sys_param_h" = xyes; then :
|
---|
6683 | cat >>confdefs.h <<_ACEOF
|
---|
6684 | #define HAVE_SYS_PARAM_H 1
|
---|
6685 | _ACEOF
|
---|
6686 |
|
---|
6687 | fi
|
---|
6688 |
|
---|
6689 | done
|
---|
6690 |
|
---|
6691 |
|
---|
6692 | mount_includes="\
|
---|
6693 | $ac_includes_default
|
---|
6694 | #if HAVE_SYS_PARAM_H
|
---|
6695 | # include <sys/param.h>
|
---|
6696 | #endif
|
---|
6697 | "
|
---|
6698 |
|
---|
6699 | for ac_header in sys/mount.h
|
---|
6700 | do :
|
---|
6701 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
|
---|
6702 | "
|
---|
6703 | if test "x$ac_cv_header_sys_mount_h" = xyes; then :
|
---|
6704 | cat >>confdefs.h <<_ACEOF
|
---|
6705 | #define HAVE_SYS_MOUNT_H 1
|
---|
6706 | _ACEOF
|
---|
6707 |
|
---|
6708 | fi
|
---|
6709 |
|
---|
6710 | done
|
---|
6711 |
|
---|
6712 |
|
---|
6713 | #################################################
|
---|
6714 | # these tests are taken from the GNU fileutils package
|
---|
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
|
---|
6716 | $as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
6717 | space=no
|
---|
6718 |
|
---|
6719 | # Test for statvfs64.
|
---|
6720 | if test $space = no; then
|
---|
6721 | # SVR4
|
---|
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
|
---|
6723 | $as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
|
---|
6724 | if ${fu_cv_sys_stat_statvfs64+:} false; then :
|
---|
6725 | $as_echo_n "(cached) " >&6
|
---|
6726 | else
|
---|
6727 | if test "$cross_compiling" = yes; then :
|
---|
6728 | fu_cv_sys_stat_statvfs64=cross
|
---|
6729 | else
|
---|
6730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6731 | /* end confdefs.h. */
|
---|
6732 |
|
---|
6733 | #if defined(HAVE_UNISTD_H)
|
---|
6734 | #include <unistd.h>
|
---|
6735 | #endif
|
---|
6736 | #include <sys/types.h>
|
---|
6737 | #include <sys/statvfs.h>
|
---|
6738 | main ()
|
---|
6739 | {
|
---|
6740 | struct statvfs64 fsd;
|
---|
6741 | exit (statvfs64 (".", &fsd));
|
---|
6742 | }
|
---|
6743 | _ACEOF
|
---|
6744 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6745 | fu_cv_sys_stat_statvfs64=yes
|
---|
6746 | else
|
---|
6747 | fu_cv_sys_stat_statvfs64=no
|
---|
6748 | fi
|
---|
6749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6750 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6751 | fi
|
---|
6752 |
|
---|
6753 | fi
|
---|
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
6755 | $as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
|
---|
6756 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
6757 | space=yes
|
---|
6758 |
|
---|
6759 | $as_echo "#define STAT_STATVFS64 1" >>confdefs.h
|
---|
6760 |
|
---|
6761 | fi
|
---|
6762 | fi
|
---|
6763 |
|
---|
6764 | # Perform only the link test since it seems there are no variants of the
|
---|
6765 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
6766 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
6767 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
6768 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
6769 | # is what it gets when this test fails.
|
---|
6770 | if test $space = no; then
|
---|
6771 | # SVR4
|
---|
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
|
---|
6773 | $as_echo_n "checking statvfs function (SVR4)... " >&6; }
|
---|
6774 | if ${fu_cv_sys_stat_statvfs+:} false; then :
|
---|
6775 | $as_echo_n "(cached) " >&6
|
---|
6776 | else
|
---|
6777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6778 | /* end confdefs.h. */
|
---|
6779 | #include <sys/types.h>
|
---|
6780 | #include <sys/statvfs.h>
|
---|
6781 | int
|
---|
6782 | main ()
|
---|
6783 | {
|
---|
6784 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
6785 | ;
|
---|
6786 | return 0;
|
---|
6787 | }
|
---|
6788 | _ACEOF
|
---|
6789 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6790 | fu_cv_sys_stat_statvfs=yes
|
---|
6791 | else
|
---|
6792 | fu_cv_sys_stat_statvfs=no
|
---|
6793 | fi
|
---|
6794 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6795 | conftest$ac_exeext conftest.$ac_ext
|
---|
6796 | fi
|
---|
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
6798 | $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
|
---|
6799 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
6800 | space=yes
|
---|
6801 |
|
---|
6802 | $as_echo "#define STAT_STATVFS 1" >>confdefs.h
|
---|
6803 |
|
---|
6804 | fi
|
---|
6805 | fi
|
---|
6806 |
|
---|
6807 | if test $space = no; then
|
---|
6808 | # DEC Alpha running OSF/1
|
---|
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
6810 | $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
|
---|
6811 | if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
|
---|
6812 | $as_echo_n "(cached) " >&6
|
---|
6813 | else
|
---|
6814 | if test "$cross_compiling" = yes; then :
|
---|
6815 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6816 | else
|
---|
6817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6818 | /* end confdefs.h. */
|
---|
6819 |
|
---|
6820 | #include <sys/param.h>
|
---|
6821 | #include <sys/types.h>
|
---|
6822 | #include <sys/mount.h>
|
---|
6823 | main ()
|
---|
6824 | {
|
---|
6825 | struct statfs fsd;
|
---|
6826 | fsd.f_fsize = 0;
|
---|
6827 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
6828 | }
|
---|
6829 | _ACEOF
|
---|
6830 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6831 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
6832 | else
|
---|
6833 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6834 | fi
|
---|
6835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6836 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6837 | fi
|
---|
6838 |
|
---|
6839 | fi
|
---|
6840 |
|
---|
6841 |
|
---|
6842 |
|
---|
6843 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
6844 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
6845 | space=yes
|
---|
6846 |
|
---|
6847 | $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
|
---|
6848 |
|
---|
6849 | fi
|
---|
6850 | fi
|
---|
6851 |
|
---|
6852 | if test $space = no; then
|
---|
6853 | # AIX
|
---|
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
6855 | $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
|
---|
6856 | if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
|
---|
6857 | $as_echo_n "(cached) " >&6
|
---|
6858 | else
|
---|
6859 | if test "$cross_compiling" = yes; then :
|
---|
6860 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6861 | else
|
---|
6862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6863 | /* end confdefs.h. */
|
---|
6864 |
|
---|
6865 | #ifdef HAVE_SYS_PARAM_H
|
---|
6866 | #include <sys/param.h>
|
---|
6867 | #endif
|
---|
6868 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6869 | #include <sys/mount.h>
|
---|
6870 | #endif
|
---|
6871 | #ifdef HAVE_SYS_VFS_H
|
---|
6872 | #include <sys/vfs.h>
|
---|
6873 | #endif
|
---|
6874 | main ()
|
---|
6875 | {
|
---|
6876 | struct statfs fsd;
|
---|
6877 | fsd.f_bsize = 0;
|
---|
6878 | exit (statfs (".", &fsd));
|
---|
6879 | }
|
---|
6880 | _ACEOF
|
---|
6881 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6882 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
6883 | else
|
---|
6884 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6885 | fi
|
---|
6886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6887 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6888 | fi
|
---|
6889 |
|
---|
6890 | fi
|
---|
6891 |
|
---|
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
6893 | $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
|
---|
6894 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
6895 | space=yes
|
---|
6896 |
|
---|
6897 | $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
|
---|
6898 |
|
---|
6899 | fi
|
---|
6900 | fi
|
---|
6901 |
|
---|
6902 | if test $space = no; then
|
---|
6903 | # SVR3
|
---|
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
6905 | $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
|
---|
6906 | if ${fu_cv_sys_stat_statfs4+:} false; then :
|
---|
6907 | $as_echo_n "(cached) " >&6
|
---|
6908 | else
|
---|
6909 | if test "$cross_compiling" = yes; then :
|
---|
6910 | fu_cv_sys_stat_statfs4=no
|
---|
6911 | else
|
---|
6912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6913 | /* end confdefs.h. */
|
---|
6914 | #include <sys/types.h>
|
---|
6915 | #include <sys/statfs.h>
|
---|
6916 | main ()
|
---|
6917 | {
|
---|
6918 | struct statfs fsd;
|
---|
6919 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
6920 | }
|
---|
6921 | _ACEOF
|
---|
6922 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6923 | fu_cv_sys_stat_statfs4=yes
|
---|
6924 | else
|
---|
6925 | fu_cv_sys_stat_statfs4=no
|
---|
6926 | fi
|
---|
6927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6928 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6929 | fi
|
---|
6930 |
|
---|
6931 | fi
|
---|
6932 |
|
---|
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
6934 | $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
|
---|
6935 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
6936 | space=yes
|
---|
6937 |
|
---|
6938 | $as_echo "#define STAT_STATFS4 1" >>confdefs.h
|
---|
6939 |
|
---|
6940 | fi
|
---|
6941 | fi
|
---|
6942 |
|
---|
6943 | if test $space = no; then
|
---|
6944 | # 4.4BSD and NetBSD
|
---|
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
6946 | $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
|
---|
6947 | if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
|
---|
6948 | $as_echo_n "(cached) " >&6
|
---|
6949 | else
|
---|
6950 | if test "$cross_compiling" = yes; then :
|
---|
6951 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6952 | else
|
---|
6953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6954 | /* end confdefs.h. */
|
---|
6955 | #include <sys/types.h>
|
---|
6956 | #ifdef HAVE_SYS_PARAM_H
|
---|
6957 | #include <sys/param.h>
|
---|
6958 | #endif
|
---|
6959 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6960 | #include <sys/mount.h>
|
---|
6961 | #endif
|
---|
6962 | main ()
|
---|
6963 | {
|
---|
6964 | struct statfs fsd;
|
---|
6965 | fsd.f_fsize = 0;
|
---|
6966 | exit (statfs (".", &fsd));
|
---|
6967 | }
|
---|
6968 | _ACEOF
|
---|
6969 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6970 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
6971 | else
|
---|
6972 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6973 | fi
|
---|
6974 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6975 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6976 | fi
|
---|
6977 |
|
---|
6978 | fi
|
---|
6979 |
|
---|
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
6981 | $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
|
---|
6982 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
6983 | space=yes
|
---|
6984 |
|
---|
6985 | $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
|
---|
6986 |
|
---|
6987 | fi
|
---|
6988 | fi
|
---|
6989 |
|
---|
6990 | if test $space = no; then
|
---|
6991 | # Ultrix
|
---|
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
6993 | $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
|
---|
6994 | if ${fu_cv_sys_stat_fs_data+:} false; then :
|
---|
6995 | $as_echo_n "(cached) " >&6
|
---|
6996 | else
|
---|
6997 | if test "$cross_compiling" = yes; then :
|
---|
6998 | fu_cv_sys_stat_fs_data=no
|
---|
6999 | else
|
---|
7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7001 | /* end confdefs.h. */
|
---|
7002 | #include <sys/types.h>
|
---|
7003 | #ifdef HAVE_SYS_PARAM_H
|
---|
7004 | #include <sys/param.h>
|
---|
7005 | #endif
|
---|
7006 | #ifdef HAVE_SYS_MOUNT_H
|
---|
7007 | #include <sys/mount.h>
|
---|
7008 | #endif
|
---|
7009 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
7010 | #include <sys/fs_types.h>
|
---|
7011 | #endif
|
---|
7012 | main ()
|
---|
7013 | {
|
---|
7014 | struct fs_data fsd;
|
---|
7015 | /* Ultrix's statfs returns 1 for success,
|
---|
7016 | 0 for not mounted, -1 for failure. */
|
---|
7017 | exit (statfs (".", &fsd) != 1);
|
---|
7018 | }
|
---|
7019 | _ACEOF
|
---|
7020 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7021 | fu_cv_sys_stat_fs_data=yes
|
---|
7022 | else
|
---|
7023 | fu_cv_sys_stat_fs_data=no
|
---|
7024 | fi
|
---|
7025 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7026 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7027 | fi
|
---|
7028 |
|
---|
7029 | fi
|
---|
7030 |
|
---|
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
7032 | $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
|
---|
7033 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
7034 | space=yes
|
---|
7035 |
|
---|
7036 | $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
|
---|
7037 |
|
---|
7038 | fi
|
---|
7039 | fi
|
---|
7040 |
|
---|
7041 | statxfs_includes="\
|
---|
7042 | $ac_includes_default
|
---|
7043 | #if HAVE_SYS_STATVFS_H
|
---|
7044 | # include <sys/statvfs.h>
|
---|
7045 | #endif
|
---|
7046 | #if HAVE_SYS_VFS_H
|
---|
7047 | # include <sys/vfs.h>
|
---|
7048 | #endif
|
---|
7049 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
7050 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
7051 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
7052 | # include <sys/param.h>
|
---|
7053 | # include <sys/mount.h>
|
---|
7054 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
7055 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
7056 | # include <netinet/in.h>
|
---|
7057 | # include <nfs/nfs_clnt.h>
|
---|
7058 | # include <nfs/vfs.h>
|
---|
7059 | # endif
|
---|
7060 | #endif
|
---|
7061 | "
|
---|
7062 |
|
---|
7063 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
|
---|
7064 | "
|
---|
7065 | if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
|
---|
7066 |
|
---|
7067 | cat >>confdefs.h <<_ACEOF
|
---|
7068 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
7069 | _ACEOF
|
---|
7070 |
|
---|
7071 |
|
---|
7072 | fi
|
---|
7073 |
|
---|
7074 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
|
---|
7075 | "
|
---|
7076 | if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes; then :
|
---|
7077 |
|
---|
7078 | cat >>confdefs.h <<_ACEOF
|
---|
7079 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
7080 | _ACEOF
|
---|
7081 |
|
---|
7082 |
|
---|
7083 | fi
|
---|
7084 |
|
---|
7085 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
|
---|
7086 | "
|
---|
7087 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
|
---|
7088 |
|
---|
7089 | cat >>confdefs.h <<_ACEOF
|
---|
7090 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
7091 | _ACEOF
|
---|
7092 |
|
---|
7093 |
|
---|
7094 | fi
|
---|
7095 |
|
---|
7096 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
|
---|
7097 | "
|
---|
7098 | if test "x$ac_cv_member_struct_statvfs_f_namelen" = xyes; then :
|
---|
7099 |
|
---|
7100 | cat >>confdefs.h <<_ACEOF
|
---|
7101 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
7102 | _ACEOF
|
---|
7103 |
|
---|
7104 |
|
---|
7105 | fi
|
---|
7106 |
|
---|
7107 |
|
---|
7108 | #
|
---|
7109 | # Large file support
|
---|
7110 | #
|
---|
7111 | # Check whether --enable-largefile was given.
|
---|
7112 | if test "${enable_largefile+set}" = set; then :
|
---|
7113 | enableval=$enable_largefile;
|
---|
7114 | fi
|
---|
7115 |
|
---|
7116 | if test "$enable_largefile" != no; then
|
---|
7117 |
|
---|
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
---|
7119 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
---|
7120 | if ${ac_cv_sys_largefile_CC+:} false; then :
|
---|
7121 | $as_echo_n "(cached) " >&6
|
---|
7122 | else
|
---|
7123 | ac_cv_sys_largefile_CC=no
|
---|
7124 | if test "$GCC" != yes; then
|
---|
7125 | ac_save_CC=$CC
|
---|
7126 | while :; do
|
---|
7127 | # IRIX 6.2 and later do not support large files by default,
|
---|
7128 | # so use the C compiler's -n32 option if that helps.
|
---|
7129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7130 | /* end confdefs.h. */
|
---|
7131 | #include <sys/types.h>
|
---|
7132 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7133 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7134 | since some C++ compilers masquerading as C compilers
|
---|
7135 | incorrectly reject 9223372036854775807. */
|
---|
7136 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
7137 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7138 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7139 | ? 1 : -1];
|
---|
7140 | int
|
---|
7141 | main ()
|
---|
7142 | {
|
---|
7143 |
|
---|
7144 | ;
|
---|
7145 | return 0;
|
---|
7146 | }
|
---|
7147 | _ACEOF
|
---|
7148 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7149 | break
|
---|
7150 | fi
|
---|
7151 | rm -f core conftest.err conftest.$ac_objext
|
---|
7152 | CC="$CC -n32"
|
---|
7153 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7154 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
7155 | fi
|
---|
7156 | rm -f core conftest.err conftest.$ac_objext
|
---|
7157 | break
|
---|
7158 | done
|
---|
7159 | CC=$ac_save_CC
|
---|
7160 | rm -f conftest.$ac_ext
|
---|
7161 | fi
|
---|
7162 | fi
|
---|
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
---|
7164 | $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
---|
7165 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
7166 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
7167 | fi
|
---|
7168 |
|
---|
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
7170 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
---|
7171 | if ${ac_cv_sys_file_offset_bits+:} false; then :
|
---|
7172 | $as_echo_n "(cached) " >&6
|
---|
7173 | else
|
---|
7174 | while :; do
|
---|
7175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7176 | /* end confdefs.h. */
|
---|
7177 | #include <sys/types.h>
|
---|
7178 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7179 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7180 | since some C++ compilers masquerading as C compilers
|
---|
7181 | incorrectly reject 9223372036854775807. */
|
---|
7182 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
7183 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7184 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7185 | ? 1 : -1];
|
---|
7186 | int
|
---|
7187 | main ()
|
---|
7188 | {
|
---|
7189 |
|
---|
7190 | ;
|
---|
7191 | return 0;
|
---|
7192 | }
|
---|
7193 | _ACEOF
|
---|
7194 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7195 | ac_cv_sys_file_offset_bits=no; break
|
---|
7196 | fi
|
---|
7197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7199 | /* end confdefs.h. */
|
---|
7200 | #define _FILE_OFFSET_BITS 64
|
---|
7201 | #include <sys/types.h>
|
---|
7202 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7203 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7204 | since some C++ compilers masquerading as C compilers
|
---|
7205 | incorrectly reject 9223372036854775807. */
|
---|
7206 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
7207 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7208 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7209 | ? 1 : -1];
|
---|
7210 | int
|
---|
7211 | main ()
|
---|
7212 | {
|
---|
7213 |
|
---|
7214 | ;
|
---|
7215 | return 0;
|
---|
7216 | }
|
---|
7217 | _ACEOF
|
---|
7218 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7219 | ac_cv_sys_file_offset_bits=64; break
|
---|
7220 | fi
|
---|
7221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7222 | ac_cv_sys_file_offset_bits=unknown
|
---|
7223 | break
|
---|
7224 | done
|
---|
7225 | fi
|
---|
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
7227 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
---|
7228 | case $ac_cv_sys_file_offset_bits in #(
|
---|
7229 | no | unknown) ;;
|
---|
7230 | *)
|
---|
7231 | cat >>confdefs.h <<_ACEOF
|
---|
7232 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
7233 | _ACEOF
|
---|
7234 | ;;
|
---|
7235 | esac
|
---|
7236 | rm -rf conftest*
|
---|
7237 | if test $ac_cv_sys_file_offset_bits = unknown; then
|
---|
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
---|
7239 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
---|
7240 | if ${ac_cv_sys_large_files+:} false; then :
|
---|
7241 | $as_echo_n "(cached) " >&6
|
---|
7242 | else
|
---|
7243 | while :; do
|
---|
7244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7245 | /* end confdefs.h. */
|
---|
7246 | #include <sys/types.h>
|
---|
7247 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7248 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7249 | since some C++ compilers masquerading as C compilers
|
---|
7250 | incorrectly reject 9223372036854775807. */
|
---|
7251 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
7252 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7253 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7254 | ? 1 : -1];
|
---|
7255 | int
|
---|
7256 | main ()
|
---|
7257 | {
|
---|
7258 |
|
---|
7259 | ;
|
---|
7260 | return 0;
|
---|
7261 | }
|
---|
7262 | _ACEOF
|
---|
7263 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7264 | ac_cv_sys_large_files=no; break
|
---|
7265 | fi
|
---|
7266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7268 | /* end confdefs.h. */
|
---|
7269 | #define _LARGE_FILES 1
|
---|
7270 | #include <sys/types.h>
|
---|
7271 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
7272 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
7273 | since some C++ compilers masquerading as C compilers
|
---|
7274 | incorrectly reject 9223372036854775807. */
|
---|
7275 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
7276 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
7277 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
7278 | ? 1 : -1];
|
---|
7279 | int
|
---|
7280 | main ()
|
---|
7281 | {
|
---|
7282 |
|
---|
7283 | ;
|
---|
7284 | return 0;
|
---|
7285 | }
|
---|
7286 | _ACEOF
|
---|
7287 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7288 | ac_cv_sys_large_files=1; break
|
---|
7289 | fi
|
---|
7290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7291 | ac_cv_sys_large_files=unknown
|
---|
7292 | break
|
---|
7293 | done
|
---|
7294 | fi
|
---|
7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
---|
7296 | $as_echo "$ac_cv_sys_large_files" >&6; }
|
---|
7297 | case $ac_cv_sys_large_files in #(
|
---|
7298 | no | unknown) ;;
|
---|
7299 | *)
|
---|
7300 | cat >>confdefs.h <<_ACEOF
|
---|
7301 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
7302 | _ACEOF
|
---|
7303 | ;;
|
---|
7304 | esac
|
---|
7305 | rm -rf conftest*
|
---|
7306 | fi
|
---|
7307 |
|
---|
7308 |
|
---|
7309 | fi
|
---|
7310 |
|
---|
7311 |
|
---|
7312 | #
|
---|
7313 | # mntent
|
---|
7314 | #
|
---|
7315 | ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
|
---|
7316 | if test "x$ac_cv_header_mntent_h" = xyes; then :
|
---|
7317 | $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
|
---|
7318 |
|
---|
7319 | fi
|
---|
7320 |
|
---|
7321 |
|
---|
7322 | for ac_func in setmntent
|
---|
7323 | do :
|
---|
7324 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
|
---|
7325 | if test "x$ac_cv_func_setmntent" = xyes; then :
|
---|
7326 | cat >>confdefs.h <<_ACEOF
|
---|
7327 | #define HAVE_SETMNTENT 1
|
---|
7328 | _ACEOF
|
---|
7329 |
|
---|
7330 | fi
|
---|
7331 | done
|
---|
7332 |
|
---|
7333 |
|
---|
7334 | #
|
---|
7335 | # IPv6
|
---|
7336 | #
|
---|
7337 |
|
---|
7338 | # Check whether --with-ipv6 was given.
|
---|
7339 | if test "${with_ipv6+set}" = set; then :
|
---|
7340 | withval=$with_ipv6;
|
---|
7341 | if test $withval != "no";
|
---|
7342 | then
|
---|
7343 | $as_echo "#define IPv6 1" >>confdefs.h
|
---|
7344 |
|
---|
7345 | fi
|
---|
7346 |
|
---|
7347 | fi
|
---|
7348 |
|
---|
7349 |
|
---|
7350 |
|
---|
7351 | #
|
---|
7352 | # debugging
|
---|
7353 | #
|
---|
7354 |
|
---|
7355 | # Check whether --with-debug was given.
|
---|
7356 | if test "${with_debug+set}" = set; then :
|
---|
7357 | withval=$with_debug;
|
---|
7358 | if test $withval != "no";
|
---|
7359 | then
|
---|
7360 | $as_echo "#define WITH_DEBUG 1" >>confdefs.h
|
---|
7361 |
|
---|
7362 | fi
|
---|
7363 |
|
---|
7364 | fi
|
---|
7365 |
|
---|
7366 |
|
---|
7367 |
|
---|
7368 | # Check whether --with-debug-kbd was given.
|
---|
7369 | if test "${with_debug_kbd+set}" = set; then :
|
---|
7370 | withval=$with_debug_kbd;
|
---|
7371 | if test $withval != "no";
|
---|
7372 | then
|
---|
7373 | $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
|
---|
7374 |
|
---|
7375 | fi
|
---|
7376 |
|
---|
7377 | fi
|
---|
7378 |
|
---|
7379 |
|
---|
7380 |
|
---|
7381 | # Check whether --with-debug-rdp5 was given.
|
---|
7382 | if test "${with_debug_rdp5+set}" = set; then :
|
---|
7383 | withval=$with_debug_rdp5;
|
---|
7384 | if test $withval != "no";
|
---|
7385 | then
|
---|
7386 | $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
|
---|
7387 |
|
---|
7388 | fi
|
---|
7389 |
|
---|
7390 | fi
|
---|
7391 |
|
---|
7392 |
|
---|
7393 |
|
---|
7394 | # Check whether --with-debug-clipboard was given.
|
---|
7395 | if test "${with_debug_clipboard+set}" = set; then :
|
---|
7396 | withval=$with_debug_clipboard;
|
---|
7397 | if test $withval != "no";
|
---|
7398 | then
|
---|
7399 | $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
|
---|
7400 |
|
---|
7401 | fi
|
---|
7402 |
|
---|
7403 | fi
|
---|
7404 |
|
---|
7405 |
|
---|
7406 |
|
---|
7407 | # Check whether --with-debug-sound was given.
|
---|
7408 | if test "${with_debug_sound+set}" = set; then :
|
---|
7409 | withval=$with_debug_sound;
|
---|
7410 | if test $withval != "no";
|
---|
7411 | then
|
---|
7412 | $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
|
---|
7413 |
|
---|
7414 | fi
|
---|
7415 |
|
---|
7416 | fi
|
---|
7417 |
|
---|
7418 |
|
---|
7419 |
|
---|
7420 | # Check whether --with-debug-channel was given.
|
---|
7421 | if test "${with_debug_channel+set}" = set; then :
|
---|
7422 | withval=$with_debug_channel;
|
---|
7423 | if test $withval != "no";
|
---|
7424 | then
|
---|
7425 | $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
|
---|
7426 |
|
---|
7427 | fi
|
---|
7428 |
|
---|
7429 | fi
|
---|
7430 |
|
---|
7431 |
|
---|
7432 |
|
---|
7433 | # Check whether --with-debug-seamless was given.
|
---|
7434 | if test "${with_debug_seamless+set}" = set; then :
|
---|
7435 | withval=$with_debug_seamless;
|
---|
7436 | if test $withval != "no";
|
---|
7437 | then
|
---|
7438 | $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
|
---|
7439 |
|
---|
7440 | fi
|
---|
7441 |
|
---|
7442 | fi
|
---|
7443 |
|
---|
7444 |
|
---|
7445 |
|
---|
7446 | # Check whether --with-debug-smartcard was given.
|
---|
7447 | if test "${with_debug_smartcard+set}" = set; then :
|
---|
7448 | withval=$with_debug_smartcard;
|
---|
7449 | if test $withval != "no";
|
---|
7450 | then
|
---|
7451 | if test x"$WITH_SCARD" = "x1"; then
|
---|
7452 | $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
|
---|
7453 |
|
---|
7454 | fi
|
---|
7455 | fi
|
---|
7456 |
|
---|
7457 | fi
|
---|
7458 |
|
---|
7459 |
|
---|
7460 |
|
---|
7461 | # Check whether --with-debug-credssp was given.
|
---|
7462 | if test "${with_debug_credssp+set}" = set; then :
|
---|
7463 | withval=$with_debug_credssp;
|
---|
7464 | if test $withval != "no";
|
---|
7465 | then
|
---|
7466 | if test x"$WITH_CREDSSP" = "x1"; then
|
---|
7467 | $as_echo "#define WITH_DEBUG_CREDSSP 1" >>confdefs.h
|
---|
7468 |
|
---|
7469 | fi
|
---|
7470 | fi
|
---|
7471 |
|
---|
7472 | fi
|
---|
7473 |
|
---|
7474 |
|
---|
7475 | #
|
---|
7476 | # target-specific stuff
|
---|
7477 | #
|
---|
7478 | case "$host" in
|
---|
7479 | *-*-hpux*)
|
---|
7480 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
7481 | ;;
|
---|
7482 | *-*-irix6.5*)
|
---|
7483 | LIBS="-L$ssldir/lib32 $LIBS"
|
---|
7484 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
7485 | ;;
|
---|
7486 | esac
|
---|
7487 |
|
---|
7488 | ac_config_files="$ac_config_files Makefile"
|
---|
7489 |
|
---|
7490 | cat >confcache <<\_ACEOF
|
---|
7491 | # This file is a shell script that caches the results of configure
|
---|
7492 | # tests run on this system so they can be shared between configure
|
---|
7493 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7494 | # It is not useful on other systems. If it contains results you don't
|
---|
7495 | # want to keep, you may remove or edit it.
|
---|
7496 | #
|
---|
7497 | # config.status only pays attention to the cache file if you give it
|
---|
7498 | # the --recheck option to rerun configure.
|
---|
7499 | #
|
---|
7500 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7501 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7502 | # following values.
|
---|
7503 |
|
---|
7504 | _ACEOF
|
---|
7505 |
|
---|
7506 | # The following way of writing the cache mishandles newlines in values,
|
---|
7507 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7508 | # So, we kill variables containing newlines.
|
---|
7509 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7510 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7511 | (
|
---|
7512 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
7513 | eval ac_val=\$$ac_var
|
---|
7514 | case $ac_val in #(
|
---|
7515 | *${as_nl}*)
|
---|
7516 | case $ac_var in #(
|
---|
7517 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
7518 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
7519 | esac
|
---|
7520 | case $ac_var in #(
|
---|
7521 | _ | IFS | as_nl) ;; #(
|
---|
7522 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
7523 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
7524 | esac ;;
|
---|
7525 | esac
|
---|
7526 | done
|
---|
7527 |
|
---|
7528 | (set) 2>&1 |
|
---|
7529 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
7530 | *${as_nl}ac_space=\ *)
|
---|
7531 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
7532 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
7533 | sed -n \
|
---|
7534 | "s/'/'\\\\''/g;
|
---|
7535 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7536 | ;; #(
|
---|
7537 | *)
|
---|
7538 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7539 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
7540 | ;;
|
---|
7541 | esac |
|
---|
7542 | sort
|
---|
7543 | ) |
|
---|
7544 | sed '
|
---|
7545 | /^ac_cv_env_/b end
|
---|
7546 | t clear
|
---|
7547 | :clear
|
---|
7548 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7549 | t end
|
---|
7550 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7551 | :end' >>confcache
|
---|
7552 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
7553 | if test -w "$cache_file"; then
|
---|
7554 | if test "x$cache_file" != "x/dev/null"; then
|
---|
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
7556 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
7557 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
7558 | cat confcache >"$cache_file"
|
---|
7559 | else
|
---|
7560 | case $cache_file in #(
|
---|
7561 | */* | ?:*)
|
---|
7562 | mv -f confcache "$cache_file"$$ &&
|
---|
7563 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
7564 | *)
|
---|
7565 | mv -f confcache "$cache_file" ;;
|
---|
7566 | esac
|
---|
7567 | fi
|
---|
7568 | fi
|
---|
7569 | else
|
---|
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
7571 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
7572 | fi
|
---|
7573 | fi
|
---|
7574 | rm -f confcache
|
---|
7575 |
|
---|
7576 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7577 | # Let make expand exec_prefix.
|
---|
7578 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7579 |
|
---|
7580 | # Transform confdefs.h into DEFS.
|
---|
7581 | # Protect against shell expansion while executing Makefile rules.
|
---|
7582 | # Protect against Makefile macro expansion.
|
---|
7583 | #
|
---|
7584 | # If the first sed substitution is executed (which looks for macros that
|
---|
7585 | # take arguments), then branch to the quote section. Otherwise,
|
---|
7586 | # look for a macro that doesn't take arguments.
|
---|
7587 | ac_script='
|
---|
7588 | :mline
|
---|
7589 | /\\$/{
|
---|
7590 | N
|
---|
7591 | s,\\\n,,
|
---|
7592 | b mline
|
---|
7593 | }
|
---|
7594 | t clear
|
---|
7595 | :clear
|
---|
7596 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7597 | t quote
|
---|
7598 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7599 | t quote
|
---|
7600 | b any
|
---|
7601 | :quote
|
---|
7602 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
7603 | s/\[/\\&/g
|
---|
7604 | s/\]/\\&/g
|
---|
7605 | s/\$/$$/g
|
---|
7606 | H
|
---|
7607 | :any
|
---|
7608 | ${
|
---|
7609 | g
|
---|
7610 | s/^\n//
|
---|
7611 | s/\n/ /g
|
---|
7612 | p
|
---|
7613 | }
|
---|
7614 | '
|
---|
7615 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
7616 |
|
---|
7617 |
|
---|
7618 | ac_libobjs=
|
---|
7619 | ac_ltlibobjs=
|
---|
7620 | U=
|
---|
7621 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7622 | # 1. Remove the extension, and $U if already installed.
|
---|
7623 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
7624 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
7625 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
7626 | # will be set to the directory where LIBOBJS objects are built.
|
---|
7627 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
7628 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
7629 | done
|
---|
7630 | LIBOBJS=$ac_libobjs
|
---|
7631 |
|
---|
7632 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7633 |
|
---|
7634 |
|
---|
7635 |
|
---|
7636 |
|
---|
7637 | : "${CONFIG_STATUS=./config.status}"
|
---|
7638 | ac_write_fail=0
|
---|
7639 | ac_clean_files_save=$ac_clean_files
|
---|
7640 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
7642 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7643 | as_write_fail=0
|
---|
7644 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
7645 | #! $SHELL
|
---|
7646 | # Generated by $as_me.
|
---|
7647 | # Run this file to recreate the current configuration.
|
---|
7648 | # Compiler output produced by configure, useful for debugging
|
---|
7649 | # configure, is in config.log if it exists.
|
---|
7650 |
|
---|
7651 | debug=false
|
---|
7652 | ac_cs_recheck=false
|
---|
7653 | ac_cs_silent=false
|
---|
7654 |
|
---|
7655 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7656 | export SHELL
|
---|
7657 | _ASEOF
|
---|
7658 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
7659 | ## -------------------- ##
|
---|
7660 | ## M4sh Initialization. ##
|
---|
7661 | ## -------------------- ##
|
---|
7662 |
|
---|
7663 | # Be more Bourne compatible
|
---|
7664 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7665 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
7666 | emulate sh
|
---|
7667 | NULLCMD=:
|
---|
7668 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
7669 | # is contrary to our usage. Disable this feature.
|
---|
7670 | alias -g '${1+"$@"}'='"$@"'
|
---|
7671 | setopt NO_GLOB_SUBST
|
---|
7672 | else
|
---|
7673 | case `(set -o) 2>/dev/null` in #(
|
---|
7674 | *posix*) :
|
---|
7675 | set -o posix ;; #(
|
---|
7676 | *) :
|
---|
7677 | ;;
|
---|
7678 | esac
|
---|
7679 | fi
|
---|
7680 |
|
---|
7681 |
|
---|
7682 | as_nl='
|
---|
7683 | '
|
---|
7684 | export as_nl
|
---|
7685 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
7686 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
7687 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7688 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7689 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
7690 | # but without wasting forks for bash or zsh.
|
---|
7691 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
7692 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7693 | as_echo='print -r --'
|
---|
7694 | as_echo_n='print -rn --'
|
---|
7695 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7696 | as_echo='printf %s\n'
|
---|
7697 | as_echo_n='printf %s'
|
---|
7698 | else
|
---|
7699 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
7700 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
7701 | as_echo_n='/usr/ucb/echo -n'
|
---|
7702 | else
|
---|
7703 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
7704 | as_echo_n_body='eval
|
---|
7705 | arg=$1;
|
---|
7706 | case $arg in #(
|
---|
7707 | *"$as_nl"*)
|
---|
7708 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
7709 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
7710 | esac;
|
---|
7711 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
7712 | '
|
---|
7713 | export as_echo_n_body
|
---|
7714 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
7715 | fi
|
---|
7716 | export as_echo_body
|
---|
7717 | as_echo='sh -c $as_echo_body as_echo'
|
---|
7718 | fi
|
---|
7719 |
|
---|
7720 | # The user is always right.
|
---|
7721 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7722 | PATH_SEPARATOR=:
|
---|
7723 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
7724 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
7725 | PATH_SEPARATOR=';'
|
---|
7726 | }
|
---|
7727 | fi
|
---|
7728 |
|
---|
7729 |
|
---|
7730 | # IFS
|
---|
7731 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
7732 | # there to prevent editors from complaining about space-tab.
|
---|
7733 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
7734 | # splitting by setting IFS to empty value.)
|
---|
7735 | IFS=" "" $as_nl"
|
---|
7736 |
|
---|
7737 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
7738 | as_myself=
|
---|
7739 | case $0 in #((
|
---|
7740 | *[\\/]* ) as_myself=$0 ;;
|
---|
7741 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7742 | for as_dir in $PATH
|
---|
7743 | do
|
---|
7744 | IFS=$as_save_IFS
|
---|
7745 | test -z "$as_dir" && as_dir=.
|
---|
7746 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7747 | done
|
---|
7748 | IFS=$as_save_IFS
|
---|
7749 |
|
---|
7750 | ;;
|
---|
7751 | esac
|
---|
7752 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7753 | # in which case we are not to be found in the path.
|
---|
7754 | if test "x$as_myself" = x; then
|
---|
7755 | as_myself=$0
|
---|
7756 | fi
|
---|
7757 | if test ! -f "$as_myself"; then
|
---|
7758 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
7759 | exit 1
|
---|
7760 | fi
|
---|
7761 |
|
---|
7762 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
7763 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
7764 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
7765 | # trigger a bug in pdksh 5.2.14.
|
---|
7766 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
7767 | do eval test x\${$as_var+set} = xset \
|
---|
7768 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
7769 | done
|
---|
7770 | PS1='$ '
|
---|
7771 | PS2='> '
|
---|
7772 | PS4='+ '
|
---|
7773 |
|
---|
7774 | # NLS nuisances.
|
---|
7775 | LC_ALL=C
|
---|
7776 | export LC_ALL
|
---|
7777 | LANGUAGE=C
|
---|
7778 | export LANGUAGE
|
---|
7779 |
|
---|
7780 | # CDPATH.
|
---|
7781 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
7782 |
|
---|
7783 |
|
---|
7784 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
7785 | # ----------------------------------------
|
---|
7786 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
7787 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
7788 | # script with STATUS, using 1 if that was 0.
|
---|
7789 | as_fn_error ()
|
---|
7790 | {
|
---|
7791 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
7792 | if test "$4"; then
|
---|
7793 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
7795 | fi
|
---|
7796 | $as_echo "$as_me: error: $2" >&2
|
---|
7797 | as_fn_exit $as_status
|
---|
7798 | } # as_fn_error
|
---|
7799 |
|
---|
7800 |
|
---|
7801 | # as_fn_set_status STATUS
|
---|
7802 | # -----------------------
|
---|
7803 | # Set $? to STATUS, without forking.
|
---|
7804 | as_fn_set_status ()
|
---|
7805 | {
|
---|
7806 | return $1
|
---|
7807 | } # as_fn_set_status
|
---|
7808 |
|
---|
7809 | # as_fn_exit STATUS
|
---|
7810 | # -----------------
|
---|
7811 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
7812 | as_fn_exit ()
|
---|
7813 | {
|
---|
7814 | set +e
|
---|
7815 | as_fn_set_status $1
|
---|
7816 | exit $1
|
---|
7817 | } # as_fn_exit
|
---|
7818 |
|
---|
7819 | # as_fn_unset VAR
|
---|
7820 | # ---------------
|
---|
7821 | # Portably unset VAR.
|
---|
7822 | as_fn_unset ()
|
---|
7823 | {
|
---|
7824 | { eval $1=; unset $1;}
|
---|
7825 | }
|
---|
7826 | as_unset=as_fn_unset
|
---|
7827 | # as_fn_append VAR VALUE
|
---|
7828 | # ----------------------
|
---|
7829 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
7830 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
7831 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
7832 | # implementations.
|
---|
7833 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
7834 | eval 'as_fn_append ()
|
---|
7835 | {
|
---|
7836 | eval $1+=\$2
|
---|
7837 | }'
|
---|
7838 | else
|
---|
7839 | as_fn_append ()
|
---|
7840 | {
|
---|
7841 | eval $1=\$$1\$2
|
---|
7842 | }
|
---|
7843 | fi # as_fn_append
|
---|
7844 |
|
---|
7845 | # as_fn_arith ARG...
|
---|
7846 | # ------------------
|
---|
7847 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
7848 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
7849 | # must be portable across $(()) and expr.
|
---|
7850 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
7851 | eval 'as_fn_arith ()
|
---|
7852 | {
|
---|
7853 | as_val=$(( $* ))
|
---|
7854 | }'
|
---|
7855 | else
|
---|
7856 | as_fn_arith ()
|
---|
7857 | {
|
---|
7858 | as_val=`expr "$@" || test $? -eq 1`
|
---|
7859 | }
|
---|
7860 | fi # as_fn_arith
|
---|
7861 |
|
---|
7862 |
|
---|
7863 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7864 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7865 | as_expr=expr
|
---|
7866 | else
|
---|
7867 | as_expr=false
|
---|
7868 | fi
|
---|
7869 |
|
---|
7870 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7871 | as_basename=basename
|
---|
7872 | else
|
---|
7873 | as_basename=false
|
---|
7874 | fi
|
---|
7875 |
|
---|
7876 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7877 | as_dirname=dirname
|
---|
7878 | else
|
---|
7879 | as_dirname=false
|
---|
7880 | fi
|
---|
7881 |
|
---|
7882 | as_me=`$as_basename -- "$0" ||
|
---|
7883 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7884 | X"$0" : 'X\(//\)$' \| \
|
---|
7885 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7886 | $as_echo X/"$0" |
|
---|
7887 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7888 | s//\1/
|
---|
7889 | q
|
---|
7890 | }
|
---|
7891 | /^X\/\(\/\/\)$/{
|
---|
7892 | s//\1/
|
---|
7893 | q
|
---|
7894 | }
|
---|
7895 | /^X\/\(\/\).*/{
|
---|
7896 | s//\1/
|
---|
7897 | q
|
---|
7898 | }
|
---|
7899 | s/.*/./; q'`
|
---|
7900 |
|
---|
7901 | # Avoid depending upon Character Ranges.
|
---|
7902 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7903 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7904 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7905 | as_cr_digits='0123456789'
|
---|
7906 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7907 |
|
---|
7908 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7909 | case `echo -n x` in #(((((
|
---|
7910 | -n*)
|
---|
7911 | case `echo 'xy\c'` in
|
---|
7912 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7913 | xy) ECHO_C='\c';;
|
---|
7914 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7915 | ECHO_T=' ';;
|
---|
7916 | esac;;
|
---|
7917 | *)
|
---|
7918 | ECHO_N='-n';;
|
---|
7919 | esac
|
---|
7920 |
|
---|
7921 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7922 | if test -d conf$$.dir; then
|
---|
7923 | rm -f conf$$.dir/conf$$.file
|
---|
7924 | else
|
---|
7925 | rm -f conf$$.dir
|
---|
7926 | mkdir conf$$.dir 2>/dev/null
|
---|
7927 | fi
|
---|
7928 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7929 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7930 | as_ln_s='ln -s'
|
---|
7931 | # ... but there are two gotchas:
|
---|
7932 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7933 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7934 | # In both cases, we have to default to `cp -pR'.
|
---|
7935 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7936 | as_ln_s='cp -pR'
|
---|
7937 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7938 | as_ln_s=ln
|
---|
7939 | else
|
---|
7940 | as_ln_s='cp -pR'
|
---|
7941 | fi
|
---|
7942 | else
|
---|
7943 | as_ln_s='cp -pR'
|
---|
7944 | fi
|
---|
7945 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7946 | rmdir conf$$.dir 2>/dev/null
|
---|
7947 |
|
---|
7948 |
|
---|
7949 | # as_fn_mkdir_p
|
---|
7950 | # -------------
|
---|
7951 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7952 | as_fn_mkdir_p ()
|
---|
7953 | {
|
---|
7954 |
|
---|
7955 | case $as_dir in #(
|
---|
7956 | -*) as_dir=./$as_dir;;
|
---|
7957 | esac
|
---|
7958 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7959 | as_dirs=
|
---|
7960 | while :; do
|
---|
7961 | case $as_dir in #(
|
---|
7962 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7963 | *) as_qdir=$as_dir;;
|
---|
7964 | esac
|
---|
7965 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7966 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7967 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7968 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7969 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7970 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7971 | $as_echo X"$as_dir" |
|
---|
7972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7973 | s//\1/
|
---|
7974 | q
|
---|
7975 | }
|
---|
7976 | /^X\(\/\/\)[^/].*/{
|
---|
7977 | s//\1/
|
---|
7978 | q
|
---|
7979 | }
|
---|
7980 | /^X\(\/\/\)$/{
|
---|
7981 | s//\1/
|
---|
7982 | q
|
---|
7983 | }
|
---|
7984 | /^X\(\/\).*/{
|
---|
7985 | s//\1/
|
---|
7986 | q
|
---|
7987 | }
|
---|
7988 | s/.*/./; q'`
|
---|
7989 | test -d "$as_dir" && break
|
---|
7990 | done
|
---|
7991 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7992 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7993 |
|
---|
7994 |
|
---|
7995 | } # as_fn_mkdir_p
|
---|
7996 | if mkdir -p . 2>/dev/null; then
|
---|
7997 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7998 | else
|
---|
7999 | test -d ./-p && rmdir ./-p
|
---|
8000 | as_mkdir_p=false
|
---|
8001 | fi
|
---|
8002 |
|
---|
8003 |
|
---|
8004 | # as_fn_executable_p FILE
|
---|
8005 | # -----------------------
|
---|
8006 | # Test if FILE is an executable regular file.
|
---|
8007 | as_fn_executable_p ()
|
---|
8008 | {
|
---|
8009 | test -f "$1" && test -x "$1"
|
---|
8010 | } # as_fn_executable_p
|
---|
8011 | as_test_x='test -x'
|
---|
8012 | as_executable_p=as_fn_executable_p
|
---|
8013 |
|
---|
8014 | # Sed expression to map a string onto a valid CPP name.
|
---|
8015 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8016 |
|
---|
8017 | # Sed expression to map a string onto a valid variable name.
|
---|
8018 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8019 |
|
---|
8020 |
|
---|
8021 | exec 6>&1
|
---|
8022 | ## ----------------------------------- ##
|
---|
8023 | ## Main body of $CONFIG_STATUS script. ##
|
---|
8024 | ## ----------------------------------- ##
|
---|
8025 | _ASEOF
|
---|
8026 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
8027 |
|
---|
8028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8029 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
8030 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
8031 | # values after options handling.
|
---|
8032 | ac_log="
|
---|
8033 | This file was extended by rdesktop $as_me 1.8.3, which was
|
---|
8034 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
8035 |
|
---|
8036 | CONFIG_FILES = $CONFIG_FILES
|
---|
8037 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
8038 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
8039 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
8040 | $ $0 $@
|
---|
8041 |
|
---|
8042 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
8043 | "
|
---|
8044 |
|
---|
8045 | _ACEOF
|
---|
8046 |
|
---|
8047 | case $ac_config_files in *"
|
---|
8048 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
8049 | esac
|
---|
8050 |
|
---|
8051 |
|
---|
8052 |
|
---|
8053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8054 | # Files that config.status was made for.
|
---|
8055 | config_files="$ac_config_files"
|
---|
8056 |
|
---|
8057 | _ACEOF
|
---|
8058 |
|
---|
8059 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8060 | ac_cs_usage="\
|
---|
8061 | \`$as_me' instantiates files and other configuration actions
|
---|
8062 | from templates according to the current configuration. Unless the files
|
---|
8063 | and actions are specified as TAGs, all are instantiated by default.
|
---|
8064 |
|
---|
8065 | Usage: $0 [OPTION]... [TAG]...
|
---|
8066 |
|
---|
8067 | -h, --help print this help, then exit
|
---|
8068 | -V, --version print version number and configuration settings, then exit
|
---|
8069 | --config print configuration, then exit
|
---|
8070 | -q, --quiet, --silent
|
---|
8071 | do not print progress messages
|
---|
8072 | -d, --debug don't remove temporary files
|
---|
8073 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
8074 | --file=FILE[:TEMPLATE]
|
---|
8075 | instantiate the configuration file FILE
|
---|
8076 |
|
---|
8077 | Configuration files:
|
---|
8078 | $config_files
|
---|
8079 |
|
---|
8080 | Report bugs to the package provider."
|
---|
8081 |
|
---|
8082 | _ACEOF
|
---|
8083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8084 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
8085 | ac_cs_version="\\
|
---|
8086 | rdesktop config.status 1.8.3
|
---|
8087 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
8088 | with options \\"\$ac_cs_config\\"
|
---|
8089 |
|
---|
8090 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
8091 | This config.status script is free software; the Free Software Foundation
|
---|
8092 | gives unlimited permission to copy, distribute and modify it."
|
---|
8093 |
|
---|
8094 | ac_pwd='$ac_pwd'
|
---|
8095 | srcdir='$srcdir'
|
---|
8096 | INSTALL='$INSTALL'
|
---|
8097 | test -n "\$AWK" || AWK=awk
|
---|
8098 | _ACEOF
|
---|
8099 |
|
---|
8100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8101 | # The default lists apply if the user does not specify any file.
|
---|
8102 | ac_need_defaults=:
|
---|
8103 | while test $# != 0
|
---|
8104 | do
|
---|
8105 | case $1 in
|
---|
8106 | --*=?*)
|
---|
8107 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8108 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
8109 | ac_shift=:
|
---|
8110 | ;;
|
---|
8111 | --*=)
|
---|
8112 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8113 | ac_optarg=
|
---|
8114 | ac_shift=:
|
---|
8115 | ;;
|
---|
8116 | *)
|
---|
8117 | ac_option=$1
|
---|
8118 | ac_optarg=$2
|
---|
8119 | ac_shift=shift
|
---|
8120 | ;;
|
---|
8121 | esac
|
---|
8122 |
|
---|
8123 | case $ac_option in
|
---|
8124 | # Handling of the options.
|
---|
8125 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
8126 | ac_cs_recheck=: ;;
|
---|
8127 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
8128 | $as_echo "$ac_cs_version"; exit ;;
|
---|
8129 | --config | --confi | --conf | --con | --co | --c )
|
---|
8130 | $as_echo "$ac_cs_config"; exit ;;
|
---|
8131 | --debug | --debu | --deb | --de | --d | -d )
|
---|
8132 | debug=: ;;
|
---|
8133 | --file | --fil | --fi | --f )
|
---|
8134 | $ac_shift
|
---|
8135 | case $ac_optarg in
|
---|
8136 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
8137 | '') as_fn_error $? "missing file argument" ;;
|
---|
8138 | esac
|
---|
8139 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
8140 | ac_need_defaults=false;;
|
---|
8141 | --he | --h | --help | --hel | -h )
|
---|
8142 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
8143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
8144 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
8145 | ac_cs_silent=: ;;
|
---|
8146 |
|
---|
8147 | # This is an error.
|
---|
8148 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
8149 | Try \`$0 --help' for more information." ;;
|
---|
8150 |
|
---|
8151 | *) as_fn_append ac_config_targets " $1"
|
---|
8152 | ac_need_defaults=false ;;
|
---|
8153 |
|
---|
8154 | esac
|
---|
8155 | shift
|
---|
8156 | done
|
---|
8157 |
|
---|
8158 | ac_configure_extra_args=
|
---|
8159 |
|
---|
8160 | if $ac_cs_silent; then
|
---|
8161 | exec 6>/dev/null
|
---|
8162 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
8163 | fi
|
---|
8164 |
|
---|
8165 | _ACEOF
|
---|
8166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8167 | if \$ac_cs_recheck; then
|
---|
8168 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
8169 | shift
|
---|
8170 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
8171 | CONFIG_SHELL='$SHELL'
|
---|
8172 | export CONFIG_SHELL
|
---|
8173 | exec "\$@"
|
---|
8174 | fi
|
---|
8175 |
|
---|
8176 | _ACEOF
|
---|
8177 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8178 | exec 5>>config.log
|
---|
8179 | {
|
---|
8180 | echo
|
---|
8181 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
8182 | ## Running $as_me. ##
|
---|
8183 | _ASBOX
|
---|
8184 | $as_echo "$ac_log"
|
---|
8185 | } >&5
|
---|
8186 |
|
---|
8187 | _ACEOF
|
---|
8188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8189 | _ACEOF
|
---|
8190 |
|
---|
8191 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8192 |
|
---|
8193 | # Handling of arguments.
|
---|
8194 | for ac_config_target in $ac_config_targets
|
---|
8195 | do
|
---|
8196 | case $ac_config_target in
|
---|
8197 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
8198 |
|
---|
8199 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
8200 | esac
|
---|
8201 | done
|
---|
8202 |
|
---|
8203 |
|
---|
8204 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
8205 | # then the envvar interface is used. Set only those that are not.
|
---|
8206 | # We use the long form for the default assignment because of an extremely
|
---|
8207 | # bizarre bug on SunOS 4.1.3.
|
---|
8208 | if $ac_need_defaults; then
|
---|
8209 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
8210 | fi
|
---|
8211 |
|
---|
8212 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
8213 | # simply because there is no reason against having it here, and in addition,
|
---|
8214 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
8215 | # Hook for its removal unless debugging.
|
---|
8216 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
8217 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
8218 | $debug ||
|
---|
8219 | {
|
---|
8220 | tmp= ac_tmp=
|
---|
8221 | trap 'exit_status=$?
|
---|
8222 | : "${ac_tmp:=$tmp}"
|
---|
8223 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
8224 | ' 0
|
---|
8225 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
8226 | }
|
---|
8227 | # Create a (secure) tmp directory for tmp files.
|
---|
8228 |
|
---|
8229 | {
|
---|
8230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
8231 | test -d "$tmp"
|
---|
8232 | } ||
|
---|
8233 | {
|
---|
8234 | tmp=./conf$$-$RANDOM
|
---|
8235 | (umask 077 && mkdir "$tmp")
|
---|
8236 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
8237 | ac_tmp=$tmp
|
---|
8238 |
|
---|
8239 | # Set up the scripts for CONFIG_FILES section.
|
---|
8240 | # No need to generate them if there are no CONFIG_FILES.
|
---|
8241 | # This happens for instance with `./config.status config.h'.
|
---|
8242 | if test -n "$CONFIG_FILES"; then
|
---|
8243 |
|
---|
8244 |
|
---|
8245 | ac_cr=`echo X | tr X '\015'`
|
---|
8246 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
8247 | # But we know of no other shell where ac_cr would be empty at this
|
---|
8248 | # point, so we can use a bashism as a fallback.
|
---|
8249 | if test "x$ac_cr" = x; then
|
---|
8250 | eval ac_cr=\$\'\\r\'
|
---|
8251 | fi
|
---|
8252 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
8253 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
8254 | ac_cs_awk_cr='\\r'
|
---|
8255 | else
|
---|
8256 | ac_cs_awk_cr=$ac_cr
|
---|
8257 | fi
|
---|
8258 |
|
---|
8259 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
8260 | _ACEOF
|
---|
8261 |
|
---|
8262 |
|
---|
8263 | {
|
---|
8264 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
8265 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
8266 | echo "_ACEOF"
|
---|
8267 | } >conf$$subs.sh ||
|
---|
8268 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8269 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
8270 | ac_delim='%!_!# '
|
---|
8271 | for ac_last_try in false false false false false :; do
|
---|
8272 | . ./conf$$subs.sh ||
|
---|
8273 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8274 |
|
---|
8275 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
8276 | if test $ac_delim_n = $ac_delim_num; then
|
---|
8277 | break
|
---|
8278 | elif $ac_last_try; then
|
---|
8279 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
8280 | else
|
---|
8281 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
8282 | fi
|
---|
8283 | done
|
---|
8284 | rm -f conf$$subs.sh
|
---|
8285 |
|
---|
8286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8287 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
8288 | _ACEOF
|
---|
8289 | sed -n '
|
---|
8290 | h
|
---|
8291 | s/^/S["/; s/!.*/"]=/
|
---|
8292 | p
|
---|
8293 | g
|
---|
8294 | s/^[^!]*!//
|
---|
8295 | :repl
|
---|
8296 | t repl
|
---|
8297 | s/'"$ac_delim"'$//
|
---|
8298 | t delim
|
---|
8299 | :nl
|
---|
8300 | h
|
---|
8301 | s/\(.\{148\}\)..*/\1/
|
---|
8302 | t more1
|
---|
8303 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
8304 | p
|
---|
8305 | n
|
---|
8306 | b repl
|
---|
8307 | :more1
|
---|
8308 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
8309 | p
|
---|
8310 | g
|
---|
8311 | s/.\{148\}//
|
---|
8312 | t nl
|
---|
8313 | :delim
|
---|
8314 | h
|
---|
8315 | s/\(.\{148\}\)..*/\1/
|
---|
8316 | t more2
|
---|
8317 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
8318 | p
|
---|
8319 | b
|
---|
8320 | :more2
|
---|
8321 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
8322 | p
|
---|
8323 | g
|
---|
8324 | s/.\{148\}//
|
---|
8325 | t delim
|
---|
8326 | ' <conf$$subs.awk | sed '
|
---|
8327 | /^[^""]/{
|
---|
8328 | N
|
---|
8329 | s/\n//
|
---|
8330 | }
|
---|
8331 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
8332 | rm -f conf$$subs.awk
|
---|
8333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8334 | _ACAWK
|
---|
8335 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
8336 | for (key in S) S_is_set[key] = 1
|
---|
8337 | FS = ""
|
---|
8338 |
|
---|
8339 | }
|
---|
8340 | {
|
---|
8341 | line = $ 0
|
---|
8342 | nfields = split(line, field, "@")
|
---|
8343 | substed = 0
|
---|
8344 | len = length(field[1])
|
---|
8345 | for (i = 2; i < nfields; i++) {
|
---|
8346 | key = field[i]
|
---|
8347 | keylen = length(key)
|
---|
8348 | if (S_is_set[key]) {
|
---|
8349 | value = S[key]
|
---|
8350 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
8351 | len += length(value) + length(field[++i])
|
---|
8352 | substed = 1
|
---|
8353 | } else
|
---|
8354 | len += 1 + keylen
|
---|
8355 | }
|
---|
8356 |
|
---|
8357 | print line
|
---|
8358 | }
|
---|
8359 |
|
---|
8360 | _ACAWK
|
---|
8361 | _ACEOF
|
---|
8362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8363 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
8364 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
8365 | else
|
---|
8366 | cat
|
---|
8367 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
8368 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
8369 | _ACEOF
|
---|
8370 |
|
---|
8371 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
8372 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
8373 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
8374 | # (actually we leave an empty line to preserve line numbers).
|
---|
8375 | if test "x$srcdir" = x.; then
|
---|
8376 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
8377 | h
|
---|
8378 | s///
|
---|
8379 | s/^/:/
|
---|
8380 | s/[ ]*$/:/
|
---|
8381 | s/:\$(srcdir):/:/g
|
---|
8382 | s/:\${srcdir}:/:/g
|
---|
8383 | s/:@srcdir@:/:/g
|
---|
8384 | s/^:*//
|
---|
8385 | s/:*$//
|
---|
8386 | x
|
---|
8387 | s/\(=[ ]*\).*/\1/
|
---|
8388 | G
|
---|
8389 | s/\n//
|
---|
8390 | s/^[^=]*=[ ]*$//
|
---|
8391 | }'
|
---|
8392 | fi
|
---|
8393 |
|
---|
8394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8395 | fi # test -n "$CONFIG_FILES"
|
---|
8396 |
|
---|
8397 |
|
---|
8398 | eval set X " :F $CONFIG_FILES "
|
---|
8399 | shift
|
---|
8400 | for ac_tag
|
---|
8401 | do
|
---|
8402 | case $ac_tag in
|
---|
8403 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
8404 | esac
|
---|
8405 | case $ac_mode$ac_tag in
|
---|
8406 | :[FHL]*:*);;
|
---|
8407 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
8408 | :[FH]-) ac_tag=-:-;;
|
---|
8409 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
8410 | esac
|
---|
8411 | ac_save_IFS=$IFS
|
---|
8412 | IFS=:
|
---|
8413 | set x $ac_tag
|
---|
8414 | IFS=$ac_save_IFS
|
---|
8415 | shift
|
---|
8416 | ac_file=$1
|
---|
8417 | shift
|
---|
8418 |
|
---|
8419 | case $ac_mode in
|
---|
8420 | :L) ac_source=$1;;
|
---|
8421 | :[FH])
|
---|
8422 | ac_file_inputs=
|
---|
8423 | for ac_f
|
---|
8424 | do
|
---|
8425 | case $ac_f in
|
---|
8426 | -) ac_f="$ac_tmp/stdin";;
|
---|
8427 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8428 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8429 | # because $ac_f cannot contain `:'.
|
---|
8430 | test -f "$ac_f" ||
|
---|
8431 | case $ac_f in
|
---|
8432 | [\\/$]*) false;;
|
---|
8433 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8434 | esac ||
|
---|
8435 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
8436 | esac
|
---|
8437 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
8438 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
8439 | done
|
---|
8440 |
|
---|
8441 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8442 | # use $as_me), people would be surprised to read:
|
---|
8443 | # /* config.h. Generated by config.status. */
|
---|
8444 | configure_input='Generated from '`
|
---|
8445 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
8446 | `' by configure.'
|
---|
8447 | if test x"$ac_file" != x-; then
|
---|
8448 | configure_input="$ac_file. $configure_input"
|
---|
8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
8450 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
8451 | fi
|
---|
8452 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
8453 | case $configure_input in #(
|
---|
8454 | *\&* | *\|* | *\\* )
|
---|
8455 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
8456 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
8457 | *) ac_sed_conf_input=$configure_input;;
|
---|
8458 | esac
|
---|
8459 |
|
---|
8460 | case $ac_tag in
|
---|
8461 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
8462 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
8463 | esac
|
---|
8464 | ;;
|
---|
8465 | esac
|
---|
8466 |
|
---|
8467 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8468 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8469 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8470 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8471 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8472 | $as_echo X"$ac_file" |
|
---|
8473 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8474 | s//\1/
|
---|
8475 | q
|
---|
8476 | }
|
---|
8477 | /^X\(\/\/\)[^/].*/{
|
---|
8478 | s//\1/
|
---|
8479 | q
|
---|
8480 | }
|
---|
8481 | /^X\(\/\/\)$/{
|
---|
8482 | s//\1/
|
---|
8483 | q
|
---|
8484 | }
|
---|
8485 | /^X\(\/\).*/{
|
---|
8486 | s//\1/
|
---|
8487 | q
|
---|
8488 | }
|
---|
8489 | s/.*/./; q'`
|
---|
8490 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
8491 | ac_builddir=.
|
---|
8492 |
|
---|
8493 | case "$ac_dir" in
|
---|
8494 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8495 | *)
|
---|
8496 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
8497 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8498 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
8499 | case $ac_top_builddir_sub in
|
---|
8500 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8501 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8502 | esac ;;
|
---|
8503 | esac
|
---|
8504 | ac_abs_top_builddir=$ac_pwd
|
---|
8505 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8506 | # for backward compatibility:
|
---|
8507 | ac_top_builddir=$ac_top_build_prefix
|
---|
8508 |
|
---|
8509 | case $srcdir in
|
---|
8510 | .) # We are building in place.
|
---|
8511 | ac_srcdir=.
|
---|
8512 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8513 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8514 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8515 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8516 | ac_top_srcdir=$srcdir
|
---|
8517 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8518 | *) # Relative name.
|
---|
8519 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8520 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8521 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8522 | esac
|
---|
8523 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8524 |
|
---|
8525 |
|
---|
8526 | case $ac_mode in
|
---|
8527 | :F)
|
---|
8528 | #
|
---|
8529 | # CONFIG_FILE
|
---|
8530 | #
|
---|
8531 |
|
---|
8532 | case $INSTALL in
|
---|
8533 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8534 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
8535 | esac
|
---|
8536 | _ACEOF
|
---|
8537 |
|
---|
8538 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8539 | # If the template does not know about datarootdir, expand it.
|
---|
8540 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
8541 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
8542 | ac_sed_dataroot='
|
---|
8543 | /datarootdir/ {
|
---|
8544 | p
|
---|
8545 | q
|
---|
8546 | }
|
---|
8547 | /@datadir@/p
|
---|
8548 | /@docdir@/p
|
---|
8549 | /@infodir@/p
|
---|
8550 | /@localedir@/p
|
---|
8551 | /@mandir@/p'
|
---|
8552 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
8553 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8554 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8556 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8557 | _ACEOF
|
---|
8558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8559 | ac_datarootdir_hack='
|
---|
8560 | s&@datadir@&$datadir&g
|
---|
8561 | s&@docdir@&$docdir&g
|
---|
8562 | s&@infodir@&$infodir&g
|
---|
8563 | s&@localedir@&$localedir&g
|
---|
8564 | s&@mandir@&$mandir&g
|
---|
8565 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8566 | esac
|
---|
8567 | _ACEOF
|
---|
8568 |
|
---|
8569 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8570 | # Shell code in configure.ac might set extrasub.
|
---|
8571 | # FIXME: do we really want to maintain this feature?
|
---|
8572 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8573 | ac_sed_extra="$ac_vpsub
|
---|
8574 | $extrasub
|
---|
8575 | _ACEOF
|
---|
8576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8577 | :t
|
---|
8578 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8579 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
8580 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8581 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
8582 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8583 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8584 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8585 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8586 | s&@builddir@&$ac_builddir&;t t
|
---|
8587 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8588 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8589 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8590 | $ac_datarootdir_hack
|
---|
8591 | "
|
---|
8592 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
8593 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8594 |
|
---|
8595 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8596 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
8597 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
8598 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8600 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
8601 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8602 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
8603 |
|
---|
8604 | rm -f "$ac_tmp/stdin"
|
---|
8605 | case $ac_file in
|
---|
8606 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
8607 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
8608 | esac \
|
---|
8609 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8610 | ;;
|
---|
8611 |
|
---|
8612 |
|
---|
8613 |
|
---|
8614 | esac
|
---|
8615 |
|
---|
8616 | done # for ac_tag
|
---|
8617 |
|
---|
8618 |
|
---|
8619 | as_fn_exit 0
|
---|
8620 | _ACEOF
|
---|
8621 | ac_clean_files=$ac_clean_files_save
|
---|
8622 |
|
---|
8623 | test $ac_write_fail = 0 ||
|
---|
8624 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
8625 |
|
---|
8626 |
|
---|
8627 | # configure is writing to config.log, and then calls config.status.
|
---|
8628 | # config.status does its own redirection, appending to config.log.
|
---|
8629 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8630 | # by configure, so config.status won't be able to write to it; its
|
---|
8631 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8632 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8633 | # appended to by config.status. When coming back to configure, we
|
---|
8634 | # need to make the FD available again.
|
---|
8635 | if test "$no_create" != yes; then
|
---|
8636 | ac_cs_success=:
|
---|
8637 | ac_config_status_args=
|
---|
8638 | test "$silent" = yes &&
|
---|
8639 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8640 | exec 5>/dev/null
|
---|
8641 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8642 | exec 5>>config.log
|
---|
8643 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8644 | # would make configure fail if this is the last instruction.
|
---|
8645 | $ac_cs_success || as_fn_exit 1
|
---|
8646 | fi
|
---|
8647 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
8649 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
8650 | fi
|
---|
8651 |
|
---|
8652 |
|
---|